[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2010-12-15 Thread Finkregh
Changes by Finkregh finkr...@mafia-server.net: -- nosy: +Finkregh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1633941 ___ ___ Python-bugs-list

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-15 Thread Zsolt Cserna
Zsolt Cserna zsolt.cse...@morganstanley.com added the comment: Could you please add this change to test_urllib2.py as well? It has the following line: localaddr = socket.gethostbyname(socket.gethostname()) But urllib2.py has the change related to this bug. That makes test_urllib2

[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-12-15 Thread Michael Buckley
Michael Buckley newslett...@codefisher.org added the comment: You might want to check out what Django does, as they have the working well. http://docs.djangoproject.com/en/dev/ -- nosy: +codefisher ___ Python tracker rep...@bugs.python.org

[issue6791] httplib read status memory usage

2010-12-15 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is a unit test which tests the issue. Unfortunately, since it uses the resource module to limit memory to a workable size, it will only work on Unix. The given patch appears to fix the issue well. I think this should be taken

[issue6791] httplib read status memory usage

2010-12-15 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: A py3k patch against revision 87228. -- Added file: http://bugs.python.org/file20049/i6791_py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6791

[issue10692] imap lib server compabilities

2010-12-15 Thread Yevgeniy
Yevgeniy shchemele...@gmail.com added the comment: Have you confirmed that the same server is listening on port 993 as is listening on port 143? I found that is mistake in courier-imap(-ssl) configuration. I have some troubles with it configuring(may by incorrect certificates). When i make

[issue10703] Regex 0.1.20101210

2010-12-15 Thread Steve Moran
Steve Moran s...@uw.edu added the comment: (Forehead slap.) On Tue, 14 Dec 2010, Matthew Barnett wrote: Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The regex module is intended to replace the re module, so its default behaviour is the same: in Python 2, regexes default

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Zsolt, The change in the urllib2 was at a place where tuple of all local ips were required. In test_urllib2, which testcase failed? Also, can you make this change and see if this helps in your case. - localaddr =

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1975 ___ ___ Python-bugs-list

[issue7639] bdist_msi fails on files with long names

2010-12-15 Thread Florian Berger
Florian Berger fber...@florian-berger.de added the comment: I can confirm that this issue persists in Python 3.1.2 on win32. The patch by cgohlke from 2010-10-22 fixes the problem here as well. -- nosy: +fberger versions: +Python 3.1 ___ Python

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-15 Thread Zsolt Cserna
Zsolt Cserna zsolt.cse...@morganstanley.com added the comment: The test which failed was HandlerTests.test_file, and I'm using python 2.7.1. socket.gethostbyname('localhost') returns 127.0.0.1 which is ok, but in the unittest it's already tested (line 671). The problem is that my /etc/hosts

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: +localaddr = socket.gethostbyname_ex(socket.gethostname())[2][0] May not be a generic solution, because in another system the other ip could be first in the list. Because the failure was in the test_file, which was basically

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2010-12-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: help no longer segfaults, but the find_module call still does; updating title. The patch does cure the segfault, but as Stefan says it isn't the best fix since having 'file' in the error message instead of the real file name isn't very

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-15 Thread Zsolt Cserna
Zsolt Cserna zsolt.cse...@morganstanley.com added the comment: The order of the IP addresses doesn't matter as urllib2 is flexible enough to handle all local IP addresses as local (that was the original bug - it handled only one IP returned by gethostbyname which returned a random IP if there

[issue2212] Cookie.BaseCookie has ambiguous unicode handling

2010-12-15 Thread Charles Duffy
Charles Duffy char...@dyfis.net added the comment: Only the Comment field of a cookie is required by RFC2965 to support Unicode -- and several major browsers either mangle or discard cookies containing even high-ASCII values. Consequently, while some kind of unicode support is appropriate to

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: First, I don't think the resource module needs to be used here. Second, I don't see why getcode() would return 200. If no valid response was received then some kind of error should certainly be raised, shouldn't it? -- nosy: +pitrou

[issue10706] kill runtests.sh

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r87261. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10706

[issue10708] Misc/porting should be folded in to the development FAQ

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Title says it all. -- assignee: brett.cannon components: Documentation messages: 124023 nosy: brett.cannon, pitrou priority: normal severity: normal status: open title: Misc/porting should be folded in to the development FAQ versions:

[issue10656] Out of tree build fails on AIX 5.3

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10656 ___ ___ Python-bugs-list mailing

[issue10709] Misc/AIX-NOTES needs updating

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Sébastien, would you like to provide an updated version of that file? The current contents look hopelessly outdated. -- assignee: d...@python components: Documentation messages: 124024 nosy: d...@python, pitrou, sable priority: normal

[issue10710] Is Misc/setuid-prog.c still needed?

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: I guess it was created for ease of hosting CGI scripts written in Python, but is it still useful (or even functional) nowadays? Last updated goes back to 1998. -- components: Demos and Tools messages: 124025 nosy: brett.cannon,

[issue10667] collections.Counter object in C

2010-12-15 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed if( spacing and applied in r87265. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10667

[issue10710] Is Misc/setuid-prog.c still needed?

2010-12-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I started out writing that there must be better stuff available now for doing this, but a search on 'setuid wrapper' on google reveals mostly people asking about or talking about rolling their own special purpose scripts. That said,

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-12-15 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: Yes, it is (at the latest since msg124018). -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10509

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: By the way, looking at the code, readline() without any parameter is used all over http.client, so fixing only this one use case doesn't really make sense. -- stage: unit test needed - needs patch ___

[issue6791] httplib read status memory usage

2010-12-15 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: That's true. Near the bottom of the code, it says: # The status-line parsing code calls readline(), which normally # get the HTTP status line. For a 0.9 response, however, this is # actually the first line of the body! Limiting the

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's true. Near the bottom of the code, it says: # The status-line parsing code calls readline(), which normally # get the HTTP status line. For a 0.9 response, however, this is # actually the first line of the body! Limiting the

[issue10711] Rip off HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Both http.client and http.server claim to support HTTP 0.9. The HTTP 1.0 RFC was filed in 1996, and 1.1 is most commonly used nowadays. We should probably rip off 0.9 support. -- components: Library (Lib) messages: 124032 nosy:

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: Rip off HTTP 0.9 support - Rip out HTTP 0.9 support ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10711 ___

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2010-12-15 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: Pydoc skips the badsysntax_pep3120 file for now. When this gets fixed that workaround should be removed. The work around is commented and refers to this issue #. -- ___ Python tracker

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2010-12-15 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9319 ___ ___

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file20052/removehttp09.patch ___ Python tracker rep...@bugs.python.org

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10711 ___ ___ Python-bugs-list mailing

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file20052/removehttp09.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10711 ___

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file20053/removehttp09.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10711 ___

[issue874900] threading module can deadlock after fork

2010-12-15 Thread Bobby Impollonia
Changes by Bobby Impollonia bob...@gmail.com: -- nosy: +bobbyi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue874900 ___ ___ Python-bugs-list

[issue6721] Locks in python standard library should be sanitized on fork

2010-12-15 Thread Bobby Impollonia
Changes by Bobby Impollonia bob...@gmail.com: -- nosy: +bobbyi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6721 ___ ___ Python-bugs-list mailing

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Daniel Stutzbach
New submission from Daniel Stutzbach stutzb...@google.com: Attached is a patch to add documentation for Py_ReprEnter and Py_ReprLeave. Assigning to d...@python for review. -- assignee: stutzbach - d...@python keywords: +needs review, patch nosy: +d...@python stage: needs patch - patch

[issue10693] error in documentation of distutils.archive_util.make_zipfile

2010-12-15 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Attaching a fix for Doc/distutils/apiref.rst and Lib/distutils/archive_util.py in Python 3.2 If it's OK I will backport to other versions as well. -- keywords: +patch Added file: http://bugs.python.org/file20055/issue10693.py32.1.patch

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

2010-12-15 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Updated patch with versionadded tag for the new methods -- Added file: http://bugs.python.org/file20056/issue10516.5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Guys, this issue is pending for a long time. Anything else needed before a commit is done? -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264 ___ ___ Python-bugs-list

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Would it be worth keeping (but modifying) test_http_0_9 to verify that the server complains in the expected way? -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Ripping HTTP 0.9 support _out_ flys directly in the face of be lenient in what you accept and strict in what you produce. I do not mind removing support from http.server. But http.client needs to be able to communicate with any random

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: At minimum, I think we should apply this part of Antoine's patch: -# Most web servers default to HTTP 0.9, i.e. don't send a status line. -default_request_version = HTTP/0.9 +default_request_version = HTTP/1.0 --

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: But http.client needs to be able to communicate with any random server created since the dawn of time. Well, that sounds a bit unreasonable... Often on 8 bit microcontrollers that haven't been updated since 1994. Anyone with such needs

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Would it be worth keeping (but modifying) test_http_0_9 to verify that the server complains in the expected way? Actually, I don't think the server will complain, since the request is legit. It will send back a full response with status line

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10711 ___ ___

[issue10573] Consistency in unittest assert methods: order of actual, expected

2010-12-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: michael.foord - ezio.melotti nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10573 ___

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Since Éric grabbed Assigned To:, I was expecting him to ;=). But since he is doing enough other stuff, I will unless there are conflicts in the .rst I do not know how to fix. -- status: pending - open

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch with adapted tests. -- Added file: http://bugs.python.org/file20061/removehttp09-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10711

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: My current schedule is a bit crazy and I’ve had no time for Python bugs. I changed “programming” to “programmatic”, slightly tweaked the phrasing for the --ignore-* options to make them hopefully more understandable and similar, and committed

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Éric beat me. Better that he finish. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264 ___

[issue10541] regrtest.py -T broken

2010-12-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +eli.bendersky, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10541 ___

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Minor whitespace and markup edits make r87273. Please review and tell me if it’s okay for backport or if there are further improvements to be done first. I promise I won’t beat anyone ;-) -- ___

[issue10702] bytes and bytearray methods are not documented

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I was persuaded there was already a bug open with a patch adding bytes and bytearray in the sequence methods table, but I can’t find it. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue10712] 2to3 fixer for deprecated unittest method names

