[issue7170] subclasses of (some) built-in types are not weakref-able

2009-10-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: The documentation should be rewritten for clarity then. The reason you can't take weakrefs of those types is because they are implemented as "varsized" objects, so there is no constant place to add a weakref list in the memory layout of the objects.

[issue7170] subclasses of (some) built-in types are not weakref-able

2009-10-19 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I parsed the documentation this way: "Several built-in types such as list and dict do not directly support weak references" (true) "but [all of those that do not directly support weak references] can add support through subclassing" I would expect there to

[issue7170] subclasses of (some) built-in types are not weakref-able

2009-10-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's why it says "several" builtin types. -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue7119] email: msg.items() returns different values before and after msg.as_string()

2009-10-19 Thread R. David Murray
R. David Murray added the comment: The problem here is that when you are constructing a message the boundary is calculated "as needed", and returning the list of items is not one of the times when the boundary is needed. I agree that it is not good design that as_string can mutate the object it

[issue7172] BaseHTTPServer.BaseHTTPRequestHandler.responses[405] has a small mistake

2009-10-19 Thread Andrew Dalke
Andrew Dalke added the comment: Wasn't thinking. I'm not quoting from "RFC 405", I'm quoting the 405 section from RFC 2616. -- ___ Python tracker ___ ___

[issue7172] BaseHTTPServer.BaseHTTPRequestHandler.responses[405] has a small mistake

2009-10-19 Thread Andrew Dalke
New submission from Andrew Dalke : BaseHTTPServer.BaseHTTPRequestHandler.responses contains a mapping from HTTP status codes to the 2-ple (shortmessage, longmessage), based on RFC 2616. The 2-ple for 405 is ('Method Not Allowed','Specified method is invalid for this server.'), RFC 405 says "

[issue7171] Add inet_ntop and inet_pton support for Windows

2009-10-19 Thread Jason R. Coombs
New submission from Jason R. Coombs : According to the documentation, Microsoft now supports inet_ntop and inet_pton (http://msdn.microsoft.com/en-us/library/cc805843%28VS.85%29.aspx). This capability should be integrated into the socket module so it is supported cross-platform. -- compo

[issue7170] subclasses of (some) built-in types are not weakref-able

2009-10-19 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : The documentation for weakref contains the following example: http://docs.python.org/3.1/library/weakref.html -- Several built-in types such as list and dict do not directly support weak references but can add su

[issue6672] Add Mingw recognition to pyport.h to allow building extensions

2009-10-19 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: svn.python.org seems to be up again. Could you create a patch? -- ___ Python tracker ___ ___ Pyth

[issue7080] locale.strxfrm raises MemoryError

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is now committed to py3k (r75539) and 3.1 (r75541), closing. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue6672] Add Mingw recognition to pyport.h to allow building extensions

2009-10-19 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1378] fromfd() and dup() for _socket on WIndows

2009-10-19 Thread Preston Landers
Preston Landers added the comment: Hmm... revision 59004 appears to be unrelated to the main issue at hand. As far as I can tell now the status is this: the dup() and fromfd() support appears to be present in Python 3000 for Windows - at least the py3k branch. I didn't check the releases. But

[issue7057] tkinter doc: more 3.x updates

2009-10-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Tkinter nosy: +gpolo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue7080] locale.strxfrm raises MemoryError

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7080] locale.strxfrm raises MemoryError

2009-10-19 Thread Derk Drukker
Derk Drukker added the comment: I've entered my real name. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue7080] locale.strxfrm raises MemoryError

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nice work, thanks! One detail: when giving you credit, who should I mention? just "egreen"? -- ___ Python tracker ___ __

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Ah, sorry, roundup's e-mail interface ate part of the message. > The error happens when doing "from ftplib import *". Apparently __all__ > contains a non-string value. Oh, shame on me! You're right. Thanks for the great review you're doing. > Regarding m

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Regarding msg64093, the only API change Bill's suggestion would entail is an additional optional parameter to the constructor, so adding it later would be backwards-compatible. -- ___ Python tracker

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, sorry, roundup's e-mail interface ate part of the message. The error happens when doing "from ftplib import *". Apparently __all__ contains a non-string value. > I don't have commit privileges. Someone else should do it. Ok, I'll do it if Bill doesn't give

[issue7145] UTF-16 BOM is not written by socket.makefile (but is expected by read)

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The explanation is that sockets are not seekable, but the heuristic to decide whether to write a BOM relies on tell() to return 0 on start-of-file. If we unconditionally wrote a BOM, there would be a risk of duplicate BOMs depending on the use case, which is mor

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > A last problem: > > Traceback (most recent call last): > File "", line 1, in > TypeError: attribute name must be string, not 'classobj' Mmmm this doesn't say much. When does it happen? Is that the complete traceback message? > The patch is ok to me. P

