[issue4627] Add Mac OS X Disk Images to Python.org homepage

2009-02-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: > What's German for "the squeaky wheel gets the grease"? ;-) I can't think of anything; "Wer am lautesten schreit hat recht" and "Fragen kostet nichts" come close. I find that attitude close to whining, and I assert that it doesn't help in Python. Indeed, I ge

[issue5249] Fix strftime on windows.

2009-02-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: > On VC6, wcsftime simply converts *format* to mbcs string, calls > strftime, and converts result to unicode, so there is no difference > between my patch and wcsftime. Right. > (Newer VC's wcsftime might have different > implementation though) Maybe you are

[issue4627] Add Mac OS X Disk Images to Python.org homepage

2009-02-13 Thread Carl Johnson
Carl Johnson added the comment: What's German for "the squeaky wheel gets the grease"? ;-) ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4627] Add Mac OS X Disk Images to Python.org homepage

2009-02-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: The original bug report was about 2.6 having no installer, and that has been fixed. In fact, the bug can't possibly have talked about 3.0.1, since that wasn't released when the bug report is made. Changing the bug report's topic after it is made is bad manageme

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2009-02-13 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue5178] Add context manager for temporary directory

2009-02-13 Thread Neil Schemenauer
Neil Schemenauer added the comment: New version of the patch. Added a __del__ method that hopefully works reliably. Added NEWS and an example of TemporaryFile as a context manager. I did not change more tests to use TemporaryDirectory since I understand hit-and-run modernization of code is ge

[issue5249] Fix strftime on windows.

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, if we use wcsftime, I cannot create the patch. On VC6, wcsftime returns not unicode but mbcs string which copied to wchar array. Maybe on snakebite.org, I can access VC9 and confirm its behavior on it? ;-) ___ Pyth

[issue5249] Fix strftime on windows.

2009-02-13 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/pyt

[issue5249] Fix strftime on windows.

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I experimentally implemented with wcsftime, but I couldn't get same result as strftime + mbcs conversion. Probably because wcsftime depends on locale. Added file: http://bugs.python.org/file13079/experimental_wcsftime.patch _

[issue5249] Fix strftime on windows.

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: On VC6, wcsftime simply converts *format* to mbcs string, calls strftime, and converts result to unicode, so there is no difference between my patch and wcsftime. (Newer VC's wcsftime might have different implementation though) Maybe you are concerning about

[issue4627] Add Mac OS X Disk Images to Python.org homepage

2009-02-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Fri, Feb 13, 2009 at 10:08 PM, Carl Johnson wrote: > > Carl Johnson added the comment: > > Is it possible to reopen this bug? Python 3.0.1 still has no Mac installer… IIRC, they will be built soon. ___ Python tracker

[issue4627] Add Mac OS X Disk Images to Python.org homepage

2009-02-13 Thread Carl Johnson
Carl Johnson added the comment: Is it possible to reopen this bug? Python 3.0.1 still has no Mac installer… -- versions: -Python 2.6 ___ Python tracker ___ _

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-02-13 Thread gumpy
gumpy added the comment: 8.5.0 This is still an issue with both tk versions in the 3.0.1 python release. ___ Python tracker ___ ___ Python-bugs

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2009-02-13 Thread Mark Miller
Mark Miller added the comment: The new patch works correctly, by the way, on ARMv4L and ARMv5L OABI boards. ___ Python tracker ___ ___ Pytho

[issue4305] ctypes fails to build on mipsel-linux-gnu (detects mips instead of mipsel)

2009-02-13 Thread Mark Miller
Mark Miller added the comment: Would it be possible to get some feedback as to whether this is a candidate for Python 2.6 on this patch? ___ Python tracker ___ ___

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2009-02-13 Thread Mark Miller
Mark Miller added the comment: I am in a position to test as much as needed. I am attempting to get Gentoo's ARM/MIPS/Embedded distribution up to date on Python, and noticed this build break. (Typically most embedded architectures are several releases behind.) I'll try this new patch right now.

[issue1108] Problem with doctest and decorated functions

2009-02-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: For what it's worth, this bug appears to go back to at least Python 2.4, and it affects functions using decorators even if they are defined in the same module as the decorated function. I've applied the patch to my 2.4 installation, and it doesn't fix the issue

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Eric Smith
Changes by Eric Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5247] Unhelpful error message with str.format()

2009-02-13 Thread Eric Smith
Changes by Eric Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5255] unicode support with os.readlink()

