[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: It would seem that we need to be more defensive in our calls. We need to check to make sure that the socket isn't closed before calling read/write/expt events. -- ___ Python

[issue5442] test_importlib fails on Mac OSX 10.5.6 w/ case-sensitive file system

2009-05-07 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Damn, that patch should have caused those case-sensitivity tests to be skipped. I will dig into this later today and hopefully have another patch to test some time tonight. -- resolution: fixed - title: [3.1alpha1,2,beta1] test_importlib

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: Mark, try this: if flags select.POLLIN and (obj.connected or obj.accepting): obj.handle_read_event() if flags select.POLLOUT and obj.connected: obj.handle_write_event() if

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: That fixes test_empty_line (in test_asynchat.py), but now I get a hang in test_close_when_done. By the way, here's an interesting site that goes some way to explaining what to expect from select.poll and EOF.

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Getting rid of the and ... on the handle_read_event didn't make a difference: I still get the hang in test_close_when_done. But if I get rid of the and clause on the handle_write_event branch then all the test_asynchat tests pass. So that

[issue5952] AttributeError exception in urllib.urlopen

2009-05-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Thanks for the info. This problem is a duplicate of issue767111, which was corrected two years ago. I suggest you to upgrade to 2.5 at least. -- resolution: - out of date status: open - closed

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: I went ahead and plugged my mac in (which reminded me of why I unplugged it in the first place), and I'm able to reproduce your error in the test after my proposed modifications. One thing to remember is that the test is

[issue5941] customize_compiler broken

2009-05-07 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Fixed in r72445 and r72446 Thanks David ! -- status: open - closed versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5941

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-05-07 Thread Kevin Watters
Kevin Watters kevinwatt...@gmail.com added the comment: I wasn't sure--the docs for SSLSocket.read (http://docs.python.org/library/ssl.html#ssl.SSLSocket.read) say Reads up to nbytes bytes from the SSL-encrypted channel and returns them. With that up to I wasn't sure that an empty string

[issue3992] removed custom log from distutils

2009-05-07 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: Removed file: http://bugs.python.org/file11650/remove-custom-log.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___

[issue3992] removed custom log from distutils

2009-05-07 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: Removed file: http://bugs.python.org/file13260/remove-custom-log-revised.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___

[issue3992] removed custom log from distutils

2009-05-07 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I removed the _global_logger/logger variables, because they're superfluous Yes but by adding log instead, and removing log = _global_log.log you are breaking Distutils because its uses log.log Besides, the rest seem OK. I'll work on your

[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored

2009-05-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: After some attempts, it seems that PYTHONPATH is completely ignored if it is longer than 256 characters -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored

2009-05-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Confirmed in PC/getpathp.c: size_t r = mbstowcs(wenvpath, _envpath, MAXPATHLEN+1); envpath = wenvpath; if (r == (size_t)-1 || r = MAXPATHLEN) envpath = NULL;

[issue5442] test_importlib fails on Mac OSX 10.5.6 w/ case-sensitive file system

2009-05-07 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file13914/case_sensitivity_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5442 ___

[issue5442] test_importlib fails on Mac OSX 10.5.6 w/ case-sensitive file system

2009-05-07 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, Ismail, here is another patch. Revert the last one and try this. Looks like I was being stupid by forgetting to remove the 'darwin' platform check. But I also made the check simpler. -- status: open - pending Added file:

[issue3992] removed custom log from distutils

2009-05-07 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I have reworked your patch a little bit so it works for Distutils. But I still need to digg on the initialization problem to see if we can get rid of the problem : the new logging will not get imported as well during tests so it is not what

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: I reran the test_synchat.py test after patching to the Lib/asyncore.py and Lib/test/test-asynchat.py files of Python-3.1b1 on MacOS X 10.4.11 (Intel). The test now hangs in ... test_string_producer (__main__.TestAsynchat) ... ok

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: As an aside, I was testing against trunk, not 3.1b1 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5798 ___

[issue3992] removed custom log from distutils

2009-05-07 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: ok the problem occurs because site.py calls distutils.util.get_platform in addbuilddir. I'll see what we can do in there. -- ___ Python tracker rep...@bugs.python.org

[issue5798] test_asynchat fails on Mac OSX

2009-05-07 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com added the comment: Understood. On Thu, May 7, 2009 at 5:18 PM, Josiah Carlson rep...@bugs.python.orgwrote: Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: As an aside, I was testing against trunk, not 3.1b1 . --

[issue5964] WeakSet cmp methods

2009-05-07 Thread Robert Schuppenies
New submission from Robert Schuppenies robert.schuppen...@gmail.com: Running this code: import weakref class C: pass ... ws = weakref.WeakSet([C]) if ws == 1: ... print(1) ... gives me the following exception: Traceback (most recent call last): File stdin, line 1, in module

[issue5965] Format Specs: doc 's' and implicit conversions

2009-05-07 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: String Services / Format Specification Mini-Language (7.1.3.1 in 3.1) Building on #5963: document type 's' and implicit conversions. Near the top, after A general convention is that an empty format string () produces the same result as if you

[issue5965] Format Specs: doc 's' and implicit conversions

2009-05-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I forgot to include: Error messages for mismatches between specification type and value type currently look like ValueError: Unknown conversion type d They would be *much* clearer written as something like ValueError: Conversion type d is

[issue5963] Doc error: integer precision in formats

2009-05-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Whoops, I believe my suggested replacement. A precision is not allowed for integer values. should really be A precision is not allowed for integer presentation types. or something similar. If you did not change the end of the sentence, please

[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored

2009-05-07 Thread Suzumizaki
Changes by Suzumizaki suzumiz...@free.japandesign.ne.jp: -- nosy: +Suzumizaki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5924 ___ ___

[issue4351] [PATCH] Better stacklevel for GzipFile.filename DeprecationWarning

2009-05-07 Thread Philip Jenvey
Philip Jenvey pjen...@users.sourceforge.net added the comment: this and more applied in r72458 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4351 ___

[issue5442] test_importlib fails on Mac OSX 10.5.6 w/ case-sensitive file system

2009-05-07 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Down to 1 failure: FAILED (failures=1) test test_importlib failed -- Traceback (most recent call last): File /Users/cartman/Python- 3.1b1/Lib/importlib/test/source/test_abc_loader.py, line 271, in test_lacking_parent

[issue5809] No such file or directory with framework build under MacOS 10.4.11

2009-05-07 Thread Ned Deily
Ned Deily n...@acm.org added the comment: --enable-framework and --enable-shared are mutually exclusive options. See, for example, the discussion in Issue4472. Use one or the other, not both. As a side comment, I think this error crops up often enough that it would make sense to add a

<    1   2   3