[issue10845] test_multiprocessing failure under Windows

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: On xp, changing from -m test to -m test.regrtest removed the extra craziness during and after the test run that I reported on pydev. I think making at least a tempory fix to whatever -m test runs should be a release blocker so only individual

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-07 Thread Pierre Quentel
Pierre Quentel pierre.quen...@gmail.com added the comment: Option 1 is impossible, because the CGI script sometimes has no control on the stream : for instance on a shared web host, it will receive sys.stdin as a text stream I also vote for option 3 ; explaining that if no argument is passed,

[issue9920] test_cmath on atan fails on AIX

2011-01-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9920 ___ ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Nick] @Mark: I don't think that follows. [...] If the exporter actually needs to release buffer specific resources, then it should maintain an internal data structure keyed off the Py_buffer address. Ah, okay. So that would make issue

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: an internal data structure keyed off the Py_buffer address. If we're using the Py_buffer address coming into getbuffer as a key, then we probably shouldn't be using a stack address, since it would be difficult to guarantee uniqueness

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le vendredi 07 janvier 2011 à 02:19 +, Nadeem Vawda a écrit : Most of these leaks seem to stem from the fact that socket.SocketIO.close() doesn't behave as documented. According to its docstring, it is meant to decrement the

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: We may also accept TextIOWrapper (eg. sys.stdin) *and* BufferedReader/FileIO (eg. sys.stdin.buffer). It is possible to test the type of the stream. With a TextIOWrapper, the raw buffer can be read using stream.buffer. But for

[issue10812] Add some posix functions

2011-01-07 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: it's a bit asymmetric that gethostname is in the socket module and supports Windows, and sethostname is in the POSIX module. It would be useful to have a gethostname in the POSIX module also which is a) POSIX only and b) supports

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It only needs to be unique for the lifetime of the buffer reference - for a Py_buffer struct on the stack, by the time the relevant C stack frame goes away, ReleaseBuffer should already have been called. --

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

2011-01-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As per the discussion over in issue #10181, I've changed my position on this issue. Since the PEP isn't explicit on the exact semantics here, I think we should be guided by the memoryview behaviour and make it official that bf_releasebuffer

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-07 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Pierre said: Option 1 is impossible, because the CGI script sometimes has no control on the stream : for instance on a shared web host, it will receive sys.stdin as a text stream I say: It is the user code of the CGI script that calls

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

2011-01-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The alternative (if we declare that clients should treat Py_buffer contents as completely read-only) is to update memoryview to include a separate orig_view field that would never be touched. The GetBuffer and ReleaseBuffer calls would then

[issue10813] Suppress adding decimal point for places=0 in moneyfmt()

2011-01-07 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10813 ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: by the time the relevant C stack frame goes away, ReleaseBuffer should already have been called. Hmm. I'm not sure I understand how/when that would happen. Looking at the current py3k code, in Objects/memoryobject.c at line 92, we have:

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Ah, sorry - no, I misunderstood the question. I think that example actually *is* a bug in the memoryview implementation. The GetBuffer call should use the persistent address (mview-view) that will be used in the ReleaseBuffer call, as per

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, unknown-8bit is registered as a charset with IANA. It is registered specifically for use in message bodies, but as a registered charset it should be acceptable in headers as well. There is no similar registration for just

[issue2973] _ssl compiler warnings

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, it merely means that OpenSSL has changed the const-ness of some of their APIs over time. As I said I see no warnings with the most recent OpenSSL versions. Buildbots will tell you the same story: for example, no warnings under OS X Snow

[issue10851] further extend ssl SNI and ciphers API

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: as a further extension to issue #5639 (sni) and issue #8322 this patch provides the ability to set ciphers in the SSLContext.wrap_socket and server_hostname in ssl.wrap_socket. This just makes all the ssl apis look the same. Restructured the

[issue8109] Server-side support for TLS Server Name Indication extension

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Server side SNI is still missing. Right, re-opening. -- resolution: duplicate - stage: - needs patch status: closed - open superseder: Support TLS SNI extension in ssl module - title: Support for TLS Server Name Indication extension

[issue10853] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Duplicate posting of #10852. -- resolution: - duplicate status: open - closed superseder: - SSL/TLS sni use in smtp,pop,imap,nntp,ftp client libs by default ___ Python tracker rep...@bugs.python.org

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, I hadn't noticed you had closed it. -- nosy: +pitrou resolution: duplicate - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10852

