Pickle performing class instantiation ??

Andrew Berg bahamutzero8825 at gmail.com
Tue Feb 28 17:15:09 CET 2012


On 2/28/2012 9:54 AM, Smiley 4321 wrote:
> NameError: name 'self' is not defined
self is meaningless outside a class definition. You should refactor your
dump, load and print code as methods inside the class definition, create
an instance and call the methods on that instance.

-- 
CPython 3.2.2 | Windows NT 6.1.7601.17640



More information about the Python-list mailing list