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

2010-12-15 Thread Finkregh
Changes by Finkregh : -- nosy: +Finkregh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-12-15 Thread Zsolt Cserna
Zsolt Cserna 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 failing when gethostbyname repor

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

2010-12-15 Thread Michael Buckley
Michael Buckley 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 __

[issue6791] httplib read status memory usage

2010-12-15 Thread Ross Lagerwall
Ross Lagerwall 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 as a security issue (eve

[issue6791] httplib read status memory usage

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

[issue10692] imap lib server compabilities

2010-12-15 Thread Yevgeniy
Yevgeniy 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 right configuration i wi

[issue10703] Regex 0.1.20101210

2010-12-15 Thread Steve Moran
Steve Moran added the comment: (Forehead slap.) On Tue, 14 Dec 2010, Matthew Barnett wrote: > > Matthew Barnett 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 to matching ASCII, and in > Pyth

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

2010-12-15 Thread Senthil Kumaran
Senthil Kumaran 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 = socket.gethostbyname(socket.gethos

[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 : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7639] bdist_msi fails on files with long names

2010-12-15 Thread Florian Berger
Florian Berger 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 tracker

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

2010-12-15 Thread Zsolt Cserna
Zsolt Cserna 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 file contains a different IP t

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

2010-12-15 Thread Senthil Kumaran
Senthil Kumaran 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 exercising file://'loc

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

2010-12-15 Thread R. David Murray
R. David Murray 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 '' in the error message instead of the real file name isn't very useful. -- nosy:

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

2010-12-15 Thread Zsolt Cserna
Zsolt Cserna 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 were more than one). So picki

[issue2212] Cookie.BaseCookie has ambiguous unicode handling

2010-12-15 Thread Charles Duffy
Charles Duffy 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 implement, any pr

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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 added the comment: Committed in r87261. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

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

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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: Python 3.2, Pyth

[issue10656] "Out of tree" build fails on AIX 5.3

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sable ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10709] Misc/AIX-NOTES needs updating

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 severity: norma

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

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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, gvanrossum, jhylton,

[issue10667] collections.Counter object in C

2010-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed "if(" spacing and applied in r87265. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2010-12-15 Thread R. David Murray
R. David Murray 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, there is at least one bet

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

2010-12-15 Thread Andreas Stührk
Andreas Stührk added the comment: Yes, it is (at the latest since msg124018). -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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 ___ Python tracke

[issue6791] httplib read status memory usage

2010-12-15 Thread Ross Lagerwall
Ross Lagerwall 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 length of the status lin

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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 length of

[issue10711] Rip off HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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: jhylton, orsenthil, p

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: Rip off HTTP 0.9 support -> Rip out HTTP 0.9 support ___ Python tracker ___ ___ Python-bugs-list

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

2010-12-15 Thread Ron Adam
Ron Adam 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 : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file20052/removehttp09.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file20053/removehttp09.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue874900] threading module can deadlock after fork

2010-12-15 Thread Bobby Impollonia
Changes by Bobby Impollonia : -- nosy: +bobbyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-12-15 Thread Bobby Impollonia
Changes by Bobby Impollonia : -- nosy: +bobbyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : 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 review Added file:

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

2010-12-15 Thread Eli Bendersky
Eli Bendersky 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 added the comment: Updated patch with "versionadded" tag for the new methods -- Added file: http://bugs.python.org/file20056/issue10516.5.patch ___ Python tracker

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Eli Bendersky
Eli Bendersky 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 ___ ___

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Daniel Stutzbach
Daniel Stutzbach 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

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Gregory P. Smith
Gregory P. Smith 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 server created si

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Daniel Stutzbach
Daniel Stutzbach 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 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 should write spec

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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 and headers, t

[issue10711] Rip out HTTP 0.9 support

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

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

2010-12-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: michael.foord -> ezio.melotti nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Terry J. Reedy
Terry J. Reedy 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 ___ Python t

[issue10711] Rip out HTTP 0.9 support

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

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Éric Araujo
Éric Araujo 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 in r87271. I’m cur

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Éric beat me. Better that he finish. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10541] regrtest.py -T broken

