[issue11776] types.MethodType() params and usage is not documented

2011-04-05 Thread anatoly techtonik
New submission from anatoly techtonik : types.MethodType(function, instance) is used as a replacement for new.instancemethod(function, instance, class), but this usage is not documented. -- assignee: docs@python components: Documentation messages: 133089 nosy: docs@python, techtonik pri

[issue11776] types.MethodType() params and usage is not documented

2011-04-05 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11707] Create C version of functools.cmp_to_key()

2011-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > why keyobject_type needed traverse function? I used to know this but don't any more. It might not be necessary. Most of the types I write all use GC so it may just be habit. -- ___ Python tracker

[issue11707] Create C version of functools.cmp_to_key()

2011-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Georg, do you care to opine on whether this should go into 3.2.1? (I don't have any preference). There is a big thread on comp.lang.python where a number of people seem to be very concerned about the efficiency of cmp_to_key(). OTOH, we almost never bac

[issue11707] Create C version of functools.cmp_to_key()

2011-04-05 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I see. Thanks :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue11775] `bool(Counter({'a': 0})) is True`

2011-04-05 Thread Ram Rachum
Ram Rachum added the comment: How is it "not the Python way"? Why is it okay to make `dict.keys` into a smart object but it's not okay to make `Counter.elements` a smart object? These are not random ideas. I'm using `Counter` in a contract project and I find the need to make `if counter:` che

[issue6040] bdist_msi does not deal with pre-release version

2011-04-05 Thread anatoly techtonik
anatoly techtonik added the comment: All right. The ultimate solution: {{{ # Imports for converting version to MSI format for bdist_msi from distutils.command.bdist_msi import bdist_msi import inspect import types ... class bdist_msi_patch_version(bdist_msi): """ MSI builder requires ver

[issue11665] Regexp findall freezes

2011-04-05 Thread Viktor Ferenczi
Viktor Ferenczi added the comment: I found this ugly regexp in old code and optimized this, certainly. I'll need to search for more of this in the code to make sure it won't freeze next time. I think you can close this ticket, since it is only another way to write an infinite loop in Python,

[issue7311] Bug on regexp of HTMLParser

2011-04-05 Thread Ezio Melotti
Ezio Melotti added the comment: I don't see many use cases for the strict mode. It is not strict enough to be used for validation, and while parsing HTML I can't think of any other case where I would want an exception raised (always as long as what is parsed by the tolerant mode is a superse

[issue11665] Regexp findall freezes

2011-04-05 Thread STINNER Victor
STINNER Victor added the comment: Ok. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue11775] `bool(Counter({'a': 0})) is True`

2011-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > How is it "not the Python way"? Because having an API within an API greatly complexifies the interface, making harder to implement, harder to understand, and harder to learn. > Why is it okay to make `dict.keys` into a smart object > but it's not okay t

[issue7108] test_commands.py failing on OS X 10.5.7 due to '@' in ls output

2011-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5616cbce0bee by Ned Deily in branch '2.7': Issue #7108: Fix test_commands to not fail when special attributes ('@' http://hg.python.org/cpython/rev/5616cbce0bee -- nosy: +python-dev ___ Python tracker <

[issue7108] test_commands.py failing on OS X 10.5.7 due to '@' in ls output

2011-04-05 Thread Ned Deily
Ned Deily added the comment: Thanks for the suggested patch and extension to the SELinux case. (Note that getstatus is deprecated and removed in Python 3 so this patch only applies to 2.7.) -- assignee: -> ned.deily components: -Macintosh resolution: -> fixed stage: -> committed/r

[issue11492] email.header.Header doesn't fold headers

2011-04-05 Thread R. David Murray
R. David Murray added the comment: Ah, it isn't broken, it's just that the default changed. In 2.x, the default was maxlinelen=78, in 3.x, the default is maxlinelen=None (unlimited), but generator passes in an override of 78 when formatting output. So you can specify an explicit maxlinelen=

[issue4111] Add Systemtap/DTrace probes

2011-04-05 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Some more references: Read the notes under the slides: https://dgl.cx/2011/01/dtrace-and-perl https://dgl.cx/dtrace http://dtrace.org/blogs/ What do we need to unblock this? -- ___ Python tracker

[issue11576] timedelta subtraction glitch on big timedelta values

2011-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76180cc853b6 by Alexander Belopolsky in branch '3.2': Issue #11576: Fixed timedelta subtraction glitch on big timedelta values http://hg.python.org/cpython/rev/76180cc853b6 New changeset d492915cf76d by Alexander Belopolsky in branch 'default': Iss

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-05 Thread Brian Quinlan
New submission from Brian Quinlan : from concurrent import futures with futures.ThreadPoolExecutor(max_workers=5) as e: e.map(print, range(10)) # No output -- assignee: bquinlan components: Library (Lib) messages: 133104 nosy: bquinlan priority: normal severity: normal status: open t

[issue11576] timedelta subtraction glitch on big timedelta values

2011-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 202a9feb1fd6 by Alexander Belopolsky in branch '2.7': Issue #11576: Fixed timedelta subtraction glitch on big timedelta values http://hg.python.org/cpython/rev/202a9feb1fd6 -- ___ Python tracker

[issue11576] timedelta subtraction glitch on big timedelta values

2011-04-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Extension Modules resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 2.5, Python 2.6, Python 3.1 ___ Python tracker

[issue3905] subprocess failing in GUI applications on Windows

2011-04-05 Thread Denver Coneybeare
Denver Coneybeare added the comment: Ahh okay. I've reproduced it in trunk at changeset 053bc5ca199b. As suggested, I ran: PCBuild\pythonw.exe lib\idlelib\idle.py Python 3.3a0 (default, Apr 2 2011, 21:55:40) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for

[issue9390] Error in sys.excepthook on windows when redirecting output of the script

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

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-05 Thread ysj.ray
ysj.ray added the comment: Isn't this the supposed behavior? -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-05 Thread Brian Quinlan
Brian Quinlan added the comment: I think that it surprising behavior, especially considering that asking for the *first* element in the iterator causes *all* of the futures to be created. -- ___ Python tracker __

[issue10762] strftime('%f') segfault

2011-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ca1bc677a60 by Senthil Kumaran in branch '3.1': Issue #10762: Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya. http://hg.python.org/cpython/rev/2ca1bc677a60 -- nosy: +python-dev ___

[issue11778] __subclasscheck__ : class P(M): __metaclass__=M causes maximum recursion depth exceeded.

2011-04-05 Thread xBrawny
New submission from xBrawny : I wonder if this is the desired behavior. According to docs, __instancecheck__ should be called, but it never gets to it. If "return True" is replaced with "raise Exception" the result is the same. = class M(type): def _

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-05 Thread the_isz
the_isz added the comment: Well, the only thing I can add to this is that the json module (which I ended up using) supports unicode with no problem. So I think the argument that most of the standard library in 2.x assumes bytestrings is a bit... shaky. Other than that, I can follow your reasoni

[issue10762] strftime('%f') segfault

2011-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1320f29bcf98 by Senthil Kumaran in branch '2.7': Issue #10762: Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya. http://hg.python.org/cpython/rev/1320f29bcf98 -- _

[issue10762] strftime('%f') segfault

2011-04-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed it in relevant branches. I had to add condition around the test to verify that platform was win because this is unique to windows only. Thanks. -- nosy: +orsenthil ___ Python tracker

[issue10762] strftime('%f') segfault

2011-04-05 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

<    1   2