[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 incandesc...@gmail.com: -- nosy: +joshual ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8194 ___ ___ Python-bugs-list

[issue10598] curses fails to import on Solaris

2010-12-02 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com 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 rep...@bugs.python.org

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

2010-12-02 Thread Campbell Barton
New submission from Campbell Barton ideasma...@gmail.com: # 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

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

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-12-02 Thread Alex Earl
Alex Earl slide.o@gmail.com 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

[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Daniel Molkentin
New submission from Daniel Molkentin dan...@molkentin.de: 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 */ }

[issue10604] Allocating too much memory for pathes

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

[issue3243] Support iterable bodies in httplib

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 pit...@free.fr 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 mer...@netwok.org: Removed file: http://bugs.python.org/file19904/fix-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10602 ___

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

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

[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 anurag.choura...@gmail.com 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)

[issue3243] Support iterable bodies in httplib

2010-12-02 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: eric: sorry, that has been fixed in issue_3243_py3k_7.patch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3243 ___

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

2010-12-02 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10603 ___ ___ Python-bugs-list

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

2010-12-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

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

2010-12-02 Thread Alex Earl
Alex Earl slide.o@gmail.com 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 adrian_...@yahoo.com: 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.

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

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-12-02 Thread Alex Earl
Alex Earl slide.o@gmail.com added the comment: Excellent. As long as it's documented, it works for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10602 ___

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

2010-12-02 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: (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:

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

2010-12-02 Thread INADA Naoki
New submission from INADA Naoki songofaca...@gmail.com: 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

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

2010-12-02 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Fixed in py3k in r86932 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10606 ___

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

2010-12-02 Thread Alex Rodriguez
Alex Rodriguez alej...@gmail.com 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

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

2010-12-02 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2010-12-02 Thread INADA Naoki
INADA Naoki songofaca...@gmail.com added the comment: Sorry, I've misreaded the sentence. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10607

[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue9299

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Added file: http://bugs.python.org/file19907/issue10557b.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10557 ___

[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue10597] Py_SetPythonHome document shows same url twice.

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Codecs brought back and (un)transform implemented in r86934. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475

[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue9915] speeding up sorting with a key

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue3132] implement PEP 3118 struct changes

2010-12-02 Thread Pauli Virtanen
Pauli Virtanen p...@iki.fi 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

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Dec 2, 2010 at 12:54 PM, Mark Dickinson rep...@bugs.python.org wrote: .. The classes of whitespace accepted in each position are the same.  IIUC, with your patch, that consistency would be lost---is that right?

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Dec 2, 2010 at 1:28 PM, Alexander Belopolsky belopol...@users.sourceforge.net 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 gmattb...@gmail.com 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

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

2010-12-02 Thread Brian Curtin
Brian Curtin cur...@acm.org 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

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

2010-12-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Works for me too. Great! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9227 ___ ___

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

2010-12-02 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: 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 StartRunpython, os.symlink will almost positively not be available. I'll need to

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

2010-12-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 :)

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com 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

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

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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. --

[issue10535] Enable warnings by default in unittest

2010-12-02 Thread Brian Curtin
Brian Curtin cur...@acm.org 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 rep...@bugs.python.org

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com 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 ideasma...@gmail.com added the comment: This is fixed in 3.2a4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10603 ___ ___

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

2010-12-02 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10603 ___

[issue9621] Graphviz output for 2to3 fixer patterns

2010-12-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9621 ___ ___

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

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: By the way, I wonder why this page is named “functions” and the one for “builtins” is nearly empty. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10299

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

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

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

2010-12-02 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: 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

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com 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

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

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

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

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: That's legacy from the good old latex days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10299 ___

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: In electrical engineeringhttp://en.wikipedia.org/wiki/Electrical_engineering and related fields, the imaginary unit is often denoted by *j* to avoid confusion with electrical currenthttp://en.wikipedia.org/wiki/Current_(electricity) as a

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

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

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

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

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

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

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

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

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

2010-12-02 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: yes -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___ ___ Python-bugs-list mailing list

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

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Sure. I have personally written software where i denotes, in effect, an electrical current. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562

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

2010-12-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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'

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

2010-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Mark Dickinson wrote: Mark Dickinson dicki...@gmail.com 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

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue10557] Malformed error message from float()

2010-12-02 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 submitting a patch (issue10557b.diff) for commit review. As Marc suggested, decimal conversion is now performed on Py_UNICODE

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue10528

[issue8989] email.utils.make_msgid: specify domain

2010-12-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed to py3k in r86936 with minor fixups. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

2010-12-02 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Great! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10603 ___ ___

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

2010-12-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Mark Dickinson wrote: Mark Dickinson dicki...@gmail.com 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

[issue9915] speeding up sorting with a key

2010-12-02 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com 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

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: That would be good. While you could argue it's a bug, the fix is also slightly incompatible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528

[issue9915] speeding up sorting with a key

2010-12-02 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- components: +Interpreter Core -Library (Lib) resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10197] subprocess.getoutput fails on win32

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

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue9915] speeding up sorting with a key

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9915 ___ ___ Python-bugs-list mailing

[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: ..  * Please change the API _PyUnicode_NormalizeDecimal() to   PyUnicode_ConvertToASCIIDecimal() - that's closer to what   it does. Are

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

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: That would be a good question for a numpy/scipy-related mailing list, I guess. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562 ___

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Maybe we need a complex analog to datetime.strptime: complex.strpcx('(3 + 4i)', '(%R + %Ii)') - 3 + 4j -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10562

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

2010-12-02 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg m...@egenix.com: 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

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

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

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

2010-12-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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,

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

2010-12-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

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

[issue10197] subprocess.getoutput fails on win32

2010-12-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Do you have in implementation in mind? I'm not clear how this would work. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10197 ___

[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 danielmtava...@gmail.com 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

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

2010-12-02 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10610 ___ ___ Python-bugs-list

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

2010-12-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue10557] Malformed error message from float()

2010-12-02 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Alexander Belopolsky 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 _PyUnicode_NormalizeDecimal() to   PyUnicode_ConvertToASCIIDecimal() -

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

2010-12-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2010-12-02 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com 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 belopol...@users.sourceforge.net added the comment: On Thu, Dec 2, 2010 at 6:32 PM, Stefan Krah rep...@bugs.python.org 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

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

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Isn’t s/iteritems/items/ enough? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10609 ___

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

2010-12-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - d...@python components: +Documentation nosy: +d...@python stage: - needs patch versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10609

  1   2   >