[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Christophe Simonis
Changes by Christophe Simonis : -- nosy: +Christophe Simonis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2010-05-19 Thread Ray.Allen
Changes by Ray.Allen : -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé 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 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: "http://www.famfamfam.com](http://www

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

2010-05-19 Thread Pascal Chambon
New submission from Pascal Chambon : 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 particularly embarassing si

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread davy zhang
New submission from davy zhang : 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 better way to do this

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread davy zhang
Changes by davy zhang : -- components: +Library (Lib) type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2010-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek nosy: +ronaldoussoren, tarek priority: normal -> high ___ Python tracker ___ ___ Pyt

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé 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) [GCC 4.0.1 (Ap

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

2010-05-19 Thread Eric Smith
Eric Smith 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 __

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé 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 ___

[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 : Why does it matter? They both inherit from object, so there's no one to pass parameters to. -- nosy: +benjamin.peterson ___ Python tracker ___

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

2010-05-19 Thread Pascal Chambon
Pascal Chambon 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 : Removed file: http://bugs.python.org/file17342/distutils_spawn_log.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé 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 considered as a feature.

[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-19 Thread Christophe Combelles
Christophe Combelles added the comment: (I forgot to mention that the bug occured on python 3.1.2.) -- ___ Python tracker ___ ___ Pyth

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

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: did you use any particular option when running it ? -- nosy: +loewis ___ Python tracker ___ ___ Python-

[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 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 ___

[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-19 Thread Pascal Chambon
New submission from Pascal Chambon : 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 error cause" danger - thi

[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-19 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: tarek tested on Mac OS X: the patch fixes test_warnings issue. -- ___ Python tracker ___ ___ Python-

[issue444582] Finding programs in PATH, addition to os

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé 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 shell just runs .exe

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor 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: http://bugs.python.org/file17401/distutils_log_b

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

2010-05-19 Thread Ronald Oussoren
Ronald Oussoren 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 framework builds on MacOS X.

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

2010-05-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: r81319 fixed 4 calls in pythonrun.c. -- ___ Python tracker ___ ___ Python-bugs-

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

2010-05-19 Thread Meador Inge
Meador Inge 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 good approach to le

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

2010-05-19 Thread Pascal Chambon
Pascal Chambon 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 on ALL python versions

[issue8142] libffi update to 3.0.9

2010-05-19 Thread Florent Xicluna
Florent Xicluna added the comment: It seems fixed now. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker ___ __

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

2010-05-19 Thread Mark Dickinson
Mark Dickinson 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 float_richcompare and

[issue8764] logging RotatingFileHandler cause too long to fininsh

2010-05-19 Thread Vinay Sajip
Vinay Sajip 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 name is, I've just

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

2010-05-19 Thread Mark Dickinson
Mark Dickinson 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 added the comment: Does this patch seem reasonable? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[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 : 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 -- components: Interpreter Core

[issue1053369] ftplib: add support for MDTM command

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Closing this out for lack of further activity. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ _

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

2010-05-19 Thread Mark Dickinson
Mark Dickinson 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 responding to the

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-19 Thread Antoine Pitrou
Antoine Pitrou 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: +pitrou, theller

[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 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 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 ___ _

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

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 the socket_map

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

2010-05-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

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

2010-05-19 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 the socket_map if

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

2010-05-19 Thread Brian Curtin
Brian Curtin 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 extensions are compiled

[issue8721] urlparse.urlsplit regression in 2.7

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-05-19, at 5:00 AM, Tarek Ziadé wrote: > I've fixed the problem on distribute side by catching any ValueError returned > by urlparse (from 2.6 or 2.7 point of view). Catching ValueError will catch *every* ValueError raised, rather than only the in

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
New submission from Charles Solar : 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 at 006d Th

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
Charles Solar 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 -> closed ___

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
Changes by Charles Solar : Removed file: http://bugs.python.org/file17403/config.log ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2010-05-19 Thread STINNER Victor
STINNER Victor 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 initfsencoding(). initfsencoding() is th

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

2010-05-19 Thread STINNER Victor
STINNER Victor 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 ___

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

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8768] The checkempty_symmetric_difference test is never called

2010-05-19 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : 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 anywhere else. The test veri

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

2010-05-19 Thread Mark Dickinson
Mark Dickinson 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 check can be avoided

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor 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 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 presumably be found (and t

[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 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 installer doesn't work o

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Removed file: http://bugs.python.org/file17385/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Added file: http://bugs.python.org/file17406/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Added file: http://bugs.python.org/file17407/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Removed file: http://bugs.python.org/file17406/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Removed file: http://bugs.python.org/file17407/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8591] update mkpkg to latest coding standards

2010-05-19 Thread Dan Buch
Changes by Dan Buch : Added file: http://bugs.python.org/file17408/mkpkg-round-of-pylinting.patch ___ Python tracker ___ ___ Python-bugs-list m

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

2010-05-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8667] Link to PEP 3147 from importlib docs

2010-05-19 Thread Ashley Sands
Ashley Sands 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 ___ Python tracker

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-19 Thread Orlando Irrazabal
Orlando Irrazabal 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 Type "help", "copyright"

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson 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`? `type_string`)* This sugg

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson 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 ___ _

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson 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: ‘PyStructObject’ h

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, it should have been: assert(soself->s_tree != NULL); Got it now. All tests pass. :) -- ___ Python tracker ___ ___

[issue3132] implement PEP 3118 struct changes

2010-05-19 Thread Mark Dickinson
Mark Dickinson added the comment: One more design question. For something like: '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: >>> pack('H}H', 1, (2,)

[issue7902] relative import broken

2010-05-19 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Pyth

[issue8667] Link to PEP 3147 from importlib docs

2010-05-19 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

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

2010-05-19 Thread STINNER Victor
STINNER Victor 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 ___ Python tracker

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: > I commited to patch on distutils.log in r81359 (py3k) Backported to 3.1 as r81363. -- status: pending -> open ___ Python tracker ___

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: Fix commited to py3k (r81364). Wait for the buildbots beforing doing the backport. -- resolution: -> fixed status: open -> pending ___ Python tracker

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

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: See also #8611. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: See also #4352. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: I thought you had a unit test, I don't see any in your commit -- ___ Python tracker ___ ___ Python-bugs

[issue8663] Failed compile in a non-ASCII path

2010-05-19 Thread STINNER Victor
STINNER Victor 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 : 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: the subject i

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

2010-05-19 Thread A.M. Kuchling
A.M. Kuchling 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? Should it go into

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

2010-05-19 Thread A.M. Kuchling
A.M. Kuchling 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 _

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

2010-05-19 Thread STINNER Victor
STINNER Victor 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 tracker

[issue1608805] Py_FileSystemDefaultEncoding can be non-canonical

2010-05-19 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of #4213 which was fixed by r67055 (py3k). -- resolution: -> duplicate status: open -> closed ___ Python tracker _

[issue4388] test_cmd_line fails on MacOS X

2010-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4388] test_cmd_line fails on MacOS X

2010-05-19 Thread STINNER Victor
STINNER Victor 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 child processes). As written in

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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 because I just want to double

[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 added the comment: Will you post to Rietveld, please? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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': '{userbase}/lib/pytho

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé 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 ___ __

[issue8759] 2.7: wrong user site directory on Linux

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé 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 ___ _

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

2010-05-19 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : "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: Distutils messages: 106

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

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: You mean get_paths ? It could also print out get_config_vars() output -- ___ Python tracker ___ ___ Py

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

2010-05-19 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2010-05-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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 tracker

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

2010-05-19 Thread Tarek Ziadé
Tarek Ziadé 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 added the comment: r81375 improves unicode support of libpython.py. I hope that it will be enough to fix test_strings() failures. -- ___ Python tracker ___ __

[issue3819] urllib2 sends Basic auth across redirects

2010-05-19 Thread Mads Kiilerich
Mads Kiilerich added the comment: FYI, this change caused a regression in Mercurial - see http://mercurial.selenic.com/bts/issue2179. -- nosy: +kiilerix ___ Python tracker ___ _

[issue8771] Socket freezing under load issue on Mac.

2010-05-19 Thread Alice Bevan-McGregor
New submission from Alice Bevan-McGregor : 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 demonstrate the pr

  1   2   >