[issue4788] two bare except clauses are used in the ssl module

2008-12-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4788 ___ ___ Python

[issue4791] retrlines('LIST') and dir hang at end of listing in ftplib (python3.0)

2009-01-02 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4791

[issue4791] retrlines('LIST') and dir hang at end of listing in ftplib (python3.0)

2009-01-02 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I'm unable to reproduce the issue. Could you please repeat the test by using the timeout parameter as such? ftp = ftplib.FTP('ftp.edgecastcdn.net', user='theusername', passwd='thepassword') ftp = ftplib.FTP

[issue4814] ftplib does not honour timeout parameter for active data connections

2009-01-02 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' billiej...@users.sourceforge.net: When using the optional ftplib.FTP()'s timeout parameter which specifies a timeout in seconds for blocking operations like the connection attempt, it is applied on both FTP control and passive data channel (if any

[issue3823] ssl.wrap_socket() is incompatible with servers that drop privileges, due to keyfile requirement

2009-01-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3823

[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2009-01-07 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' billiej...@users.sourceforge.net: As came out here: http://groups.google.it/group/comp.lang.python/browse_thread/thread/7d5b96f9bacb03d3?hl=it# ...the ssl module does not provide any facility to disable SSL version 2. This is very important when writing

[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2009-01-07 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Actually, that's not quite true. Specifying TLSv1 or SSLv3 on the server side will disable SSLv2. There are use cases like FTPS where it is desirable that servers support SSLv3 *and* TLSv1. To do that by using OpenSSL

[issue4814] ftplib does not honour timeout parameter for active data connections

2009-01-07 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I'm sorry, I realized right now that settimeout() should be used also *before* invoking accept(), to avoid the client to stall in case the server does not establish any connection. The second patch in attachment does

[issue4931] distutils does not show any error msg when can't build C module extensions due to a missing C compiler

2009-01-13 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' billiej...@users.sourceforge.net: Today I was trying to compile a module using an extension in C and noticed there are differences between compiling it on Python 2.5 and 2.6. I was trying to compile psutil (svn checkout http://psutil.googlecode.com/svn/trunk

[issue4931] distutils does not show any error msg when can't build C module extensions due to a missing C compiler

2009-01-13 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Currently I haven't any C compiler installed on my system so I expect distutils to report that every time I try to compile a C module extension. Python 2.5 did that while Python 2.6 does

[issue4929] smptlib.py can raise socket.error

2009-01-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4929

[issue4967] Bugs in _ssl object read() when a buffer is specified

2009-01-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4967

[issue4972] let's equip ftplib.FTP with __enter__ and __exit__

2009-01-22 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: As for ftplib patch you should make sure that close() gets called in any case but never more than once. You can use finally to satisfy the first requirement and self.sock is not None to check the second condition: +def

[issue5081] Unable to print Unicode characters in Python 3 on Windows

2009-01-27 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' billiej...@users.sourceforge.net: While trying to port pyftpdlib to Python 3.x I noticed that Python 3.0 has a serious issue since unable to print certain unicode characters on stdout: Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel

[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal (Py3)

2009-01-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5110

[issue4673] Distutils should provide an uninstall command

2009-01-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4673

[issue5107] built-in open(..., encoding=vague_default)

2009-01-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5107

[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging

2009-01-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5103

[issue5097] asyncore.dispatcher_with_send undocumented

2009-01-31 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5097

[issue5115] Extend subprocess.kill to be able to kill process groups

2009-01-31 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5115

[issue3871] cross and native build of python for mingw32 with distutils

2009-02-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue2578] Figure out what to do with unittest's redundant APIs

2009-02-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2578

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-12 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I'm not sure this should be handled in ssl.py. ssl.py correctly raises ERROR_WANT_READ/WRITE if the shutdown operation didn't complete and that's ok. It should be up to the upper application (in our case asyncore) to deal

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-12 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I'd really love to understand what the state of the TCP connection is here. I'm presuming that it's still open, because otherwise you'd get a different error from OpenSSL. So what's the error that's triggering

[issue8003] Fragile and unexpected error-handling in asyncore

2010-03-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola, josiah.carlson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8003

[issue6768] asyncore file_wrapper leaking file descriptors?

2010-03-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6768

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-03-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6589

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-22 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: The intuitive explanation seems to be: - there are some bytes available for reading on the *TCP socket*, therefore asyncore calls the read handler - however, there are not enough bytes for OpenSSL to actually decrypt

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-22 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: The patch isn't exactly correct: it should ideally retry the unwrap() call later, rather than simply ignore the error. But since it's just used for testing, it looks sufficient. Actually unwrap() should already be called

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: By reading the doc it is not clear if we should activate this option only when dealing with blocking sockets. What's the behavior with non blocking ones? Does it result in a no-op or does it hang the applcation

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Mmm you're right. Sorry. I'm clearly too tired. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8222

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-25 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: @Antoine Pitrou: ok, I think I'll have to be able to replicate the error in order to try to fix this. I'm gonna try on FreeBSD and another Linux box later today. -- ___ Python

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-25 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Florent can you give me a clue on how to make python use OpenSSL 0.9.8k on Ubuntu? Despite I compiled and installed 0.9.8k from sources the system version keeps being 0.9.8g and I guess that Python is using that one. Do I

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-25 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Ok, I've finally been able to reproduce the issue by installing OpenSSL 0.9.8m on my Ubuntu box. By doing some debugging I'm starting to think that maybe there's something wrong with the shutdown() method implementation

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Yes, it's the _sslobj.shutdow() call: File test_ftplib.py, line 332, in handle_close self.socket = self.socket.unwrap() File /usr/local/lib/python2.7/ssl.py, line 258, in unwrap s = self._sslobj.shutdown() error

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: No I haven't, but I tried just now and I get the same error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8108

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: As suggested in this thread: http://mirt.net/pipermail/stunnel-users/2005-July/000661.html ...I made the following change to the Makefile: - LIBS= -lpthread -ldl -lutil + LIBS= -lpthread -ldl -lutil -lz

[issue8321] Give access to openssl version number

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I was about to open a request for this. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8321

[issue8321] Give access to openssl version number

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: import ssl Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python2.7/ssl.py, line 62, in module from _ssl import OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_INFO, OPENSSL_VERSION

[issue8321] Give access to openssl version number

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: The ./configure - make - make install process went fine, or at least, I think so, as it completed without reporting errors or exiting. ...But maybe I'm doing something wrong as just a little while ago I was modifying _ssl.c

[issue8321] Give access to openssl version number

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: You were right: make output had an error involving ssl I didn't notice. My bad. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8321

[issue8324] add a distutils test command

2010-04-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8324

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: def handle_error(self): -raise +# Ignore errors while closing, because the remote end could have +# abruptly shut down the TCP connection while we are still +# waiting for SSL

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: By the way, this broken pipe error could be due to the fact that the FTP_TLS client never tries to call unwrap() on its SSL socket. Perhaps the close() method should be overriden? ftplib.FTP_TLS class already calls unwrap

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-06 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I don't understand your reasoning. These are separate connections, closing one shouldn't affect the other. I meant another thing. I was talking about the fact that the test server attempts to shutdown() both control

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

2010-04-11 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Thinking back about this, I wonder whether FTPS could be a better name to use instead of FTP_TLS. It's shorter, easier to remember, and also makes more sense since also SSL can be used, not only TLS

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-04-14 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: I'm the one who recently added FTPS support to ftplib.py and wrote tests for both FTP and FTPS. I'm not the maintaner of the module but I'd like to be notified in case of issues about it, so would it make sense for me

[issue3823] ssl.wrap_socket() is incompatible with servers that drop privileges, due to keyfile requirement

2010-04-15 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Any update about this issue? This should be marked as high priority, imho. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3823

[issue6916] Remove deprecated items from asynchat

2010-04-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6916

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-17 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: If everyone agrees on error: [Errno 0] Error being a legitimate alias for a connection closed event condition then I'd say the test server looks good, even if I think that expecting a ssl.SSLError derived exception would have made more

[issue4814] ftplib does not honour timeout parameter for active data connections

2010-04-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4814

[issue6789] ftplib storelines does not honor strings returned in fp.readline

2010-04-17 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Closed as a duplicate of 6822 which provides a patch. -- nosy: +giampaolo.rodola resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue3817] ftplib: ABOR does not consider 225 response code

2010-04-18 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Fixed as r80172 (python 2.7) and r80176 (python 3.2). -- assignee: - giampaolo.rodola priority: - normal resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior versions: +Python 2.6, Python 2.7

[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response

2010-04-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1726451

[issue1037516] ftplib PASV error bug

2010-04-18 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Closing this out as invalid as an exception being raised after an invalid PASV response makes perfect sense. -- resolution: - rejected stage: - committed/rejected status: open - closed type: - behavior

[issue6095] os.curdir as the default argument for os.listdir

2010-04-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6095 ___ ___ Python-bugs

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: The patch in attachment implements support for epoll() and kqueue() by adding a new poller argument to asyncore.loop(). However, I had a chat with Jean Paul Calderone today which pointed out how useless this is. =) The problem

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6692 ___ ___ Python-bugs-list

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Forgot to add the patch. -- keywords: +patch Added file: http://bugs.python.org/file16994/asyncore.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6692

[issue4814] ftplib does not honour timeout parameter for active data connections

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Fixed as r80226 (2.7) and r80228 (3.2). -- components: +Library (Lib) priority: - normal resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2010-04-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4142 ___ ___ Python-bugs

[issue3596] Provide a way to disable SSLv2 (or better yet, disable by default)

2010-04-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3596

[issue3596] Provide a way to disable SSLv2 (or better yet, disable by default)

2010-04-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3596 ___ ___ Python-bugs

[issue8483] asyncore.dispatcher.__repr__() is weird

2010-04-21 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8483 ___ ___ Python-bugs

[issue8483] asyncore.dispatcher.__repr__() is weird

2010-04-21 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I think the problem relies in here: # cheap inheritance, used to pass all other attribute # references to the underlying socket object. def __getattr__(self, attr): return getattr(self.socket, attr) I wonder why

[issue8483] asyncore.dispatcher.__repr__() is weird

2010-04-21 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Unfortunately, even if forwarding everything to the socket is questionable, it would probably be a really bad idea to change it, since there is likely code in the field depending on this behavior. I agree, even if it would break

[issue8483] asyncore.dispatcher's __getattr__ method produces confusing effects

2010-04-21 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: You're absolutely right. Patch in attachment. -- keywords: +patch Added file: http://bugs.python.org/file17026/asyncore.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue8490] asyncore test suite

2010-04-21 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: The patch in attachment provides actual tests for asyncore.dispatcher class API, including all handle_* callback methods. -- assignee: josiahcarlson files: asyncore.patch keywords: patch, patch messages: 103896 nosy

[issue8490] asyncore test suite

2010-04-22 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: should be 'listens' [...] should be 'bound' done I'd prefer to see a 'BaseTestAPI' that has no base class, and two TestCase subclasses that use BaseTestAPI as a mixin, one for use_poll=True and one for use_poll=False. done - you

[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Idea: wouldn't it be better to provide a more powerful accept_mail method instead of accept_domain? -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue6768] asyncore file_wrapper leaking file descriptors?

2010-04-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I'm not sure how to reproduce this issue but I doubt calling close() from __del__ would solve the problem, neither would be a good idea as close() might end up being called more than once, which is not desirable. Try to paste the code

[issue751758] ftplib.retrbinary fails when called from retrlines callback

2010-04-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Closing this out as rejected. -- resolution: - rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue751758

[issue8490] asyncore test suite

2010-04-24 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Builbots are all ok except Solaris which makes me think that maybe asyncore is broken on such platform: http://python.org/dev/buildbot/builders/sparc%20solaris10%20gcc%20trunk/builds/728/steps/test/logs/stdio I've tried to adjust the tests

[issue8536] Support new features of ZLIB 1.2.4

2010-04-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Do you intend to provide a patch? -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8536

[issue6916] Remove deprecated items from asynchat

2010-04-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I seem to remember that those classes were initially removed and then re-added by Josiah for backward compatibility (see discussions in issue 1641 and issue 1736190). Despite practically useless after the changes applied to asynchat

[issue8543] asynchat documentation issues

2010-04-26 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: I recently took a look at asynchat doc and found out it has some issues which should be addressed. In my opinion the following methods and functions should NOT be mentioned: - async_chat.refill_buffer() this has been removed in Python

[issue5565] Strange behavior when I logout() with IMAP4_SSL

2010-04-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5565 ___ ___ Python-bugs

[issue8106] SSL session management

2010-04-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8106 ___ ___ Python-bugs

[issue6560] socket sendmsg(), recvmsg() methods

2010-04-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6560 ___ ___ Python-bugs

[issue7865] io close() swallowing exceptions

2010-04-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7865 ___ ___ Python-bugs

[issue5178] Add context manager for temporary directory

2010-04-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5178 ___ ___ Python-bugs

[issue8570] 2to3 crashes with AttributeError: 'int' object has no attribute 'startswith'

2010-04-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8570 ___ ___ Python-bugs

[issue8569] Upgrade OpenSSL in Windows builds

2010-04-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8569 ___ ___ Python-bugs

[issue8543] asynchat documentation issues

2010-04-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: As per discussion with Josiah I'm leaving fifo class alone as it can still be used also with the newer producer_fifo implementation (changed in Python 2.6). The other changes described in my comments above still hold. Committed in r80631

[issue8573] Buggy _strerror in asyncore

2010-04-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Good catch. I modified your patch a little bit including a catch for OverflowError exception and a last attempt to look up into errno.errorcode: def _strerror(err): try: return strerror(err) except (ValueError

[issue1641] asyncore delayed calls feature

2010-04-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Assuming this is still desirable I'd really like to move forward with this issue. The current situation is that we have two patches. My patch pros: * affects asyncore.py only * (imho) cleaner, as it just adds one class

[issue6822] Error calling .storlines from ftplib

2010-05-01 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Attached is a patch which fixes FTP_TLS class as well and changes the test server a little bit. Shouldn't retrlines() suffer the same issue? -- assignee: - giampaolo.rodola nosy: +giampaolo.rodola versions: +Python 3.1, Python

[issue8594] Add a source_address option to ftplib

2010-05-01 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: Similarly to issue 3972 the patch in attachment adds a new source_address option to FTP class to bind to a specific address when connecting to a remote FTP server. It must be noted that this gets done for both control and passive data

[issue1661754] ftplib passive ftp problem on multihomed clients

2010-05-01 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Issue 8594 is related with this one. -- superseder: - Add a source_address option to ftplib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1661754

[issue8598] test/support: don't use localhost as IPv6 host name

2010-05-02 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8598 ___ ___ Python-bugs

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-02 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: find_unused_port is the wrong approach altogether. Uses of it should be replaced by bind_port and then find_unused_port should be removed I agree find_unused_port() is the wrong approach in general, but there are certain cases where

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-03 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Any time you have any API that you want to test that requires a pre-allocated port number, you're going to have intermittent failures. Such APIs are broken and should be fixed where possible and avoided otherwise. You mean

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8576 ___ ___ Python-bugs-list mailing list

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-03 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Any time you have any API that you want to test that requires a pre-allocated port number, you're going to have intermittent failures. Such APIs are broken and should be fixed where possible and avoided otherwise. You mean

[issue8604] Adding an atomic FS write API

2010-05-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8604 ___ ___ Python-bugs

[issue3620] test_smtplib is flaky

2010-05-03 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Adding this: def handle_error(self): raise ...to SimSMTPChannel class would help to provide a clearer error message to understand where exactly EBADF comes from, altough I think this was an old asyncore bug which have

[issue8483] asyncore.dispatcher's __getattr__ method produces confusing effects

2010-05-04 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: As per discussion on #python-dev we think it's better to proceed as follows: for python 2.7 and 3.2: - fix __getattr__ error message - raise a DeprecationWarning if cheap inheritance is used and definitively remove its support

[issue8573] Buggy _strerror in asyncore

2010-05-06 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Yes, I think it's better to remain consistent with the rest of the module which uses %s all around the place, also for backward compatibility in case someone wants to copy asyncore.py shipped with recent python versions and use

[issue3620] test_smtplib is flaky

2010-05-06 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Done in r80882 for ftplib and smtplib modules. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3620

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

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

<    1   2   3   4   5   6   7   8   9   10   >