[issue3051] heapq change breaking compatibility

2010-05-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: For what it's worth, I agree with Fijal. I think the python version and the C version should behave the same, so that other implementations of Python can use the Python version and be compatible wtih CPython. -- nosy:

[issue8761] PyUnicode_CompareWithASCIIString name is not mangled (UCS2, UCS4)

2010-05-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It's fine to apply to 3.2. -- nosy: +loewis resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8761 ___

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Christophe Simonis
Changes by Christophe Simonis simonis.christo...@gmail.com: -- nosy: +Christophe Simonis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2010-05-19 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8070 ___ ___ Python-bugs-list mailing list

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I couldn't find the relevant commits, but if we didn't do it, ISTM that we should backport the fix in the next 2.6 so it behaves like in 2.7. -- nosy: +tarek ___ Python tracker

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: tarek: Issue2987 has the details on changes made for ipv6 urlparse. Those can't be backported as it's a feature. I would rather like to see whats breaking in distutils2. The url which resulted in this bug in distribute:

[issue8763] py3K bdist_msi wrongly installs itself in ALL python versions

2010-05-19 Thread Pascal Chambon
New submission from Pascal Chambon chambon.pas...@gmail.com: I've created a pure-python package with py3k's bdist_msi, and weirdly, even though the windows installer asks for the target directory, it installs the package in ALL python distributions installed (py26, py27 and py31), which is

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread davy zhang
New submission from davy zhang davyzh...@gmail.com: the function below is used to determine the proper file name of the next log file. But the question is if I set a large number of self.backupCount like 1000, it will take too long to calculate the right file name. I think it could be a

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread davy zhang
Changes by davy zhang davyzh...@gmail.com: -- components: +Library (Lib) type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8764 ___

[issue8759] 2.7: wrong user site directory on Linux; totally missing on OSX

2010-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - tarek nosy: +ronaldoussoren, tarek priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8759 ___

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - tarek nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8764 ___

[issue8759] 2.7: wrong user site directory on Linux; totally missing on OSX

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Are you sure you didn't deactivate use site ? (by turning site.ENABLE_USER_SITE off) Please check its value: import site site.ENABLE_USER_SITE True Pathes look fine on my Mac : Python 2.7b2+ (trunk:81228, May 16 2010, 14:42:34)

[issue8763] py3K bdist_msi wrongly installs itself in ALL python versions

2010-05-19 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Could you attach the source to a small example? I don't think anyone's interested in running a random .msi file. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: SOunds like a good feature to add in shutil, I'll check the patch and also compare it to distutils.spawn.find_executable() -- ___ Python tracker rep...@bugs.python.org

[issue8733] list type and UserList do not call super in __init__ and therefore, they cannot be parents in a multiple inheritence scheme

2010-05-19 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: Why does it matter? They both inherit from object, so there's no one to pass parameters to. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue8763] py3K bdist_msi wrongly installs itself in ALL python versions

2010-05-19 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Thansk for the attention, Here it is (I ran bdist_msi with the latest SVN py3k version). -- Added file: http://bugs.python.org/file17399/RSFile-1.0.tar.gz ___ Python tracker

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file17342/distutils_spawn_log.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8663 ___

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Senthil: thx for the pointer. I've fixed the problem on distribute side by catching any ValueError returned by urlparse (from 2.6 or 2.7 point of view). That said, I don't think than catching more invalid URLs in Python 2.7 should be

