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

2010-12-03 Thread Mark Dickinson
Mark Dickinson 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

[issue10614] ZipFile and CP932 encoding

2010-12-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 some programs write cp

[issue10614] ZipFile and CP932 encoding

2010-12-03 Thread Martin v . Löwis
Martin v. Löwis 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 if extracted on a di

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

2010-12-03 Thread William Barr
William Barr 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 window was closed, setting

[issue3132] implement PEP 3118 struct changes

2010-12-03 Thread Mark Dickinson
Mark Dickinson 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 of max versus lcm

[issue3132] implement PEP 3118 struct changes

2010-12-03 Thread Mark Dickinson
Mark Dickinson 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 added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky 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 the encodings? > It looks like the pro

[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 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 will try to look

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

2010-12-03 Thread Georg Brandl
Georg Brandl added the comment: An imaginary basis maybe? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2010-12-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > Should we also review the documentation for fractions and decimals? For > example, fractions are documented as accepting "strings of decimal digits", > but given that we have p

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

2010-12-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Raymond Hettinger wrote: > > Raymond Hettinger 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. with > something that is of zero interest

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Steven Bethard
Steven Bethard 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 think there's pretty mini

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

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak 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 issue. The complex() buil

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Steven Bethard
Steven Bethard 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 really okay to do this. -

[issue10497] Incorrect use of gettext in argparse

2010-12-03 Thread Steven Bethard
Steven Bethard 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 pretty minor, obvious fix.

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan 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: -> accepted stage: patch

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan 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 Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson added the comment: > > Maybe we need a complex analog to datetime.strptime: > > complex.strpcx('(3 + 4i)', '(%R + %Ii)') -> 3 + 4j That's a good idea. Perhaps we could also add a .strfcx() to do the formatting

[issue10557] Malformed error message from float()

2010-12-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg > wrote: > .. >> * Please change the API _PyUnicode_NormalizeDecimal() to >> PyUnicode_ConvertToASCIIDecimal() - that's clos

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

2010-12-03 Thread Robert Lehmann
Robert Lehmann 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 widespread real world is

[issue10557] Malformed error message from float()

2010-12-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-12-03 Thread Mark Dickinson
Mark Dickinson 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 ___

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

2010-12-03 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r86964. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10557] Malformed error message from float()

2010-12-03 Thread Mark Dickinson
Mark Dickinson 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. -- ___ Python tracke

[issue8989] email.utils.make_msgid: specify domain

2010-12-03 Thread Adrian von Bidder
Adrian von Bidder 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 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 callback chains should

[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 an oversight, let me ve

[issue3132] implement PEP 3118 struct changes

2010-12-03 Thread Pauli Virtanen
Pauli Virtanen 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 changes the a

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Georg Brandl
Georg Brandl 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: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/3703/steps/test/logs/stdio

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2010-12-03 Thread Rob Cliffe
Rob Cliffe 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. Rob Cliffe -- __

[issue10363] Embedded python, handle (memory) leak

2010-12-03 Thread Steven Youngs
Changes by Steven Youngs : -- nosy: +StevenY ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10614] ZipFile and CP932 encoding

2010-12-03 Thread STINNER Victor
STINNER Victor 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 ___ Python tracker

[issue10557] Malformed error message from float()

2010-12-03 Thread Eric Smith
Eric Smith added the comment: According to comments in the code and verified by inspection, PyOS_string_to_double does not accept any whitespace. -- ___ Python tracker ___

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: Nick, you seem to have forgotten to svn add the CSS file. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue10197] subprocess.getoutput fails on win32

2010-12-03 Thread STINNER Victor
STINNER Victor 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 is not used in Python source

[issue10497] Incorrect use of gettext in argparse

2010-12-03 Thread Éric Araujo
Éric Araujo 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 >parser.prefix_chars.” Exactl

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Éric Araujo
Éric Araujo 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. Hopefully that will m

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

2010-12-03 Thread Éric Araujo
Éric Araujo 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 ___

[issue10615] Trivial mingw compile fixes

2010-12-03 Thread Johann Hanne
New submission from Johann Hanne : 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. - Modules/_pickle.c There are Win

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

2010-12-03 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19923/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10197] subprocess.getoutput fails on win32

2010-12-03 Thread Éric Araujo
Éric Araujo 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 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 KeyboardInterrupt (the handler is writt

[issue10557] Malformed error message from float()

2010-12-03 Thread Mark Dickinson
Mark Dickinson 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 Py_ISSPACE.

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor 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 solve this issue? -- There

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor 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 solve this issue? -- There

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg123242 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou 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 solve this issue? I th

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread STINNER Victor
STINNER Victor 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 using buffered I/O in a signa

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

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak 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 ___ Python tracker

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

2010-12-03 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10197] subprocess.getoutput fails on win32