[issue1641] asyncore delayed calls feature

2011-01-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1641 ___ ___ Python-bugs-list

[issue8684] improvements to sched.py

2011-01-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8684 ___ ___ Python-bugs-list

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I'm a little uncomfortable with relying on a non-standards track RFC for this interpretation, and I'm also not sure I'd say that the email package is a transport agent, but in cases where it's acting on the user's behalf (i.e. headers

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: When an extension could not be loaded, because it requires some DLL that is missing, Python shows the following error message: ImportError: DLL load failed: The specified module could not be found. It will help tremendously in

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- type: resource usage - feature request versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___

[issue10849] Backport test/__main__

2011-01-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: +0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___ ___ Python-bugs-list

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Is it even possible? Each time I tried, the only solutions involved an external program like Dependency Walker. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I'm pretty sure we can't do this, if I understand your request. Say you have techtonik.pyd as your extension and it depends on foobar.dll. If we try to load techtonik.pyd and this pyd can't find or successfully load foobar.dll, Python doesn't

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Agree with Amaury. depends has always been my solution to this type of problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-07 Thread Peter Creath
New submission from Peter Creath pjcreath+pyt...@gmail.com: Calling wave.close() fails to release all references to the file passed in via wave.open(filename_or_obj, rb). As a result, processing many wave files produces an IOError of too many files open. This bug is often masked because this

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Need documentation for ImportError parameters and exception instance attributes. -- assignee: d...@python components: Documentation messages: 125655 nosy: d...@python, techtonik priority: normal severity: normal status: open

[issue10857] ImportError module attribute

2011-01-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Need ImportError.module attribute to get the name of failed import. Right now it requires parsing ImportError.args that is presented in form ('No module named zqwer',) that is not pythonic. -- messages: 125656 nosy: techtonik

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, since unknown-8bit is a registered charset, it should be RFC-valid in an encoded word. Whether or not any other mailer out there is going to be able to handle it is a different question. --

[issue10857] ImportError module attribute

2011-01-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Duplicate of #1559549 -- nosy: +brian.curtin resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - ImportError needs attributes for module and file name ___ Python

[issue10857] ImportError module attribute

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Thanks for the pointer. I couldn't find it myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10857 ___

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I think we should investigate deeper why this enhancement request didn't get into Python 3. Another user story is: from xxx import yyy, if yyy not found, the args message is ('cannot import name yyy',) Python4? label:api --

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There's no need for any deeper investigation. The answer is nobody wrote the patch. If someone writes a good patch, it will go in. -- nosy: +r.david.murray ___ Python tracker

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I think we should investigate deeper why this enhancement request didn't get into Python 3. There is nothing to investigate here. This is a request for a marginal improvement and OP did not follow up even though a core

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Can you cross reference the part of code where this error is catched? Why Python can't get information about the reason .DLL is not loaded? Is it at least possible to add a hook point at the exact time the import fails to insert

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: What is there to document? ImportError has no special attributes or parameters. -- nosy: +georg.brandl resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: See _PyImport_GetDynLoadFunc in Python/dynload_win.c -- that's where this is happening. Why Python can't get information about the reason .DLL is not loaded? Windows does not provide it in the case you are speaking of. If I call LoadLibraryEx

[issue10849] Backport test/__main__

2011-01-07 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: 2.6 is right out. Martin, would you please decide on whether this should be backported to 2.7 and 3.1? IMO, the rationale is flimsy (its not hard to run the test suite in *any* version) and it goes against our usual

[issue10849] Backport test/__main__

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I thought Benjamin was still RM for 2.7 and 3.1? -- assignee: loewis - benjamin.peterson nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The code is in Python/dynload_win.c To load an extension module mymodule.pyd, Python calls LoadLibrary('/path/to/mymodule.pyd'); when it returns NULL, the code calls GetLastError() (which returns 126 in this case) then FormatMessage

[issue10858] Make source code links less proeminent

2011-01-07 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Reading library source code will only be enlightening to expert users, since most modules are not academic but real-world implementations, with all the complications it entails. Therefore, putting a link at the top of module sections is only

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I understand this patch relies on #10851. As I said there, I would rather have SSLContext become the primary API, and the stdlib standardize on it. Part of the stdlib, as you have witnessed, already allows the user to pass a custom SSLContext,

[issue8808] imaplib should support SSL contexts

2011-01-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8808 ___

[issue8809] smptlib should support SSL contexts

