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

2011-08-12 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: No, that's just a helper function like the `mapstar` directly above. args[1] is the iterable with tuples that get unpacked as arguments. -- ___ Python tracker rep...@bugs.python.org

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

2011-08-12 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Eric, just to be clear: Are you making this list-tuple change or should I fix the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12721

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

2011-08-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 683202530137 by Eli Bendersky in branch 'default': Issue #12672: fix code samples in extending/newtypes.html for PEP-7 compliance http://hg.python.org/cpython/rev/683202530137 -- nosy: +python-dev

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

2011-08-12 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- keywords: -easy versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12672 ___

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

2011-08-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Would it be clearer if we replaced the literal with a name? These C functions are called “type methods” to distinguish them from - things like [].append (which we call “object methods”). + methods bound to specific instances (things like

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

2011-08-12 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Maybe it should say: ... to distinguish them from custom class methods such as list's append I think this is more correct, because it clearly refers to the methods placed in the 'tp_methods' field of a type. ... and also drop the (which we

[issue5639] Support TLS SNI extension in ssl module

2011-08-12 Thread Dolf Andringa
Dolf Andringa dolfandri...@gmail.com added the comment: And python3? Any idea which version the patch will be included there? This might be a good reason to finally take action on migrating my code from python 2.7 to python 3. On 11 August 2011 18:49, Antoine Pitrou rep...@bugs.python.org

[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-12 Thread xavierd
xavierd xdelan...@cloudmark.com added the comment: This patch does: - when a close boundary isn't found then the error 'email.errors.CloseBoundaryNotFoundDefect' is added to the defects list. - it doesn't modify the current behaviour of the feedparser (eg: the function

[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-12 Thread xavierd
Changes by xavierd xdelan...@cloudmark.com: Added file: http://bugs.python.org/file22888/orig.eml ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12515 ___

[issue12515] email modifies the message structure when the parsed email is invalid

2011-08-12 Thread xavierd
xavierd xdelan...@cloudmark.com added the comment: with the patch applied: {{{ $ ./test.py PARSER INVALID EMAIL defects found ! [email.errors.CloseBoundaryNotFoundDefect instance at 0x7f41421c0488] }}} -- Added file: http://bugs.python.org/file22889/test.py

[issue2857] add codec for java modified utf-8

2011-08-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Tom Christiansen wrote: 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

[issue5639] Support TLS SNI extension in ssl module

2011-08-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: And python3? Any idea which version the patch will be included there? It was included in Python 3.2. -- versions: -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue12740] Add struct.Struct.nmemb

2011-08-12 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: It is somewhat complicated to calculate the number of members in a Struct, so I propose to add Struct.nmemb (in 3.3, 3.2 and 2.7): import struct s = struct.Struct(Pxx3L3s) s.size 47 s.nmemb 5 I chose 'nmemb' because it is a

[issue12741] Implementation of shutil.move

2011-08-12 Thread David Townshend
New submission from David Townshend aquavita...@gmail.com: The shutil.move function uses os.rename to move files on the same file system. On unix, this function will overwrite an existing destination, so the obvious approach is if not os.path.exists(dst): shutil.move(src, dst) But this

[issue11230] Full unicode import system not in 3.2

2011-08-12 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Whoops, I meant that it appears that Python runs its identifiers through NFC. How that gets along with a filesystem that has quasi-NFD filenames I'm not sure, but it seems like it might be a variant of the case-insensitivity issue in

[issue2857] Add CESU-8 codec (java modified utf-8)

2011-08-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: add codec for java modified utf-8 - Add CESU-8 codec (java modified utf-8) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2857

[issue11230] Full unicode import system not in 3.2

2011-08-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The issue I'm thinking about is that the Mac HSF+ filesystem There is no issue with HFS+ normalization. The kernel normalizes filenames to its own variant, Python doesn't have to care about this. When you write import hé

[issue2857] Add java modified utf-8 codec

2011-08-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Corrected the title again. See my comment. -- title: Add CESU-8 codec (java modified utf-8) - Add java modified utf-8 codec versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker

[issue2857] Add java modified utf-8 codec

2011-08-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Marc-Andre Lemburg wrote: Corrected the title again. See my comment. Please open a new ticket, if you want to add a CESU-8 codec. Looking at the relevant use cases, I'm at most +0 on adding the modified UTF-8 codec. I think such codecs

[issue2857] Add java modified utf-8 codec

2011-08-12 Thread Adal Chiriliuc
Adal Chiriliuc adal.chiril...@gmail.com added the comment: Python does have other weird encodings like bz2 or rot13. Beside, batteries included :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2857

[issue12742] Add support for CESU-8 encoding

2011-08-12 Thread Adal Chiriliuc
New submission from Adal Chiriliuc adal.chiril...@gmail.com: CESU-8 is identical with UTF-8 except that it has a different encoding format for surrogate characters. http://en.wikipedia.org/wiki/CESU-8 It is used by some web APIs. -- components: Unicode messages: 141958 nosy: adalx

[issue12743] C API marshalling doc contains XXX

2011-08-12 Thread JJeffries
New submission from JJeffries jamesjeffri...@gmail.com: The Python C API manual page for data marshaling contains the following paragraph. XXX What about error detection? It appears that reading past the end of the file will always result in a negative numeric value (where that’s relevant),

[issue12195] Little documentation of annotations

2011-08-12 Thread JJeffries
JJeffries jamesjeffri...@gmail.com added the comment: While I understand the reluctance to unintentionally push people along a particular path, but I think there is being open on how to use it and not mentioning it. I think that currently the current documentation is the latter and some

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

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think the distinction is between special methods recognized by Python, and plain object methods defined by the user. Do you mean __special__ methods? Re-reading the whole paragraph, I can’t tell :( --

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

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: “I’ll make one change before committing” :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12721 ___

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

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

[issue9723] Add shlex.quote

2011-08-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8032ea4c3619 by Éric Araujo in branch '3.2': Test pipes.quote with a few non-ASCII characters (see #9723). http://hg.python.org/cpython/rev/8032ea4c3619 New changeset 6ae0345a7e29 by Éric Araujo in branch 'default':

[issue9723] Add shlex.quote

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have restored compatibility (see commit messages). -- stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9723

[issue9999] test_shutil cross-file-system tests are fragile (may not test what they purport to test)

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Unfortunately I don't currently have a suggestion for how to reliably create a cross-file-system link for testing purposes. We could try walking a list of common mount points (/run, /dev, /tmp, /home, etc.), compiled from as many OSes as

[issue9773] test_tarfile fails because of inaccurate mtime on AMD64 debian parallel buildbot

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9773 ___ ___ Python-bugs-list

[issue12715] Add symlink support to shutil functions

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Other reports related to shutil and symlinks: #9993, #4489, #12461. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12715 ___

[issue12712] weave build_tools library identification

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: When running the program, Which program? :) To see if this is a bug in Python (i.e. in distutils), it would be helpful if you could provide the simplest possible code that triggers the error. it looks for an installed version of MinGW, which

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Interesting idea. I know that with Mercurial for example, I use abbreviations and aliases all the time. Note that argparse already has aliases (or there is an open feature request about it). Steven: What do you think of this request?

[issue12716] Reorganize os docs for files/dirs/fds

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12716 ___ ___

[issue12725] Docs: Odd phrase floating seconds in socket.html

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy nosy: +eric.araujo stage: - needs patch versions: +Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12725

[issue11233] clarifying Availability: Unix

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If no-one else has started on this, I’m interested in making a patch to introduce an availability directive. -- nosy: +eric.araujo resolution: works for me - stage: - needs patch ___ Python tracker

[issue12744] inefficient pickling of long integers on 64-bit builds

2011-08-12 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: On a 64-bit Linux machine (where C `long` is 64 bits): len(pickle.dumps(2**30)) 8 len(pickle.dumps(2**31)) 16 len(pickle.dumps(2**62)) 25 len(pickle.dumps(2**63)) 14 This is because the old text protocol is used when the integer can fit in

[issue12744] inefficient pickling of long integers on 64-bit builds

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

[issue12744] inefficient pickling of long integers on 64-bit builds

2011-08-12 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12744 ___ ___ Python-bugs-list

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

2011-08-12 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12735 ___ ___ Python-bugs-list

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

2011-08-12 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12732 ___ ___ Python-bugs-list

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

2011-08-12 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Michael, It is hard to tell from your description alone where the bug is. Could you provide more detailed reproduction steps with a test case that exhibits the issue? -- nosy: +jnoller, meador.inge stage: - test needed

[issue10087] HTML calendar is broken

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: There were comments by Ezio and me on Rietveld. Also, the commit adds a period after the help text for --encoding, but all other help text aren’t capitalized and don’t use periods, as is usual in help messages. --

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

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Interpreter Core, Unicode -Library (Lib) versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12736 ___

[issue12743] C API marshalling doc contains XXX

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It should be removed if someone is confident that it’s a obsolete comment, or if tests get added to answer the questions in the note. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue12742] Add support for CESU-8 encoding

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Library (Lib) nosy: +lemburg versions: +Python 3.3 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12742 ___

[issue9176] module termios doesn't build on HP-UX

2011-08-12 Thread Philip Douglass
Philip Douglass phi...@philipdouglass.com added the comment: Workaround for this issue: Add -D_TERMIOS_INCLUDED to your CFLAGS/CPPFLAGS environment variables to successfully compile termios. -- nosy: +philipsd6 ___ Python tracker

[issue12741] Add function similar to shutil.move that does not overwrite

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: About new function vs. new argument: this could be asked on python-dev (or on the core-mentorship list if you prefer an environment guaranteed friendly). If you look at copy and copy2, you’ll see that adding a function was chosen, but the

[issue12705] Make compile('1\n2\n', '', 'single') raise an exception instead of silently truncating?

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Pending an argument against, I agree with the change. I think SyntaxError would be best. ValueError (etc) is for runtime (though this is compile during runtime). What would you have for the error message? My first idea is Cannot compile

[issue12706] timeout sentinel in ftplib and poplib documentation

2011-08-12 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- components: +Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12706 ___ ___

[issue12032] Tools/Scripts/crlf.py needs updating for python 3+

2011-08-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 47ffb957921d by Éric Araujo in branch '3.2': Update crlf and lfcr scripts for 3.x bytes semantics (#12032). http://hg.python.org/cpython/rev/47ffb957921d -- ___ Python

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

2011-08-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d52a1199d3f0 by Éric Araujo in branch 'default': Clean up test_shutil, to facilitate upcoming improvements (#12721). http://hg.python.org/cpython/rev/d52a1199d3f0 -- nosy: +python-dev

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

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +docs@python, eric.araujo stage: - needs patch versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12726

[issue12032] Tools/Scripts/crlf.py needs updating for python 3+

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - eric.araujo resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12032 ___

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12728 ___

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

2011-08-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I made more changes (see the changeset) and committed only to 3.3, as we try to refrain from cleanup/cosmetic changes in stable branches (you never know what will cause a bug), and as you wanted this cleanup prior to work on a 3.3-only patch.

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12729 ___

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12730 ___

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12731 ___

[issue11564] pickle not 64-bit ready

2011-08-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This patch contains assorted improvements for 64-bit compatibility of the pickle module. The protocol still doesn't support 4GB bytes or str objects, but at least its behaviour shouldn't be misleading anymore. -- keywords: +patch stage:

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12732 ___

[issue12733] Request for grapheme support in Python re lib

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12733 ___

[issue12734] Request for property support in Python re lib

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12734 ___

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12735 ___

[issue12733] Request for grapheme support in Python re lib

2011-08-12 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/issue12733 ___ ___

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12736 ___

[issue12734] Request for property support in Python re lib

2011-08-12 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/issue12734 ___ ___

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12737 ___

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

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12735 ___

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

2011-08-12 Thread Michael Hall
Michael Hall michaelhal...@gmail.com added the comment: Okay, I have attached the code I've been using. Don't worry about what it does (it's a biology thing), but just follow these steps: 1. Make sure you have numpy and scipy installed. 2. Extract the zip file. 3. Run it with ./svm_main.py

[issue12711] Explain tracker components in devguide

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: While I could question the current list of components, documenting it as it is is a good idea. Patch 2 looks pretty good to me with the following change. Tests The generic unittest and doctest frameworks in `Lib/unittest`_ and

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

2011-08-12 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/issue12723 ___ ___ Python-bugs-list

[issue12725] Docs: Odd phrase floating seconds in socket.html

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree 'floating seconds' is bad. I think I prefer your second alternative, but settimeout() and setdefaulttimeout should be consistent. -- nosy: +terry.reedy ___ Python tracker

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

2011-08-12 Thread Matthew Hemke
Matthew Hemke mghe...@gmail.com added the comment: I'm not sure if I misunderstood you, or you misunderstood me, but adding an option to the askstring dialog that would take a function handle would also allow you to use it for things other than strings (ints,etc.) Tkinter Entry does this: you

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Our docs explain behavior without, generally, explaining why. Hence the title change. 'Returns the current setting for the given locale category' seems pretty clear that it returns the current program setting rather than the default system

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I am not sure that everyone will agree that this is a bug, rather than a feature request, or that if a bug, that it should be changed in existing releases and possibly break running code. The doc just says, somewhat vaguely, that IGNORECASE

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

2011-08-12 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Terry J. Reedy tjre...@udel.edu added the comment: I am not sure that everyone will agree that this is a bug, rather than a fe= ature request, or that if a bug, that it should be changed in existing rele= ases and possibly break running

[issue11241] ctypes: subclassing an already subclassed ArrayType generates AttributeError

2011-08-12 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Amaury, how about this patch? I got rid of querying the type dictionary and hoisted the creation of the type instance earlier. Then 'PyObject_GetAttrString' can be used to lookup '_length_' and '_type_' by the regular Python attribute lookup

[issue11866] race condition in threading._newname()

2011-08-12 Thread Peter Saveliev
Peter Saveliev svinota.savel...@gmail.com added the comment: Any news? I hope, the change is trivial enough… -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11866 ___

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree that better masking of narrow-wide build difference would be good as long as it does not severely impact normal performance. Revision of the test file (see below) shows that the 'bug' is that the .upper, .lower, and .title methods

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

2011-08-12 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Added file: http://bugs.python.org/file22894/casemaps.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12730 ___

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Does the regex module handle these particular issues better? -- nosy: +terry.reedy type: behavior - feature request versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: However desireable it would be, I do not believe there is any claim in the manual that the re module follows the evolving Unicode consortium r.e. standard. If I understand, you are saying that this statement in the doc, Matches Unicode word

[issue11866] race condition in threading._newname()

2011-08-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Are you sure that counter.next() cannot release the GIL? Remember that any DECREF can trigger the garbage collector and execute arbitrary code... -- nosy: +amaury.forgeotdarc ___ Python

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

2011-08-12 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Terry J. Reedy rep...@bugs.python.org wrote on Fri, 12 Aug 2011 22:21:59 -: Does the regex module handle these particular issues better? No, it currently does not. One would have to ask Matthew directly, but I believe it was

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Ouch! Do the rejected characters qualify as identifier characters as defined in Reference 2.3 Identifiers and keywords? http://docs.python.org/py3k/reference/lexical_analysis.html#identifiers If some interpreter version accepts extra

[issue9723] Add shlex.quote

2011-08-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: -_find_unsafe = re.compile(r'[^\w\d@%_\-\+=:,\./]').search +_find_unsafe = re.compile(r'[^\w@%\-\+=:,\./]', re.ASCII).search FWIW there are still unnecessary escapes before '+' and '.', and possibly '-' ('-' doesn't need escaping only when

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I changed the title because 'string' is a module that once contained the functions that are now attached to the str class as methods. So 'string.title' is an obsolete attribute reference. -- nosy: +terry.reedy title: string.title()

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

2011-08-12 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Eli, I interpreted it the same way you did. In the doc, type methods are those that map directly to PyTypeObject. Any custom type methods go in tp_methods. You could almost call the former PyTypeObject methods rather than type

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

2011-08-12 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: http://docs.python.org/dev/extending/newtypes.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12672 ___

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

2011-08-12 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Terry J. Reedy tjre...@udel.edu added the comment: However desireable it would be, I do not believe there is any claim in the = manual that the re module follows the evolving Unicode consortium r.e. stan= My from the hip thought is that

Re: [issue10087] HTML calendar is broken

2011-08-12 Thread Senthil Kumaran
Hello Éric, I might have ignored some minor stylistic comments. The '.' in the help text and , after the last TestName, I am not sure if it is of concern. I think, to update the stylistic comments, if the submitters (if they care) could have updated the patch, or a separate commit on style

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12728 ___ ___

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12729 ___ ___

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12730 ___ ___

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12731 ___ ___

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12732 ___ ___

[issue12733] Request for grapheme support in Python re lib

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12733 ___ ___

[issue12734] Request for property support in Python re lib

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12734 ___ ___

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12735 ___ ___

  1   2   >