[issue10845] test_multiprocessing failure under Windows
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 tests and not the test process are broken. If necessary, just refuse to run under windows and say to use test.regrtest as before. (I believe I did use -m test.regrtest on 3.1 and 2.7 as -m test is not implemented for those.) -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
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, the program will use sys.stdin.buffer (or the result of sys.stdin.detach() : I guess it's the same ?), and that if an argument is passed, it must provide an attribute buffer (or a method detach() ?) as the binary layer of the stream BTW, I didn't have time to finish the versions of cgi.py and tests, my next slot is this week-end -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9920] test_cmath on atan fails on AIX
Changes by Mark Dickinson dicki...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)
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 9990 just a documentation problem, right? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)
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 that way. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10512] regrtest ResourceWarning - unclosed sockets and files
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 underlying socket's refcount, and close it if the refcount drops to zero. However, to do this job it calls socket._decref_socketios(), which is defined as follows: def _decref_socketios(self): if self._io_refs 0: self._io_refs -= 1 if self._closed: self.close() Clearly, this doesn't do what the docstring describes. Changing the second conditional from if self._closed: to if self._io_refs = 0: disposes of all but one of the ResourceWarnings, but also breaks 8 tests in test_socket. It seems that the tests expect a socket to remain open after all referring SocketIO objects have been closed, which contradicts the docstring for SocketIO.close(). I suppose I should open a separate issue for this. Can you please open a new issue for that? Victor -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
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 StringIO/BytesIO: only BytesIO should be accepted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10812] Add some posix functions
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 embedded NUL bytes. According to the spec for gethostname(), the hostname that it returns is null-terminated so it won't support embedded NUL bytes. Should we still add it anyway? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1
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 implementations shouldn't trust the contents of the passed in Py_buffer struct. Instead, if that information is important, the exporter should create an internal data structure that preserves the necessary detail and merely use the Py_buffer address as an identifier to locate the internal copy. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
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 CGI.FieldStorage. So the user could be required (option 1) to first tweak the stdin to be bytes, one way or another. I don't understand any circumstance where a Python CGI script doesn't have control over the settings of the Python IO Stack that it is using to obtain the data... and the CGI spec is defined as a bytestream, so it must be able to read the bytes. Victor said: It is possible to test the type of the stream. I say: Yes, why just assume (as I have been) that the initial precondition is the defaults that Python imposes. Other code could have interposed something else. The user should be allowed to pass in anything that is a TextIOWrapper, or a BytesIO, and CGI should be able to deal with it. If the user passes some other type, it should be assumed to produce bytes from its read() API, and if it doesn't the user gets what he deserves (an error). Since the default Python sys.stdin is a TextIOWrapper, having CGI detect that, and extract its .buffer to use for obtaining bytes, should work fine. If the user already tweaked sys.stdin to be a BytesIO (.buffer or detach()), CGI should detect and use that. If the user substitutes a different class, it should be bytes, and that should be documented, the three cases that could work. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1
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 use orig_view, with dup_buffer used to copy the data into the main view field before modifying it. However, this approach greatly complicates the bf_getbuffer and bf_releasebuffer implementations, since memoryview could no longer pass the supplied Py_buffer pointer straight through to the underlying implementation. Instead, for each call to bf_getbuffer, it would need to create a new Py_buffer struct, use that for the GetBuffer call to the underlying object, copy the contents over to the passed in buffer (modifying the shape information as appropriate for any slicing that is in effect), then, in bf_releasebuffer, use the passed in pointer to find the right Py_buffer struct to use in the ReleaseBuffer call. Putting the onus on exporters to be suspicious of the contents of the Py_buffer objects handed to bf_releasebuffer implementations actually seems like the more robust approach in the long run. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10813] Suppress adding decimal point for places=0 in moneyfmt()
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)
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: PyObject * PyMemoryView_FromObject(PyObject *base) { PyMemoryViewObject *mview; Py_buffer view; if (!PyObject_CheckBuffer(base)) { PyErr_SetString(PyExc_TypeError, cannot make memory view because object does not have the buffer interface); return NULL; } if (PyObject_GetBuffer(base, view, PyBUF_FULL_RO) 0) return NULL; mview = (PyMemoryViewObject *)PyMemoryView_FromBuffer(view); if (mview == NULL) { PyBuffer_Release(view); return NULL; } return (PyObject *)mview; } So here 'view' is being allocated on the stack, and its address passed to PyObject_GetBuffer; PyBuffer_Release isn't called (except when an error happens) before the function exits and the stack frame becomes invalid. Sorry for the odd questions; it's clear to me that I'm misunderstanding something fundamental, but I'm struggling to figure out what. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)
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 Antoine's patch on issue 9990. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data
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 'unknown', but it sounds like mailers may be more likely to accept it if it exists in the wild. I'm hoping to fix this before the RC (which is tomorrow, which means fixing it today), so your suggestion of making the 'unknown charset' token configurable is a good one. I'm not so worried about providing a way to reject such headers, since this incarnation of email makes a point of not throwing errors on parsing, and if you read binary messages with unknown bytes the best thing to do is generate the outgoing message with BytesGenerator, in which case you get the unknown bytes back without the rfc2047 munging. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10686 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2973] _ssl compiler warnings
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 Leopard, some under OS X Leopard (which is older). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2973 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10851] further extend ssl SNI and ciphers API
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 documentation associated with these functions to all be around the wrap_socket method. Ah! I actually don't want these APIs to look the same. In the long term, I would like SSLContext to become the preferred API, with ssl.wrap_socket only being supported for backwards compatibility. The huge parameter list in ssl.wrap_socket() is really a mistake due to it having evolved quite organically. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10851 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8109] Server-side support for TLS Server Name Indication extension
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 - Server-side support for TLS Server Name Indication extension versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8109 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10853] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default
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 http://bugs.python.org/issue10853 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1641] asyncore delayed calls feature
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1641 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8684] improvements to sched.py
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8684 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data
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 created programmatically rather than parsed), I can get on board with that. Your interpretation and approach to the fix seems reasonable, and I don't have any better ideas. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10686 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 debugging extension problems if the missing DLL name is specified in error message. -- components: Extension Modules messages: 125649 nosy: techtonik priority: normal severity: normal status: open title: Output DLL name in error message of ImportError when DLL is missing type: resource usage versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10849] Backport test/__main__
Benjamin Peterson benja...@python.org added the comment: +0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 know about *this* DLL. It just knows that it can't load techtonik.pyd, so that's what we'd be able to output, which isn't that helpful. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10855] wave.Wave_read.close() doesn't release file
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 dangling reference is collected if the wave object is collected. However, if the wave object is retained, calling wave_obj.close() won't release the reference, and so the file will never be closed. There are two solutions: 1) The workaround: the client program can explicitly close the file object it passed to the wave object (file_obj.close()). 2) The bug fix: the wave module can properly release the extra reference to the file, by setting self._data_chunk = None in the close() method. Explanation: Trunk code (and 2.7.1, and older): def close(self): if self._i_opened_the_file: self._i_opened_the_file.close() self._i_opened_the_file = None self._file = None but note initfp(self, file): ... self._file = Chunk(file, bigendian = 0) ... chunk = Chunk(self._file, bigendian = 0) ... self._data_chunk = chunk ... therefore close needs to add: self._data_chunk = None -- components: Library (Lib) messages: 125654 nosy: pjcreath priority: normal severity: normal status: open title: wave.Wave_read.close() doesn't release file type: resource usage versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10855 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10856] documentation for ImportError parameters and attributes
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 title: documentation for ImportError parameters and attributes type: feature request versions: Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10856 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10857] ImportError module attribute
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 priority: normal severity: normal status: open title: ImportError module attribute type: feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10686 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10857] ImportError module attribute
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 tracker rep...@bugs.python.org http://bugs.python.org/issue10857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10857] ImportError module attribute
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
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 -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
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 rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
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 developer responded on the next day after his post. The only lesson to be learned from this is that Python improvements should be discussed on the tracker or appropriate python mailing lists and not on private blogs. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 component that is able to inquiry system about this information (like depends)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10856] documentation for ImportError parameters and attributes
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 http://bugs.python.org/issue10856 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 for techtonik.pyd, either it succeeds because everything is there, or it fails because something is not there. We get no information about dependency hierarchies failing to load. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10849] Backport test/__main__
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 policy; however, it is also a trivial and isolated patch, making it somewhat harmless. Also note that 3.1 is very soon to be closed for anything but security fixes. Only 2.7 will in long-term maintenance. -- assignee: benjamin.peterson - loewis nosy: +loewis versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10849] Backport test/__main__
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 to get an error message. To get the full path to the .pyd, you can use imp.find_module(), but there is nothing else we can do I fear. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10858] Make source code links less proeminent
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 confusing for most people. I would like to shift these links to the bottom of doc pages, where we already have see also links to RFCs and the like. -- assignee: d...@python components: Documentation messages: 125669 nosy: d...@python, pitrou, rhettinger priority: normal severity: normal status: open title: Make source code links less proeminent versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default
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, which is very simple way of allowing for custom user settings. There are two open issues for imaplib (#8808) and smtplib (#8809). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8808] imaplib should support SSL contexts
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8809] smptlib should support SSL contexts
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10856] documentation for ImportError parameters and attributes
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10856] documentation for ImportError parameters and attributes
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 tracker rep...@bugs.python.org http://bugs.python.org/issue10856 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10808] ssl unwrap fails with Error 0
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 clear-text layer afterwards, otherwise you can just call shutdown(socket.SHUT_RDWR) and then close() - the error message and errnos are totally bogus, but I'm afraid that's because of OpenSSL giving us this information. -- resolution: - wont fix status: open - closed versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10808 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10856] documentation for ImportError parameters and attributes
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 http://bugs.python.org/issue10856 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10849] Backport test/__main__
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 devs from spelling out the path name to the test suite). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10849] Backport test/__main__
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10849] Backport test/__main__
Changes by Georg Brandl ge...@python.org: -- nosy: -georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10849] Backport test/__main__
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 the policy of not backporting features (especially when the only purported benefit saving a couple of core devs from spelling out the path name to the test suite). What are the purported downsides? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10808] ssl unwrap fails with Error 0
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10841] binary stdio
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: http://bugs.python.org/file20304/parser_translate_newline-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10808] ssl unwrap fails with Error 0
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 error reporting is unfortunately poorly if at all documented, and I don't know what to do here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10808 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
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 can see at http://py2exe.svn.sourceforge.net/viewvc/py2exe/trunk/py2exe/source/ Even if this code can't be used as a replacement for LoadLibrary calls - it can be very useful for troubleshooting problems in case of missing dependencies. It will also help when embedding python or developing extensions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10854] Output DLL name in error message of ImportError when DLL is missing
Changes by Brian Curtin cur...@acm.org: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10859] Is GeneratorContextManager public?
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 priority: normal severity: normal status: open title: Is GeneratorContextManager public? type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10859 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10859] Is GeneratorContextManager public?
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10859] Is GeneratorContextManager public?
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10859] Is GeneratorContextManager public?
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 or not present in __all__ was sufficient (evidently including Guido at the point he implemented this). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10859 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10860] urllib2 crashes on valid URL
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 urllib2.urlopen(http://118114.cn;) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.6/urllib2.py, line 126, in urlopen return _opener.open(url, data, timeout) File /usr/lib/python2.6/urllib2.py, line 397, in open response = meth(req, response) File /usr/lib/python2.6/urllib2.py, line 510, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib/python2.6/urllib2.py, line 429, in error result = self._call_chain(*args) File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain result = func(*args) File /usr/lib/python2.6/urllib2.py, line 605, in http_error_302 return self.parent.open(new, timeout=req.timeout) File /usr/lib/python2.6/urllib2.py, line 391, in open response = self._open(req, data) File /usr/lib/python2.6/urllib2.py, line 409, in _open '_open', req) File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain result = func(*args) File /usr/lib/python2.6/urllib2.py, line 1161, in http_open return self.do_open(httplib.HTTPConnection, req) File /usr/lib/python2.6/urllib2.py, line 1107, in do_open h = http_class(host, timeout=req.timeout) # will parse host:port File /usr/lib/python2.6/httplib.py, line 657, in __init__ self._set_hostport(host, port) File /usr/lib/python2.6/httplib.py, line 682, in _set_hostport raise InvalidURL(nonnumeric port: '%s' % host[i+1:]) httplib.InvalidURL: nonnumeric port: '' I think the problem is that http://118114.cn; says it redirects to http://www.118114.cn:;, but it seems like urllib2 should be able to deal with that or at least report back a more useful error message. $ nc 118114.cn 80 GET / HTTP/1.1 Host: 118114.cn User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13 HTTP/1.1 301 Moved Permanently Server: nginx/0.7.64 Date: Fri, 07 Jan 2011 19:06:32 GMT Content-Type: text/html Content-Length: 185 Connection: keep-alive Keep-Alive: timeout=60 Location: http://www.118114.cn: html headtitle301 Moved Permanently/title/head body bgcolor=white centerh1301 Moved Permanently/h1/center hrcenternginx/0.7.64/center /body /html -- components: Library (Lib) messages: 125687 nosy: sligocki priority: normal severity: normal status: open title: urllib2 crashes on valid URL type: crash versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10859] Is GeneratorContextManager public?
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 present in __all__ was sufficient (evidently including Guido at the point he implemented this). Underscoring makes it much clearer, though, that people shouldn't rely on it. At this point, GCM is only used in copies of the contextlib source code and our own test_with, so we can still rename it. (http://www.google.com/codesearch?hl=frsa=Nq=GeneratorContextManager ) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10859 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10859] Is GeneratorContextManager public?
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10812] Add some posix functions
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 encoding. gethostname() is null-terminated so it doesn't have to deal with embedded NULs. sethostname() works with embedded NULs. Since id_t can contain a pid_t, I now parse id_t with _Py_PARSE_PID. waitid() also now returns a structsequence of the correct fields. According to the spec, gethostid does not set errno - it now checks anyway. Instead of PARSE_OFF_T, I use a O parser. -- Added file: http://bugs.python.org/file20305/10812_v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10860] urllib2 crashes on valid URL
É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 rep...@bugs.python.org http://bugs.python.org/issue10860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10859] Is GeneratorContextManager public?
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10859 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10858] Make source code links less proeminent
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: d...@python - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10858] Make source code links less proeminent
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10861] urllib2 sporadically falsely claims infinite redirect
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 urllib2; print urllib2.urlopen(http://www.bankofamerica.com/;).geturl()' Traceback (most recent call last): File string, line 1, in module File /usr/lib/python2.6/urllib2.py, line 126, in urlopen return _opener.open(url, data, timeout) File /usr/lib/python2.6/urllib2.py, line 397, in open response = meth(req, response) File /usr/lib/python2.6/urllib2.py, line 510, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib/python2.6/urllib2.py, line 429, in error result = self._call_chain(*args) File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain result = func(*args) File /usr/lib/python2.6/urllib2.py, line 605, in http_error_302 return self.parent.open(new, timeout=req.timeout) File /usr/lib/python2.6/urllib2.py, line 397, in open response = meth(req, response) File /usr/lib/python2.6/urllib2.py, line 510, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib/python2.6/urllib2.py, line 429, in error result = self._call_chain(*args) File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain result = func(*args) File /usr/lib/python2.6/urllib2.py, line 605, in http_error_302 return self.parent.open(new, timeout=req.timeout) File /usr/lib/python2.6/urllib2.py, line 397, in open response = meth(req, response) File /usr/lib/python2.6/urllib2.py, line 510, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib/python2.6/urllib2.py, line 429, in error result = self._call_chain(*args) File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain result = func(*args) File /usr/lib/python2.6/urllib2.py, line 605, in http_error_302 return self.parent.open(new, timeout=req.timeout) File /usr/lib/python2.6/urllib2.py, line 397, in open response = meth(req, response) File /usr/lib/python2.6/urllib2.py, line 510, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib/python2.6/urllib2.py, line 429, in error result = self._call_chain(*args) File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain result = func(*args) File /usr/lib/python2.6/urllib2.py, line 605, in http_error_302 return self.parent.open(new, timeout=req.timeout) File /usr/lib/python2.6/urllib2.py, line 397, in open response = meth(req, response) File /usr/lib/python2.6/urllib2.py, line 510, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib/python2.6/urllib2.py, line 429, in error result = self._call_chain(*args) File /usr/lib/python2.6/urllib2.py, line 369, in _call_chain result = func(*args) File /usr/lib/python2.6/urllib2.py, line 595, in http_error_302 self.inf_msg + msg, headers, fp) urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Found Since it is sporadic, it could just be a problem with bankofamerica.com's servers. Is there an easy way to see what response urllib2 got that made it unhappy? -- components: Library (Lib) messages: 125693 nosy: sligocki priority: normal severity: normal status: open title: urllib2 sporadically falsely claims infinite redirect versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10862] Complete your registration to Python tracker -- key yq3FVw0zXbfo3RJCzK2PqphC2n0XTohy
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 Re: is ok), - or visit the following URL: http://bugs.python.org/?...@action=confregootk=yq3FVw0zXbfo3RJCzK2PqphC2n0XTohy -- messages: 125694 nosy: xiscu priority: normal severity: normal status: open title: Complete your registration to Python tracker -- key yq3FVw0zXbfo3RJCzK2PqphC2n0XTohy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10862 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10862] Complete your registration to Python tracker -- key yq3FVw0zXbfo3RJCzK2PqphC2n0XTohy
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10861] urllib2 sporadically falsely claims infinite redirect
Antoine Pitrou pit...@free.fr added the comment: Apparently, it's a problem on bankofamerica.com: $ curl -v https://www.bankofamerica.com/ * About to connect() to www.bankofamerica.com port 443 (#0) * Trying 171.161.148.173... connected * Connected to www.bankofamerica.com (171.161.148.173) port 443 (#0) * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS handshake, Server finished (14): * SSLv3, TLS handshake, Client key exchange (16): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSL connection using RC4-MD5 * Server certificate: *subject: 1.3.6.1.4.1.311.60.2.1.3=US; 1.3.6.1.4.1.311.60.2.1.2=Delaware; businessCategory=V1.0, Clause 5.(b); serialNumber=2927442; C=US; postalCode=75202; ST=Texas; L=Dallas; street=1201 Main Street; O=Bank of America Corporation; OU=WebSphere Ecomm; CN=www.banko *start date: 2010-02-24 00:00:00 GMT *expire date: 2011-03-06 23:59:59 GMT *common name: www.bankofamerica.com (matched) *issuer: C=US; O=VeriSign, Inc.; OU=VeriSign Trust Network; OU=Terms of use at https://www.verisign.com/rpa (c)06; CN=VeriSign Class 3 Extended Validation SSL CA *SSL certificate verify ok. GET / HTTP/1.1 User-Agent: curl/7.20.1 (x86_64-mandriva-linux-gnu) libcurl/7.20.1 OpenSSL/1.0.0a zlib/1.2.3 libidn/1.18 libssh2/1.2.5 Host: www.bankofamerica.com Accept: */* HTTP/1.1 302 Found Server: Sun-ONE-Web-Server/6.1 Date: Fri, 07 Jan 2011 19:45:49 GMT Content-length: 0 Content-type: text/html Set-Cookie: TLTSID=BAA36B1C1A96101A7D01FB668166E60D; Path=/; Domain=.bankofamerica.com Set-Cookie: TLTUID=BAA36B1C1A96101A7D01FB668166E60D; Path=/; Domain=.bankofamerica.com; Expires=Fri, 07-01-2021 19:45:49 GMT Location: https://www.bankofamerica.com/ Content-language: en-US Set-cookie: JSESSIONID=WgLDVaDtim2XXER98OGo6OA:12rfuebu8; Path=/ Set-cookie: INTL_LANG=en_US Set-cookie: ngen_throttle=750; Expires=Wed, 06 Jul 2011 19:45:49 GMT; Path=/; Domain=.bankofamerica.com Set-cookie: hp_beta=B; Expires=Wed, 06 Jul 2011 19:45:49 GMT; Path=/; Domain=.bankofamerica.com Set-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-cookie, set-cookie2 * Connection #0 to host www.bankofamerica.com left intact * Closing connection #0 * SSLv3, TLS alert, Client hello (1): -- nosy: +orsenthil, pitrou resolution: - invalid status: open - closed versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10861] urllib2 sporadically falsely claims infinite redirect
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) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10841] binary stdio
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10858] Make source code links less proeminent
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 the time being, I don't want it buried. 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 a library directory). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10858] Make source code links less proeminent
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 a library directory). I don't think someone not able to readily access the source from a link at the *bottom* of a doc page would be able to understand (or even be motivated to understand) the stdlib's source code. While I understand the motivation to encourage reading of the source code, this should not disrupt the sequential reading of documentation pages, or make it seem more important than the API docs themselves. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10860] Handle empty port after port delimiter in httplib
É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/ -- stage: - needs patch title: urllib2 crashes on valid URL - Handle empty port after port delimiter in httplib type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10863] zlib.compress() fails with string
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 recent call last): File stdin, line 1, in module TypeError: must be bytes or buffer, not str Possible solution (sorry, newbie) are: s = b'witch which has which witches wrist watch' or s = 'witch which has which witches wrist watch'.encode(utf-8) At The Python Standard Library, secction 12. Data Compression and Archiving http://docs.python.org/py3k/library/zlib.html#module-zlib apparently example is correct: zlib.compress(string[, level]) -- assignee: d...@python components: Documentation messages: 125702 nosy: d...@python, joseluisfb priority: normal severity: normal status: open title: zlib.compress() fails with string type: compile error versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10838] subprocess __all__ is incomplete
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10838 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10841] binary stdio
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10860] Handle empty port after port delimiter in httplib
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 http://bugs.python.org/issue10860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10861] urllib2 sporadically falsely claims infinite redirect
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10860] Handle empty port after port delimiter in httplib
É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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10827] Functions in time module should support year 1900 when accept2dyear = 0
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 discussion starting at http://mail.python.org/pipermail/python-dev/2011-January/107186.html -- resolution: - fixed stage: commit review - committed/rejected superseder: - datetime.strftime dislikes years before 1900 versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10827 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10827] Functions in time module should support year 1900 when accept2dyear = 0
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue809163] Can't add files with spaces
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 (so I can improve) Thanks -- nosy: +xiscu Added file: http://bugs.python.org/file20306/test_bdist_rpm_filename_with_whitespaces.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue809163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10860] Handle empty port after port delimiter in httplib
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10858] Make source code links less prominent
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 solution to present the source, but the way it presents the source code looks foreign to sphinx docs. It would be better if the source was formatted similarly to the source examples embedded in doc pages. 2. It would be great to have at least module names hyperlinked in the source views to aid code navigation. 3. I would rather see source links appear consistently for each module and not just for an ad-hoc selection. 4. The side bar already has a Show Source link which takes to the reST source of the page. I don't think this is very useful. Maybe this link should point to the Python source or a separate python source link should appear next to it. -- nosy: +belopolsky title: Make source code links less proeminent - Make source code links less prominent ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10858] Make source code links less prominent
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 prominently displayed link at the top of each doc page. I agree that visual appearance of the ViewVC pages could be better but that's a separate issue altogether. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10858] Make source code links less prominent
É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 for some unelegant code), so I support ad-hoc selection. I also support the real fix of improving the quality of every module, but that’s longer-term. :) 4: “Show Source” is a link that is easily overlooked IMO, a seealso section makes me think people will actually see the link. There is also the minor concern of breaking expectations of people accustomed to Sphinx. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com