[issue5833] readline update

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the readline 6.0 fix to trunk, py3k and 3.1. I'll commit it to 2.6 when the branch is unfrozen. -- ___ Python tracker ___ ___

[issue7133] test_ssl failure

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r75529. -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue7133] test_ssl failure

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: I was hoping for Bill (the _ssl maintainer)'s opinion on this, but you're right, it should be checked in. -- resolution: -> accepted stage: patch review -> commit review ___ Python tracker

[issue7133] test_ssl failure

2009-10-19 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Is there some reason that this is not being checked in? The build has been broken for five days. IMO, either revert the offending code or check this in. -- priority: normal -> high ___ Python tracker

[issue6717] Some problem with recursion handling

2009-10-19 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- nosy: +kbk priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6941] Socket error when launching IDLE

2009-10-19 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: A last problem: Traceback (most recent call last): File "", line 1, in TypeError: attribute name must be string, not 'classobj' -- ___ Python tracker __

[issue7151] regrtest -j sometimes fails if output gets written to stderr by a test

2009-10-19 Thread R. David Murray
R. David Murray added the comment: Committed to trunk in r75503, and py3k in r75513. -- assignee: -> r.david.murray resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue7080] locale.strxfrm raises MemoryError

2009-10-19 Thread egreen
egreen added the comment: The tests in TestEnUSCollation I added don't work for all encodings (e.g. Asian ones, or ASCII). Now checked for encodings which are known to work. Found and fixed a bug (result not returned) in getpreferredencoding in Lib/locale.py. This test is skipped on Mac, sinc

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is ok to me. Perhaps Bill wants to take a look, otherwise I think you can commit. -- resolution: -> accepted stage: patch review -> commit review ___ Python tracker

[issue5713] smtplib gets out of sync if server returns a 421 status

2009-10-19 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: So, if I understand the issue and the RFC correctly, when receiving a 421, we should close the connection and, if the 421 was received in the "rcpt" phase, give back a dictionary with all pending directions as "421" code, so the sending code knows they are 4xx

[issue5713] smtplib gets out of sync if server returns a 421 status

2009-10-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-19 Thread Michael J. Fromberger
Michael J. Fromberger added the comment: Thank you for setting me straight. I see now that I misunderstood the scope of `CFUNCTYPE`, as I was using it as a general wrapper when in fact it's only needed for callbacks. Mistakenly, I inferred from reading section 16.15.2.4 of the ctypes manual

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Eric Smith added the comment: A slightly improved version checked in as r75510. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Changes by Eric Smith : Removed file: http://bugs.python.org/file15164/issue7168.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Eric Smith added the comment: Updated patch based on Georg's input. -- Added file: http://bugs.python.org/file15166/issue7168.patch ___ Python tracker ___ ___

[issue7169] zipfile leaves a file handle open if file is zero size

2009-10-19 Thread skelker
New submission from skelker : I noticed today if I attempt to create a ZipFile object for read access, and the zip file is zero bytes, the ZipFile object throws an exception, but there is still an open handle to the file. So if I catch that exception, and then try to delete the file, the delete

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Eric Smith added the comment: Proposed patch attached. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file15164/issue7168.patch ___ Python tracker ___

[issue2889] curses for windows (alternative patch)

2009-10-19 Thread jmb
Changes by jmb : -- nosy: +jmb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-19 Thread Eric Smith
Changes by Eric Smith : -- assignee: georg.brandl -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > You can build the docs by going to the Doc directory and typing "make > html" there. It isn't critical anyway. Done. It's well formatted now. > The tests failed to run, I had to replace the KEYCERT declaration with: >KEYCERT = os.path.join(os.path.dir

[issue1160] Medium size regexp crashes python

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Kristall, can you post the troublesome regular expression? -- nosy: +pitrou ___ Python tracker ___ _

[issue7167] Smarter FTP passive mode

2009-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If the server is behind a NAT it should be up to the administrator to > properly configure it so that the internal address gets replaced in > PASV/EPSV replies. > Any FTP server provides this possibility. > IMHO, this is not in the realm of problems which shou

[issue7167] Smarter FTP passive mode

2009-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: If the server is behind a NAT it should be up to the administrator to properly configure it so that the internal address gets replaced in PASV/EPSV replies. Any FTP server provides this possibility. IMHO, this is not in the realm of problems which should be d