[issue11328] NESTED WHILE CYCLES ERROR

2011-02-25 Thread Dmitry Negius
New submission from Dmitry Negius : Nested "while" cycles does not work. This make impossible to write a class of programs with nested while cycles. -- components: Interpreter Core files: bug.py messages: 129506 nosy: negius priority: normal severity: normal status: open title: NESTED W

[issue10228] Refleak run of test_dbm fails when several dbm modules are available

2011-02-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Done in r88634. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11325] compilation warning with sendfile

2011-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- Removed message: http://bugs.python.org/msg129503 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10784] os.getpriority() and os.setpriority()

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11325] compilation warning with sendfile

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r88626, and it *did* fix the buildbot crash! -- ___ Python tracker ___ ___ Python-bugs-lis

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-25 Thread Anthony Long
New submission from Anthony Long : I ran python test_time.py and python immediately crashed. This is the trace from mac's error reporter: http://dpaste.de/Jsw7/ -- components: Tests messages: 129502 nosy: antlong priority: normal severity: normal status: open title: Running test_t

[issue10784] os.getpriority() and os.setpriority()

2011-02-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Feb 26, 2011 at 12:11:10AM +, Antoine Pitrou wrote: > if err.errno != errno.EACCESS: > AttributeError: 'module' object has no attribute 'EACCESS' That was one 'S' too many. Should be errno.EACCES Looks like Antoine has fixed it in r88627. ---

[issue11325] compilation warning with sendfile

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r88626, and it *did* fix the buildbot crash! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue10228] Refleak run of test_dbm fails when several dbm modules are available

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you backport to 3.2? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11287] Add context manager support to dbm modules

2011-02-25 Thread Ray.Allen
Ray.Allen added the comment: Update: change unittest code following eric's comments. -- Added file: http://bugs.python.org/file20902/issue11287.diff ___ Python tracker ___ _

[issue10228] Refleak run of test_dbm fails when several dbm modules are available

