[issue9269] Cannot pickle self-referencing sets

2013-11-29 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> alexandre.vassalotti resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed superseder: -> Implement PEP 3154 (pickle protocol 4) ___ Python

[issue19726] BaseProtocol is not an ABC

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- Removed message: http://bugs.python.org/msg204785 ___ Python tracker <http://bugs.python.org/issue19726> ___ ___ Python-bug

[issue19088] TypeError with pickle in embedded python3.3 when starting multiple Interpreters.

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> alexandre.vassalotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python

[issue19834] Unpickling exceptions pickled by Python 2

2013-11-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I have reviewed the patch in the review tool. Please take a look! -- ___ Python tracker <http://bugs.python.org/issue19

[issue6673] Uncaught comprehension SyntaxError eats up all memory

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> docs@python components: +Documentation -Interpreter Core keywords: -64bit nosy: +docs@python stage: -> needs patch type: resource usage -> enhancement versions: +Python 3.4, Python 3.5 -Python 3.2, P

[issue15513] Correct __sizeof__ support for pickle

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26617/pickle_sizeof-2.7.patch ___ Python tracker <http://bugs.python.org/issue15513> ___ ___

[issue15513] Correct __sizeof__ support for pickle

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26616/pickle_sizeof-3.2.patch ___ Python tracker <http://bugs.python.org/issue15513> ___ ___

[issue15490] Correct __sizeof__ support for StringIO

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26588/stringio_sizeof-2.7.patch ___ Python tracker <http://bugs.python.org/issue15490> ___ ___

[issue15490] Correct __sizeof__ support for StringIO

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26587/stringio_sizeof-3.2.patch ___ Python tracker <http://bugs.python.org/issue15490> ___ ___

[issue15490] Correct __sizeof__ support for StringIO

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26810/stringio_sizeof-3.3_2.patch ___ Python tracker <http://bugs.python.org/issue15

[issue15490] Correct __sizeof__ support for StringIO

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26586/stringio_sizeof-3.3.patch ___ Python tracker <http://bugs.python.org/issue15490> ___ ___

[issue15490] Correct __sizeof__ support for StringIO

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26811/stringio_sizeof-3.2_2.patch ___ Python tracker <http://bugs.python.org/issue15

[issue15490] Correct __sizeof__ support for StringIO

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26812/stringio_sizeof-2.7_2.patch ___ Python tracker <http://bugs.python.org/issue15

[issue15490] Correct __sizeof__ support for StringIO

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file27241/stringio_sizeof-3.2_3.patch ___ Python tracker <http://bugs.python.org/issue15

[issue17897] Optimize unpickle prefetching

2013-11-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Looks good to me! Feel free to commit. -- ___ Python tracker <http://bugs.python.org/issue17897> ___ ___ Python-bugs-list m

[issue16231] pickle persistent_id return value

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> alexandre.vassalotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python

[issue5885] uuid.uuid1() is too slow

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- priority: low -> normal stage: needs patch -> patch review versions: +Python 3.5 -Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- priority: normal -> low versions: +Python 3.5 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue2281> ___ ___ Py

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- priority: normal -> low versions: +Python 3.5 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue2281> ___ ___ Py

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- priority: normal -> low versions: +Python 3.5 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue2281> ___ ___ Py

[issue2799] Remove _PyUnicode_AsString(), rework _PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2013-11-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: With PEP 393 implemented, there doesn't seem to anything left to be done here. Closing as fixed. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: docs@python -> alexandre.vassalotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pytho

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Would you be okay with removing the static declaration of PyNotImplemented_Type and PyNone_Type if we prefix their name with an underscore? There isn't any other way to fix this without making the types linkable. I might revert the 2.7 change anyw

[issue6477] Pickling of NoneType raises PicklingError

2013-11-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Antoine, are you okay with applying this fix to 2.7? Or should we just mark this as a won't fix? -- keywords: +patch priority: low -> normal resolution: fixed -> stage: committed/rejected -> patch review versions: -Python 3

