[issue7167] Smarter FTP passive mode
Giampaolo Rodola' billiej...@users.sourceforge.net 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 dealt by ftplib. It's just server's fault. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7167] Smarter FTP passive mode
Antoine Pitrou pit...@free.fr 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 dealt by ftplib. It's just server's fault. Yes, probably. The point was only that lftp seemed to be able to handle it, so I thought that maybe ftplib could be enhanced to match that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1160] Medium size regexp crashes python
Antoine Pitrou pit...@free.fr added the comment: Kristall, can you post the troublesome regular expression? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Giampaolo Rodola' billiej...@users.sourceforge.net 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.dirname(__file__), keycert.pem) (and add import os at the top) Done. Another remark: login() doesn't return the response, while it does on the normal FTP class. Good catch, thanks. Done. Apart from that, I'm trying to test on a TLS-enabled FTP server, but even the regular FTP class doesn't seem to work with it (I get 500 Illegal PORT command when calling retrlines('LIST')). Strange. I doubt this issue is related with my changes. I tried FTP_TLS agains proftpd, filezilla server and pyftpdlib and it works fine. New patch in attachment btw. -- Added file: http://bugs.python.org/file15163/ftplib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe
Changes by Eric Smith e...@trueblade.com: -- assignee: georg.brandl - eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2889] curses for windows (alternative patch)
Changes by jmb jeber...@free.fr: -- nosy: +jmb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe
Eric Smith e...@trueblade.com added the comment: Proposed patch attached. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file15164/issue7168.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7169] zipfile leaves a file handle open if file is zero size
New submission from skelker steve.kel...@dtn.com: 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 then fails. I have attached a script that replicates the issue. -- components: Windows files: zipfileCrash.py messages: 94236 nosy: skelker severity: normal status: open title: zipfile leaves a file handle open if file is zero size type: crash versions: Python 2.6 Added file: http://bugs.python.org/file15165/zipfileCrash.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe
Eric Smith e...@trueblade.com added the comment: Updated patch based on Georg's input. -- Added file: http://bugs.python.org/file15166/issue7168.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe
Changes by Eric Smith e...@trueblade.com: Removed file: http://bugs.python.org/file15164/issue7168.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe
Eric Smith e...@trueblade.com added the comment: A slightly improved version checked in as r75510. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7168 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes
Michael J. Fromberger michael.j.fromber...@gmail.com 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 [1] that it would be necessary to create prototype wrappers for calls into the foreign library as well. Obviously that is not the case, since your described solution works fine. [1] http://www.python.org/doc/2.6.3/library/ctypes.html#function- prototypes -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5713] smtplib gets out of sync if server returns a 421 status
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5713] smtplib gets out of sync if server returns a 421 status
Jesús Cea Avión j...@jcea.es 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 codes and should retry again later. What return code would be give back if we get 421 in other situations?. Maybe a regular connection close?. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7080] locale.strxfrm raises MemoryError
egreen egr...@operamail.com 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, since r30377. I've tested it on 10.3 (PPC), and it passed, so I enabled it again. I did, however, find that FreeBSD and Mac OS X have known bugs in wcscoll and wcsxfrm: http://www.freebsd.org/cgi/man.cgi?query=wcsxfrm (cf. patch) -- Added file: http://bugs.python.org/file15167/strxfrm_fixes_and_collation_tests_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7151] regrtest -j sometimes fails if output gets written to stderr by a test
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org http://bugs.python.org/issue7151 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Antoine Pitrou pit...@free.fr added the comment: A last problem: Traceback (most recent call last): File stdin, line 1, in module TypeError: attribute name must be string, not 'classobj' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6941] Socket error when launching IDLE
Changes by Kurt B. Kaiser k...@shore.net: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6941 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6717] Some problem with recursion handling
Changes by Kurt B. Kaiser k...@shore.net: -- nosy: +kbk priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6717 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7133] test_ssl failure
Kurt B. Kaiser k...@shore.net 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 rep...@bugs.python.org http://bugs.python.org/issue7133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7133] test_ssl failure
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue7133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7133] test_ssl failure
Antoine Pitrou pit...@free.fr added the comment: Committed in r75529. -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5833] readline update
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue5833 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: A last problem: Traceback (most recent call last): File stdin, line 1, in module 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. Perhaps Bill wants to take a look. I'd like the opinion of Bill too, specifically about what he was talking about in comments 62699 and 64093. otherwise I think you can commit. I don't have commit privileges. Someone else should do it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7145] UTF-16 BOM is not written by socket.makefile (but is expected by read)
Antoine Pitrou pit...@free.fr 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 more annoying than lacking a BOM at the beginning. -- components: +IO nosy: +pitrou priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7145 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Antoine Pitrou pit...@free.fr 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 a sign of life. -- assignee: - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Giampaolo Rodola' billiej...@users.sourceforge.net 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 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. Good. Possibly there might be another change we might want to do in future, which is adding support for CCC command, useful for reverting the control connection back to clear-text. I remember I tried to do that at the time I submitted the first patch but there was a problem with ssl's unwrap() method (I really don't remember what exactly). Anyway, I'll try to put hands on that soon and let you know what happens. The change should be backward compatible as it just consists in adding a ccc() method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7080] locale.strxfrm raises MemoryError
Antoine Pitrou pit...@free.fr added the comment: Nice work, thanks! One detail: when giving you credit, who should I mention? just egreen? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7080] locale.strxfrm raises MemoryError
Derk Drukker egr...@operamail.com added the comment: I've entered my real name. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7080] locale.strxfrm raises MemoryError
Antoine Pitrou pit...@free.fr added the comment: Ok, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7057] tkinter doc: more 3.x updates
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Tkinter nosy: +gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1378] fromfd() and dup() for _socket on WIndows
Preston Landers pland...@gmail.com 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 it's not present in 2.6 or trunk. I guess as far as I'm concerned that's fine. I'm going to use a patch to 2.6.3 to implement it for my purposes anyway. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6672] Add Mingw recognition to pyport.h to allow building extensions
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6672 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7080] locale.strxfrm raises MemoryError
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue7080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6672] Add Mingw recognition to pyport.h to allow building extensions
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: svn.python.org seems to be up again. Could you create a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6672 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7170] subclasses of (some) built-in types are not weakref-able
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: 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 support through subclassing: class Dict(dict): pass obj = Dict(red=1, green=2, blue=3) # this object is weak referenceable -- While this works fine for list and dict, it does not work for tuple or int: class Tuple(tuple): ... pass ... obj = Tuple() weakref.ref(obj) Traceback (most recent call last): File stdin, line 1, in module TypeError: cannot create weak reference to 'Tuple' object I've tried it in Python 2.5, 2.6, and 3.1. -- components: Interpreter Core messages: 94260 nosy: stutzbach severity: normal status: open title: subclasses of (some) built-in types are not weakref-able type: behavior versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7171] Add inet_ntop and inet_pton support for Windows
New submission from Jason R. Coombs jar...@jaraco.com: 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. -- components: IO messages: 94261 nosy: jaraco severity: normal status: open title: Add inet_ntop and inet_pton support for Windows type: feature request versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7172] BaseHTTPServer.BaseHTTPRequestHandler.responses[405] has a small mistake
New submission from Andrew Dalke da...@dalkescientific.com: 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 An origin server SHOULD return the status code 405 (Method Not Allowed) if the method is known by the origin server but not allowed for the requested resource. I think the message should be Specified method is invalid for this resource. That is, change server to resource. -- components: Library (Lib) messages: 94262 nosy: dalke severity: normal status: open title: BaseHTTPServer.BaseHTTPRequestHandler.responses[405] has a small mistake type: feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7172] BaseHTTPServer.BaseHTTPRequestHandler.responses[405] has a small mistake
Andrew Dalke da...@dalkescientific.com added the comment: Wasn't thinking. I'm not quoting from RFC 405, I'm quoting the 405 section from RFC 2616. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7119] email: msg.items() returns different values before and after msg.as_string()
R. David Murray rdmur...@bitdance.com 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 is called on; however the alternative (throwing away the calculated boundary after message Generation) means that stringifying the same message twice would produce two strings that are not equal...which also seems like bad design. But perhaps that would be less bad design. The underlying problem here is that the things being returned by items are strings, when they should be Header objects. That problem isn't going to be resolved until the email package rewrite happens. -- nosy: +barry, r.david.murray priority: - normal stage: - test needed versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7119 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7170] subclasses of (some) built-in types are not weakref-able
Benjamin Peterson benja...@python.org added the comment: That's why it says several builtin types. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7170] subclasses of (some) built-in types are not weakref-able
Benjamin Peterson benja...@python.org 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. -- assignee: - georg.brandl components: +Documentation -Interpreter Core nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com