Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
This functionality already exists. """ If a string is returned [from __reduce__() method], the string should be interpreted as the name of a global variable. It should be the object’s local name relative to its module; the pickle module searches the module namespace to determine the object’s module. This behaviour is typically useful for singletons. """ -- http://docs.python.org/dev/py3k/library/pickle.html ---------- assignee: -> belopolsky nosy: +belopolsky resolution: -> invalid status: open -> pending _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue960821> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com