2009-02-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: This is fixed in Python 2.6. -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2009-02-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: > I'm still not sure whether this can be a candidate 2.6 and 3.0. Martin, > do you have any thoughts on this? I think this qualifies as a new port. In the past, we have avoided adding new ports in bugfix releases. As for adding it to 2.7/3.1: I'm also skept

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-13 Thread Collin Winter
Changes by Collin Winter : Removed file: http://bugs.python.org/file12962/faster_modulo.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-13 Thread Collin Winter
Collin Winter added the comment: Updated the patch to use only PyString_CheckExact(); added a test for the behaviour of string subclasses wrt the % operator. There's a very slight performance hit when using % with numbers, but it's so small as to be statistically insignificant. If it turns out

[issue5249] Fix strftime on windows.

2009-02-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: I think we should use wcsftime on Windows, even though it works very similar to your patch (with the primary difference being that it uses alloca instead of Py_Malloc). -- nosy: +loewis ___ Python tracker

[issue2279] distutils sdist add_defaults does not add data_files

2009-02-13 Thread George Sakkis
George Sakkis added the comment: I didn't mean to imply that automagic discovery based on external version control software is better than MANIFEST.in; I favor explicitness here as well. It's just that this information can (and often has to) be duplicated in setup.py as 'package_data' or 'data_f

[issue5256] rlcompleter adds builtins when custom dict is used

2009-02-13 Thread Armandas
New submission from Armandas : When custom dictionary is used to create a completer, rlcompleter still uses __builtins__.__dict__ to search for completions (rlcompleter.py, global_matches()): for nspace in [builtins.__dict__, self.namespace]: ... This behaviour may sometimes be unwanted. It wou

[issue777588] asyncore is broken for windows if connection is refused

2009-02-13 Thread Josiah Carlson
Josiah Carlson added the comment: According to Garth, sockets that don't connect on Windows get put into the error sockets list. According to John, you need to poll sockets to determine whether or not the attempted connection was refused. If Garth is right, the problem is fixed, though we ar

[issue5255] unicode support with os.readlink()

2009-02-13 Thread scudeete
New submission from scudeete : Python 2.5.2 has a bug in os.readlink() accepting unicode objects. Although it appears that other os functions can handle unicode fine: os.listdir("ششش") Works fine (in that it raises an OS.Error if the dir is not there), but: os.readlink("ششش") Raises: : 'asci

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

2009-02-13 Thread Collin Winter
Collin Winter added the comment: On Fri, Feb 13, 2009 at 10:37 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Hello Collin, > > Thanks for taking a look. > >> I don't see the changes to the lnotab format being a roadblock; just >> mention it in NEWS. Likewise, the pure-Pyt

[issue4524] Build fails at running build_scripts

2009-02-13 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue4524] Build fails at running build_scripts

2009-02-13 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- priority: -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue2461] test_util.py for distutils

2009-02-13 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r69594 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2009-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: I think my -1 for adding the new format was premature: I was hoping to find a way to fix marshal for the 'unknown' format, but the cleanest solution does indeed appear to be to add the mixed-endian format. And apart from the Python/compile.c oddity I can't

[issue5247] Unhelpful error message with str.format()

2009-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Seems like a reasonable backport. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-lis

[issue5254] Formatting error in "findertools" header

2009-02-13 Thread Adam Vandenberg
New submission from Adam Vandenberg : There is a formatting error in the "findertools" header: http://docs.python.org/library/macostools.html#module-findertools "The finder's Apple Events interface" as rendered uses the wrong-direction single quote. -- assignee: georg.brandl components:

[issue991266] Cookie.py does not correctly quote Morsels

2009-02-13 Thread John J Lee
Changes by John J Lee : -- nosy: -jjlee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue1172011] BaseCookie does not call value_decode

2009-02-13 Thread John J Lee
Changes by John J Lee : -- nosy: -jjlee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1372650] Cookie and multiple names

2009-02-13 Thread John J Lee
John J Lee added the comment: A patch for this bug is attached to issue1375011. ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sweet! ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[issue5247] Unhelpful error message with str.format()

2009-02-13 Thread Eric Smith
Eric Smith added the comment: I agree. I'm not sure on backporting this. I'll work on a patch. ___ Python tracker ___ ___ Python-bugs-list mai

[issue5247] Unhelpful error message with str.format()

2009-02-13 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5248] Adding T_SIZET to structmember.h

2009-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: > If this feature request is accepted, I can provide the patches. Well, that's not how things work: there isn't really a mechanism for 'accepting' a feature request. Even if there were, that wouldn't guarantee acceptance of a patch for that feature request.

[issue5252] 2to3 should detect and delete import of removed statvfs module

