[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-01 Thread Retro
Retro vinet...@gmail.com added the comment: Strange thing. I presume you are running Windows XP. There the Python icons are shown in the Add/Remove Programs list for the Python interpreters. I must inform you, though, that the Python icons are not shown in the Add/Remove Programs list under

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: Here is a working patch implementing PEP372 ordered dictionaries. -- components: Library (Lib) files: od.diff keywords: patch messages: 82955 nosy: rhettinger severity: normal stage: patch review status: open title:

[issue4459] bdist_rpm assumes python

2009-03-01 Thread John5342
John5342 john5...@googlemail.com added the comment: Thanks. i had noticed those options since i filed this report but considering the spec file is generated and then built immediately wouldn't it make more sense to effectively enable --fix-python by default (perhaps with a --no-fix-python

[issue5398] strftime(%B) returns a String unusable with unicode

2009-03-01 Thread t.steinruecken
New submission from t.steinruecken t.steinruec...@service4every1.de: import locale import datetime locale.setlocale(locale.LC_ALL, ('de_DE', 'UTF8')) print u+datetime.datetime( 2009, 3, 1 ).strftime(%B) -- Traceback (most recent call last): print

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Doc nits: * items are returned in the order they were first added: it should be made clear that it matters when the *key* was first added * An *OrderedDict* remembers order that entries were inserted: misses a word somewhere? * OrderDict should

[issue5398] strftime(%B) returns a String unusable with unicode

2009-03-01 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I don't have the de_DE locale to reproduce that, but the cause is most likely this: 1) datetime( 2009, 3, 1 ).strftime(%B) should return märz as a UTF-8 encoded string, i.e. 'm\xc3\xa4rz' 2) when you mix Unicode and encoded strings, the

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-03-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file13167/unicode_fromwidechar_surrogate-6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4474 ___

[issue5398] strftime(%B) returns a String unusable with unicode

2009-03-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Ezio is correct: in general a string cannot be added to a unicode. Except for the simplest case (only 7bit ascii characters), you have to decode the string: u + datetime.datetime( 2009, 3, 1 ).strftime(%B).decode('utf-8') --

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In SubclassMappingTests, MyOrderedDict should subclass OrderedDict rather than dict, shouldn't it? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-03-01 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: IIUC, setting %define __os_install_post %{___build_post} should prevent invocation of brp-python-bytecompile. Ok. But preventing invocation of brp-python-bytecompile is IMHO not a solution. brp-python-bytecompile is needed for the

[issue5370] unpickling vs. __getattr__

2009-03-01 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Perhaps this should be made more clear in the documentation for the pickle module. Probably here: http://docs.python.org/library/pickle.html#the-pickle- protocol Could you come with some enhancements? (Note that it already states

[issue5399] wer

2009-03-01 Thread Daniel Diniz
New submission from Daniel Diniz aja...@gmail.com: 234 -- messages: 82965 nosy: ajaksu2 severity: normal status: open title: wer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5399 ___

[issue5399] wer

2009-03-01 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Gah, script running amok, sorry! -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5399 ___

[issue5392] stack overflow after hitting recursion limit twice

2009-03-01 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: It is an artificial value, I don't require a recursion limit so low in any application. I found it when looking into #5370. If there is a lower limit to sys.setrecursionlimit, maybe it should be enforced. But since it fails only the

[issue5392] stack overflow after hitting recursion limit twice

2009-03-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The fact it fails only the second time is by design, although I'm not sure the design is useful, and it's probably not documented anywhere. The error message says it : Cannot *recover* from stack overflow, which means there was a first stack

[issue5392] stack overflow after hitting recursion limit twice

2009-03-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - pitrou priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5392 ___ ___

[issue5392] stack overflow after hitting recursion limit twice

2009-03-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. I've put the tests in test_sys.py, I haven't found a better place for them. -- keywords: +patch Added file: http://bugs.python.org/file13218/issue5392.patch ___ Python tracker

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-03-01 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: I don't really want to see looser input requirements, making a JSON parser that is compatible with a subset of Python repr output isn't a design goal of mine. This is absolutely false: Because single quotes are the only way (AFAIK) in which

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-03-01 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: Er, sorry, missed (from JSONable combinations of types). It's early. Anyway, I can change the error message, but I will not make it special- case single quotes for its own error message. I will have to think about what the message could say

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Armin Ronacher
Armin Ronacher armin.ronac...@active-4.com added the comment: @Georg * eval()ing the repr() will not construct the dict in the same order The alternative would be a list of dicts inside the constructor call, but that feels ugly. defaultdict from the same module is not evaluable at all, so I

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Thanks for the review comments guys. An updated patch is attached. Added file: http://bugs.python.org/file13219/od2.diff ___ Python tracker rep...@bugs.python.org

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I still see an OrderDict in the docs, and the TypeError in __init__ still needs to use % instead of ,. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed. Added file: http://bugs.python.org/file13220/od3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397 ___

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file13219/od2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397 ___

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file13217/od.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397 ___

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Added a few more tests. Added file: http://bugs.python.org/file13221/od4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file13220/od3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397 ___

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-03-01 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ok. But preventing invocation of brp-python-bytecompile is IMHO not a solution. brp-python-bytecompile is needed for the reasons mentioned in http://fedoraproject.org/wiki/Packaging/Python#Including_pyos . What reason specifically are you

[issue5392] stack overflow after hitting recursion limit twice

2009-03-01 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The fact it fails only the second time is by design, although I'm not sure the design is useful, and it's probably not documented anywhere. It helped me debug a number of interpreter crashes in 3.0. When a stack overflow occurred, in

[issue5238] ssl makefile never closes socket

2009-03-01 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: I'd recommend running the whole suite of tests here. The issue is mainly with httplib, as I recall it, which closes the socket before it finishes reading from it. ___ Python tracker

[issue2437] Distutils runtime_library_dirs broken on Windows

2009-03-01 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: No, Tarek, I don't have a MinGW machine right now. But it should be easy to reproduce; just invoke that call I originally reported. The distutils code is just making assumptions that it shouldn't be making.

[issue2437] Distutils runtime_library_dirs broken on Windows

2009-03-01 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Tarek writes: Laurent, right. but we need to figure out how to get the CC name in MinGW/Cygwin environment. I am not familiar with them. Since this bug is specifically about that environment, shouldn't it be handled by someone who is

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-03-01 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: Ok, if you will keep bdist_rpm's new .pyo creation then you are right. FWIW I think it is a bit of an ugly hack and would prefer another solution. BTW: The brp-python-bytecompile creates usr/bin/*.pyo issue has been resolved,

[issue4471] IMAP4 missing support for starttls

2009-03-01 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Why can't we use python.org for tests? Do we need IMAP/POP servers running? Let's send some mail to pydotorg to get that set up. ___ Python tracker rep...@bugs.python.org

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-03-01 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: BTW: The brp-python-bytecompile creates usr/bin/*.pyo issue has been resolved, https://bugzilla.redhat.com/show_bug.cgi?id=182498#c8 Ok. Perhaps it isn't needed to exclude it, then. ___ Python tracker

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-03-01 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I agree. I had another complaint about that patch, though, which is the addition of an option for not including .pyo files. I still like to see addition of this option reverted. I'll remove this option then, and make -O1 hardcoded

[issue4715] optimize bytecode for conditional branches

2009-03-01 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Backported as r70071. I also fixed a couple things I missed in the py3k branch in r70076. Thanks all! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-01 Thread Retro
Retro vinet...@gmail.com added the comment: Please see the attached screenshot where there are no icons in the Add/Remove Programs list of the Python intepreters on my Windows Vista machine. Added file: http://bugs.python.org/file13223/my_arpvista.jpg ___

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-01 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Using regedit, find out which of the keys HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9cc89170-000b-457d-91f1-53691f85b224}

[issue5135] Expose simplegeneric function in functools module

2009-03-01 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Unassigning - the lack of support for ABC registration still bothers me, but a) I don't have a good answer for it, and b) I'm going to be busy for a while working on some proposed changes to the with statement. -- assignee: ncoghlan -

[issue5400] patches for multiprocessing module on NetBSD

2009-03-01 Thread Piotr Meyer
New submission from Piotr Meyer an...@smutek.pl: Multiprocessing module needs some patches to succesfully builing and running on NetBSD. I made this patch and test on NetBSD 5rc2 (upcoming release). 1. we need working socket module (Modules/socketmodule.c) 2. mremap under NetBSD has different

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2009-03-01 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- assignee: - tarek components: +Windows nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4480 ___

[issue4918] Windows installer created with Python 2.5 does not work with Python 2.6.1

2009-03-01 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- assignee: - tarek components: +Windows nosy: +tarek type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4918 ___

[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-03-01 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5235 ___ ___ Python-bugs-list

[issue5401] mimetypes.MAGIC_FUNCTION implementation clusterfuck

2009-03-01 Thread Armin Ronacher
New submission from Armin Ronacher armin.ronac...@active-4.com: Sorry for the harsh words, but when I found that code I nearly freaked out. For all those years I was using from mimetypes import guess_type until today I found out that this has horrendous performance problems due to the fact that

[issue5401] mimetypes.MAGIC_FUNCTION performance problems

2009-03-01 Thread Armin Ronacher
Changes by Armin Ronacher armin.ronac...@active-4.com: -- title: mimetypes.MAGIC_FUNCTION implementation clusterfuck - mimetypes.MAGIC_FUNCTION performance problems ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5401

[issue5401] mimetypes.MAGIC_FUNCTION performance problems

2009-03-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Wah, that's really a horrible way to implement this caching. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5401 ___

[issue1580] Use shorter float repr when possible

2009-03-01 Thread Noam Raphael
Noam Raphael noamr...@gmail.com added the comment: I'm sorry, but it seems to me that the conclusion of the discussion in 2008 is that the algorithm should simply use the system's binary-to-decimal routine, and if the result is like 123.456, round it to 15 digits after the 0, check if the result

[issue1580] Use shorter float repr when possible

2009-03-01 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I tried that, and it was more subtle than that in corner cases. Another argument against it is that on Windows the system input routine doesn't correctly round unless 17 digits of precision are given. One of Tim Peters's responses should

[issue5400] patches for multiprocessing module on NetBSD

2009-03-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5400 ___ ___ Python-bugs-list mailing

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Jim Jewett
Jim Jewett jimjjew...@users.sourceforge.net added the comment: I would try to make it more explicit that updates do not reset the order, but deleting a item and re-inserting it *does*. (So it isn't the first insertion of the key, it is the first that hasn't yet been followed by a deletion.)

[issue5401] mimetypes.MAGIC_FUNCTION performance problems

2009-03-01 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Well, that was embarrassing! Fixed in r70086. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5401

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Jim Jewett
Jim Jewett jimjjew...@users.sourceforge.net added the comment: I would also recommend strengthening some of the tests with regard to ordering stability across update vs delete-and-reinsert. TestOrderedDict.test_update does verify that updated items are not moved to the end, but the comment

[issue5402] MutableMapping code smell (see OrderedDict)

2009-03-01 Thread Jim Jewett
New submission from Jim Jewett jimjjew...@users.sourceforge.net: Copy of issue 5397 In python 3, UserDict (and DictMixin) are gone; presumably they should be replaced by either a dict subclass or the ABC MutableMapping. Unfortunately, there doesn't seem to be a clean way to inherit from

[issue5238] ssl makefile never closes socket

2009-03-01 Thread David Christian
David Christian d...@rpath.com added the comment: I actually discovered this issue when using httplib over ssl. Closing the httplib connection was not closing the socket - the socket would only be closed after garbage collection, due to this bug. That's what caused me to investigate and find

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-03-01 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r70094 and r70096 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533164 ___ ___

[issue5403] test_md5 segfault

2009-03-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I noticed test_md5 and test_multiprocessing crashed on trunk. I hope attached patch will fix this issue. (Maybe the patch can be simplified with goto) -- components: Extension Modules files: fix_md5_without_goto.patch

[issue2459] speedup for / while / if with better bytecode

2009-03-01 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: I've updated for_iter.patch to the latest trunk, merging in issue 4715. I also changed tracing a bit so that the first line of a loop doesn't get traced twice in the first iteration, and added to test_dis to check that decreasing line numbers

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-03-01 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: done in r70094 and r70096 Thanks! ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533164 ___ ___

[issue5397] PEP 372: OrderedDict

2009-03-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Jim, I updated the docs to talk cover delete-reinsert. Also, added a few more tests as suggested but am leaving test_iterators, test_popitem, and test_pop unchanged. It is enough to test delete-reinsertion once or twice and

[issue5402] MutableMapping code smell (see OrderedDict)

2009-03-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: UserDict is not gone. DictMixin is now mutable mapping. -- assignee: - rhettinger priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5402