[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

2011-08-11 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: I'd call os.path.join() in the test functions rather than in read_file() and write_file(). This makes it easier to understand what the test is doing without looking at the code of read_file() and write_file(). Otherwise, looks good to me, and

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, the patch is not correct. The core issue is that _Unpickler_Readline should always return a \0-terminated string, but sometimes it doesn't; this issue should be fixed instead of working around it in some other function. --

[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

2011-08-11 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I tend to agree on public APIs, however in this case of a helper function the use case with a join is really really common so this extra function comes in very handy. I also kept it using lists, so it's more obvious than tuples. JFTR it wasn't my

[issue12726] explain why locale.getlocale() does not read system's locales

2011-08-11 Thread Alexis Metaireau
New submission from Alexis Metaireau ale...@notmyidea.org: The documentation about locale.getlocale() doesn't talk about the fact that the locale isn't read from the system locale. Thus, it seemed strange to have locale.getlocale() returning (None, None). As it seems to be the expected

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I confess I'm not familiar enough with the pickle module internals to be sure of putting in the right fix quickly. I will take a look at _Unpickler_Readline when I get a chance, if someone doesn't beat me to it :-) --

[issue12661] Add a new shutil.cleartree function to shutil module

2011-08-11 Thread Leonid Vasilev
Leonid Vasilev vsleo...@gmail.com added the comment: yup, it's really to specific. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12661 ___

[issue12661] Add a new shutil.cleartree function to shutil module

2011-08-11 Thread Leonid Vasilev
Changes by Leonid Vasilev vsleo...@gmail.com: -- resolution: invalid - rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12661 ___ ___

[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: If there's dependence on undefined behaviour (from overflow of signed integer operations) in intobject.c, I'd call that a bug. I've been trying to remove similar overflow checks from the Python source when I've encountered them, but there

[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-11 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: Removed file: http://bugs.python.org/file22866/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12701 ___

[issue12723] tkSimpleDialog.askstring shouldn't allow empty string input

2011-08-11 Thread Matthew Hemke
Matthew Hemke mghe...@gmail.com added the comment: What about adding a validatecommand option like on Tkinter.Entry? For what I am trying to do it was sort of a kludge to validate the entry because an empty string was invalid, but in the interface design, it would have been rude to validate

[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Clang has an option -fcatch-undefined-behavior that might help in locating other locations where we use undefined behavior. -- ___ Python tracker rep...@bugs.python.org

[issue12723] Provide an API in tkSimpleDialog for defining custom validation functions

2011-08-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Adding an option would also be a reasonable feature request, but I think exposing _QueryDialog would be a more general solution, since it would apply to more than just strings. While not backward incompatible, either of these is a new

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0fbd44e3f342 by Vinay Sajip in branch '2.7': Issue #12718: Add documentation on using custom importers. http://hg.python.org/cpython/rev/0fbd44e3f342 New changeset 1e96a4406565 by Vinay Sajip in branch '3.2': Issue

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-11 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12718 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2011-08-11 Thread Johannes Hoff
Johannes Hoff johsh...@gmail.com added the comment: Forest Bond: Thanks for this patch - I hope it will go in soon. In the meantime, could I get permission to use it as is? (I notice there is a copyright in the file) I would of course keep the attributions in the file. -- nosy:

[issue3244] multipart/form-data encoding

2011-08-11 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Hi, Johannes. You can assume the Python license for this patch. -Forest -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue12724] Add Py_RETURN_NOTIMPLEMENTED

2011-08-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e88362fb4950 by Brian Curtin in branch 'default': Add doc for Py_RETURN_NOTIMPLEMENTED, added in #12724. http://hg.python.org/cpython/rev/e88362fb4950 -- ___ Python

[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

2011-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll make one change before committing: Lib/test/test_shutil.py:69: if isinstance(path, (list, tuple)): Using a list for path components does not make sense. I have changed a similar helper function in packaging to allow only tuples. Petri:

[issue12722] Link to heapq source from docs.python.org not working

2011-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The fix committed will be superseded by a link to the Mercurial repo when I fix #11435 (probably tomorrow). -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue12672] Some problems in documentation extending/newtypes.html

2011-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I know perfectly well that [].append is valid Python, but I don't think this is the clearest way to give an example of an object method. I think spelling [].append's meaning more explicitly would be better. Would it be clearer if we replaced

[issue9528] Add pure Python implementation of time module to CPython

2011-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alan: the Versions field is used to mark versions that will get a patch, not all versions affected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528

[issue5639] Support TLS SNI extension in ssl module

2011-08-11 Thread Dolf Andringa
Dolf Andringa dolfandri...@gmail.com added the comment: I see the patch has been applied python3 in r85793, but is there any chance there will also be patches for python 2.6 or 2.7? And if so, what release of python (any version) might this patch be included in? -- nosy:

[issue5639] Support TLS SNI extension in ssl module

2011-08-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I see the patch has been applied python3 in r85793, but is there any chance there will also be patches for python 2.6 or 2.7 No, Python 2 only receives bug fixes. -- ___ Python tracker

[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

2011-08-11 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Éric Araujo wrote: Petri: these helper functions are all about convenienve. I would reject a patch for a function just doing open+read, but here I think that doing os.path.join+open+read is worth a function. We use such helpers all the time

[issue12727] make always reruns asdl_c.py

2011-08-11 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: It's not really an issue, but I thought I would mention it. It is a bit misleading, since it makes you think that you changed something in the grammar that's triggering the rebuild. $ make ./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl

[issue12728] Python re lib fails case insensitive matches on Unicode data

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: The Python re library is broken in its approach to case-insensitive matches. It erroneously attempts to compare lowercase mappings. This is wrong. You must compare the Unicode casefolds, not the Unicode casemaps. Otherwise you get wrong

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: Python is in flagrant violation of the very most basic premises of Unicode Technical Report #18 on Regular Expressions, which requires that a regex engine support Unicode characters as basic logical units independent of serialization like

[issue12730] Python's casemapping functions are untrustworthy due to narrow/wide build issues

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: You cannot use Python's casemapping functions on Unicode data because they fail on narrow builds. This makes it impossible to write portable code in Python that can cope with full Unicode. I've tried several times to submit this bug, but

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c47bc1349e61 by Antoine Pitrou in branch '3.2': Issue #12687: Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles. http://hg.python.org/cpython/rev/c47bc1349e61 New changeset

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: You cannot use Python's lib re for handling Unicode regular expressions because it violates the standard set out for the same in UTS#18 on Unicode Regular Expressions in RL1.2a on compatibility properties. What \w is allowed to match is

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed with a test. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12687

[issue12727] make always reruns asdl_c.py

2011-08-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5e005773feaa by Benjamin Peterson in branch 'default': revert code which conditionally writes Python-ast.h (closes #12727) http://hg.python.org/cpython/rev/5e005773feaa -- nosy: +python-dev resolution: -

[issue12732] Can't portably use Unicode in Python identifiers

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: You cannot reliably use Unicode in Python identifiers because of the narrow/wide build issue. The enclosed file is fine on wide builds but gets compiler errors on narrow ones during compilation. Go, Ruby, Java, and Perl all handle this

[issue12728] Python re lib fails case insensitive matches on Unicode data

2011-08-11 Thread Tom Christiansen
Changes by Tom Christiansen tchr...@perl.com: -- components: +Regular Expressions -Library (Lib) type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12728 ___

[issue12733] Request for grapheme support in Python re lib

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: Without proper grapheme support in the regular expression library, it is impossible to correctly process Unicode. And the very least, one needs the \X escape supported, which is an extended grapheme cluster per UTS#18. This escape is

[issue12734] Request for property support in Python re lib

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: Python supports no Unicode properties in its re library, making it unsuitable for work with Unicode. This is therefore a formal request for the Python re library to support Unicode properties. The eleven properties required by Unicode

[issue12735] request full Unicode collation support in std python library

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: Python has no standard support for the Unicode Collation Library as explained in UTS #10. This is request that UCA library be added to the standard Python distribution. Collation underlies virtually everything we do with text, not just

[issue12730] Python's casemapping functions are untrustworthy due to narrow/wide build issues

2011-08-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: A sign! A sign! Someone with a name-name-name!! (Not a useful comment, i'm afraid.) -- nosy: +sdaoden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12730

[issue12730] Python's casemapping functions are untrustworthy due to narrow/wide build issues

2011-08-11 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- nosy: -sdaoden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12730 ___ ___

[issue12730] Python's casemapping functions are untrustworthy due to narrow/wide build issues

2011-08-11 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- Removed message: http://bugs.python.org/msg141927 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12730 ___

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: Python's casemapping functions only use what Unicode calls simple casemaps. These are only appropriate for functions that operate on single characters alone, not for those that operate on strings. The reason for this is that you get much

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-08-11 Thread Aaron Robson
Changes by Aaron Robson shiny.mag...@googlemail.com: -- nosy: +AaronR ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3561 ___ ___ Python-bugs-list

[issue12006] strptime should implement %V or %u directive from libc

2011-08-11 Thread Aaron Robson
Changes by Aaron Robson shiny.mag...@googlemail.com: -- nosy: +AaronR ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12006 ___ ___ Python-bugs-list

[issue12737] string.title() is overzealous by upcasing combining marks inappropriately

2011-08-11 Thread Tom Christiansen
New submission from Tom Christiansen tchr...@perl.com: Python's string.title() function claims it titlecases the first letter in each word and lowercases the rest. However, this is not true. It is not using either of the two word detection algorithms that Unicode provides. One allows you

[issue12730] Python's casemapping functions are untrustworthy due to narrow/wide build issues

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12730 ___ ___

[issue12737] string.title() is overzealous by upcasing combining marks inappropriately

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12737 ___ ___

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is an acknowledged problem with Python narrow builds, and applies to much more than just regex processing. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue12734] Request for property support in Python re lib

2011-08-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think the only way re is going to get spiffed up is by replacing it with Matthew's library. This is a goal, but I'm not sure where exactly we are in the process. The more Matthew's code gets tested (especially for compatibility with

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +belopolsky, ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12736 ___ ___

[issue12735] request full Unicode collation support in std python library

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +belopolsky, ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12735 ___ ___

[issue12734] Request for property support in Python re lib

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12734 ___ ___

[issue12733] Request for grapheme support in Python re lib

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12733 ___ ___

[issue12732] Can't portably use Unicode in Python identifiers

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12732 ___ ___

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12731 ___ ___

[issue12728] Python re lib fails case insensitive matches on Unicode data

2011-08-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12728 ___ ___

[issue12738] Bug in multiprocessing.JoinableQueue() implementation on Ubuntu 11.04

2011-08-11 Thread Michael Hall
New submission from Michael Hall michaelhal...@gmail.com: I recently switched to Ubuntu 11.04 from OpenSUSE 11.4, and when I go to run a project I coded a couple days ago under OpenSUSE using the multiprocessing library, it hangs when it did not under OpenSUSE. Specifically, I am using two

[issue12738] Bug in multiprocessing.JoinableQueue() implementation on Ubuntu 11.04

2011-08-11 Thread Michael Hall
Michael Hall michaelhal...@gmail.com added the comment: Edit: Sorry, I should have been more clear. The hang occurs after the first child process exits, at which point all four children become zombies (none of the others exit, they just zombify immediately), and the main process sits there

[issue12734] Request for property support in Python re lib

2011-08-11 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: I've been a lot of testing of Matthew's regex library against UTS#18 issues, but only somewhat incidentally testing re. To use regex, one has to accept that certain things will work differently than they work in re, because he is following

[issue12708] multiprocessing.Pool is missing a starmap[_async]() method.

2011-08-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: +def starmapstar(args): +return list(itertools.starmap(args[0], args[1])) Is your new function restricted to 2 arguments? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue12568] Add functions to get the width in columns of a character

2011-08-11 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: I can attest that being able to get the columns of a grapheme cluster is very important for printing, because you need this to do correct linebreaking. There might be something you can steal from

[issue11230] Full unicode import system not in 3.2

2011-08-11 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: How does this work for modules that have filesystem names different from the one used for import? The issue I'm thinking about is that the Mac HSF+ filesystem keeps its Unicode filenames in (close to) NFD form. That means that a module

[issue2857] add codec for java modified utf-8

2011-08-11 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Please do not call this utf-8-java. It is called cesu-8 per UTS#18 at: http://unicode.org/reports/tr26/ CESU-8 is *not* a a valid Unicode Transform Format and should not be called UTF-8. It is a real pain in the butt, caused by people who

[issue12739] read stuck with multithreading and simultaneous subprocess.Popen

2011-08-11 Thread Joe Hu
New submission from Joe Hu sapika...@gmail.com: When multiple threads create child processes simultaneously and redirect their stdout using subprocess.Popen, at least one thread will stuck on reading the stdout after its child process exited, until all other processes are also exited. The

[issue11105] Compiling evil ast crashes interpreter

2011-08-11 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11105 ___ ___ Python-bugs-list

[issue2857] add codec for java modified utf-8

2011-08-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: +1 for calling it by the correct name (the docs can of course state that this is equivalent to Java Modified UTF-8 or however they like to call it). -- ___ Python tracker rep...@bugs.python.org