2010-12-15 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: The attached patch against 2.7 adds a new fixer to 2to3 that replaces deprecated unittest method names with the correct ones. There are a few issues: 1) only the safe renamings are included; the assert[SameElements|ItemsEqual|CountEqual]

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Éric, The nested methods are nice, though a bit unusual IMHO. Is this the recommended new way to markup methods of objects? [Because AFAIK it's not used much in other docs] -- status: open - pending

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed status: open - closed versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1628205 ___

[issue10702] bytes and bytearray methods are not documented

2010-12-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I was persuaded there was already a bug open with a patch adding bytes and bytearray in the sequence methods table, but I can’t find it. I can't find it either, but this issue is different. I propose renaming String

[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.

2010-12-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Added tweak to .__chain_b to avoid creating list of b2j.keys and .items be deleting from b2j in separate loop after creating sets. Test with timeit suggests time about same with 1% deletion. r87276 -- resolution: - fixed status: open

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: pitrou - nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9990 ___ ___

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: pitrou - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8844 ___ ___ Python-bugs-list

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- dependencies: -Make gettimeofday available in time module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8844 ___

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: pitrou - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10538 ___ ___ Python-bugs-list

[issue10693] error in documentation of distutils.archive_util.make_zipfile

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch extended to cover shutil, which has gained _make_{tar,zip}file in 2.7 and 3.2, and committed in all three branches in r87277 to r87279. Will be fixed in distutils2 the next time I synchronize d2._backport.shutil. -- assignee:

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: pitrou - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5218 ___ ___ Python-bugs-list

[issue10566] gdb debugging support additions (Tools/gdb/libpython.py)

2010-12-15 Thread Mark Florisson
Mark Florisson markflorisso...@gmail.com added the comment: Ok I attached a new patch that solves the things you mentioned. It can debug Python inferiors with versions 2.6+. Execution control commands (py-{run, cont, finish, step, next}) and py-exec need gdb 7.2+, py-break works with 7.1+. It

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Given the 6961 issue I'm happy to change my position and say we nuke the 0.9 client support. Anyone who _needs_ that can grab this old code or write trivial code for their poor server's needs. --

[issue9558] build_ext fails on VS8.0

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Fixed in [4f2da1ec00a2] (distutils2), r87280 (3.2), r87201 (3.1), r87282 (2.7). Thanks to you both. -- resolution: accepted - fixed stage: - committed/rejected status: pending - closed ___ Python

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have not read email RFCs, so I will defer to you. One suggestion for the patch, though: Use example.org instead of rusty.com (see RFC 2606). I tried the examples in Icedove (free Thunderbird), either it finds a matching contact or it refuses

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-15 Thread Jonathan Halcrow
Jonathan Halcrow jonathan.halc...@gmail.com added the comment: I think I've come across a related problem. I am experiencing a segfault when NFC-normalizing a certain string [1]. The crash occurs with 2.7.1 in OS X (built from source with homebrew). Here is the backtrace: #0 0x0025a96e in

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I can reproduce the crash under 2.7, but not 2.6 or 3.x here. So it might be a separate issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10254

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: After a bit of debugging, the crash is due to the skipped array being overflowed in nfc_nfkc() in unicodedata.c. cskipped goes up to 21 while the array only has 20 entries. This happens in all branches (but only crashes in 2.7 right now for

[issue10712] 2to3 fixer for deprecated unittest method names

2010-12-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: 2to3 patches should currently be made against and checked into the sandbox. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10712

[issue6007] Add disclaimer about MinGW compat in distutils docs

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch applied after small editions in [a8e0f46fccbd] (distutils2), r87283 (3.2), r87285 (3.1), r87287 (2.7). -- resolution: accepted - fixed stage: - committed/rejected status: pending - closed title: distutils tricks you into thinking

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-12-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't see any reason to use example.com in tests that are not talking to the network and aren't documentation. The interesting question about the other mailers is, if you *receive* an email with such an address (1) what does it show

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The nesting allows logical grouping in source and output, saves a bit of typing, and has been added to a number of files by Benjamin Peterson. I’d say it’s recommended :) -- status: pending - open

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-12-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: On the other hand, putting a real domain name that belongs to somebody else into our code base even as a test string is probably impolite without asking, so I'll change it when I commit. --

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think this is a bit misleading. These functions are only needed if you are implementing a container. For the general case where you don't display another Python object in your repr() (or you only display objects which are themselves atomic,

[issue8851] pkgutil documentation needs more markup

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Missing markup for one ``None`` added in r87289 and following revisions for maintenance branches. -- resolution: accepted - fixed stage: patch review - committed/rejected status: pending - closed ___

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Good point. My perspective is skewed by all of the time that I spend working on container types. :-) How about if I change the first sentence to the following? Properly implementing :attr:`tp_repr` for container types requires

[issue7694] DeprecationWarning from build_ext needs stacklevel

2010-12-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg113018 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7694 ___

[issue7694] DeprecationWarning from build_ext needs stacklevel

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I checked again and found those files to be fixed in 3.2: (in Lib/distutils) command/register.py command/sdist.py dist.py extension.py. Instances of self.warn or file.warn are false positives, they are logging calls. The situation is different

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: How about if I change the first sentence to the following? Properly implementing :attr:`tp_repr` for container types requires special recursion handling. This looks good to me. -- ___

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes, it’s either impolite or free advertisement. Ideas to receive such a malformed email: Use a valid email in From but not in Reply-To; write it by hand and put it in your maildir. -- ___ Python

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: Added file: http://bugs.python.org/file20071/repr-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8753 ___

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Possibly related: #9840 -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8753 ___

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r87292. Thank you for doing this! -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1274324] 'setup.py install' fails on linux from read-only storage

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Guidelines for someone wanting to make a patch: http://wiki.python.org/moin/Distutils/FixingBugs I’m adding the easy keyword to let a sprinter or bug-day newcomer find this and write a test. The fix itself may be more difficult, since the

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Thanks. New patch attached with a cross-reference to reprlib.recursive_repr. -- Added file: http://bugs.python.org/file20072/repr-3.patch ___ Python tracker rep...@bugs.python.org

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch LGTM, except for “As examples” which I’ve never read before (but I’m not a native speaker). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8753

