[issue887237] Machine integers

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Perhaps people could review the latest patch in view of the following. 1) Quote from Mark Dickinson msg75815 "I think this would be valuable for rapid prototyping of an algorithm in Python before translating it into C. In particular, it might help with detecti

[issue9260] A finer grained import lock

2010-07-14 Thread Brett Cannon
Brett Cannon added the comment: That's my point; loaders are using the lock implicitly so that's why we don't need to worry about the global import lock just for path hooks. It seems like you are suggesting using the global import lock purely for compatibility, and what I am saying is that lo

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2010-07-14 Thread Dave Malcolm
New submission from Dave Malcolm : Modules/gcmodule.c contains various assertions which can fail due to reference counting errors elsewhere in either python, or an extension module. These can be difficult to track down. In the hope of maximizing the information from crash reports, the attache

[issue6960] test_telnetlib gives spurious output

2010-07-14 Thread Jack Diederich
Jack Diederich added the comment: r76133 (which came after this bug) fixed most test_telnetlib bugs by using mocks instead of trying to setup full-blown client/server TCP cases. -- ___ Python tracker _

[issue998998] pickle bug - recursively memoizing class?

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This looks like a duplicate of issue 1581183. The issue is still present in py3k, but only shows up in picklecycle.py when using pickle.py version. I am attaching picklecycle3.py which is py3k version of picklecycle.py using python pickler. --

[issue9264] trace.py documentation is incomplete

2010-07-14 Thread Eli Bendersky
New submission from Eli Bendersky : The documentation of the standard 'trace' module (Doc/library/trace.rst) is sorely lacking. Arguments are not explained, some key methods are not documented at all, and the CoverageResults class isn't documented. Usage of these appears in the example but lea

[issue8738] cPickle dumps(tuple) != dumps(loads(dumps(tuple)))

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There seems to be a bug somewhere in 2.x cPickle. Here is a somewhat simpler way to demonstrate the bug: the following code from pickletools import dis import cPickle t = 1L, # use long for easy 3.x comparison s1 = cPickle.dumps(t) s2 = cPickle.dumps(cP

[issue9265] Can choose other shell in subprocess module. Includes fix.

2010-07-14 Thread Narnie Harshoe
New submission from Narnie Harshoe : Popen from the subprocess module when called with shell=True and executable=/bin/bash still runs in the /bin/sh shell. The error has been found and corrected in the subprocess module and is as follows: change: lines 1018-1022 for python v 2.6

[issue8738] cPickle dumps(tuple) != dumps(loads(dumps(tuple)))

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: OK, the 2.7 behavior is explainable and correct. cPickle checks the reference count and does not generate PUT for objects that don't have references: >>> from pickletools import dis >>> from cPickle import dumps >>> dis(dumps(tuple([1]))) 0: (MA

[issue9265] Can't choose other shell in subprocess module. Includes fix.

2010-07-14 Thread Narnie Harshoe
Changes by Narnie Harshoe : -- title: Can choose other shell in subprocess module. Includes fix. -> Can't choose other shell in subprocess module. Includes fix. ___ Python tracker __

[issue8738] cPickle dumps(tuple) != dumps(loads(dumps(tuple)))

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am speculating here while Alexandre probably knows the answer. The skip PUT on unreferenced objects optimization was probably removed because doing so makes _pickle module behave more like pickle and because pickletools now has optimize method which

[issue616013] cPickle documentation incomplete

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've just closed issue8738 as invalid and surely a document explaining the differences between cPickle and _pickle would save me a lot of effort. It will also help anyone porting from 2.x to 3.x. Alexandre, do you have any notes that you can share? --

[issue1062277] Pickle breakage with reduction of recursive structures

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The issue is still present in py3k. Attaching an updated patch with tests only. Is this the same as issue998998? -- assignee: -> belopolsky nosy: +alexandre.vassalotti, belopolsky stage: -> needs patch versions: +Python 3.2 Added file: http:/

[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-14 Thread Jyrki Wahlstedt
Jyrki Wahlstedt added the comment: For some reason I unintentionally managed to change status, putting it back to pending. -- status: open -> pending ___ Python tracker ___

[issue1724366] cPickle module doesn't work with universal line endings

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This does not look like a valid bug to me. OP does not show that pickle files are different on different systems, he mangles pickle file with unix2dos instead. This would certainly produce an invalid pickle because pickle format requires '\n' and no o

<    1   2