2011-02-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in revision 88631 -- nosy: +orsenthil resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-02-25 Thread Paulo Scardine
Paulo Scardine added the comment: Giampaolo, Thanks for your kind review, I will send a patch with suggested changes this weekend. Grazie, -- Paulo -- ___ Python tracker ___

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2011-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: After a mail I sent to the Unicode Consortium about the corner case I found, they updated the "Best Practices for Using U+FFFD"[0] and now it says: """ Another example illustrates the application of the concept of maximal subpart for UTF-8 continuation bytes ou

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Feb 25, 2011 at 8:39 PM, Ezio Melotti wrote: .. > It would prefer to see the note added by Alexander in the doc mention *only* > the preferred spellings > (i.e. 'utf-8' and 'iso-8859-1') rather than all the variants that are > actually optimized

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If we ever decide to get rid of codec aliases in the core "If". -- ___ Python tracker ___ ___ Py

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Feb 25, 2011 at 8:29 PM, Antoine Pitrou wrote: .. >> For other spellings like "utf8" or "latin1", I wonder if it would be >> useful to emit a warning/suggestion to use the standard spelling. > > No, it would be an useless annoyance. If we ever de

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: > For other spellings like "utf8" or "latin1", I wonder if it would be > useful to emit a warning/suggestion to use the standard spelling. It would prefer to see the note added by Alexander in the doc mention *only* the preferred spellings (i.e. 'utf-8' and 'iso

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread STINNER Victor
STINNER Victor added the comment: > For other spellings like "utf8" or "latin1", I wonder > if it would be useful to emit a warning/suggestion to use > the standard spelling. Why do you want to emit a warning? utf8 is now as fast as utf-8. -- ___

[issue11298] unittest discovery needs better explanation

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: I like that. Is it true that test discovery requires tests to be in a Python package, as opposed to top-level modules? -- ___ Python tracker ___

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: docs@python -> nosy: -docs@python, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mai

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > For other spellings like "utf8" or "latin1", I wonder if it would be > useful to emit a warning/suggestion to use the standard spelling. No, it would be an useless annoyance. -- ___ Python tracker

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: What this part means is: “If you create an instance of C named c, and get c.count, it will get the attribute count defined on C.” IOW: You can get a class variable from any instance. In the example, the code in __init__ cannot assign to self.count, because it

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: Such warnings about performance seem to me to be the domain of code analysis or lint tools, not the interpreter. -- ___ Python tracker ___ __

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If you agree, Raymond, I'll backport the patch. Yes. That will address Antoine's legitimate concern about making other backports harder, and it will get all the Python's to use the canonical spelling. For other spellings like "utf8" or "latin1", I wond

[issue11297] Make ChainMap() public in the collections module.

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: Raymond: Sorry I was imprecise. I was referring specifically to “import __builtin__” in collections.rst. -- ___ Python tracker ___ _

[issue11297] Make ChainMap() public in the collections module.

2011-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I was thinking of adding a recipes section to show how to extend or override the class: class DjangoContext(ChainMap): def push(self): self.maps.insert(0, {}) def pop(self): self.maps.pop(0) class NestedScope(ChainMap): 'Mutating met

[issue11297] Make ChainMap() public in the collections module.

2011-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antoine. Thanks. I put in a paragraph re-emphasizing that ChainMap is a view and that changes in the underlying mappings get reflected in the ChainMap. Also, the first sentence says that ChainMap groups multiple dicts or other mappings. So, any mapping

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file20901/ssl_connect.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file20900/ssl_connect.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The select call after the connect_ex waits until the connection is > done, for the first write event is fired then, so the socket is > connected afterwards. You are right. Here is a patch for py3k implementing connect_ex() and solving the issue with the miss

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Florian Mayer
Florian Mayer added the comment: The select call after the connect_ex waits until the connection is done, for the first write event is fired then, so the socket is connected afterwards. -- ___ Python tracker

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Florian Mayer
Florian Mayer added the comment: A workaround would be exposing _ssl.wrapssl in ssl so that it can be called once the socket is connected and no non-public API had to be used. -- ___ Python tracker __

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, one issue is that connect_ex() isn't implemented for SSL sockets, so it defers to the normal implementation instead, which is wrong. But your still is wrong too. connect_ex() returns an error, meaning the socket isn't connected and you must retry. Here is

[issue11326] Asynchronous ssl handshakes fails for asynchronously connected sockets.

2011-02-25 Thread Florian Mayer
New submission from Florian Mayer : The asynchronous do_handshakes fails for sockets that were connected asynchronously. Tested on 2.6, 3.1 and 3.2. Traceback (most recent call last): File "handshake.py", line 17, in s.do_handshake() File "/usr/lib/python2.6/ssl.py", line 279, in do_ha

[issue11257] asyncore stores unnecessary object references

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: Oh, I guess I didn’t understand at all what the numbers meant. I shouldn’t have compared the values and assumed that less was better, my bad. -- ___ Python tracker

[issue11325] compilation warning with sendfile

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps (probably?) related to the crash in http://www.python.org/dev/buildbot/all/builders/PPC64%20Ubuntu%203.x/builds/655 ./Modules/posixmodule.c:5909: warning: implicit declaration of function ‘sendfile’ -- priority: normal -> high __

[issue10784] os.getpriority() and os.setpriority()

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: == ERROR: test_set_get_priority (test.test_os.ProgramPriorityTests) -- Traceback (most recent call last): File "/home/build

[issue11283] incorrect pattern in the re module docs for conditional regex

2011-02-25 Thread wesley chun
wesley chun added the comment: i wanted to add one additional comment that it would be nice to have a regex that works with search() (in addition to match()) because such an email address may appear in the middle of a line, say a From: or To: email header. the fix of using a '$' prevents this f

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: Eric, the thing I don't understand is why is there that "c.count" thing. How is it possible for "c.count" to be the same reference as "C.count"? Where is "c" defined? -- ___ Python tracker

[issue10755] Add posix.fdlistdir

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r88625. Thank you! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11325] compilation warning with sendfile

2011-02-25 Thread Antoine Pitrou
New submission from Antoine Pitrou : $ make gcc -pthread -g -O0 -Wall -Wstrict-prototypes-I. -IInclude -I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o ./Modules/posixmodule.c: In function ‘posix_sendfile’: ./Modules/posixmodule.c:6025: attention : implici

[issue4761] create Python wrappers for openat() and others

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have committed the patch in r88624. Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r88622 (3.3) and r88623 (3.2). The 2.7 implementation is too different for the patch to apply, so if you want to fix it too, feel free to upload a patch. Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: Meta-bugs are useful for bookkeeping purposes like the implementation of a PEP or a broad feature like “bytes/text model in email” . Just open one report for each module you want to add doc for. -- nosy: +eric.araujo ___

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > I guess you could regard the wrong encoding name use as bug - it > slows down several stdlib modules for no apparent reason. > > If you agree, Raymond, I'll backport the patch. We m

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: +1 on the backport. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I guess you could regard the wrong encoding name use as bug - it slows down several stdlib modules for no apparent reason. If you agree, Raymond, I'll backport the patch. -- title: b'x'.decode('latin1') is much slower thanb'x'.decode('latin

[issue11322] encoding package's normalize_encoding() function is too slow

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > We should first implement the same algorithm of the 3 normalization functions > and add tests for them (at least for the function in normalization): > > - normalize_encoding() in encodings

[issue11257] asyncore stores unnecessary object references

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Éric, the weak dicts are implemented in pure Python while built-in dicts are in C. That can make quite a difference. -- nosy: +pitrou ___ Python tracker _

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What's wrong with Marc's commit? He's using the standard names. That's a pretty useless commit and it will make applying patches and backports more tedious, for no obvious benefit. Of course that concern will be removed if Marc-André also backports it to 3.

[issue11322] encoding package's normalize_encoding() function is too slow

2011-02-25 Thread STINNER Victor
STINNER Victor added the comment: We should first implement the same algorithm of the 3 normalization functions and add tests for them (at least for the function in normalization): - normalize_encoding() in encodings: it doesn't convert to lowercase and keep non-ASCII letters - normalize_en

[issue11257] asyncore stores unnecessary object references

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: WeakValue* -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11257] asyncore stores unnecessary object references

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: Well, isn’t WeakRefDictionary faster than a dict here? -- nosy: +eric.araujo stage: -> patch review type: behavior -> performance versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Closing the ticket again. The problem in question is solved. -- status: open -> closed ___ Python tracker ___

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> r88586: Normalized the encoding names for Latin-1 and UTF-8 to >> 'latin-1' and 'utf-8' in the stdlib. > > Why did you do that? We are trying to find a solution together, and you > change

[issue11255] 2to3 throws AttributeError during distutils installation with -O

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: This does not look specific to distutils. Can you reproduce with bare 2to3? If so, can you attach the test script of unit test diff? :) (P.S. “crash” is used for segfaults, not unhandled exceptions.) -- nosy: +benjamin.peterson, eric.araujo stage: ->

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: What's wrong with Marc's commit? He's using the standard names. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue11253] autodocument first appearance of ctypes.wintypes constants

2011-02-25 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-b

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: If the tutorial is not clear enough, try for example . Please ask on a suitable venue if you don’t understand instead of this tracker. (Please don’t send HTML email to this tracker, it c

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-25 Thread STINNER Victor
STINNER Victor added the comment: > r88586: Normalized the encoding names for Latin-1 and UTF-8 to > 'latin-1' and 'utf-8' in the stdlib. Why did you do that? We are trying to find a solution together, and you change directly the code without any review. Your commit doesn't solve this issue.

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file20896/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file20893/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file20891/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file20890/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file20888/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6064] Add "daemon" argument to threading.Thread constructor

2011-02-25 Thread Miki Tebeka
Miki Tebeka added the comment: Thank you! On Fri, Feb 25, 2011 at 2:08 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > I corrected the patches (they were breaking the property of inheriting daemon > by default) and committed them in r88618. Thank you! > > -- > res

[issue11314] Subprocess suffers 40% process creation overhead penalty

2011-02-25 Thread Aaron Sherman
Aaron Sherman added the comment: "That's why I asked for absolute numbers for the overhead difference." Did you not follow the link in my first post? I got pretty detailed, there. "os.popen just calls the popen(3) library call, which just performs a fork/execve and some dup/close in between.

[issue1554] socketmodule cleanups: allow the use of keywords in socket functions

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch needs updating for latest 3.x. -- assignee: loewis -> nosy: +giampaolo.rodola, pitrou versions: +Python 3.3 -Python 3.2 ___ Python tracker __

[issue11315] Fix/add unicode support in Cookie module?

2011-02-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11315] Fix/add unicode support in Cookie module?

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch. This is not as easy as it sounds: The doc ambiguously uses “string”; the code clearly wants only byte strings (str); in the 3.x version, only character strings (unicode) are accepted; “raw” would suggest to me than only bytes ma

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You are right, I haven't thought about that. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue11291] poplib suppresses exception on QUIT

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r88620. -- components: +Library (Lib) resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue11177] Set asyncore create_socket default argument

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r88619. -- nosy: +josiah.carlson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue11298] unittest discovery needs better explanation

2011-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: What about something like """ In order to be compatible with test discovery, all the test modules must be importable from the top level directory of the project (in other words, they must be part of the project :ref:`package `, and their name must be valid :ref

[issue6064] Add "daemon" argument to threading.Thread constructor

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I corrected the patches (they were breaking the property of inheriting daemon by default) and committed them in r88618. Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed __

[issue11299] Allow deepcopying and pickling paused generators

2011-02-25 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Although, I would really like to see support of pickling generators. It is not really possible in CPython. This is recurrent request. I even wrote a small article about it. http://peadrop.com/blog/2009/12/29/why-you-cannot-pickle-generators/ Looking ho

[issue11298] unittest discovery needs better explanation

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure what’s best between the proposed addition and a link to the definition of module/importable. I think that programmers should know that not all file names are valid module names, so I wouldn’t want us to copy the definition all over the docs. Thoug

[issue10516] Add list.clear() and list.copy()

2011-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: The ABCs are subset of the methods for the concrete APIs. We've avoided the likes of copy() because it requires knowledge of the constructor's signature -- for example, MutableMapping does not cover copy(). It is okay for Eli to add MutableSequence.clear(

[issue11297] Make ChainMap() public in the collections module.

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: Minor doc issue: s/__builtin__/builtins/ -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-

[issue11299] Allow deepcopying and pickling paused generators

2011-02-25 Thread Ram Rachum
Ram Rachum added the comment: Tests attached. -- Added file: http://bugs.python.org/file20898/test_live_generator.py ___ Python tracker ___ _

[issue11293] Distutils - read the file when using it in long_description

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: I had a better patch pending for that, thanks for the reminder. Fixed in r88613 (py3k), r88614 (3.2), r88615 (3.1) and r88617 (2.7). I took the time machine and fixed it six months ago in distutils2 in [c03dd6283e94]. -- assignee: docs@python -> eric.a

[issue11323] os.sendfile() bo failure on solaris

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Committed in r88616. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11287] Add context manager support to dbm modules

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: +try: +with f: pass +except Exception as e: +self.assertIsInstance(e, ValueError) +else: +self.assertFailed() I find this form easier to read: with self.assertRaises(ValueError): with f:

[issue10956] file.write and file.read don't handle EINTR

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r88610 (3.3), r88611 (3.2) and r88612 (2.7). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue11279] test_posix and lack of "id -G" support - less noise required?

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: (Oops, this is for Solaris, not Mac. I’m always confused about those funny OSes.) -- ___ Python tracker ___

