[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Whether 1+2j is a literal or an expression is debatable. Really? I can't imagine what basis you'd have for calling either 1+2j or +1 a literal. -- ___ Python tracker rep...@bugs.python.org

[issue10614] ZipFile and CP932 encoding

2010-12-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The ZIP format specification mentions only cp437 and utf8: http://www.pkware.com/documents/casestudies/APPNOTE.TXT see Apeendix D. Do zip files created on Japanese Windows contain some information about the encoding they use? Or do

[issue10614] ZipFile and CP932 encoding

2010-12-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: No, there is no indication in the zipfile that it deviates from the spec. That doesn't stop people from creating such zipfiles, anyway; many zip tools ignore the spec and use instead CP_ACP (which, of course, will then get misinterpreted

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-12-03 Thread William Barr
William Barr webmaster...@gmail.com added the comment: Ok, attached is a patch that should make IDLE silently ignore this happening; upon looking into this, it was a rather trivial fix. The open function was waiting on the return input from the askopenfile call, during which the calling

[issue3132] implement PEP 3118 struct changes

2010-12-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: For reference, Numpy's PEP 3118 implementation is here: Thanks for that, and the other information you give; that's helpful. It sounds like we're on the same page with respect to alignment of substructs. (Bar the mostly academic question

[issue3132] implement PEP 3118 struct changes

2010-12-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: For reference, Numpy's PEP 3118 implementation is here BTW, does this already exist in a released version of NumPy? If not, when is it likely to appear in the wild? -- ___ Python tracker

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-12-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am probably a bit late to this discussion, but why these things should be called codecs and why should they share the registry with

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-12-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The indentation of the patch 'looks' wrong. That appears to be because you used tabs instead of spaces (as in the lines removed and I presume elsewhere in the file -- and because FireFox interprets tabs as 8 spaces. Please redo with spaces. I

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: An imaginary basis maybe? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___ ___

[issue10610] Correct the float(), int() and complex() documentation

2010-12-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Should we also review the documentation for fractions and decimals? For example, fractions are documented as accepting strings of

[issue10610] Correct the float(), int() and complex() documentation

2010-12-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Raymond Hettinger wrote: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Try not to sprawl this all over the docs. Find the most common root and document it there. No need to garbage-up Fractions, Decimal etc.

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: If I understand it right, before this patch, people couldn't really supply internationalizations for these calls - they would have had to have a translation for each possible value of, e.g. action.choices or parser.prefix_chars. So I

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: The result of 1 + 2j cannot be further broken down, so the result stays as 1 + 2j (note the spaces!). (1+2j) (1 + 2j) Following PEP 8 in this regard is also needed. Abandon the request of adding the i unit and rather fix this spacing

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Hmm. I see I confused this with Issue 10529, where there really was a bug in the gettext calls. Nonetheless, +1 for switching from %s to %(xxx)s in 3.2 - since that's the first release in Python 3 that has argparse, I think it's

[issue10497] Incorrect use of gettext in argparse

2010-12-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Yes, I think it's okay to fix this without a test, given that it's a nontrivial amount of work to test gettext stuff. I'd rather have it working now, without tests, than wait until we know how to test stuff with gettext. It's also a

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Committed in r86962. Thanks to all involved in getting this from initial submission to final checkin :) Any further changes (including addressing Éric's last few comments) can be undertaken as separate issues. -- resolution: -

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Oh, I also fixed in issue in both the old and new server code that switched warnings off globally rather than merely for the operation it was trying to disable warnings for. -- ___ Python tracker

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com added the comment: I wonder whether there are many examples where scientific data is written in a form that Python's complex() constructor couldn't currently read, but would be able to read if it accepted 'i' in place of 'j'. I could not reproduce

[issue10557] Malformed error message from float()

2010-12-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10557 ___ ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for that, Robert. Actually, I find those few results quite convincing as evidence that it would be useful to support 'i' (and 'I') on input. -- ___ Python tracker rep...@bugs.python.org

[issue10549] help(cls1) breaks when cls1 has staticmethod(cls2) attribute

2010-12-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r86964. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10549 ___

[issue10557] Malformed error message from float()

2010-12-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Are you sure ? I'm not sure how the underlying PyOS_string_to_double() (IIRC) works. I believe it accepts ASCII whitespace (i.e., chars ' ', '\t', '\f', '\n', '\r', '\v'), and nothing else. --

[issue8989] email.utils.make_msgid: specify domain

2010-12-03 Thread Adrian von Bidder
Adrian von Bidder avbid...@fortytwo.ch added the comment: On Thursday 02 December 2010 22.51:51 you wrote: Committed to py3k in r86936 with minor fixups. thanks, great! (Wheee! my first patch to Python ;-) cheers -- vbi -- ___ Python tracker

[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com added the comment: A few issues I'd like to raise: (1) Multiple callback chains. Is there any code in your existing use case of GC callbacks where you don't check for the phase argument and follow different code paths depending on it? If not, having two

[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: 1) I'm not sure what you are asking. Does anyone think that it is simpler to register two different callbacks than one? IMHO it complicates the interface and creates so many oppertunities to do things incorrectly. 2)No, it is

[issue3132] implement PEP 3118 struct changes

2010-12-03 Thread Pauli Virtanen
Pauli Virtanen p...@iki.fi added the comment: I still like the idea of scoped endianness markers in the substructs, but if we have to abandon that for compatibility with NumPy that's okay. That, or change the Numpy implementation. I don't believe there's yet much code in the wild that

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The html_getfile() function is Unix-specific: it constructs paths like path = os.sep + path.replace('%20', ' ') Consequently, its test fails on Windows:

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001 ___ ___

[issue8525] Display exception's subclasses in help()

2010-12-03 Thread Rob Cliffe
Rob Cliffe rob.cli...@btinternet.com added the comment: Originally I only had built-in classes in mind (with Exceptions being IMO the most obvious example of a built-in class hierarchy that it is useful to find your way around). But if the idea can be extended to other classes, well, great.

[issue10363] Embedded python, handle (memory) leak

2010-12-03 Thread Steven Youngs
Changes by Steven Youngs st...@youngs.cc: -- nosy: +StevenY ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10363 ___ ___ Python-bugs-list mailing

[issue10614] ZipFile and CP932 encoding

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @Hirokazu: Can you attach a small test archive? Yes, we can add a default_encoding attribute to ZipFile and add an optional default_encoding argument to its constructor. -- nosy: +haypo

[issue10557] Malformed error message from float()

2010-12-03 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: According to comments in the code and verified by inspection, PyOS_string_to_double does not accept any whitespace. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10557

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nick, you seem to have forgotten to svn add the CSS file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001 ___

[issue10197] subprocess.getoutput fails on win32

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: -def getstatusoutput(cmd): +def getstatusoutput(cmd, shell=True): shell=True is dangerous, it can lead to shell command injection. I would prefer to set its default value to False. The function already exists in Python 3.1, but it

[issue10497] Incorrect use of gettext in argparse

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: From the other bug: “If I understand it right, before this patch, people couldn't really supply internationalizations for these calls - they would have had to have a translation for each possible value of, e.g. action.choices or

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This bug is a warning, not a fatal error: “The translator cannot reorder the arguments.” Depending on the language, it may be a real pain. “Basically, we should use the name of an Action or ArgumentParser attribute whenever it makes sense.

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I can't imagine what basis you'd have for calling either 1+2j or +1 a literal. Poor understanding of the parser/tokenizer/formal grammar. -- ___ Python tracker rep...@bugs.python.org

[issue10615] Trivial mingw compile fixes

2010-12-03 Thread Johann Hanne
New submission from Johann Hanne pyt...@jf.hanne.name: Some C files fail to compile with mingw, mostly due to missing preprocessor statements: - Modules/_ctypes/callproc.c When using the bundled non-msvc libffi, ffi_call has no return value, so only use it when compiled with msvc. -

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file19923/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

[issue10197] subprocess.getoutput fails on win32

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The function already exists in Python 3.1, but it is not used in Python source code We don’t know what code out there uses. This would be an incompatible change. -- ___ Python tracker

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Dummy question: why don't you use KeyboardInterrupt instead of a custom SIGINT handler? try: for i in range(100): print(i) except KeyboardInterrupt: print(got sigint) Python SIGINT handler raises a

[issue10557] Malformed error message from float()

2010-12-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: According to comments in the code and verified by inspection, PyOS_string_to_double does not accept any whitespace. Bah. You're right, of course. :-) Any whitespace (post PyUnicode_EncodeDecimal) is handled in PyFloat_FromString, using

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue remembers me #3618 (opened 2 years ago): I proposed to use RLock instead of Lock, but RLock was implemented in Python and were too slow. Today, we have RLock implemented in C and it may be possible to use them. Would it

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue remembers me #3618 (opened 2 years ago): I proposed to use RLock instead of Lock, but RLock was implemented in Python and were too slow. Today, we have RLock implemented in C and it may be possible to use them. Would it

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- Removed message: http://bugs.python.org/msg123242 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10478 ___

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ok, so +1 to apply immediatly your patch which fixes the deadlock. If someone is motived to make Buffered* classes reentrant, (s)he can remove this exception. io and signal documentation should also be improved to indicate that

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Please make the tokenizer surround spaces around operators. So the output would be like in the example below: (1 + 2j) (1 + 2j) -- Added file: http://bugs.python.org/file19925/unnamed ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___ ___ Python-bugs-list

[issue10197] subprocess.getoutput fails on win32

2010-12-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I did not realize that getstatusoutput was implemented using os.popen. I thought it already used Popen. Now, in python3, os.popen is in turn implemented using subprocess.Popen, so removing that level of indirection seems sensible.

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-12-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: A note for the curious: I changed the keyword name from 'tolerant' to 'strict' because the stdlib has other examples of 'strict' as a keyword, but the word 'tolerant' appears nowhere in the documentation and certainly not as a keyword.

[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Not all incompatibilities have to raise a py3k warnings; AFAIK, only those which are not handled by 2to3 do. -- nosy: +benjamin.peterson, pitrou ___ Python tracker rep...@bugs.python.org

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-12-03 Thread Tres Seaver
Tres Seaver tsea...@agendaless.com added the comment: This fix needs backporting to the 3.1 and 2.7 branches as well. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10360

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I brought the patch up to date for the Py3k branch, but realised just before checking it in that it may run afoul of the language moratorium (since it alters the behaviour of builtin range objects). However, the .count() and .index() methods

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Added the missing CSS file in r86971. Hopefully that will make the buildbots a little happier. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-12-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Don't worry, it will be ported. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10360 ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: -georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___ ___ Python-bugs-list

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: Removed file: http://bugs.python.org/file19925/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- nosy: -michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___ ___

[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Jim Jewett
Jim Jewett jimjjew...@users.sourceforge.net added the comment: blockquoteDoes anyone think that it is simpler to register two different callbacks than one? /blockquote Moderately, yes. Functions that actually help with cleanup should normally be run only in one phase; it is just

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: r86975 should fix the problem with Windows paths. I also found an issue where many of the emitted HTML pages contained two HTML header sections. The tests were just written in a way that they only looked at the second of these header

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Oh, that would be Éric's point 4 that I fixed. OK, no need to create a new issue for that one then :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Adam Byrtek
Adam Byrtek adambyr...@gmail.com added the comment: What happened with there should be one-- and preferably only one --obvious way to do it? -- nosy: +adambyrtek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: (I also noticed that the new methods from issue #9213 are not mentioned in the range() docs Wasn't that fixed in Issue9746? -- ___ Python tracker rep...@bugs.python.org

[issue10499] Modular interpolation in configparser

2010-12-03 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Committed in rev 86976. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10499

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: On Sat, Dec 4, 2010 at 2:26 AM, Daniel Stutzbach rep...@bugs.python.org wrote: Daniel Stutzbach stutzb...@google.com added the comment: (I also noticed that the new methods from issue #9213 are not mentioned in the range() docs Wasn't

[issue10557] Malformed error message from float()

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Dec 3, 2010 at 4:45 AM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: ..  * Please change the API

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Daniel Stutzbach pointed out that range() is also mentioned under: http://docs.python.org/dev/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range The descriptions of range's limitations there is no longer accurate (slicing

[issue10367] python setup.py sdist upload --show-response can fail with UnboundLocalError: local variable 'result' referenced before assignment

2010-12-03 Thread Phillip J. Eby
Phillip J. Eby p...@telecommunity.com added the comment: Given that this is a pure bugfix to revert a problem in 2.7 -- where no *new* development is being done -- a test isn't actually needed for this patch. There is no point in holding up a distutils1 fix for distutils2's benefit. Daniel:

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: b'abc'.partition(':') raises a confusing TypeError('expected an object with the buffer interface'): what is a buffer? what is the buffer interface? The error comes from PyObject_AsCharBuffer() which is used by: - bytes methods:

[issue6780] startswith error message is incomplete

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #10616. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6780 ___

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #6780. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10616 ___ ___

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: complex(): raise a better but incomplete error message on error (complex() arg is not a string), incomplete because number is not mentionned Fixed by r86977. -- ___ Python tracker

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: The descriptions of range's limitations there is no longer accurate (slicing is supported following this patch and containment testing is now efficient) Want to open a new issue for that? (or is there one already?) --

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: (Oops, didn't mean to reclose this yet) I want to wait for Georg's verdict on including the functionality in 3.2 before stressing too much about correct documentation of it :) -- assignee: - georg.brandl status: closed - open

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Indeed. There should be spaces around all the operators. Even in my posted example. -- Added file: http://bugs.python.org/file19927/unnamed ___ Python tracker rep...@bugs.python.org

[issue10587] Document the meaning of str methods

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: As discussed in issue10610, it is important to keep the gory details in one place and refer to it throughout the manual. I think the Unicode terminology is best exposed in the unicodedata module documentation. For

[issue10367] python setup.py sdist upload --show-response can fail with UnboundLocalError: local variable 'result' referenced before assignment

2010-12-03 Thread Phillip J. Eby
Phillip J. Eby p...@telecommunity.com added the comment: Committed Daniel's patch to r86978 in the 2.7 maintenance branch. (The 2.x trunk still has this bug, but is permanently closed to new checkins.) -- stage: needs patch - committed/rejected versions: -3rd party, Python 3.1, Python

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Dec 3, 2010 at 11:57 AM, Boštjan Mejak rep...@bugs.python.org wrote: .. Indeed. There should be spaces around all the operators. Even in my posted example. Aim higher: we obviously want Python output look

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'm fine with it: as with the other changes for .count and .index, consistency with the protocols/ABCs the types are members of is not exclusively a new feature. -- status: open - closed ___ Python

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Alexander, is it possible to make an output like (1+2j) be printed as (1 + 2j). Also, why is the result put in parens? -- Added file: http://bugs.python.org/file19928/unnamed ___ Python

[issue10557] Malformed error message from float()

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Dec 2, 2010 at 9:53 PM, Alexander Belopolsky rep...@bugs.python.org wrote: .. .. The honest reason for the exclusion is that I gave up chasing a bug that only shows in full regrtest runs. I have realized where

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Alexander, is it possible to make an output like (1+2j) be printed as (1 + 2j). Sure, and 'j' can be highlighted in red, but this is a job for a front-end or a custom display hook, not core python. You may want to take

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file19927/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file19928/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: -belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: The descriptions of range's limitations in the docs still needs an update. -- assignee: georg.brandl - ncoghlan status: closed - open ___ Python tracker rep...@bugs.python.org

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread James Eric Pruitt
James Eric Pruitt eric.pru...@gmail.com added the comment: Also, why is the result put in parens? Without them, something like 'eval(100 * + repr(imaginary))' would not work properly. -- nosy: +ericpruitt ___ Python tracker rep...@bugs.python.org

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Adam Byrtek
Changes by Adam Byrtek adambyr...@gmail.com: -- nosy: -adambyrtek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___ ___ Python-bugs-list

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Eric Pruitt
Changes by Eric Pruitt eric.pru...@gmail.com: -- nosy: -ericpruitt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___ ___ Python-bugs-list

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: mark.dickinson - nosy: -mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.

2010-12-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Added version-added and committed. r86983 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___

[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.

2010-12-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: commit review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10534 ___ ___

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: -pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___ ___ Python-bugs-list mailing

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Parens are okay then. Still, put spaces around operators. If 1 + 2j let the output be (1 + 2j)Please!!! -- Added file: http://bugs.python.org/file19929/unnamed ___ Python tracker

[issue10497] Incorrect use of gettext in argparse

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Fixed in r86984 (py3k) and r86990 (2.7). -- resolution: - fixed stage: patch review - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sat, Nov 27, 2010 at 6:38 PM, Raymond Hettinger rep...@bugs.python.org wrote: .. I suggest Py_UNICODE_ADVANCE() to avoid false suggestion that the iterator protocol is being used. As a data point, ICU defines

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r86981 (3.2), r86987 (3.1) and r86992 (2.7). Thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Committed in r86993. -- resolution: - fixed stage: commit review - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528

[issue4391] optparse: use proper gettext plurals forms

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I just checked argparse and there are similar non-optimal calls. Not all languages can use “string(s)” to express with 0, 1 or more, that’s why we have ngettext. Georg: This is a string change similar to #10528. Does it need a patch and

[issue10272] SSL timeouts should raise socket.timeout, not a generic SSLError

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Requalifying this issue so that the ssl module is fixed to raise socket.timeout on socket timeouts, which is not only more logical but much more useful (since you can then specifically handle this error). -- priority: low - normal

  1   2   >