[issue558238] Pickling bound methods
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue558238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue558238] Pickling bound methods
Antoine Pitrou pit...@free.fr added the comment: Let's continue the discussion on issue9276. -- nosy: -merwok resolution: - duplicate status: open - closed superseder: - pickle should support methods ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue558238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue558238] Pickling bound methods
Antoine Pitrou pit...@free.fr added the comment: See also issue3657. For some reasons, C bound methods aliased as module globals can be pickled, but not similarly aliased Python bound methods: random.random, random.seed (built-in method random of Random object at 0x27abe20, bound method Random.seed of random.Random object at 0x27abe20) pickle.dumps(random.random) b'\x80\x03crandom\nrandom\nq\x00.' pickle.dumps(random.seed) Traceback (most recent call last): File stdin, line 1, in module File /home/antoine/py3k/__svn__/Lib/pickle.py, line 1314, in dumps Pickler(f, protocol, fix_imports=fix_imports).dump(obj) _pickle.PicklingError: Can't pickle class 'method': attribute lookup builtins.method failed -- assignee: loewis - nosy: +belopolsky, pitrou stage: - needs patch versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue558238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue558238] Pickling bound methods
Alexandre Vassalotti alexan...@peadrop.com added the comment: I am leaving this issue open for now. I reconsidered whether we should add pickle support for methods and I now think it would probably be a good idea. For example, the multiprocessing module would benefit from a having built-in support for method pickling (right now, it has to subclass Pickler to pickle methods). -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue558238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue558238] Pickling bound methods
obamausa8 obamau...@gmail.com added the comment: This is an interesting discussion.. thank you for sharing. [url=http://pret-auto.org][color=#FF][u]pret auto[/u][/color][/url] -- nosy: +obamausa8 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue558238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue558238] Pickling bound methods
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue558238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue558238] Pickling bound methods
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Personally, I don't see how adding this feature would create a security hole (or more properly said, grow the giant hole that are the GLOBAL and REDUCE opcodes). I don't see either why this should be included in the standard library. Unless there is still a need for this feature, I think this bug should be closed. -- nosy: +alexandre.vassalotti Tracker [EMAIL PROTECTED] http://bugs.python.org/issue558238 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue558238] Pickling bound methods
Changes by Alexandre Vassalotti [EMAIL PROTECTED]: -- status: open - pending Tracker [EMAIL PROTECTED] http://bugs.python.org/issue558238 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com