2009-02-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Hmm. 2to3 doesn't currently mess with the stat module and os.stat the more common function. Also the new interface (attributes on the objects returned) has been around since 2.2. -- nosy: +benjamin.peterson priority: -> low

[issue2899] Fixers find, rfind, etc in 'string' module

2009-02-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: I disagree. That is the role of -3 warnings. Static analysis is too limited to get into issuing warnings with. -- assignee: collinwinter -> nosy: +benjamin.peterson ___ Python tracker

[issue5253] os.environ.get() doesn't handle default value

2009-02-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: >>> os.environ['FOO'] Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/UserDict.py", line 22, in __getitem__ raise KeyError(key) KeyError: 'FOO' >>> os.environ.get('FOO') >>> os.environ.get('FOO', 'bar') 'bar' % export

[issue5169] Default hash not equal to id on AMD Sempron

2009-02-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Chema, thank you for bringing this semi-conscious assumption to light. Intentionally breaking it significantly speeds up set and dict creation. -- nosy: +tjreedy resolution: -> invalid status: open -> closed superseder: -> Reduce hash collisions for

[issue5240] time.strptime fails to match data and format with Unicode whitespaces (Py3)

2009-02-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5236] time.strptime should reject bytes arguments on Py3

2009-02-13 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon nosy: +brett.cannon stage: -> test needed ___ Python tracker ___ ___ Python-bu

[issue5253] os.environ.get() doesn't handle default value