2010-12-03 Thread R. David Murray
R. David Murray 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. The question that re

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-12-03 Thread R. David Murray
R. David Murray 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. So it seemed better t

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

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou 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 ___

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

2010-12-03 Thread Tres Seaver
Tres Seaver added the comment: This fix needs backporting to the 3.1 and 2.7 branches as well. -- status: closed -> open ___ Python tracker ___ _

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan 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 (along with the Seq

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Added the missing CSS file in r86971. Hopefully that will make the buildbots a little happier. -- ___ Python tracker ___

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

2010-12-03 Thread Georg Brandl
Georg Brandl added the comment: Don't worry, it will be ported. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

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

2010-12-03 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2010-12-03 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19925/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2010-12-03 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Jim Jewett
Jim Jewett added the comment: Does anyone think that it is simpler to register two different callbacks than one? Moderately, yes. Functions that actually help with cleanup should normally be run only in one phase; it is just stats-gathering and logging functions that might run both times,

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan 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 sections, while my browser

[issue2001] Pydoc interactive browsing enhancement

2010-12-03 Thread Nick Coghlan
Nick Coghlan 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 ___ _

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

2010-12-03 Thread Adam Byrtek
Adam Byrtek added the comment: What happened with "there should be one-- and preferably only one --obvious way to do it"? -- nosy: +adambyrtek ___ Python tracker ___ __

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Daniel Stutzbach
Daniel Stutzbach 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 ___

[issue10499] Modular interpolation in configparser

2010-12-03 Thread Łukasz Langa
Łukasz Langa added the comment: Committed in rev 86976. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: On Sat, Dec 4, 2010 at 2:26 AM, Daniel Stutzbach wrote: > > Daniel Stutzbach 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? Ah, I see what you mean. I wa

[issue10557] Malformed error message from float()

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Dec 3, 2010 at 4:45 AM, Marc-Andre Lemburg wrote: .. >> On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg >> wrote: >> .. >>>  * Please change the API _PyUnicode_NormalizeDecimal() to >>>   PyUnicode_ConvertToASCIIDecimal() - that's closer to wh

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Nick Coghlan
Nick Coghlan 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 is supported foll

[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 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: thanks for the patch, i

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
New submission from STINNER Victor : 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: partition, rpartition, find,

[issue6780] startswith error message is incomplete

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: See also #10616. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
STINNER Victor added the comment: See also #6780. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-03 Thread STINNER Victor
STINNER Victor 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 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 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 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

[issue10587] Document the meaning of str methods

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky 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 string character-type methods, I su

[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 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 3.2

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

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Dec 3, 2010 at 11:57 AM, Boštjan Mejak wrote: .. > Indeed. There should be spaces around all the operators. Even in my posted > example. Aim higher: we obviously want Python output look beautiful in print, so operands should be surrounded by U+20

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Georg Brandl
Georg Brandl 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 tracker

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

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak 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 tracker

[issue10557] Malformed error message from float()

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Dec 2, 2010 at 9:53 PM, Alexander Belopolsky 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 the problem was. PyUnicode_FromUnicode() "helpfully"

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

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky 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 a look at ipython. > Also, wh

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

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19927/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19928/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2010-12-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: -belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10617] Collections ABCs can’t be linked to

2010-12-03 Thread Éric Araujo
New submission from Éric Araujo : ABCs in collections.rst are marked up with a class role, not a class directive, which means that constructs using the class role do not generate a link. -- assignee: d...@python components: Documentation messages: 123277 nosy: d...@python, eric.araujo p

[issue2690] Precompute range length and enhance range subscript support

2010-12-03 Thread Daniel Stutzbach
Daniel Stutzbach 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 ___

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

2010-12-03 Thread James Eric Pruitt
James Eric Pruitt 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

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

2010-12-03 Thread Adam Byrtek
Changes by Adam Byrtek : -- nosy: -adambyrtek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2010-12-03 Thread Eric Pruitt
Changes by Eric Pruitt : -- nosy: -ericpruitt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2010-12-03 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Added version-added and committed. r86983 -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-12-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: commit review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2010-12-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2010-12-03 Thread Boštjan Mejak
Boštjan Mejak 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 added the comment: Fixed in r86984 (py3k) and r86990 (2.7). -- resolution: -> fixed stage: patch review -> committed/rejected status: pending -> closed ___ Python tracker _

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Nov 27, 2010 at 6:38 PM, Raymond Hettinger wrote: .. > I suggest Py_UNICODE_ADVANCE() to avoid false suggestion that the iterator > protocol is being used. > As a data point, ICU defines U16_NEXT() for similar purpose. I also like ICU terminolo

  1   2   >