[issue13577] __qualname__ is not present on builtin methods and functions

2011-12-12 Thread Meador Inge
Meador Inge added the comment: For the most part this looks OK, but I am not sure about this hunk: diff --git a/Objects/typeobject.c b/Objects/typeobject.c --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3724,7 +3724,7 @@ add_methods(PyTypeObject *type, PyMethod descr = P

[issue13394] Patch to increase aifc lib test coverage

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : -- title: Patch to increase aifc lib test coverage with couple of minor fixes -> Patch to increase aifc lib test coverage ___ Python tracker ___ __

[issue13589] Aifc low level serialization primitives fix

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : -- title: Aifc float serialization fix -> Aifc low level serialization primitives fix ___ Python tracker ___ __

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Added file: http://bugs.python.org/file23940/aifc_numbers_fix.patch ___ Python tracker ___ ___ Python-bugs-list

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file23939/aifc_numbers_fix.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Added file: http://bugs.python.org/file23939/aifc_numbers_fix.patch ___ Python tracker ___ ___ Python-bugs-list

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file23935/aifc_numbers_fix.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Nick Coghlan
Nick Coghlan added the comment: In the meantime, I put my version up as a cookbook recipe: http://code.activestate.com/recipes/577981-cleanupmanager-for-with-statements/ -- ___ Python tracker

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Nick Coghlan
Nick Coghlan added the comment: Given the history of API design errors in contextlib (cf. contextlib.nested in general, making contextlib._GeneratorContextManager a subclass of contextlib.ContextDecorator), I've realised Raymond is right in wanting to see this idea more thoroughly vetted befo

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Nick Coghlan
Nick Coghlan added the comment: TestCase.setUp() and TestCase.tearDown() were amongst the precursors to__enter__() and __exit__(). addCleanUp() fills exactly the same role here - and I've seen *plenty* of positive feedback directed towards Michael for that addition to the unittest API. For i

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks, I'll look at it over the next few days. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue13591] import_module potentially imports a module twice

2011-12-12 Thread Nick Coghlan
Nick Coghlan added the comment: At first glance, I thought this might be just the circular import problem (#992389) appearing in a different guise. However, if that was the case, switching to an import statement or __import__ shouldn't have made any difference. What do you see if you put an

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger resolution: -> later ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think you guys need to post your code somewhere (perhaps on PyPi or the ASPN Cookbook). It needs to mature beyond the stage of "I just whipped-up this code and think it would be great if everybody used it". I've seen nothing like this being used in prod

[issue1785] "inspect" gets broken by some descriptors

2011-12-12 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Nick Coghlan
Nick Coghlan added the comment: Given the existence of tempfile.TemporaryDirectory in recent Python versions, I suggest finding a new cleanup function example that doesn't duplicate native stdlib functionality :) I do see value in the feature itself though - I believe the precedent of both t

[issue13591] import_module potentially imports a module twice

2011-12-12 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-12-12 Thread sbt
sbt added the comment: > Which is fine. 'bytes' and byte literals were not introduced until > 2.6 [1,2]. So *any* solution we come > up with is for >= 2.6. In 2.6 and 2.7, bytes is just an alias for str. In all 2.x versions with codecs.encode, the result will be str. (Although I haven't ac

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-12 Thread Roger Serwy
Roger Serwy added the comment: The crash can be prevented by using #13582. The RPCProxy object would need to be subclassed so that it raises TypeError for the "write" method when it is not given a string. -- nosy: +serwy ___ Python tracker

[issue7163] IDLE suppresses sys.stdout.write() return value

2011-12-12 Thread Roger Serwy
Roger Serwy added the comment: If you add "return len(s)" to PseudoFile::write in PyShell.py, then it will work. However, this approach may not be "the right thing to do." -- nosy: +serwy ___ Python tracker __

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

2011-12-12 Thread Meador Inge
Meador Inge added the comment: On Sun, Dec 11, 2011 at 12:17 PM, sbt wrote: >> I don't really know that much about pickle, but Antoine mentioned that >> 'bytearray' >> works fine going from 3.2 to 2.7.  Given that, can't we just compose 'bytes' >> with >> 'bytearray'? > > Yes, although it wo

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would like to continue working on this test, but incoming week is > pretty intensive for me. Is it ok if I returned to working on this > during the weekend? Of course. There's no rush. (I'm really not sure it should go in 2.7 and 3.2; this looks more like a

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Julian Berman
Julian Berman added the comment: For reference, the implementation that I posted in the other thread is: @contextlib.contextmanager def maybe(got, contextfactory, *args, checkif=bool, **kwargs): if checkif(got): yield got else: with contextfactory

[issue13548] Invalid 'line' tracer event on pass within else clause

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Snippet examples can be made 2/3 agnostic with from __future__ import print_function) 3.2.2 on win7, IDLE, gives me F:\Python\mypy\tem.py 7 call F:\Python\mypy\tem.py 8 line F:\Python\mypy\tem.py 10 line F:\Python\mypy\tem.py 11 line F:\Python\mypy\tem.py 13

[issue13516] Gzip old log files in rotating handlers

2011-12-12 Thread Raul Morales
Raul Morales added the comment: Interesting, then I will wait your post. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue13540] Document the Action API in argparse

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc specified the Action API as the interface inherited from argparse.Action plus the addition of a custom __call__ method with 4 params (5 with self) as described. That seems mostly adequate to me, unless there is something missing in the parameter descr

[issue13538] Improve doc for str(bytesobject)

2011-12-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13538] Improve doc for str(bytesobject)

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think Eric's suggestion is the proper approach. -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: We should like the IDLE shell to give the same results as the standard shell. See #7163 On 3.2.2 on Win7, the problem is worse: sys.stdout.write(100) crashes IDLE -- as in it just fades away after a short (1/2 sec?) delay. sys.stdout.write(sys) gives me the