2011-01-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: ImportError has args and message attributes containing failed module name. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10856

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No it doesn't. It has an arbitrary message string. That's the same as all other exceptions that don't have special attributes. -- nosy: +r.david.murray status: open - closed ___ Python

[issue10808] ssl unwrap fails with Error 0

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As we discussed on IRC, there are two things here: - unwrap() can give an error because it tries to shutdown the SSL layer cleanly, and the other side doesn't support it or is already closed; unwrap() is useful mostly if you plan to use the

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I will not bother backporting myself but an other core developer can do it if (s)he desires. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9090

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: You are right, however, that the args argument is not really well documented. Fixed that in r87820. -- resolution: works for me - fixed ___ Python tracker rep...@bugs.python.org

[issue10849] Backport test/__main__

2011-01-07 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: His +0 isn't a decision. I would like Martin, the longest term active developer, to make the call about waiving the policy of not backporting features (especially when the only purported benefit saving a couple of core

[issue10849] Backport test/__main__

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Oh, sure. I misinterpreted your comment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___

[issue10849] Backport test/__main__

2011-01-07 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: -georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___ ___ Python-bugs-list

[issue10849] Backport test/__main__

2011-01-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/1/7 Raymond Hettinger rep...@bugs.python.org: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: His +0 isn't a decision.  I would like Martin, the longest term active developer, to make the call about waiving

[issue10808] ssl unwrap fails with Error 0

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This information being no information, is that really all you can get out of OpenSSL? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10808

[issue10841] binary stdio

2011-01-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited io_binary_windows.patch + parser_translate_newline.patch as r87824. I fixed the patch on the parser to avoid leak on newtok if translate_newlines() fails. -- Added file:

[issue10808] ssl unwrap fails with Error 0

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This information being no information, is that really all you can get out of OpenSSL? Well the situation as the same as a system call which would return failure but leave errno 0 (except that OpenSSL has its own kind-of-errnos). OpenSSL's

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I see. But depends.exe dependency walker somehow finds the exact code that is failing, so there should be a way to do extra investigation in case of error. py2exe has a custom .dll loader that bypasses LoadLibrary(Ex) calls from that I

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: contextlib.GeneratorContextManager doesn't have an underscore but it's not documented either. Something has to be done (I would say make it private). -- components: Library (Lib) messages: 125683 nosy: michael.foord, ncoghlan, pitrou

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It isn't in __all__ and it is undocumented - so I'd say its private already. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10859

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Not clear; see #10838. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10859 ___

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: There was a discussion on python-dev about naming conventions in the standard library. There was no clear consensus that everything non-public should start with an underscore. Several developers thought that merely being undocumented

[issue10860] urllib2 crashes on valid URL

2011-01-07 Thread Shawn Ligocki
New submission from Shawn Ligocki sligo...@gmail.com: urllib2 crashes with stack trace on legal URL http://118114.cn Transcript: Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. import urllib2

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There was a discussion on python-dev about naming conventions in the standard library. There was no clear consensus that everything non-public should start with an underscore. Several developers thought that merely being undocumented or not

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I have no objection to a rename that adds a leading underscore. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10859 ___

[issue10812] Add some posix functions