[issue6477] Pickling of NoneType raises PicklingError

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I thought it over. I don't think the fix is appropriate for 2.x, as it seems closer to being an extra feature than a bug fix. Thanks Antoine for calling me out on this one. -- resolution: -> wont fix stage: patch review -> committ

[issue3657] pickle can pickle the wrong function

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: This was fixed in 3.4 with the introduction of method pickling. I don't think it would be appropriate to backport this to 2.7. Thus, I am closing this as a won't fix for 2.x. -- assignee: -> alexandre.vassalotti resolution: ->

[issue5885] uuid.uuid1() is too slow

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I agree that there is a maintenance cost associated with C extension modules. However, I would certainly be glad if it allowed us to eliminate uses of ctypes in this module because ctypes is quite unsafe and doesn't work well across platforms (thou

[issue11480] Cannot copy a class with a metaclass other than type

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Thank you for the patch! -- assignee: -> alexandre.vassalotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.4 -Python 3.1, Python 3.2 __

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2013-12-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> alexandre.vassalotti priority: normal -> high stage: -> needs patch type: -> behavior versions: +Python 3.4 ___ Python tracker <http://bugs.python

[issue11299] Allow deepcopying paused generators

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Allowing generators to be deepcopied via their code object should be fine. -- stage: test needed -> needs patch title: Allow deepcopying and pickling paused generators -> Allow deepcopying paused generators versions: +Python 3.5 -Pyth

[issue3208] function annotation for builtin and C function

2013-12-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- nosy: -alexandre.vassalotti stage: -> needs patch versions: +Python 3.5 -Python 3.0 ___ Python tracker <http://bugs.python.org/iss

[issue2295] cPickle corner case - docs or bug?

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: We can't fix this without a working test case. Feel free to re-open if you find one. -- assignee: docs@python -> alexandre.vassalotti components: -Documentation resolution: -> works for me status: open -> closed versions: +Pyth

[issue11349] _pickle should implement the module finalisation protocol

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I have implemented PEP 3121 module finalization for _pickle in 64c6d52793be. -- assignee: -> alexandre.vassalotti nosy: +alexandre.vassalotti resolution: -> fixed stage: needs patch -> committed/rejected status: open

[issue15667] PEP 3121, 384 refactoring applied to pickle module

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I have implemented PEP 3121 module finalization for _pickle in 64c6d52793be. I don't see the use case for implementing PEP 384 stable ABI, since _pickle is only distributed with Python. -- assignee: -> alexandre.vassalo

[issue4727] copyreg doesn't support keyword only arguments in __new__

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: PEP 3154 implemented support for pickling classes taking keyword-only arguments. The copy module should be updated to use __getnewargs_ex__ when available through object.__reduce__(4). -- nosy: +alexandre.vassalotti superseder: -> Implement

[issue4727] copyreg doesn't support keyword only arguments in __new__

2013-12-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- superseder: Implement PEP 3154 (pickle protocol 4) -> ___ Python tracker <http://bugs.python.org/issue4727> ___ ___ Py

[issue10717] Multiprocessing module Pickling unPickling issues

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Without a reproducible test case, I am afraid there is nothing we can do here. -- assignee: -> alexandre.vassalotti components: +Library (Lib) -None nosy: +alexandre.vassalotti resolution: -> works for me stage: -> test needed sta