[issue7163] IDLE suppresses sys.stdout.write() return value

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Re-verified on 3.2.2, win 7. #13532 shows a worse problem with sys.stdout.write on the above. -- versions: +Python 3.3 -Python 3.1 ___ Python tracker __

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

2011-12-12 Thread sbt
sbt added the comment: I now realise latin_1_encode won't work because it returns a pair (bytes_obj, length). I have done a patch using _codecs.encode instead -- the pickles turn out to be exactly the same size anyway. >>> pickletools.dis(pickle.dumps(b"abc", 2)) 0: \x80 PROTO 2

[issue13591] import_module potentially imports a module twice

2011-12-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brett.cannon, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13591] import_module potentially imports a module twice

2011-12-12 Thread Ryan Twitchell
New submission from Ryan Twitchell : Use of importlib's import_module function with modules belonging to a library can cause some modules to be imported twice, if such a module is referenced from sibling modules, and from __init__ in the package. I suspect this is a bug, or at best a nuance of p

[issue13557] exec of list comprehension fails on NameError

2011-12-12 Thread Stephan R.A. Deibel
Stephan R.A. Deibel added the comment: Here's a patch to the docs that notes the issue and refers the reader to the relevant execution model docs page. I have also attempted to clarify the "interaction with dynamic features" section of the execution model page. -- keywords: +patch ve

[issue13590] Prebuilt python-2.7.2 binaries for macosx can not compile c extensions

2011-12-12 Thread K Richard Pixley
New submission from K Richard Pixley : Install the Python-2.7.2 mac installer for Lion on Lion. Then attempt "easy_install -U psutil". I get: za-dc-dev/bin/easy_install -U psutil install_dir /Users/rich/projects/za-packages/za-dependency-checker/za-dc-dev/lib/python2.7/site-packages/ Searchin

[issue13516] Gzip old log files in rotating handlers

2011-12-12 Thread Vinay Sajip
Vinay Sajip added the comment: I have worked out a possible approach. I will post about it soon, and add a link to it from this issue. -- ___ Python tracker ___ ___

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Eric Snow
Eric Snow added the comment: Check out: http://code.activestate.com/recipes/ -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bu

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Nikolaus Rath
Nikolaus Rath added the comment: On 12/12/2011 03:31 PM, Sven Marnach wrote: > Adding this as a cookbook recipe first seems like a good idea. This is the second time that this is mentioned, so I would be very grateful if someone could elucidate what "adding as a cookbook recipe" means :-). Is t

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Sven Marnach
Sven Marnach added the comment: There is actually a second thread on python-ideas on a very similar topic, see http://mail.python.org/pipermail/python-ideas/2011-December/013021.html The two main advantages of the proposed CleanupManager over try/finally blocks are 1. You can add a clean

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2011-12-12 Thread Florent Xicluna
Florent Xicluna added the comment: Patch is ready for python 3.4 :-) -- keywords: +patch nosy: +flox Added file: http://bugs.python.org/file23936/issue9856_python-3.4.diff ___ Python tracker __

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I have tried to port patch to python2.7, but apparently I must be doing something wrong, because while most tests pass, several fail (including tests for unittest itself). I would like to continue working on this test, but incoming week is pretty intensi

[issue13516] Gzip old log files in rotating handlers

2011-12-12 Thread Raul Morales
Raul Morales added the comment: I use a similar code in my scripts, but I thought it could be useful to have this feature built into python. If you prefer subclassing for compression, what about a compressing subclass built into logging package? If you think it is a good feature, I will be a

[issue11647] function decorated with a context manager can only be invoked once

2011-12-12 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file23932/aifc_numbers_fix.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: Forget about "patch must be applied before" thing. I've made independent patch. :-) -- Added file: http://bugs.python.org/file23935/aifc_numbers_fix.patch ___ Python tracker ___

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Added file: http://bugs.python.org/file23934/test_aifc.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file23931/test_aifc.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file23933/CleanupManager_patch_v2.diff ___ Python tracker ___ ___ Python-bugs-li

[issue11468] Improve unittest basic example in the doc

2011-12-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Ezio, please leave this one for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-12-12 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: Second patch goes to issue 13589 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: Second patch goes to issue 13589 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: Patch must be applied after http://bugs.python.org/file23931/test_aifc.patch from issue 13394. Not sure if review tool can handle this correctly. -- ___ Python tracker

[issue13589] Aifc float serialization fix

2011-12-12 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk : 1. Fixed _write_float to handle infinity, NaN and negative numbers correctly. 2. Renamed _write_long to _write_ulong because it actually writes unsigned value. 3. Added _read_ushort as counterpart of _write_ushort. This is never used anywhere except test t

[issue11468] Improve unittest basic example in the doc

2011-12-12 Thread Ezio Melotti
Ezio Melotti added the comment: The patch includes only assertEqual, assertTrue, and assertRaises and, except a s/functions/methods/ in the first line, looks good to me. -- stage: needs patch -> commit review versions: -Python 3.1 ___ Python tracke

[issue13575] old style classes still alive

2011-12-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13575] old style classes still alive

2011-12-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 021e5bb297d1 by Florent Xicluna in branch 'default': Issue #13575: there is only one class type. http://hg.python.org/cpython/rev/021e5bb297d1 -- nosy: +python-dev ___ Python tracker

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-12-12 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: Sounds perfectly reasonable. Here goes the first patch with pure test coverage. -- Added file: http://bugs.python.org/file23931/test_aifc.patch ___ Python tracker __

[issue13544] Add __qualname__ to functools.WRAPPER_ASSIGNMENTS

2011-12-12 Thread Meador Inge
Meador Inge added the comment: Yup, oversight on my part. Thanks. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-12-12 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk : Removed file: http://bugs.python.org/file23734/test_aifc.patch ___ Python tracker ___ ___ Python-bugs-list maili

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

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Only worry is that codecs.latin_1_encode.__module__ is '_codecs', and > _codecs is undocumented. It seems we have to choose between two evils here. Given that the codecs.latin_1_encode produces more compact pickles, I'd say go for it. Note that for the empt

[issue13575] old style classes still alive

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue13544] Add __qualname__ to functools.WRAPPER_ASSIGNMENTS

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suppose the status can be switched to "closed"? -- nosy: +pitrou ___ Python tracker ___ ___ Pytho

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Let's just start with a working 2.7 patch and go from there. -- ___ Python tracker ___ ___ Pytho

[issue11468] Improve unittest basic example in the doc

2011-12-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll be updating this example shortly, but it is intentional that it include only assertEqual, assertTrue, and assertRaises. Those three are the minimum necessary to get up and running (which is the whole point of the BASIC example). -- assignee:

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I'll send a patch, when I get home from work. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, if this is going to be applied to 2.7, "nonlocal" is invalid > syntax there. Ah, good point. -- ___ Python tracker ___ ___

[issue13588] Change name of internal closure functions in importlib

2011-12-12 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5689] Support xz compression in tarfile module

2011-12-12 Thread Lars Gustäbel
Lars Gustäbel added the comment: Please, go ahead! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Well, if this is going to be applied to 2.7, "nonlocal" is invalid syntax there. I guess that being able to use the same test in 2.7 and 3.2/3.3 would be nice. Style, but justified. -- ___ Python tracker

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I haven't given it much thought, when I was making the choice of using nonlocal rather than self.count. I was rather excited to see, if the change will work as I wanted it to. If you believe it would be better to use an attribute, I'll be happy to change

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Filip: Is there a reasons for using a nonlocal count rather than e.g. > self.count? Otherwise the test looks good. Eric, please, could we stop such pointless nitpicking about one's stylistic preferences? "nonlocal" is as good as any other solution here, and

[issue11468] Improve unittest basic example in the doc

2011-12-12 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berkerpeksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11175] allow argparse FileType to accept encoding and errors arguments

2011-12-12 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berkerpeksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oh, what's more interesting is that it works here (Python 2.7.1 and numpy 1.6.1 under Mageia with 8GB RAM). Looking at a pickle disassembly, the only remarkable thing is the presence of a long binary string (the raw serialization of all IEEE floats), which sh

[issue13588] Change name of internal closure functions in importlib

2011-12-12 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berkerpeksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Couldn't this be linked to #11564 (pickle not 64-bit ready)? Well, I don't know anything about numpy, but: >>> 196 * 24 4704 >>> 196 * 24 * 8 # assuming 8 bytes per float 37632 >>> 2**31 2147483648 So it seems unlikely to be the explanatio

[issue5689] Support xz compression in tarfile module

2011-12-12 Thread Éric Araujo
Éric Araujo added the comment: Lars, as part of a small doc patch I want to change this in tarfile.rst: The :mod:`tarfile` module makes it possible to read and write tar archives, including those using gzip or bz2 compression. -(:file:`.zip` files can be read and written using the :mod:

[issue13521] Make dict.setdefault() atomic

2011-12-12 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the idea Jesús, even though I didn’t get the change to use it :) Filip: Is there a reasons for using a nonlocal count rather than e.g. self.count? Otherwise the test looks good. -- ___ Python tracker

[issue13539] Return value missing in calendar.TimeEncoding.__enter__

2011-12-12 Thread Éric Araujo
Éric Araujo added the comment: I don’t know this module well, so I’m adding Georg, who last changed that method, and other people from #10092 to the nosy list. -- nosy: +JJeffries, Retro, christian.heimes, georg.brandl, ixokai, r.david.murray, tim.golden, twouters ___

[issue13248] deprecated in 3.2, should be removed in 3.3

2011-12-12 Thread Ezio Melotti
Ezio Melotti added the comment: I think it would be better to decide in what version each thing will be removed and then mark them with the deprecated-removed directive in the doc. -- ___ Python tracker _

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-12 Thread Charles-François Natali
Changes by Charles-François Natali : -- Removed message: http://bugs.python.org/msg149321 ___ Python tracker ___ ___ Python-bugs-list

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-12 Thread Charles-François Natali
Charles-François Natali added the comment: @Antoine Couldn't this be linked to #11564 (pickle not 64-bit ready)? Basically, an integer overflow, and malloc() would bail out when asked a ridiculous size. AFAICT this wasn't fixed in 2.7. @Philipp I'd be curious to see the last lines of $ ltrac

[issue13248] deprecated in 3.2, should be removed in 3.3