[issue11279] test_posix and lack of "id -G" support - less noise required?

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: The correct spelling of that is os.devnull. platform.DEV_NULL exists only for backwards compatibility (not sure platform.py still has standalone releases). It is not documented and only used internally. For a POSIX-only test like this one, hard-coding /dev/nu

[issue11308] extraneous link getit in the main website sidebar

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: FYI, bug reports about the website should be directed to webmaster@ or pydotorg-www@. This tracker is used for bugs in the CPython source distribution only, not anything related to Python. PEP bugs are sometimes appropriate here too, depending on the triager.

[issue11244] Negative tuple elements produce inefficient code.

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Forgot to attach new patch, sorry. -- Added file: http://bugs.python.org/file20897/constfold2.patch ___ Python tracker ___

[issue11244] Negative tuple elements produce inefficient code.

2011-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: This patch has tests and is also able to constant-fold tuples larger than 256 elements. -- stage: -> patch review versions: +Python 3.3 ___ Python tracker __

[issue11269] cgi.FieldStorage forgets to unquote field names when parsing multipart/form-data

2011-02-25 Thread Sergey Schetinin
Sergey Schetinin added the comment: I don't think that's a security issue, just something that would break with certain filenames. And I said that it's a browsers' problem in the sense that it can only be fixed / caught on their side. -- ___ Python