[issue10717] Multiprocessing module Pickling unPickling issues

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Look like I isolated the problem. It seems multiprocessing is using cPickle which cannot be extended with ForkingPickler, unlike the Python version of the pickle module. 15:09:29 [ ~/pythondev/python2.7 ]$ ./python.exe issue10717.py Traceback (most

[issue10717] Multiprocessing module cannot call instance methods across processes

2013-12-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- title: Multiprocessing module Pickling unPickling issues -> Multiprocessing module cannot call instance methods across processes ___ Python tracker <http://bugs.python.org/issu

[issue19754] pickletools.optimize doesn't reframe correctly

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Now, pickletools.optimize doesn't do anything on protocol 4. :) -- assignee: -> alexandre.vassalotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Pyth

[issue19780] Pickle 4 frame headers optimization

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Yeah, let's close this. It is much simpler to just double the frame size target if the extra reads ever become a performance issue. -- status: pending -> closed ___ Python tracker <http://bugs

[issue19858] Make pickletools.optimize aware of the MEMOIZE opcode.

2013-12-01 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti: PEP 3154 introduced the MEMOIZE opcode which lowered the overhead of memoization compared to the PUT opcodes which were previously used. We should update pickletools.optimize to remove superfluous uses of this new opcode. -- components

[issue19834] Unpickling exceptions pickled by Python 2

2013-12-01 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Feel free to commit once you have addressed the remaining comments. -- assignee: -> doerwalter ___ Python tracker <http://bugs.python.org/issu

[issue18073] pickle.Unpickler may read too many bytes, causing hangs with blocking input stream

2013-12-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> alexandre.vassalotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python

[issue19835] Add a MemoryError singleton to fix an unlimited loop when the memory is exhausted

2013-12-01 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- nosy: -alexandre.vassalotti ___ Python tracker <http://bugs.python.org/issue19835> ___ ___ Python-bugs-list mailin

[issue19858] Make pickletools.optimize aware of the MEMOIZE opcode.

2013-12-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Well, that can only happen if MEMOIZE and PUT are both used together, which won't happen with the Pickler classes we support. The easiest thing to do here is to disable pickletools.optimize on proto

[issue19858] Make pickletools.optimize aware of the MEMOIZE opcode.

2013-12-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: MEMOIZE and PUT can be used together. They just need to not step on each other toes when they write to the memo table. As specified by PEP 3154, the memo index used by MEMOIZE is the number of elements currently in the memo table. This obviously means

[issue19881] Fix bigmem pickle tests

2013-12-03 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti: The bigmem tests for pickle are currently failing for protocol 4. The tests are broken because of an assumption rendered invalid by the frame header. Fixing the tests caught a legitimate bug in the save_bytes function of cpickle. -- assignee

[issue19881] Fix bigmem pickle tests

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file32982/fix_bigmem_pickle_2.patch ___ Python tracker <http://bugs.python.org/issue19881> ___ ___

[issue19881] Fix bigmem pickle tests

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file33001/fix_bigmem_pickle_3.patch ___ Python tracker <http://bugs.python.org/issue19881> ___ ___

[issue19881] Fix bigmem pickle tests

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Could you provide a single patch with the implementation and the tests together? I will try to find some time this week to review this. -- assignee: docs@python -> alexandre.vassalotti priority: normal -> high stage: -> patch review

[issue19858] Make pickletools.optimize aware of the MEMOIZE opcode.

2013-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Ah, I almost forgot! I did implement the verification in pickletools.dis() for MEMOIZE: http://hg.python.org/cpython/file/2612ea573ff7/Lib/pickletools.py#l2420 -- ___ Python tracker <http://bugs.python.

[issue19900] improve pickle intro

2013-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Looks good to me! -- ___ Python tracker <http://bugs.python.org/issue19900> ___ ___ Python-bugs-list mailing list Unsub

[issue18015] python 2.7.5 fails to unpickle namedtuple pickled by 2.7.3 or 2.7.4

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10701] Error pickling objects with mutating __getstate__

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- title: Error pickling a dict -> Error pickling objects with mutating __getstate__ ___ Python tracker <http://bugs.python.org/issu

[issue18400] Minor increase to Pickle test coverage

2013-12-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- nosy: +alexandre.vassalotti stage: -> patch review type: -> enhancement ___ Python tracker <http://bugs.python.org/i

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I cleaned up the patch. I will submit it tonight if there is no major objections. -- Added file: http://bugs.python.org/file33019/pickle_python2_str_as_bytes.diff ___ Python tracker <http://bugs.python.

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-07 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I fixed up the last few review comments and submitted the patch. Thank you for the help! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python track

[issue6673] Uncaught comprehension SyntaxError eats up all memory

2013-12-07 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- nosy: -alexandre.vassalotti ___ Python tracker <http://bugs.python.org/issue6673> ___ ___ Python-bugs-list mailing list Unsub

[issue12290] __setstate__ is called for false values

