[issue8374] Some locales are unsupported

2010-04-11 Thread Éric Araujo
Éric Araujo added the comment: What I’m saying is that the original module is not a bug. I’ll let Martin confirm or infirm :) Regards -- ___ Python tracker ___

[issue8374] Some locales are unsupported

2010-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: This doesn't look like a bug. You must install a locale before it gets available to Python. Furthermore, according to the original traceback ( http://launchpadlibrarian.net/43012745/quickshot-latin.log ), the locale module isn't even involved. -- nos

[issue8374] Some locales are unsupported

2010-04-11 Thread Luke Jennings
Luke Jennings added the comment: Sorry for the confusion but that bug report has two very similar problems to it if you look at https://bugs.edge.launchpad.net/quickshot/+bug/554861/comments/7 and https://bugs.edge.launchpad.net/quickshot/+bug/554861/comments/6 . I think that is calling the lo

[issue1004696] translate Windows newlines when installing scripts on POSIX

2010-04-11 Thread Éric Araujo
Éric Araujo added the comment: I’m shocked to learn this bug is still valid. Reassigning to Distutils2, as Distutils is frozen. This bug is a particular case of #870479 Regards -- components: +Distutils2 -Distutils title: translate Windows cr-lf when installing scripts on Linux -> tr

[issue8368] Memory leak on multi-threaded PyObject_CallObject

2010-04-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, it consumes more memory - why do you think there is a leak? -- ___ Python tracker ___ ___ Pytho

[issue8374] Some locales are unsupported

2010-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, my diagnosis was wrong. The locale module contains a list of locale aliases and some of the Serbian ones are missing. A recent locale.alias file from X11 is more complete. -- nosy: +lemburg priority: -> normal resolution: invalid -> versio

[issue8374] Some locales are unsupported

2010-04-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: getdefaultlocale is inherently unmaintainable, and shouldn't be used by applications. I wish it was removed from Python (but unfortunately, too many people got tricked into believing that it does something useful). That said, if anybody feels like updating t

[issue8374] Some locales are unsupported

2010-04-11 Thread Éric Araujo
Éric Araujo added the comment: Can we tell about getdefaultlocale’s uselessness in the docs? -- ___ Python tracker ___ ___ Python-bugs

[issue8374] Some locales are unsupported

2010-04-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Can we tell about getdefaultlocale’s uselessness in the docs? I haven't quite understood what people want to use that function for. If we knew the typical use cases, we could make recommendations what they should use instead. One use case is to find out the

[issue8374] Some locales are unsupported

2010-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > However, these cases seem to be different. I think it can be used to find out the current language setting of the user, and trigger a third-party translation system (other than e.g. gettext). -- ___ Python tracker

[issue8374] Some locales are unsupported

2010-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: When the table is updated in trunk, can it be backported to 2.6? It does change a couple of mappings (example here is from sr_CS.* to sr_RS.*). -- ___ Python tracker __

[issue7905] Shelf 'keyencoding' keyword argument is undocumented and does not work.

2010-04-11 Thread Éric Araujo
Éric Araujo added the comment: One remark: In “The *keyencoding* parameter is the encoding used to encode key values”, what are “key values”? Don’t we just say “keys” in such cases? Regards -- ___ Python tracker

[issue870479] Scripts need platform-dependent handling

2010-04-11 Thread Éric Araujo
Éric Araujo added the comment: This bug supersedes #1004696. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-11 Thread Tony Locke
Changes by Tony Locke : Removed file: http://bugs.python.org/file16886/parse.py.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8375] test_distutils fails when run with -j

2010-04-11 Thread Antoine Pitrou
New submission from Antoine Pitrou : test_distutils fails in py3k when run with -j (e.g. "python -m test.regrtest -j1 -v test_distutils") == ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase) -

[issue8374] Some locales are unsupported

2010-04-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: > When the table is updated in trunk, can it be backported to 2.6? With the changes to the encodings for some of the locales (e.g. 'ru'), I would advise against such a backport. This also demonstrates one fundamental flaw of the approach: even if X11 decides

[issue8374] Some locales are unsupported

2010-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, the fix (updated tables) has been committed in trunk (r79977) and py3k (r79978). I suppose Ubuntu can backport the patch if they want their Python to be in sync with their own locales. (even better, distributions should include the regeneration of locale a

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-11 Thread Tony Locke
Tony Locke added the comment: Regarding the RFC list issue, I've posted a new patch with a new RFC list that combines ndim's list and the comments from #5650. Pitrou argues that http://dead:beef::]/foo/ should fail because it's a malformed URL. My response would be that the parse() function h

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7905] Shelf 'keyencoding' keyword argument is undocumented and does not work.

2010-04-11 Thread R. David Murray
R. David Murray added the comment: Yes, that would be clearer wording. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue6409] 2to3 -j 4 generates malformed diffs

2010-04-11 Thread George Boutsioukis
George Boutsioukis added the comment: Flushing stdout is still necessary, though not enough. The processes will still have to use some kind of synchronization, and the performance toll of adding a lock to synchronize output is negligible, given that printing to stdout takes a tiny amount of t

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-11 Thread Shashwat Anand
Shashwat Anand added the comment: Instead of “email.utils.formatdate(time, usegmt=True)” we can simply use time.strftime() and clean the code in a better way. The duplication is there in date_time_string() as well as log_date_time_string(). Submitting the patch for review. -- nosy: +

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-11 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: With respect to msg98314 (http://bugs.python.org/msg98314) referenced in this bug, which I thought is easy to handle, does not appear so. It is bit tricky. The problem is the relative url is given of the format '07.11.2009-9:54:12-1.jpg' and urlparse wrongly

[issue8279] python-gdb PyListTests fail

2010-04-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch in file16727 was applied as part of issue8316. -- ___ Python tracker ___ ___ Python-bugs-

[issue8330] Failures seen in test_gdb on buildbots

2010-04-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now applied file16808 as r79986. I'm detaching file16804, as it was superceded by the other patch. I also reenabled all tests in r79987, to see how the buildbots react. -- ___ Python tracker

[issue8026] strftime bug when timedelta is negative

2010-04-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-04-11 Thread Anders Kaseorg
New submission from Anders Kaseorg : The Python tutorial offers some dangerous advice about adding iterator behavior to a class: http://docs.python.org/tutorial/classes.html#iterators “By now you have probably noticed that most container objects can be looped over using a for statement: … Havin

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-11 Thread Chris Rebert
Chris Rebert added the comment: Here's a draft of an updated version of the "Data model" docs reflecting the changes in the PEP. -- keywords: +patch type: -> feature request Added file: http://bugs.python.org/file16891/datamodel.rst.diff ___ Python

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: After spending a sufficient amount of time looking at patches and the RFC 2732, I tend to agree with the patch provided by tlocke. It does cover the behavior for parsing IPv6 URL with '[' hostname ']'. RFC 2732 is very short and just says that hostname in th

[issue7026] test_urllib: unsetting missing 'env' variable

2010-04-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am unable to reproduce this issue in the trunk/py3k. Buildbots have not complained either. I am closing this bug. srid: If you have steps to reproduce, feel free to reopen it. -- status: open -> closed ___ Python

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-11 Thread Chris Rebert
Changes by Chris Rebert : Added file: http://bugs.python.org/file16893/datamodel.rst.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

<    1   2