2011-01-07 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Thanks for the comments. I implemented sethostid() - its not actually in the posix spec, but linux/*bsd have it although the signature for FreeBSD is a bit different. I implemented gethostname(). Both get/sethostname() now use FSDefault

[issue10860] urllib2 crashes on valid URL

2011-01-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Can you test it with current versions (2.7, 3.1 or 3.2)? -- nosy: +eric.araujo, orsenthil versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10859 ___ ___

[issue10858] Make source code links less proeminent

2011-01-07 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: d...@python - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___

[issue10858] Make source code links less proeminent

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: +1 -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___ ___

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Shawn Ligocki
New submission from Shawn Ligocki sligo...@gmail.com: urllib2 sporadically falsely claims that http://www.bankofamerica.com/ has infinite redirect: $ python -c 'import urllib2; print urllib2.urlopen(http://www.bankofamerica.com/;).geturl()' https://www.bankofamerica.com/ $ python -c 'import

[issue10862] Complete your registration to Python tracker -- key yq3FVw0zXbfo3RJCzK2PqphC2n0XTohy

2011-01-07 Thread xiscu
New submission from xiscu xi...@email.de: On 01/07/2011 08:41 PM, Python tracker wrote: To complete your registration of the user xiscu with Python tracker, please do one of the following: - send a reply to rep...@bugs.python.org and maintain the subject line as is (the reply's additional

[issue10862] Complete your registration to Python tracker -- key yq3FVw0zXbfo3RJCzK2PqphC2n0XTohy

2011-01-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10862 ___

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Antoine Pitrou
-cookie: BOA_0020=20110107:0:E:961E3F55-9482-01f4-BFA6871D; Expires=Wed, 25 Jan 2079 22:59:56 GMT; Domain=.bankofamerica.com Set-cookie: BOA_COM_BT_ELIGIBLE=No; Expires=Fri, 14 Jan 2011 19:45:49 GMT; Domain=.bankofamerica.com Expires: Thu, 01 Dec 1994 16:00:00 GMT Cache-control: no-cache=set

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, perhaps the redirection loop would stop if we would send back those cookies which the server sends us. So perhaps it's a feature request rather. (but this still strikes me as a very poor use of HTTP) --

[issue10841] binary stdio

2011-01-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Tests pass on Windows 7 buildbot, the two other XP buildbots have unrelated issues. I also tested on my XP VM: all tests pass. So I close this issue. -- resolution: - fixed status: open - closed

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I fixed #10841 (r87824): stdin (and all other files) is now set to binary (instead of text) mode on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953

[issue10858] Make source code links less proeminent

2011-01-07 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Please leave these alone for the time being. I put them high on the page so that people would have a consistent and easy to find view-source link. It is an experiment and time will tell whether it was a good choice. For

[issue10858] Make source code links less proeminent

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The goal is to reacquaint people with the source as an adjunct to the docs. The phrase use-the-source-luke used to be common in the python community but now many devs don't seem to be able to readily access the source (with it tucked away in

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The redirection is a red hearing, the error is clearly that an empty port after a port delimiter (like in http://host:) breaks httplib. Do you want to work on a patch? Helpful guidelines are found at http://www.python.org/dev/patches/

[issue10863] zlib.compress() fails with string

2011-01-07 Thread Jose-Luis Fernandez-Barros
New submission from Jose-Luis Fernandez-Barros jlfbar...@gmail.com: On The Python Tutorial, section 10.9. Data Compression http://docs.python.org/py3k/tutorial/stdlib.html#data-compression import zlib s = 'witch which has which witches wrist watch' ... t = zlib.compress(s) Traceback (most

[issue10838] subprocess __all__ is incomplete

2011-01-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10838 ___ ___ Python-bugs-list

[issue10841] binary stdio

2011-01-07 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Thanks for your work on this Victor, and other commenters also. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Sure, I can work on a patch. Should an empty port default to 80? In other words does http://foo.com/; == http://foo.com:/;? -- ___ Python tracker rep...@bugs.python.org

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Ahha, what a mess, thanks for investigating! I agree, this is bankofamerica's problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10861

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10860 ___ ___ Python-bugs-list mailing list

[issue10827] Functions in time module should support year 1900 when accept2dyear = 0

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in 87829. I added a year = 1900 check in time.strftime for now because removing or relaxing this limit should be done in coordination with similar datetime module issue. See #1777412. See also python-dev

[issue10827] Functions in time module should support year 1900 when accept2dyear = 0

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Commit link: r87829 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10827 ___

[issue809163] Can't add files with spaces

2011-01-07 Thread xiscu
xiscu xi...@email.de added the comment: This is also my first contribution. The attached file is a diff against : - http://code.python.org/hg/branches/py3k/ The actual tip was: - 9489:4db13b4e76aa The patch adds only a test that triggers the issue. Please feel free to comment on that commit

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Except if it's an HTTPS URL :) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10860 ___

[issue10858] Make source code links less prominent

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: As Raymond explained, he added these links as a kind of social experiment and this issue itself shows that it works. :-) I have a few suggestions on how to make these links more useful: 1. A ViewVC link is the simplest

[issue10858] Make source code links less prominent

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I have a few suggestions on how to make these links more useful: The question is not how they could be more useful, but *whether* they are useful at all. An user skilled enough to read the source code is probably skilled enough not to require a

[issue10858] Make source code links less prominent

2011-01-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: 1: I hope this will just be a matter of using the same Pygments theme in Sphinx and hgweb. 2: I don’t think hgweb can do that. Mercurial being extensible, this addition may be a fun project. 3: Not all modules are good examples (see threading

  1   2   >