2013-12-07 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python stage: -> patch review versions: +Python 3.4 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python t

[issue12290] __setstate__ is called for false values

2013-12-07 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- versions: +Python 2.7, Python 3.3 ___ Python tracker <http://bugs.python.org/issue12290> ___ ___ Python-bugs-list mailin

[issue13566] Array objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

2013-12-07 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Adding a special type is not a bad idea. We have to keep the code for loading BINSTRING opcodes anyway, so we might as well use it. It could be helpful for unit-testing our Python 2 compatibility support for pickle. We should still fix array in 2.7 to

[issue11299] Allow deepcopying paused generators

2013-12-08 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The issue here is copy.deepcopy will raise an exception whenever it encounters a generator. We would like to do better here. Unfortunately, using itertools.tee is not a solution here because it does not preserve the type of the object

[issue19972] Leak in pickle (?)

2013-12-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The patch is good. I am not sure if you need the freefunc cast though. The example in the PEP 3121 should updated if freefunc is actually required. I didn't define freefunc because of this ex

[issue20395] Extract generated clinic code in Modules/_pickle.c to separate file

2014-01-26 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: +1 from me as well for a separate file. -- ___ Python tracker <http://bugs.python.org/issue20395> ___ ___ Python-bug

[issue20428] _Py_open does not work with O_CREAT

2014-01-28 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti: The _Py_open function in Python/fileutils.c cannot be given correctly the flag O_CREAT. According to the POSIX spec, open(2) _must_ be given an additional mode argument when O_CREAT is used. _Py_open should be fixed to either to use a reasonable

[issue20428] _Py_open does not work with O_CREAT

2014-01-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: > What is the current behaviour? I don't think the behaviour is defined. At least, I know it causes recent GCC/glibc combination to throw a compilation error when _FORTIFY_SOURCE is defined: http://www.eglibc.org/cgi-bin/viewvc.cgi/trunk

[issue6410] Dictionaries should support __add__

2009-07-04 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Tim Gordon wrote: > __add__ is non-commutative for lists, tuples, strings etc. - perhaps > non-commutative wasn't quite what you were looking for :p. Yeah, I was not clear in my explanation. The thing is for lists, tuples, string and ot

[issue6410] Dictionaries should support __add__

2009-07-04 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue6410> ___ ___ Python-bugs-list mailing list Un

[issue6151] Make PyDescr_COMMON conform to standard C

2009-07-04 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: New patch with the superfluous macros stripped out. However, I still like my original patch better, since it is a bit more consistent. Anyway, is anyone opposed to this change? -- ___ Python tracker <h

[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2009-07-04 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed the warning patch in r73846 (with a minor correction in r73847), the 2to3 fixer in r73849. Thanks! -- assignee: collinwinter -> nosy: +alexandre.vassalotti resolution: -> accepted stage: -> committed/rejected status: open

[issue4509] bugs in array.array with exports (buffer protocol)

2009-07-04 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Fixed the array bug in r73850. Is there any bug left to fixed that were reported in this issue? -- nosy: +alexandre.vassalotti ___ Python tracker <http://bugs.python.org/issue4

[issue4005] pydoc in web server mode tails at initial request

2009-07-04 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r73856. -- nosy: +alexandre.vassalotti resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue2356] fixer for sys.exitfunc -> atexit

2009-07-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Here is an attempt to add a Py3K warning when sys.exitfunc is modified. -- nosy: +alexandre.vassalotti Added file: http://bugs.python.org/file14453/sys_exitfunc_warning.diff ___ Python tracker <h

[issue2389] Array pickling exposes internal memory representation of elements

2009-07-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I would like to commit my patch later this week. So if you see any issue with the patch, please speak up. -- ___ Python tracker <http://bugs.python.org/issue2

[issue2389] Array pickling exposes internal memory representation of elements

2009-07-05 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file11096/fix_array_pickling.patch ___ Python tracker <http://bugs.python.org/issue2389> ___ ___

[issue6429] 2to3: fix_future conflicts with fix_print

