[issue6566] json.dumps converts None to "null" (not null)

2009-07-25 Thread Bob Ippolito
Bob Ippolito added the comment: JP is correct, this is how JSON works. The behavior of coercing keys to strings is often desirable, although I agree it could be confusing if you aren't familiar with the JSON spec. -- components: +Documentation -Library (Lib) _

[issue6557] urllib.urlopen creates bad requests when location header of 301 redirects contain spaces

2009-07-25 Thread Senthil
Changes by Senthil : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread David Roberts
Changes by David Roberts : Added file: http://bugs.python.org/file14568/tilestore.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread David Roberts
David Roberts added the comment: Yes, it is the PIL library. Removing calls to Image.open() still results in the same error - the exception is thrown before it even reaches that bit of the code anyway. Another odd thing is that the exception is only thrown on some of the calls to get_tile_path,

[issue5511] zipfile - add __exit__ attribute to make ZipFile object compatible with with_statement

2009-07-25 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file14554/zipfile_issue_5511.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue5511] zipfile - add __exit__ attribute to make ZipFile object compatible with with_statement

2009-07-25 Thread Brian Curtin
Brian Curtin added the comment: Attached is a patch containing the fix, the updated tests, and the doc change. Let me know if you have any questions, suggestions, etc. -- Added file: http://bugs.python.org/file14566/issue5511_complete.patch ___ Pytho

[issue6567] Make inf be almost equal to inf

2009-07-25 Thread Michael Foord
Michael Foord added the comment: All I'm proposing to do is add a short circuit equality test to assertAlmostEquals. -- ___ Python tracker ___ ___

[issue6567] Make inf be almost equal to inf

2009-07-25 Thread Mark Dickinson
Mark Dickinson added the comment: [lucaspmelo] > I would like to ask as a feature request that "inf" be almost equal to > "inf". Sounds reasonable to me. Just so long as float('-inf') isn't almost equal to float('inf'); that would be weird. One could almost make a case for values very close

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-25 Thread Ezio Melotti
Ezio Melotti added the comment: This seems to me quite redundant: + Matches any Unicode decimal digit; more specifically, matches + any character in Unicode category [Nd] (Number, Decimal Digit). + This includes ``[0-9]``, and also many other digit characters. I suggest something

[issue5511] zipfile - add __exit__ attribute to make ZipFile object compatible with with_statement

2009-07-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6567] Make inf be almost equal to inf

2009-07-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: good catch. thanks! -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds reasonable to me. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6565] improper use of __setitem__ in ElementTree for Python 3.1

2009-07-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> effbot nosy: +effbot priority: -> high stage: -> needs patch versions: +Python 3.2 ___ Python tracker ___ __

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-07-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: *Rereads latest patch* I'm happy with this being backported as a bugfix to 3.1 and 2.6 so long as the set_tunnel method is hidden. Call it _set_tunnel() in the backport (and don't document its existence). -- ___

[issue6573] set union method ignores arguments appearing after the original set

2009-07-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue6573] set union method ignores arguments appearing after the original set

2009-07-25 Thread Shawn Smout
New submission from Shawn Smout : When calling the union method of a set with several arguments, if one of those sets is the original set, all arguments appearing after it are ignored. For example: x = set() x.union(set([1]), x, set([2])) evaluates to set([1]), not set([1, 2]) as expected. As

[issue6572] Manas Thapliyal wants to chat

2009-07-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6572] Manas Thapliyal wants to chat

2009-07-25 Thread Manas
New submission from Manas : --- Manas Thapliyal wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-6dec705464-1ad2ad81d2-c13

[issue6518] Enable 'with' statement in ossaudiodev module

2009-07-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6567] Make inf be almost equal to inf

2009-07-25 Thread Michael Foord
Michael Foord added the comment: Hmm... I guess equality does imply almost-equals. I'll make and document the change that objects that compare equal will also compare almost equal. -- ___ Python tracker ___

[issue6567] Make inf be almost equal to inf

2009-07-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6571] Help index

2009-07-25 Thread Georg Brandl
Georg Brandl added the comment: Added index entries in r74200. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6567] Make inf be almost equal to inf

2009-07-25 Thread Lucas Prado Melo
Lucas Prado Melo added the comment: I would like to ask as a feature request that "inf" be almost equal to "inf". I wrote a program with a timeline class that had a method to tell the time of the last event registered into it such that some events would be positioned at the infinite when they wo

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le samedi 25 juillet 2009 à 12:35 +, David Roberts a écrit : > File "C:\Python26\lib\ntpath.py", line 97, in join > if path[-1] in "/\\": > IndexError: cannot fit 'int' into an index-sized integer This is definitely fishy and shouldn't happen in such

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread David Roberts
David Roberts added the comment: If I comment out all occurrences of "with self.__lock:" I then get the same error in another part of the code: C:\Python26\lib\threading.py:803: RuntimeWarning: tp_compare didn't return -1 or -2 for exception return _active[_get_ident()] Exception in thread Th

[issue6571] Help index

2009-07-25 Thread Skip Montanaro
Skip Montanaro added the comment: Seems to work as expected for me: >>> 7 >> 1 3 >>> 7 << 1 14 -- nosy: +skip.montanaro ___ Python tracker ___ __

[issue6571] Help index

2009-07-25 Thread Colin J. Williams
New submission from Colin J. Williams : Shift operators. It would be good if "<<" and ">>" could be included in the index. Incidentally, the usage seems counter-intuitive. One would expect ">>" to be a shift to the right and "<<" to be a shift to the left. -- assignee: georg.brandl

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I also noticed that there is a warning right before the exception is raised: > > C:\Python26\lib\threading.py:803: RuntimeWarning: tp_compare didn't > return -1 or -2 for exception > return _active[_get_ident()] Right, it probably means the exception was r

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread David Roberts
David Roberts added the comment: I haven't been able to isolate the issue. Could someone provide some insight into what the error could possibly mean so that I have a better idea of what I'm trying to isolate? -- ___ Python tracker

[issue6525] string.lowercase/uppercase/letters not affected by locale changes on linux

2009-07-25 Thread Georg Brandl
Georg Brandl added the comment: This seems to be normal when using an UTF-8 locale. For (e.g.) 'de_DE' string.lowercase is changed here, for 'de_DE.utf-8' it isn't. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue6525] string.lowercase/uppercase/letters not affected by locale changes on linux

2009-07-25 Thread Ezio Melotti
Ezio Melotti added the comment: I reproduced the issue on my Linux machine. Regardless of the locale I use, string.lowercase/uppercase/letters is always equal to string.ascii_lowercase. On windows instead, other letters are added. -- resolution: wont fix -> status: closed -> open title

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Could you provide a complete example for us to reproduce the issue? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ __

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread David Roberts
David Roberts added the comment: thread.get_ident() returns 1192 and 1560 in the cases where there is no error, and 1316 in the case where the error is thrown. Doesn't seem particularly unusual, and shows get_ident() isn't throwing the error itself. I also noticed that there is a warning right

[issue6570] Documentation Clarity

2009-07-25 Thread Mark du Preez
New submission from Mark du Preez : Hi In section 4.7.2 of the tutorial documentation, we suddenly find the following paragraph: "In general, an argument list must have any positional arguments followed by any keyword arguments, where the keywords must be chosen from the formal parameter names.

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail