[issue13544] Add __qualname__ to functools.WRAPPER_ASSIGNMENTS

2011-12-12 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Pleasure :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-12-12 Thread Ezio Melotti
Ezio Melotti added the comment: Terry, does the latest patch look good to you? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13405] Add DTrace probes

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Very high-level comments on your patch: - why an empty "dtrace" module? - I'm worried that you're adding lots of delicate code inside critical core functions. Perhaps most of it can be factored out in separate functions living in another (dtrace-specific) C

[issue8684] improvements to sched.py

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not convinced by the decorator approach. Why not simply add "with self.lock" at the beginning of each protected method? It would actually save a function call indirection. -- stage: -> patch review versions: +Python 3.3 -Python 3.2 _

[issue13405] Add DTrace probes

2011-12-12 Thread Charles-François Natali
Charles-François Natali added the comment: > Alan, I would open a new issue tracking this one and posting a patch there, > if I were you. > > Previous DTRACE attempts failed because trying to make everybody happy. I > don't want to repeat the mistake. > Sorry, but I'm -1. I don't feel comfort

[issue8684] improvements to sched.py

2011-12-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Are you suggesting to enable thread-synchronization by default and get rid of explicit "synchronized" argument? -- ___ Python tracker ___ __

[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2011-12-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +rprosser versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8684] improvements to sched.py

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Are you suggesting to enable thread-synchronization by default and get > rid of explicit "synchronized" argument? That would be even better indeed, if you find out that there's no significant performance degradation. -- _

[issue13405] Add DTrace probes

2011-12-12 Thread anatoly techtonik
anatoly techtonik added the comment: 2011/12/12 Charles-François Natali > > Charles-François Natali added the comment: > > > Alan, I would open a new issue tracking this one and posting a patch > there, if I were you. > > > > Previous DTRACE attempts failed because trying to make everybody ha

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

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, a couple of further (minor) issues: - I don't think AssertionError is the right exception type. TypeError should be used when a type mismatches (e.g. "not an unicode object"); - you don't need to check for d_type being NULL, since other methods don't; - if

[issue8684] improvements to sched.py

2011-12-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: This is what I get by using bench.py script attached to issue13451: CURRENT VERSION (NO LOCK) test_cancel: time=0.67457 : calls=1 : stdev=0.0 test_empty : time=0.00025 : calls=1 : stdev=0.0 test_enter

[issue8684] improvements to sched.py

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Versions #2 and #3 have the same cost, so it's better to get rid of > the explicit argument and always use the lock (version #3). > Differences between #1 and #3 suggest that introducing the lock > obviously have a cost though. > It's not too high IMO, but I c

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

2011-12-12 Thread kxroberto
kxroberto added the comment: >> (I often wonder why software today isn't much faster than years ago - >> though the nominal speed of hardware increases tremendously. package >> sizes grow, without appropriate growth of functionality. This is one >> example how the rescources are wasted too carel

[issue8684] improvements to sched.py

2011-12-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New patch in attachment. I'll commit it later today. -- nosy: +rhettinger Added file: http://bugs.python.org/file23925/sched-thread-safe.patch ___ Python tracker ___

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

2011-12-12 Thread sbt
sbt added the comment: Patch which add __qualname__ to builtin_function_or_method. Note that I had to make a builtin staticmethod have __self__ be the type instead of None. -- Added file: http://bugs.python.org/file23926/method_qualname.patch ___ P

[issue13451] sched.py: speedup cancel() method

2011-12-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thread locks introduced in issue8684 should make this change more robust. If this patch is reasonable, I'd like to commit it before the one in issue8684 for simplicity. Raymond? -- ___ Python tracker

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

2011-12-12 Thread sbt
sbt added the comment: > Ok, a couple of further (minor) issues: > - I don't think AssertionError is the right exception type. TypeError > should be used when a type mismatches (e.g. "not an unicode object"); > - you don't need to check for d_type being NULL, since other methods don't; > - if t

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

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

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

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Overall I wonder why you post here on the main topic "resource usage", > when you don't care about issues of magnitude 2x memory usage. Because you are talking about a fixed overhead of a mere 2MB (IIUC), which is moreover shared between all processes using l

[issue13587] Correcting the typos error in Doc/howto/urllib2.rst

2011-12-12 Thread Bithin A
New submission from Bithin A : In the documentation 'HOWTO Fetch Internet Resources Using urllib2' there is a correction under the heading 'Basic Authentication' In the line 'The header looks like : ``Www-authenticate: SCHEME realm="REALM"``. ' the word 'Www-authenticate' should be written as

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

2011-12-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- dependencies: +Change object.__format__(s) where s is non-empty to a TypeError ___ Python tracker ___

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

2011-12-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 24238e89f938 by Antoine Pitrou in branch 'default': Issue #13577: various kinds of descriptors now have a __qualname__ attribute. http://hg.python.org/cpython/rev/24238e89f938 -- nosy: +python-dev ___ Py

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

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think most of these shouldn't be removed, as it would make porting from 2.x significantly more tedious. Things that I think can be removed: - max_buffer_size (io is new and that argument was never used by anybody) - get_prefix / set_prefix (the internal lib2

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

2011-12-12 Thread psam
psam added the comment: The problem was detected in a Django project, as the template engine was not able to support the original encoding. I don't have a real test code snippet, but you may try something like: isinstance(calendar.LocaleTextCalendar(locale='').formatmonth(2011,12),unicode) No

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

2011-12-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2011-12-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: About method_qualname.patch: - apparently you forgot to add BuiltinFunctionPropertiesTest in test_main()? - a static method keeps a reference to the type: I think it's ok, although I'm not sure about the consequences (Guido, would you have an idea?) - about

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

2011-12-12 Thread Philipp Lies
Philipp Lies added the comment: a) it's 122GB free RAM (out of 128GB total RAM) b) when I convert the numpy array to a list it works. So seems to be a problem with cPickle and numpy at/from a certain array size c) $ /usr/bin/time -v python test_np.py Traceback (most recent call last): File

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

2011-12-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- dependencies: -Change object.__format__(s) where s is non-empty to a TypeError Added file: http://bugs.python.org/file23928/issue13248_argparse_io_lib2to3.diff ___ Python tracker __

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

2011-12-12 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file23905/issue13248_obsolescence.diff ___ Python tracker ___ ___ Python-bug

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

2011-12-12 Thread Florent Xicluna
Florent Xicluna added the comment: I removed object.__format__ from the patch because it is not planned for removal in 3.3, but in 3.4 (see issue #9856). I've fixed the documentation *versionchanged* and split the patch in two. The first is less controversial. The second might be delayed a lit

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

2011-12-12 Thread sbt
sbt added the comment: > - apparently you forgot to add BuiltinFunctionPropertiesTest in > test_main()? Yes. Fixed. > - a static method keeps a reference to the type: I think it's ok, although > I'm not sure about the consequences (Guido, would you have an idea?) Interestingly, in the stdl

[issue13585] Add contextlib.CleanupManager

2011-12-12 Thread Nikolaus Rath
Nikolaus Rath added the comment: On 12/11/2011 10:17 PM, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > ''' > Example code: > > with CleanupManager() als mngr: > tmpdir = tempfile.mkdtemp() > mngr.register(shutil.rmtree(tmpdir)) <-- this makes the call right aw

[issue13405] Add DTrace probes

2011-12-12 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: According to Stan Cox, this patch "almost" work with SystemTap. Moreover, there are work porting DTrace to Linux. DTrace helping to improve performance is secondary. The real important thing is the "observability". It is difficult to understand the advantage

[issue13571] Backup files support in IDLE

2011-12-12 Thread Roger Serwy
Roger Serwy added the comment: I rarely have IDLE crash on Linux. If you're experiencing these issues on Windows, see #13582. -- nosy: +serwy ___ 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

[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

[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

[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

[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 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.

[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

[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

[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

[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. -- __

[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

[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

[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

[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

[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

[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)? 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

[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

[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 _

[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 ___

[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

[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:

[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

[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: 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

[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

[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

[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

[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 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

[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

[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

[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 ___ ___

[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

[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 Raymond Hettinger
Raymond Hettinger added the comment: Let's just start with a working 2.7 patch and go from there. -- ___ Python tracker ___ ___ Pytho

[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

[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://

[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

[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

[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
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 __

[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

[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 ___

[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

[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

[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
Oleg Plakhotnyuk added the comment: Second patch goes to issue 13589 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[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
Changes by Oleg Plakhotnyuk : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[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

[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

[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

[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

[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:

[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 ___

[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

[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:

[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

[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

[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 __

[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

[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 Eric Snow
Eric Snow added the comment: Check out: http://code.activestate.com/recipes/ -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bu

[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 ___ ___

[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

  1   2   >