2010-12-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +eli.bendersky, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Éric Araujo
Éric Araujo 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 ;-) -- ___ Python tracker

[issue10702] bytes and bytearray methods are not documented

2010-12-15 Thread Éric Araujo
Éric Araujo 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 ___

[issue10712] 2to3 fixer for deprecated unittest method names

2010-12-15 Thread Ezio Melotti
New submission from Ezio Melotti : 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] and the assert*Reg

[issue3446] center, ljust and rjust are inconsistent with unicode parameters

2010-12-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue2576] httplib read() very slow due to lack of socket buffer

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: This was apparently fixed in r69209. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ __

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Eli Bendersky
Eli Bendersky 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 ___ Python tra

[issue6785] IncompleteRead / BadStatus when parsing http://peakoil.mobi

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: That server simply doesn't respect the HTTP RFC. It fails to send a last "0" line to indicate that the chunked transfer has completed. -- nosy: +pitrou resolution: -> invalid status: open -> pending ___ Python trac

[issue7013] Httplib read routine is not tolerant to not well-formed chunked http responses.

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___

[issue10702] bytes and bytearray methods are not documented

2010-12-15 Thread Alexander Belopolsky
Alexander Belopolsky 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 Methods" to "String, bytes and b

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

2010-12-15 Thread Terry J. Reedy
Terry J. Reedy 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 -> closed

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

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- dependencies: -Make gettimeofday available in time module ___ Python tracker ___ ___ Python-bugs-list m

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

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2010-12-15 Thread Éric Araujo
Éric Araujo 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: tarek -> eric.araujo r

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

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2010-12-15 Thread Mark Florisson
Mark Florisson 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 now also "supports except

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Gregory P. Smith
Gregory P. Smith 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. -- ___ Python trac

[issue9558] build_ext fails on VS8.0

2010-12-15 Thread Éric Araujo
Éric Araujo 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 tracker

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

2010-12-15 Thread Éric Araujo
Éric Araujo 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 to send the messa

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

2010-12-15 Thread Jonathan Halcrow
Jonathan Halcrow 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 _PyUnicode_Resize () #1 0

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

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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 ___ _

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

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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 probably unimp

[issue10712] 2to3 fixer for deprecated unittest method names

2010-12-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: 2to3 patches should currently be made against and checked into the sandbox. -- nosy: +loewis ___ Python tracker ___ __

[issue6007] Add disclaimer about MinGW compat in distutils docs

2010-12-15 Thread Éric Araujo
Éric Araujo 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 you can build e

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

2010-12-15 Thread R. David Murray
R. David Murray 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 you and (2) what does i

[issue9264] trace.py documentation is incomplete

2010-12-15 Thread Éric Araujo
Éric Araujo 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 ___ Python tracker

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

2010-12-15 Thread R. David Murray
R. David Murray 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. -- ___ Python tracker

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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, such as strings

[issue8851] pkgutil documentation needs more markup

2010-12-15 Thread Éric Araujo
Éric Araujo 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 ___ Python tracker

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Daniel Stutzbach
Daniel Stutzbach 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 special recursion han

[issue7694] DeprecationWarning from build_ext needs stacklevel

2010-12-15 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg113018 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7694] DeprecationWarning from build_ext needs stacklevel

2010-12-15 Thread Éric Araujo
Éric Araujo 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 in distutils2: De

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou 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. -- ___ Python tracker

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

2010-12-15 Thread Éric Araujo
Éric Araujo 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 tracker

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Added file: http://bugs.python.org/file20071/repr-2.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: Possibly related: #9840 -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list

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

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

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

2010-12-15 Thread Éric Araujo
Éric Araujo 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 error message looks l

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Daniel Stutzbach
Daniel Stutzbach 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

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: Patch LGTM, except for “As examples” which I’ve never read before (but I’m not a native speaker). -- ___ Python tracker ___ __

[issue10191] scripts files are not RECORDed.

2010-12-15 Thread Éric Araujo
Éric Araujo 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 ___ __

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

2010-12-15 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-12-15 Thread Éric Araujo
Éric Araujo 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 has its interp

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

2010-12-15 Thread Adrian Sampson
Adrian Sampson 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 in a long list has aliase

  1   2   >