[issue10784] os.getpriority() and os.setpriority()

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Misc/NEWS updated in r88609. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10784] os.getpriority() and os.setpriority()

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Committed in r88608 including Py_RETURN_NONE and Py_BEGIN/END_ALLOW_THREADS changes. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue11318] Python 3.2 FAQ example code typo?

2011-02-25 Thread Boštjan Mejak
Boštjan Mejak added the comment: "c.count also refers to C.count" Where in the code is "c.count"? Please explain this for the sake of really closing this issue. -- Added file: http://bugs.python.org/file20896/unnamed ___ Python tracker

[issue11307] re engine exhaustively explores more than necessary

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 13 secs on my 7 year old windows machine. -- nosy: +terry.reedy resolution: -> duplicate status: open -> closed superseder: -> the re module can perform poorly: O(2**n) versus O(n**2) versions: +Python 2.7, Python 3.3 -Python 2.6, Python 3.1

[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another example from #11307 import re r = re.compile(r'(\w+)*=.*') r.match("abcdefghijklmnopqrstuvwxyz") -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7 ___ Python tracker

[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-02-25 Thread Clayton Darwin
Clayton Darwin added the comment: This is a simple work around. def fix_tcl_error(s): if '\\' in s and not ' ' in s: s = '{'+s+'}' return s You can get the text from the Combobox with no issues. The error is in posting it to the Combobox when you have backslashes and no s

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-02-25 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> lukasz.langa nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-02-25 Thread Tobias Brink
New submission from Tobias Brink : The docs for Python 3.2 say that p = configparser.ConfigParser(interpolation=None) disables interpolation. Instead it gives this traceback when calling p.read(): Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.2/configparse

[issue9795] nntplib.NNTP should support the context protocol

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- keywords: +patch versions: +Python 3.3 -Python 3.2 Added file: http://bugs.python.org/file20894/nntplib-context-manager.patch ___ Python tracker

[issue11299] Allow deepcopying and pickling paused generators

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Test cases always help when appropriate. A link to the Pypy code that does this might also help. Or perhaps ask them to submit a patch to this issue. -- nosy: +alexandre.vassalotti, pitrou, terry.reedy stage: -> test needed ___

  1   2   >