[issue10191] scripts files are not RECORDed.

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: For the record, I have started work on this, then stopped due to lack of time. I’ll get back to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10191

[issue9322] Don’t fail silently if ext_modules us e absolute paths

2010-12-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9322 ___ ___ Python-bugs-list mailing

[issue10510] distutils upload/register should use CRLF in HTTP requests

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Updated guidelines: http://wiki.python.org/moin/Distutils/FixingBugs is it currently impossible to test the current svn version of distutils in the current svn version of Python? It is. Branches that get bugfixes are 3.2, 3.1 and 2.7; each one

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-15 Thread Adrian Sampson
Adrian Sampson asamp...@cs.washington.edu added the comment: Great. I've added a simple example to the documentation for argparse. I also added a space to the comma separator in the alias list, but I'm worried that adding 'aliases:' will make the help less readable (especially if every command

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-15 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Georg, be our hero here. I would be disappointed if this missed 3.2 and made us wait another 18 months (or 3 years for Linux distribution inclusion) for that feature. This feature makes the first edition of argparse in py3k complete in terms of

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good and ready to me. Regarding “alias” in help text, note that Mercurial prints it (using one line for them) but Subversion puts aliases in parentheses just after the main command name, which works very for me (not a beginner). Stephen,

[issue10713] re module doesn't describe string boundaries for \b

2010-12-15 Thread Ralph Corderoy
New submission from Ralph Corderoy ralph-pythonb...@inputplus.co.uk: The re module defines \b in a regexp to need \w one side and \W the other. What about when the end of the string or line is involved? perlre(1) says that's treated as a \W. Python should precisely document that case too.

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2010-12-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Well, I can submit a patch if anyone is interested. I came across this when writing asynchronous network code. By hanging onto the Py_buffer, I should have access to the data during the network call. But it only worked for true

  1   2   >