[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-02 Thread Joshua Lock
Changes by Joshua Lock : -- nosy: +joshual ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10598] curses fails to import on Solaris

2010-12-02 Thread Robert Lehmann
Robert Lehmann added the comment: I have attached a fix and a regression test. -- keywords: +patch nosy: +lehmannro Added file: http://bugs.python.org/file19903/issue10598.patch ___ Python tracker

[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread Campbell Barton
New submission from Campbell Barton : # create this path. # it could be made by any application but including this line # so encoding is not confused. # c:\äöü __import__("os").mkdir(b'c:\\\xe4\xf6\xfc') # Now create a new script and save in the newly created dir c:\äöü\test.py # In c:\äöü\test

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the report. The problem is that asserTrue is used instead of assertEqual; attached patch fixes that and reveals a bug. -- components: +Library (Lib) nosy: +eric.araujo stage: -> needs patch title: csv test_register_kwargs has invalid messa

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: This is the output of the test: FAIL: test_register_kwargs (__main__.TestDialectRegistry) -- Traceback (most recent call last): File "Lib/test/test_csv.py", line 326, in test_register_kwargs

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Alex Earl
Alex Earl added the comment: The internal _csv module which actually implements the reader method expects the first parameter to be an iterable object. Since strings are iterated by character, that is why this is occuring. So, the fix would need to be made in the _csv module, which is a C mod

[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Daniel Molkentin
New submission from Daniel Molkentin : from PC/getpathp.c:538 if (pythonhome != NULL) { char *p; bufsz = 1; for (p = PYTHONPATH; *p; p++) { if (*p == DELIM) bufsz++; /* number of DELIM plus one */ } bufsz *= strlen(pythonho

[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Hmm, not sure. Try with set PYTHONPATH=.\a;.\b sys.path will contains the entries: \a \b a multiplication seems necessary. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue3243] Support iterable bodies in httplib

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: >> What is __read__ supposed to be? > I don't think is required. The point is that Python does not define a __read__ magic method. Only read exists, on file objects. -- ___ Python tracker

[issue9915] speeding up sorting with a key

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Just wanted to post this so there weren't any illusions about the > patch being a big win. Daniel has already posted benchmark numbers, I would trust them rather than any theoretical speculation about whether the patch is interesting or not. --

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19904/fix-test.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: I still think this is a bug in the test. Attached patch fixes it. -- assignee: -> eric.araujo Added file: http://bugs.python.org/file19905/fix-test.diff ___ Python tracker

[issue10555] AIX 5.3 - GCC - Python 2.7 Shared Library Support - Fatal Python error: Interpreter not initialized (version mismatch?)

2010-12-02 Thread Anurag Chourasia
Anurag Chourasia added the comment: Hi All, Thanks again for all your support. I can confirm that this works fine with the AIX Shared Library build support added in Python 2.7.1 (and 3.x which I have not tested but my tests with 2.7.1 were absolutely fine) -- resolution: -> fixed s

[issue3243] Support iterable bodies in httplib

2010-12-02 Thread Xuanji Li
Xuanji Li added the comment: eric: sorry, that has been fixed in issue_3243_py3k_7.patch -- ___ Python tracker ___ ___ Python-bugs-lis

[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread R. David Murray
Changes by R. David Murray : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread R. David Murray
R. David Murray added the comment: Much work has been done on non-ASCII paths in 3.2. Can you test this with the 3.2 alpha and let us know the results? -- nosy: +r.david.murray ___ Python tracker ___

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Alex Earl
Alex Earl added the comment: The patch looks good to me. The only question I have is that the previous test that was passing a string, is the expected behavior what was being returned before, or would it be useful to turn the string into an iterable over "lines"? -- _

[issue10605] ElementTree documentation

2010-12-02 Thread Adrian Nye
New submission from Adrian Nye : TreeBuilder doc does not mention its "entity" argument which is the main way to deal with html entity encodings which are unfortunately a common problem in XML. Also the doc needs a discussion of the relationship of TreeBuilder and XMLParser. The former has "

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: I don’t think we should change behavior. Strings are iterable; csv.reader takes an iterable; this is sensible and documented. See http://docs.python.org/dev/library/csv#csv.reader and the last example of http://docs.python.org/dev/library/csv#examples ---

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Alex Earl
Alex Earl added the comment: Excellent. As long as it's documented, it works for me. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue10606] Misspelling of Jamie Zawinski's surname in urllib.parse docstring

2010-12-02 Thread Dave Malcolm
New submission from Dave Malcolm : (was misspelled when issue 5650 was fixed, FWIW) -- assignee: orsenthil components: Library (Lib) files: py3k-fix-jwz-surname.patch keywords: patch messages: 123079 nosy: dmalcolm, orsenthil priority: low severity: normal status: open title: Misspelling

[issue10607] Document of PyOS_(v)snprintf is wrong.

2010-12-02 Thread INADA Naoki
New submission from INADA Naoki : http://docs.python.org/c-api/conversion.html#PyOS_vsnprintf "the buffer size needed to avoid truncation exceeds size by more than 512 bytes, Python aborts with a Py_FatalError." I think ":cfunc:`vsprintf`'s output exeeds the buffer need to truncation that hav

[issue10606] Misspelling of Jamie Zawinski's surname in urllib.parse docstring

2010-12-02 Thread Dave Malcolm
Dave Malcolm added the comment: Fixed in py3k in r86932 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-12-02 Thread Alex Rodriguez
Alex Rodriguez added the comment: I downloaded "python-2.7.1-macosx10.6.dmg" file and tested if Tkinter and IDLE still have same issue reported here and I did not find anymore this issue. I was able to launch IDLE and create a Tkinter GUI. From my side we can resolve and close this issue. --

[issue9299] os.makedirs(): Add a keyword argument to suppress "File exists" exception

2010-12-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Georg Brandl patched the doc changes in r86931. Ray, for future reference, you might take a look, particularly -.. function:: makedirs(path[, mode][, exist_ok=False]) +.. function:: makedirs(path, mode=0o777, exist_ok=False) In 3.x, (as opposed to 2.x), the s

[issue10607] Document of PyOS_(v)snprintf is wrong.

2010-12-02 Thread INADA Naoki
INADA Naoki added the comment: Sorry, I've misreaded the sentence. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: Before the multiplication, "bufsz" is not aptly named: as your snippet shows it's counting the number of delimiters in the PYTHONPATH. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed ___ Python t

[issue9299] os.makedirs(): Add a keyword argument to suppress "File exists" exception

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: Well, you're not to blame since the patch merely extended the definition which was still using obsolete syntax anyway. -- ___ Python tracker ___

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am submitting a patch (issue10557b.diff) for commit review. As Marc suggested, decimal conversion is now performed on Py_UNICODE characters. For this purpose, I introduced _PyUnicode_NormalizeDecimal() function that takes Py_UNICODE and returns a PyU

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file19907/issue10557b.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: Is the stripping of whitespace necessary for this fix? Currently, the complex constructor accepts whitespace both inside and outside the (optional) parentheses: >>> complex(' ( 2+3j ) ') (2+3j) The classes of whitespace accepted in each position are the same

[issue10597] Py_SetPythonHome document shows same url twice.

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: You can give "two" homes; prefix and exec_prefix. r86933 now links to PYTHONHOME where this is already documented properly. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker

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

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: Codecs brought back and (un)transform implemented in r86934. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: Just to clarify: I'm not opposed to allowing arbitrary Unicode whitespace in the float, int, complex constructors (indeed, it's probably a good thing). But I'd like to see the change made consistently; for the complex constructor this looks a bit involved,

[issue9915] speeding up sorting with a key

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: AP: I've already given my blessing to the patch. Just wanted to note what the existing code did. I also trust timings but recognize that they reflect a particular build configuration (compiler/processor/o.s)and the usage pattern for a particular benchmark.

[issue3132] implement PEP 3118 struct changes

2010-12-02 Thread Pauli Virtanen
Pauli Virtanen added the comment: For reference, Numpy's PEP 3118 implementation is here: http://github.com/numpy/numpy/blob/master/numpy/core/_internal.py#L357 http://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/buffer.c#L76 It would be a good idea to ensure that the numpy an

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Dec 2, 2010 at 12:54 PM, Mark Dickinson wrote: .. > The classes of whitespace accepted in each position are the same.  IIUC, with > your patch, > that consistency would be lost---is that right? Good point. I thought The PyUnicode_EncodeDecimal()

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Dec 2, 2010 at 1:28 PM, Alexander Belopolsky wrote: .. > Can you suggest a test case? I mean for complex(). -- ___ Python tracker

[issue9621] Graphviz output for 2to3 fixer patterns

2010-12-02 Thread Matt Bond
Matt Bond added the comment: Sorry for the delay in responding, and for getting this patch cleaned up and submitted. While I was going through my code to submit it, I found a couple of additional issues with it. Then I ended up becoming very busy with my grad courses. As a result, I haven't

[issue9333] Expose a way to enable os.symlink on Windows

2010-12-02 Thread Brian Curtin
Brian Curtin added the comment: Fixed in r86935. Tests pass on the following setups: - Windows 7 (regular user - no symlink privilege) - Windows 7 (administrator + symlink privilege) - Windows Server 2003 (no symlink abilities) - Arch Linux (just a sanity check) I'm going to create a follow-up

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-12-02 Thread Michael Foord
Michael Foord added the comment: Works for me too. Great! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue10608] Add a section to Windows FAQ explaining os.symlink

2010-12-02 Thread Brian Curtin
New submission from Brian Curtin : A section in the Windows FAQ should better explain the recent addition of os.symlink and how it can be used, along with examples. If a user just sits down and hits Start>Run>python, os.symlink will almost positively not be available. I'll need to briefly expl

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-02 Thread R. David Murray
R. David Murray added the comment: Are you sure testA1 is correct? It seems to me that in that case the sniffer can indeed not determine the delimiter, but I don't really understand the guessing algorithm. The existing behavior on unquoted strings is...interesting :) Also if you are willin

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: The imaginary unit 'i' should be equvivalent to the imaginary unit 'j'. The imaginary unit, however, should be used consistently in the source code. -- Added file: http://bugs.python.org/file19908/unnamed ___ Python

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

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this change were important, the numpy/scipy guys would have requested it long ago. Any possible benefit would be slight and not at all worth the disruption. s.replace('j', 'i') -- nosy: +rhettinger ___ P

[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: Ah yes, you're right: this shouldn't be a hard fix. I withdraw my suggestion for a separate patch. :-) Checking that: complex('\xa0(\xa02+3j\xa0)\xa0') == complex(2.0, 3.0) would probably be enough. -- ___ Pyt

[issue10535] Enable warnings by default in unittest

2010-12-02 Thread Brian Curtin
Brian Curtin added the comment: Here's a patch for the ResourceWarnings that were introduced. -- nosy: +brian.curtin Added file: http://bugs.python.org/file19909/warnings.diff ___ Python tracker __

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: > There should be an environment variable to make the symbol settable. That could work; it's a bit late to do this in 3.2, though. How about the following transition strategy for the complex output. Python 3.3: Introduce PYTHONIMAGINARYSYMBOL environment va

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: That is acceptable, but way to slow for the 'j' imaginary unit to become extinct. It should happen sooner. -- Added file: http://bugs.python.org/file19910/unnamed ___ Python tracker

[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread Campbell Barton
Campbell Barton added the comment: This is fixed in 3.2a4. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue9621] Graphviz output for 2to3 fixer patterns

2010-12-02 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: We also should consider a good roadmap to account for the eventual support of quaternions in the language syntax. Since the conventional mathematical symbols for the additional imaginary units of quaternions are j and k, confusion is bound to happen. My prefer

[issue10299] Add index with links section for built-in functions

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: By the way, I wonder why this page is named “functions” and the one for “builtins” is nearly empty. -- ___ Python tracker ___ ___

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

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Since the conventional mathematical symbols for the additional > imaginary units of quaternions are j and k, confusion is bound to > happen. > > My preferred solution is to limit PYTHONIMAGINARYSYMBOL values to "i", > "j" or "k" in Python 3.4. The two additi

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

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Since we have two distinct user groups (engineers and everyone else), it's clear that we should fork Python. That would let each group work with their on most-natural-representation and it would prevent unnecessary configuration challenges. Benjamin, cou

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

2010-12-02 Thread Brian Curtin
Brian Curtin added the comment: Will PYTHONIMAGINARYPERMUTATIONDIR accept imaginary numbers? If so, we will also need PYTHONIMAGINARYPERMUTATIONDIRIMAGINARYIDENTIFIER. -- nosy: +brian.curtin ___ Python tracker __

[issue10609] dbm documentation example doesn't work (iteritems())

2010-12-02 Thread Sandro Tosi
New submission from Sandro Tosi : Following http://mail.python.org/pipermail/docs/2010-December/002356.html a possible solution is: diff -r 3b07f7bb0289 Doc/library/dbm.rst --- a/Doc/library/dbm.rst Thu Dec 02 19:29:18 2010 +0100 +++ b/Doc/library/dbm.rst Thu Dec 02 21:51:06 2010 +

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: How did you implement the letter 'j' as the imaginary unit? Can you now implement the letter 'i' to act as an imaginary unit? Is that possible? If it's possible in MATLAB, why not have both 'j' and 'i' in Python as well? -- Added file: http://bugs.pytho

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

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: I heard that MathWorks has a patent on METHOD AND APPARATUS FOR IMAGINATORIAL FREEDOM, so if that's true we might not be allowed to implement it. -- ___ Python tracker

[issue10299] Add index with links section for built-in functions

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: That's legacy from the good old latex days. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: "In electrical engineering and related fields, the imaginary unit is often denoted by *j* to avoid confusion with electrical current as a function of time, t

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

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

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

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

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

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

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

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

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

2010-12-02 Thread Brian Curtin
Brian Curtin added the comment: yes -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: Sure. I have personally written software where i denotes, in effect, an electrical current. -- ___ Python tracker ___ _

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

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Can you now implement the letter 'i' to act as an > imaginary unit? Is that possible? Yes, it's possible; however, the developers do not think it is worthwhile. > If it's possible in MATLAB, why not have both 'j' and 'i' > in Python as well? Python doe

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

2010-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson added the comment: > >> There should be an environment variable to make the symbol settable. > > That could work; it's a bit late to do this in 3.2, though. How about the > following transition strategy for the

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: In all seriousness, the idea of accepting both 'i' and 'j' in complex() isn't horrible. I'm personally -0.small on it, mostly because it seems likely to lead to more objections about the complex str() and repr() *output* containing 'j's. I still think python

[issue10557] Malformed error message from float()

2010-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > I am submitting a patch (issue10557b.diff) for commit review. As Marc > suggested, decimal conversion is now performed on Py_UNICODE characters. For > this purpose, I introduce

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: Georg, do I have to make a patch before beta1 for this to go in 3.2? -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue8989] email.utils.make_msgid: specify domain

2010-12-02 Thread R. David Murray
R. David Murray added the comment: Committed to py3k in r86936 with minor fixups. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread STINNER Victor
STINNER Victor added the comment: Great! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson added the comment: > > In all seriousness, the idea of accepting both 'i' and 'j' in complex() isn't > horrible. I'm personally -0.small on it, mostly because it seems likely to > lead to more objections about th

[issue9915] speeding up sorting with a key

2010-12-02 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Committed as r86937. Thanks again for reviewing! Although I do not anticipate any problems, I will keep an eye on the buildbots just in case. Antoine, regarding "ms->alloced = (list_size + 1) / 2;", I ended up adding an extensive comment after all. -

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: That would be good. While you could argue it's a bug, the fix is also slightly incompatible. -- ___ Python tracker ___

[issue9915] speeding up sorting with a key

2010-12-02 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- components: +Interpreter Core -Library (Lib) resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue10197] subprocess.getoutput fails on win32

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: I think we should implement getstatusoutput and getoutput with Popen objects to gain portability and avoid spawning subshells. -- ___ Python tracker

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: > Personally, I think it's more important to be able to read > scientific data easily without too many problems, then to be > able to write the processed data in exactly the same way it > was read. I wonder whether there are many examples where scientific data

[issue9915] speeding up sorting with a key

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
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 closer to what >   it does. > Are you sure it is a good idea to give it a public name?

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

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: That would be a good question for a numpy/scipy-related mailing list, I guess. -- ___ Python tracker ___

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: Maybe we need a complex analog to datetime.strptime: complex.strpcx('(3 + 4i)', '(%R + %Ii)') -> 3 + 4j -- ___ Python tracker ___ __

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

2010-12-02 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : The Python3 documentation for these numeric constructors is wrong. Python has supported Unicode numerals specified as code points from the Unicode category "Nd" (decimal digit) since Python 1.6.0 when Unicode was first introduced in Python. http://

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

2010-12-02 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: The reference to the language spec was really just a way to avoid spelling out all the details (again) about the precise form of a floating-point string; apart from the accepted set of digits, the forms are exactly the same (optional sign, numeric part, opti

[issue1672568] silent error in email.message.Message.get_payload

2010-12-02 Thread R. David Murray
R. David Murray added the comment: I've taken another look at this, and the email module is pretty consistent about just passing through data if it can't interpret it according to standards. I think it would lead to a cluttered API if we add support for being strict and raising errors piecem

[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: Patch committed as r86940 (py3k), r86941 (3.1) and r86942 (2.7). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

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

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 02 décembre 2010 à 22:29 +, Mark Dickinson a écrit : > Mark Dickinson added the comment: > > Maybe we need a complex analog to datetime.strptime: > > complex.strpcx('(3 + 4i)', '(%R + %Ii)') -> 3 + 4j How about '3 + 4i'.transform('complex')?

[issue10197] subprocess.getoutput fails on win32

2010-12-02 Thread R. David Murray
R. David Murray added the comment: Do you have in implementation in mind? I'm not clear how this would work. -- ___ Python tracker ___ _

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

2010-12-02 Thread Daniel Tavares
Daniel Tavares added the comment: Here's an updated patch, which fixes the passing of multiple arguments to self.announce, based on Priscila's fix. -- nosy: +daniel.tavares Added file: http://bugs.python.org/file19913/10367.diff ___ Python tracker

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

2010-12-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Marc, I don't want to further sprawl the python-dev thread, but it would be great if you could help with issue10587 as well. That is a documentation-only issue, but there is some disagreement about how specific the docs should be. Some of the relevan

[issue10557] Malformed error message from float()

2010-12-02 Thread Stefan Krah
Stefan Krah added the comment: Alexander Belopolsky 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 what > >   it does. > > > > Are you sure it is

[issue9333] Expose a way to enable os.symlink on Windows

2010-12-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: So the presence of os.symlink depends on some dynamic privilege? It seems to me that it's the first time in Python. For example, os.chroot() is always available on Unix, even when the user is not root. Of course the call will fail at runtime. Why not

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak added the comment: (7.8064-6j) According to PEP 8, the output in our example should be with spaces surrounding the subtraction operator, like this: >>> (1 + 2.56j) * (-1 - 3.44j) (7.8064 - 6j) -- Added file: http://bugs.python.org/file19914/unnamed _

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Dec 2, 2010 at 6:32 PM, Stefan Krah wrote: .. > I like the public name. Extension authors can use it and be sure that > their programs accept exactly the same numeric strings as the rest of > Python. > > Are you worried that the semantics might ch

[issue10609] dbm documentation example doesn't work (iteritems())

2010-12-02 Thread Éric Araujo
Éric Araujo added the comment: Isn’t s/iteritems/items/ enough? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mai

  1   2   >