2011-12-12 Thread Éric Araujo
Éric Araujo added the comment: Given the discussions we’ve had this month and a few months earlier about people porting directly to 3.2 or 3.3, I think the second patch needs to wait for 3.4 or 3.5. (I have no opinion on the first patch, not being a customer of lib2to3 or pyio.) --

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-12 Thread Charles-François Natali
Charles-François Natali added the comment: @Antoine Couldn't this be linked to #11564 (pickle not 64-bit ready)? AFAICT this wasn't fixed in 2.7. Basically, an integer overflow, and malloc() would bail out when asked a ridiculous size. @Philipp I'd be curious to see the last lines of $ ltrace

[issue13405] Add DTrace probes

2011-12-12 Thread anatoly techtonik
anatoly techtonik added the comment: On Mon, Dec 12, 2011 at 6:26 PM, Antoine Pitrou wrote: > > I am not disputing the flexibility of dtrace. However, it is also > platform-specific, and needs you to learn a dedicated programming > language and API. If it is flexible, then I won't see any prob

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-12 Thread Roger Serwy
Roger Serwy added the comment: You can try triggering bug #8900 quite simply. From a shell or an editor, press Ctrl+N and then Ctrl+O. Open a file and watch IDLE terminate abruptly. Also, see #12274. If you want to play with this problem further, try adding a "raise Exception" to a construct

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: "terminate abruptly"? I thought that print(file=None) silently returned, without printing but without an error. A delayed popup to display (otherwise discarded) output is a nice feature, though. -- nosy: +amaury.forgeotdarc

[issue13588] Change name of internal closure functions in importlib

2011-12-12 Thread Brett Cannon
New submission from Brett Cannon : The internal closure functions (eg. wrapper functions used by decorators) should not use generic names like inner() or wrapper(), but descriptive names so that they make sense when read in a traceback. IOW, you shouldn't have to look up the source code to fig

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2011-12-12 Thread Brett Cannon
Brett Cannon added the comment: This fails for me on OS X Snow Leopard using LLVM 3.0. And I agree with your initial guess, Victor: I don't see how importlib could possibly be the issue here since it's using load_dynamic() and not loading some Python source itself. -- __

[issue13405] Add DTrace probes

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Notice too, that the data I am showing is the extra memory I am using > for the dtrace stack helper, not all python memory (if you check the > dtrace script, I only contabilize "PyMem_Malloc()" when called from > "PyCode_New()"). > > DTrace allows me to be qu

[issue13405] Add DTrace probes

2011-12-12 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: >> - Interactive interpreter invocation: 517 blocks, 95128 bytes. > > Note that http://bugs.python.org/issue13390 also proposes to count > allocations in the interpreter. The thing is, I get this data WITHOUT touching python interpreter, using a DTrace script

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-12 Thread anatoly techtonik
anatoly techtonik added the comment: On Mon, Dec 12, 2011 at 6:11 PM, STINNER Victor wrote: > > STINNER Victor added the comment: > > > How different is the performance cost of this solution compared > > to inserting DTrace probe for the same purpose? > > DTrace is only available on some platf

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13405] Add DTrace probes

2011-12-12 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: > - why an empty "dtrace" module? This is preliminary. I am thinking about dynamic probes, something like "logging" module but using dtrace. Still experimenting, not sure is actually possible. Martin V Löwis suggested to use "sys.flags". Undecided yet. >

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-12 Thread STINNER Victor
STINNER Victor added the comment: > How different is the performance cost of this solution compared > to inserting DTrace probe for the same purpose? DTrace is only available on some platforms (Solaris and maybe FreeBSD?). -- ___ Python tracker

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-12 Thread anatoly techtonik
anatoly techtonik added the comment: How different is the performance cost of this solution compared to inserting DTrace probe for the same purpose? -- nosy: +techtonik ___ Python tracker

[issue13405] Add DTrace probes

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > - Interactive interpreter invocation: 517 blocks, 95128 bytes. Note that http://bugs.python.org/issue13390 also proposes to count allocations in the interpreter. -- ___ Python tracker

[issue13580] Pre-linkage of CPython >=2.6 binary on Linux too fat (libssl, libcrypto)

2011-12-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I just checked the file python2.6_2.6.6-8.diff.gz from the Debian python2.6 package: http://packages.debian.org/squeeze/python2.6 This diff file contains a """patch to build _hashlib and _ssl extensions statically""" that modifies Modules/Setup.dist So

  1   2   >