2009-02-13 Thread Mary Stern
New submission from Mary Stern : os.environ.get('ENV_VAR, 'mydefault') returns '' rather than 'mydefault' if not set. It would be nice if this standard dict-style behavior was supported. -- messages: 81963 nosy: marystern severity: normal status: open title: os.environ.get() doesn't ha

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

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hello Collin, Thanks for taking a look. > I don't see the changes to the lnotab format being a roadblock; just > mention it in NEWS. Likewise, the pure-Python compiler package shouldn't > be a high priority; your changes to that package look good enough. Well

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Eric Smith
Eric Smith added the comment: Terry J. Reedy wrote: > Terry J. Reedy added the comment: > > All I am requesting is that > '{} {} {}'.format(3, 'pi', 3.14) work as > '%s %s %s' % (3, 'pi', 3.14) > '3 pi 3.14' '{0} {1} {2}'.format(3, 'pi', 3.14) > '3 pi 3.14' > > do today (3.0). My

[issue2899] Fixers find, rfind, etc in 'string' module

2009-02-13 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: Maybe 2to3 could get a --pedantic or even an --annoying option? I agree that it should be noisy about removed features even if actually fixing this kind of thing would be hard to do reliably. -- nosy: +sjt __

[issue5252] 2to3 should detect and delete import of removed statvfs module

2009-02-13 Thread Stephen J. Turnbull
New submission from Stephen J. Turnbull : It should also try to convert stuff like from statvfs import F_BAVAIL, F_FRSIZE status = os.statvfs(directory) available = status[F_BAVAIL]/((1024*1024)/status[F_FRSIZE] -- components: 2to3 (2.x to 3.0 conversion tool) messages: 81959 nosy: sjt

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

2009-02-13 Thread Collin Winter
Collin Winter added the comment: I don't see the changes to the lnotab format being a roadblock; just mention it in NEWS. Likewise, the pure-Python compiler package shouldn't be a high priority; your changes to that package look good enough. I'm seeing encouraging speed-ups out of this (with gc

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2009-02-13 Thread James William Pye
New submission from James William Pye : Basically, nested() doesn't seem to be consistent with explicitly nested with-statements when an exception is thrown in a CM's __enter__. Consider a pair of nested CMs, the inner __enter__ raises an exception trapped by the outer. In the situation of expli

[issue5250] Document __instancecheck__ and __subclasscheck__

2009-02-13 Thread Terry J. Reedy
New submission from Terry J. Reedy : http://www.python.org/dev/peps/pep-3119/#overloading-isinstance-and-issubclass (GvR and Talin) "The primary mechanism proposed here is to allow overloading the built-in functions isinstance() and issubclass(). The overloading works as follows: The call isinsta

[issue5248] Adding T_SIZET to structmember.h

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > In 2.6 and 3.0, we already have 'Py_ssize_t', see 'T_PYSSIZET' > definition on Include/structmember.h. I'm asking for 'size_t' support. Oops, sorry for the noise then. ___ Python tracker

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2009-02-13 Thread Guilherme Polo
Changes by Guilherme Polo : Removed file: http://bugs.python.org/file13035/check_tpiter_before_overriding_msg.diff ___ Python tracker ___ ___

[issue5249] Fix strftime on windows.

2009-02-13 Thread Kevin Watters
Changes by Kevin Watters : -- nosy: +kevinwatters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5148] gzip.open breaks with 'U' flag

2009-02-13 Thread Radek
Radek added the comment: Same bug in 2.5, I don't know if the patch applies to 2.5 -- nosy: +radek768 ___ Python tracker ___ ___ Pytho

[issue5248] Adding T_SIZET to structmember.h

2009-02-13 Thread Lisandro Dalcin
Lisandro Dalcin added the comment: In 2.6 and 3.0, we already have 'Py_ssize_t', see 'T_PYSSIZET' definition on Include/structmember.h. I'm asking for 'size_t' support. ___ Python tracker ___

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If we add re.UNICODE on Py2, strptime should work fine with unicode > strings, but it could fail somehow with normal strings. Is it more > important to provide a way to use Unicode chars that works only with > unicode strings or to have a coherent behavior bet

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: All I am requesting is that '{} {} {}'.format(3, 'pi', 3.14) work as >>> '%s %s %s' % (3, 'pi', 3.14) '3 pi 3.14' >>> '{0} {1} {2}'.format(3, 'pi', 3.14) '3 pi 3.14' do today (3.0). I should note that the difference between typing {}, which is easy, and {1},

[issue5249] Fix strftime on windows.

2009-02-13 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2009-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: We still need to fix the compile failure somehow, though... Mark, is there any way you can isolate the test(s) in test_float that are causing compile failure? I'm suspicious of test_inf_as_str and test_nan_as_str. Does test_float compile if you remove these

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file13071/remove_ascii_flag.patch ___ Python tracker ___ ___ Python-bugs-li

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I added test. But this requires issue5249 fix to be passed on windows. (I used "\u3000" instead of "\xa0" because "\xa0" cannot be decoded on windows mbcs) -- dependencies: +Fix strftime on windows. Added file: http://bugs.python.org/file13074/remov

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: Sorry, I misunderstood the meaning of "no-brainer". If we add re.UNICODE on Py2, strptime should work fine with unicode strings, but it could fail somehow with normal strings. Is it more important to provide a way to use Unicode chars that works only with unicode

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Eric Smith
Eric Smith added the comment: Right. The colon would be required if there's a format specifier. Or an exclamation if there's just a conversion specifier: "{!r}{:f}{!s:^10}".format('foo', 3, 10) would give: "'foo'3.0010" I've attached a new version that includes format specifiers.

[issue5249] Fix strftime on windows.

2009-02-13 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : On windows, format string should be encoded as mbcs. Otherwise, result of strftime would be broken. Here is the patch. -- components: Extension Modules, Windows files: fix_strftime_on_windows.patch keywords: patch messages: 81946 nosy: ocean-city s

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2009-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: > native endianness support in the struct module comes to mind Sorry: ignore that. The patch already covers this, since the struct module just uses _PyFloat_{Unp,P}ack8. ___ Python tracker

[issue5248] Adding T_SIZET to structmember.h

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do we really want size_t or rather Py_ssize_t? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bu

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2009-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Mark. A few comments: - The patch seems incomplete. There are other places in the source tree that care about endianness. I haven't done a thorough search, but the native endianness support in the struct module comes to mind. There are also some

[issue5248] Adding T_SIZET to structmember.h

2009-02-13 Thread Lisandro Dalcin
New submission from Lisandro Dalcin : structmember.h lacks a 'T_SIZET' define in order to properly support struct fields of type 'size_t' within PyMemberDef. If this feature request is accepted, I can provide the patches. For 2.7, It would be nice to do: #define T_SIZET 20 /* size_

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Removing re.ASCII in py3k is a no-brainer, because unicode is how > > strings work by default. > > I meant from the line 265 of _strptime.py, not from Python :P That's what I understood. ___ Python tracker

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: > Removing re.ASCII in py3k is a no-brainer, because unicode is how > strings work by default. I meant from the line 265 of _strptime.py, not from Python :P ___ Python tracker __

[issue5247] Unhelpful error message with str.format()

2009-02-13 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le vendredi 13 février 2009 à 14:44 +, Ezio Melotti a écrit : > It's probably a good idea to have a coherent behavior between Py2 and > Py3, so if we remove re.ASCII from Py3 we should add re.UNICODE to Py2. Removing re.ASCII in py3k is a no-brainer, becaus

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: I think Py3 with re.ASCII is the same as Py2 without re.UNICODE (and Py3 without re.ASCII is the same as Py2 with re.UNICODE). It's probably a good idea to have a coherent behavior between Py2 and Py3, so if we remove re.ASCII from Py3 we should add re.UNICODE to

[issue5246] test.test_hashlib.HashLibTestCase fails on darwin

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps it's because of missing dependencies in the Makefile? (just trying to guess) -- nosy: +pitrou ___ Python tracker ___ ___

[issue5246] test.test_hashlib.HashLibTestCase fails on darwin

2009-02-13 Thread Tarek Ziadé
Tarek Ziadé added the comment: I have rebuilt a fresh trunk from scratch and it is not reproductible anymore. It was my environment with no doubt. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread David W. Lambert
David W. Lambert added the comment: Answering first question msg81873. Without colon separator, this might be considered confusing: >>> ( ... '{d}{s}{f}{f}'.format(3, 'foo', 3.14, 2.72), ... '{d}{s}{f}{f}'.format(d=3, s='foo', f=3.14) ... ) ('3foo3.142.72', '3foo3.143.14') ___

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hmm, this fails on python2 too. Maybe re.ASCII is added for backward > compatibility? Again, I'm not familiar with unicode, so I won't call > remove_ascii_flag.patch as *fix*. re.ASCII was added to many stdlib modules because I wanted to minimize the potentia

[issue5246] test.test_hashlib.HashLibTestCase fails on darwin

2009-02-13 Thread Lukas Lueg
Lukas Lueg added the comment: test_case_md5_0 (__main__.HashLibTestCase) ... ok test_case_md5_1 (__main__.HashLibTestCase) ... ok test_case_md5_2 (__main__.HashLibTestCase) ... ok test_case_md5_huge (__main__.HashLibTestCase) ... ok test_case_md5_uintmax (__main__.HashLibTestCase) ... ok test_ca

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Hmm, this fails on python2 too. Maybe re.ASCII is added for backward compatibility? Again, I'm not familiar with unicode, so I won't call remove_ascii_flag.patch as *fix*. -- nosy: +pitrou ___ Python tracker

[issue5247] Unhelpful error message with str.format()

2009-02-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : >>> "{0:f}".format(2.5) '2.50' >>> "{0:f}".format("spam") Traceback (most recent call last): File "", line 1, in ValueError: Unknown conversion type f The error message should mention the type of the argument that doesn't support the given conversion t

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unfortunately, `'{d}{s}{f}'.format(3, 'foo', 3.14)` can't work as you expect it to, because it already means "display the keyword arguments named `d`, `s` and `f`. (I agree that the syntax for format() strings is exceedingly tedious) On the other hand, `'{:d}{

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: pointer_hash5_rotate.patch has been committed to trunk and py3k. Thanks! ___ Python tracker ___ ___ Python-bu

[issue5246] test.test_hashlib.HashLibTestCase fails on darwin

2009-02-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ebfe, gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue2834] re.IGNORECASE not Unicode-ready

2009-02-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- title: time.strptime("2009", "%Y") raises a value error -> Change time.strptime() to make it work with Unicode chars ___ Python tracker ___ _

=?utf-8?q?[issue5239]_time.strptime("=EF=BC=92=EF=BC=90=EF=BC=90=EF=BC=99", _"%Y")_raises_a_value_error?=

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This patch comes from issue5240. I think testcase is needed. I'll try if I can. -- dependencies: +re.IGNORECASE not Unicode-ready keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file13071/remove_ascii_flag.patch ___

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-13 Thread Mark Dickinson
Mark Dickinson added the comment: Antoine, please check in a patch of your choice. I think we've beaten this issue to death already. :-) ___ Python tracker ___ __

[issue5242] eval() function in List Comprehension doesn't work

2009-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: eval() is probably already an hack, there's no need to add another hack to make it work. It's better to just get rid of eval() and find a better way to do what you want to do. ___ Python tracker

[issue5246] test.test_hashlib.HashLibTestCase fails on darwin

2009-02-13 Thread Tarek Ziadé
New submission from Tarek Ziadé : The check_no_unicode('md5') fails under darwin (in the trunk) (Pdb) hashlib.md5(u'spam') <--- suppose to raise a TypeError here (Pdb) hashlib.md5('spam') traceback : == FAIL: test_no

[issue5240] time.strptime fails to match data and format with Unicode whitespaces (Py3)

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: OK, I'll close this entry as duplicated. -- resolution: -> duplicate status: open -> closed superseder: -> time.strptime("2009", "%Y") raises a value error ___ Python tracker

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so the rotate version is really significantly faster (and, as Adam pointed out, it's also theoretically better). ___ Python tracker ___ _

  1   2   >