[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-19 Thread Christophe Combelles
Christophe Combelles cc...@free.fr added the comment: (I forgot to mention that the bug occured on python 3.1.2.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8740 ___

[issue8763] py3K bdist_msi wrongly installs itself in ALL python versions

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: did you use any particular option when running it ? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8763 ___

[issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

2010-05-19 Thread Greg Słodkowicz
Greg Słodkowicz jerg...@gmail.com added the comment: Doesn't breaking installation of packages on a major platform warrant a quicker release of a fix? -- nosy: +Greg.Slodkowicz ___ Python tracker rep...@bugs.python.org

[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-19 Thread Pascal Chambon
New submission from Pascal Chambon chambon.pas...@gmail.com: In test_fileio, one of the tests wants to ensure writing to closed raw streams fails, but it actually tries to write an unicode string, which should rather lead to an immediate TypeError. Here is a tiny patch to prevent the double

[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8765 ___ ___ Python-bugs-list

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: tarek tested on Mac OS X: the patch fixes test_warnings issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8589 ___

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: @iki: could you refactor your code so it's in shutil (and the tests in test_shutil) few remarks: only which/which_files should be public API, Next, I don't think extensions like VBS should be hardcoded if PATHEXT is not found. A pseudo-dos

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Although, all these patchs should have some tests demonstrating the bugs As discussed on IRC, fixing distutils.log package instead of setup.py is better. New patch includes unit tests. -- Added file:

[issue8759] 2.7: wrong user site directory on Linux; totally missing on OSX

2010-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The --user directory for framework installs of python on OSX has changed from a subdirectory of ~/.local to a subdirectory ~/Library. As described in the NEWS file: - Issue #8084: PEP 370 now conforms to system conventions for

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-05-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: r81319 fixed 4 calls in pythonrun.c. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6697 ___

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: For a complex number z and an integer i, 'z == i' should be exactly equivalent to 'z.real == i and z.imag == 0.0'. Like you mentioned before a lot of care is taken in 'floatobject.c' to ensure that the comparison is robust. Would it be a

[issue8763] py3K bdist_msi wrongly installs itself in ALL python versions

2010-05-19 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: None at all, a simple python setup.py bdist_msi. Once I've installed the MSI(and whatever the target python version I chose), launching it again will always trigger a repair/uninstall wizard, and the operatiosn I do with it are made

[issue8142] libffi update to 3.0.9

2010-05-19 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: It seems fixed now. -- resolution: - fixed stage: needs patch - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8142

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Like you mentioned before a lot of care is taken in 'floatobject.c' to ensure that the comparison is robust. Would it be a good approach to leverage that work? Absolutely, yes! I was thinking of moving that chunk of code out of

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: If you look closely, the system is not determining the name of the next log file. It is renaming log files - app.log.2 - app.log.3, app.log.1 - app.log.2, app.log - app.log.1. The next log file is always app.log (or whatever the base file

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thinking about it, I still like the _PyLong_CompareWithDouble plan even for trunk: there's a precedent for some PyLong methods working with plain ints as well as for longs. See e.g. PyLong_AsLongLong and friends. --

[issue7902] relative import broken

2010-05-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Does this patch seem reasonable? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7902 ___ ___

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2010-05-19 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Python 3.1 and 3.2 fail with segmentation fault when a directory in PYTHONPATH contains an empty encodings subdirectory. $ cd /tmp $ mkdir encodings $ PYTHONPATH=. python3.1 Segmentation fault --

[issue1053369] ftplib: add support for MDTM command

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Closing this out for lack of further activity. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1053369

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Meador] One of the unit tests ('test_complex.test_richcompare') explicitly checks for the overflow. [Mark] I just discovered that there's actually a test for part of this behaviour D'oh! Next time I'll read your whole message before

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: According to your log, the interpreter itself compiled fine (you can check that with ./python and even run the test suite: ./python -m test.regrtest -w), but the _ctypes extension failed configuring. -- assignee: - theller nosy:

[issue8733] list type and UserList do not call super in __init__ and therefore, they cannot be parents in a multiple inheritence scheme

2010-05-19 Thread Sagiv Malihi
Sagiv Malihi sagivmal...@gmail.com added the comment: Example: class A(object): def __init__(self): print initializing something very important # and then pay it forward... super(A, self).__init__() class B(list, A): pass b = B() # A's init is never called... --

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: From a brief glance, the approach in your patch looks fine to me. I'll have a proper look at it later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8748

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

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Could you provide an actual example code which reproduces this problem? It's not clear to me how the dispatcher instance can end up in an invalid state since handle_error() should automatically remove the invalid dispatcher instance from

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

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

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

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Could you provide an actual example code which reproduces this problem? It's not clear to me how the dispatcher instance can end up in an invalid state since handle_error() should automatically remove the invalid dispatcher instance from

[issue8763] py3K bdist_msi wrongly installs itself in ALL python versions

2010-05-19 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Are you allowing it to install into all Python versions? I have a package here at work that I make bdist_msi installers for and most of my machines have 2.6 and 3.1 on them. During the install I only choose to install it for 3.1 when the

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
New submission from Charles Solar charlesso...@gmail.com: I am compiling python on AIX 5.3. The normal configure and make works, except it fails to compile the unicodedata module. The assembler reports a bunch of these errors: Error: value of 0001268b too large for field of 2 bytes

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
Charles Solar charlesso...@gmail.com added the comment: Seems as though python 2.7 should not support --disable-unicode so this ticket is invalid. I just googled python disable unicode, but it seems that the decision to never disable unicode is recent. Closing -- status: open -

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
Changes by Charles Solar charlesso...@gmail.com: Removed file: http://bugs.python.org/file17403/config.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8767 ___

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The problem is that a warning is emited before the _warnings module is initialized: get_filter() uses _filters which is equal to NULL. Attached patch initialize the _warnings module (but not the warnings module) before

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ok, I commited my patch: r81358 (py3k). I'm waiting for the buildbots before backporting the fix to 3.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8589

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8589 ___

[issue8768] The checkempty_symmetric_difference test is never called

2010-05-19 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: In test_set.py (and test_sets.py in 2.x), there's a method named checkempty_symmetric_difference. It should be named test_checkempty_symmetric_difference so that it will actually be called as a test. It's not referenced

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Okay, this patch looks fine to me for py3k. More tests would be great, but I don't see much other cleaning up that needs doing. Just one thing: I'd make the 'i.imag == 0.0' check earlier, so that the potentially expensive long-to-float

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited to patch on distutils.log in r81359 (py3k). I'm waiting for the buildbot before backporting to 3.1. -- resolution: - fixed status: open - pending ___ Python tracker

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Why would you not want to catch all value errors? I assume (perhaps a bad thing) that distribute will repeat the returned error message in a more user friendly format. If a bug in urlparse returns a spurious ValueError, that will

[issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

2010-05-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Doesn't breaking installation of packages on a major platform warrant a quicker release of a fix? No, only security-related issues may warrant a change to the release schedule. -- title: distutils makefile from python.org

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: Removed file: http://bugs.python.org/file17385/mkpkg-round-of-pylinting.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8591 ___

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: Added file: http://bugs.python.org/file17406/mkpkg-round-of-pylinting.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8591 ___

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: Added file: http://bugs.python.org/file17407/mkpkg-round-of-pylinting.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8591 ___

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: Removed file: http://bugs.python.org/file17406/mkpkg-round-of-pylinting.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8591 ___

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch daniel.b...@gmail.com: Added file: http://bugs.python.org/file17408/mkpkg-round-of-pylinting.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8591 ___

[issue8687] sched.py module doesn't have a test suite

2010-05-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8687 ___ ___

[issue8667] Link to PEP 3147 from importlib docs

2010-05-19 Thread Ashley Sands
Ashley Sands ashley.j.sa...@gmail.com added the comment: Thanks Senthil Brett for your help. Here's my patch. It is very simple, so simple I think it may be wrong. -- keywords: +patch Added file: http://bugs.python.org/file17409/linkToPep3247.diff

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-19 Thread Orlando Irrazabal
Orlando Irrazabal oirr...@mendoza.gov.ar added the comment: Antonie, you are right, the interpreter was compiled fine, this is the output when i run python r...@host:python-2.6.5# ./python 'import site' failed; use -v for traceback Python 2.6.5 (r265:79063, May 18 2010, 19:19:48) [C] on aix5

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the Rietveld upload. I haven't had a chance to review this properly yet, but hope to do so within the next few days. One question: the production list you added to the docs says: format_string: (`byte_order_specifier`?

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Travis, this issue is still assigned to you. Do you plan to work on this at some stage, or may I unassign you? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3132

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. Something's not quite right: the _struct module fails to compile for me with this patch. I get: /Users/dickinsm/python/svn/py3k/Modules/_struct.c: In function ‘s_unpack’: /Users/dickinsm/python/svn/py3k/Modules/_struct.c:1730: error:

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah, it should have been: assert(soself-s_tree != NULL); Got it now. All tests pass. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3132

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: One more design question. For something like: 'HT{H}H', what endianness should be used when packing/unpacking the last 'H'? Should the switch to '' within the embedded struct be regarded as local to the struct? With your patch, I get:

[issue7902] relative import broken

2010-05-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon keywords: +needs review stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7902 ___

[issue8667] Link to PEP 3147 from importlib docs

2010-05-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8667 ___

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, Python 3.1 doesn't use the PYTHONWARNINGS variable: commit blocked in 3.1 (r81362). -- dependencies: -regrtest: use backslashreplace error handler for stdout status: pending - closed

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited to patch on distutils.log in r81359 (py3k) Backported to 3.1 as r81363. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8663

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8663 ___ ___

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fix commited to py3k (r81364). Wait for the buildbots beforing doing the backport. -- resolution: - fixed status: open - pending ___ Python tracker rep...@bugs.python.org

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #8611. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4352 ___ ___

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #4352. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611 ___ ___

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I thought you had a unit test, I don't see any in your commit -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8663 ___

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I thought you had a unit test, I don't see any in your commit patch -p0 ... svn ci doesn't include new files. I forgot it. r81361 includes the new file. -- ___ Python tracker

[issue8769] Straightforward usage of email package fails to round-trip

2010-05-19 Thread A.M. Kuchling
New submission from A.M. Kuchling li...@amk.ca: The attached test program shows how parsing an e-mail message with the email package, then converting the resulting message to a string, fails to round-trip properly. Instead it breaks the encoding of the subject line. The root of the problem:

[issue8769] Straightforward usage of email package fails to round-trip

2010-05-19 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: The attached patch is a possible fix; it uses the decode_header() and make_header() functions to figure out the encoding properly; it fixes my example, at least. But does it increase the odds of crashing on messages with malformed headers?

[issue8769] Straightforward usage of email package fails to round-trip

2010-05-19 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Minor fix to the patch: the import of Header could actually be removed, since the class is no longer referenced at all with this change. -- ___ Python tracker rep...@bugs.python.org

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If I understood correctly, this issue is a regression introduced by r67055 (to fix #4213). Read: http://bugs.python.org/issue4213#msg75387 See also r67057 (issue #3723). -- ___ Python

[issue1608805] Py_FileSystemDefaultEncoding can be non-canonical

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a duplicate of #4213 which was fixed by r67055 (py3k). -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org

[issue4388] test_cmd_line fails on MacOS X

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: +Unicode nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4388 ___

[issue4388] test_cmd_line fails on MacOS X

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is specific to Mac OS X because the file system encoding is hardcoded to UTF-8 on this OS. As written in msg76244, the problem is that the encoding is different for input (sys.argv) and output arguments (arguments of

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: @Ronald: Ah, I see. So on Mac, Python 2.7 (with default site configuration) will not pickup packages installed in ~/.local, correct? It will, from now onwards, only consider ~/Library/Package as the user site directory? I ask

[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Will you post to Rietveld, please? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8729 ___

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: On further analysis: $ /tmp/apy27/bin/python -c from sysconfig import get_path; print get_path('purelib', 'posix_user') /home/sridharr/.local/lib/python/2.7/site-packages $ From sysconfig.py: 'posix_user': { 'stdlib':

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: python/2.7/site-packages is a typo in sysconfig, it should be python2.7/site-packages you are right. Fixing it.. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8759

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Fixed in r81371, r81372 Thanks! I let you close the issue once you are through with the rest of the talk. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8759

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: python2.7 -m sysconfig at the moment does not print anything. python2.7 -m site, for instant, prints useful information. Perhaps the output of `sysconfig.get_path` can be pretty printed? -- assignee: tarek components:

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: You mean get_paths ? It could also print out get_config_vars() output -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8770 ___

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8770 ___ ___

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Yes, get_paths(). It could also print get_config_vars(), yes. If you want to make it sophisticated you could support arguments/options using the 'argparse' module. :) -- ___ Python

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: weird, just realized python -m site doesn't print anything for me.. If you want to make it sophisticated you could support arguments/options using the 'argparse' module. :) Let's add the simplest case at first ;) --

[issue8559] test_gdb: test_strings() fails with ASCII locale

2010-05-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r81375 improves unicode support of libpython.py. I hope that it will be enough to fix test_strings() failures. -- ___ Python tracker rep...@bugs.python.org

[issue3819] urllib2 sends Basic auth across redirects

2010-05-19 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: FYI, this change caused a regression in Mercurial - see http://mercurial.selenic.com/bts/issue2179. -- nosy: +kiilerix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3819

[issue8771] Socket freezing under load issue on Mac.

2010-05-19 Thread Alice Bevan-McGregor
New submission from Alice Bevan-McGregor al...@gothcandy.com: Using the wsgiref simple HTTP server or any other capable of 2000 requests/sec. demonstrates an issue with Macintosh sockets. Mac OS X Version: 10.6.3 (Build 10D573) Python Version: 2.6.1 (32-bit) The minimal application needed to

  1   2   >