2009-07-06 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti : Running 2to3 with the default options on the following code: from __future__ import print_function x,y = 1,2 print(x, y) produces the following diff: --- future_print.py (original) +++ future_print.py (refactored) @@ -1,5 +1,5 @@ -from

[issue6151] Make PyDescr_COMMON conform to standard C

2009-07-06 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: > I'm not sure what the "new patch" is since you haven't uploaded it Oh silly me. Here's the new patch. -- Added file: http://bugs.python.org/file14459/strict-aliasing-pydescr-2.diff _

[issue6430] array.array falsely advertises support for 'w' in documentation

2009-07-06 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti : It looks like either array's 'w' support got lost in a merge, or the documentation is just wrong. >>> import array >>> array.array('w', "hello") Traceback (most recent call last): File "&quo

[issue2389] Array pickling exposes internal memory representation of elements

2009-07-06 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I know believe that arrays should be pickled as a list of values on Python 2.x. Doing otherwise makes it impossible to unpickle arrays coming from Python 2.x using Python 3.x, since pickle on Python 3 decodes all the strings from 2.x to Unicode. However

[issue5885] uuid.uuid1() is too slow

2009-07-06 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Can you provide a patch? -- nosy: +alexandre.vassalotti priority: -> low stage: -> needs patch versions: +Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 3.0, Python 3.1 ___ Python tracker

[issue2919] Merge profile/cProfile in 3.0

2009-07-06 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Here's an updated version of my lsprof.py module. I fixed a few bugs, includes the awful reference leak that was present in the previous version (i.e., the profiler code was keeping a reference to every frame executed). I consider the lsprof.py

[issue2919] Merge profile/cProfile in 3.0

2009-07-06 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file14376/lsprof.py ___ Python tracker <http://bugs.python.org/issue2919> ___ ___ Python-bugs-list m

[issue6477] Pickling of NoneType raises PicklingError

2009-07-15 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I don't see why you want to pickle NoneType. Do you have a proper use-case for this, or are you just playing around with pickle? -- nosy: +alexandre.vassalotti priority: -> low ___ Python tracke

[issue2389] Array pickling exposes internal memory representation of elements

2009-07-15 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed fix for 3.x in r74013 and for 2.x in r74014. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6477] Pickling of NoneType raises PicklingError

2009-07-17 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I agree with Nick. And if you really want to, you could hack a Pickler subclass to support NoneType: import io import pickle class XPickler(pickle.Pickler): def persistent_id(self, obj): if obj is type(None): return "NoneType"

[issue6242] Fix reference leak in io.StringIO

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Patch committed in r74155 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6360] Simplify string decoding in xmlrpc.client.

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Patch committed in r74156 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6241] Better type checking for the arguments of io.StringIO

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r74157 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6218] Make io.BytesIO and io.StringIO picklable.

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r74158 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6151] Make PyDescr_COMMON conform to standard C

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r74159 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6542] test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Oh, nice catch. That patch looks fine. However, I would probably add a comment why the fstat checks are required. -- nosy: +alexandre.vassalotti ___ Python tracker <http://bugs.python.org/issue6

[issue4509] bugs in array.array with exports (buffer protocol)

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Closing as I don't see any other bugs in this issue to fix. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyt

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14549/testcase3.py ___ Python tracker <http://bugs.python.org/issue6551> ___ ___ Python-bug

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14550/testcase4.py ___ Python tracker <http://bugs.python.org/issue6551> ___ ___ Python-bug

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14547/testcase1.py ___ Python tracker <http://bugs.python.org/issue6551> ___ ___ Python-bug

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti : For some yet unknown reason, test_codecs fails when it is run after test_zipimport and subsequently test_mailbox: ./python Lib/test/regrtest.py -w test_zipimport test_mailbox test_codecs [SNIP

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14548/testcase2.py ___ Python tracker <http://bugs.python.org/issue6551> ___ ___ Python-bug

[issue6042] Document and slightly simplify lnotab tracing

2009-07-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The patch was merged to 3.x in r74132. -- assignee: jyasskin -> nosy: +alexandre.vassalotti resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.o

<    1   2   3   4   5   6   7   >