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

2011-08-12 Thread Hynek Schlawack
Hynek Schlawack 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 __

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

2011-08-12 Thread Hynek Schlawack
Hynek Schlawack added the comment: Eric, just to be clear: Are you making this list->tuple change or should I fix the patch? -- ___ Python tracker ___ _

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

2011-08-12 Thread Roundup Robot
Roundup Robot 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 ___ Py

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

2011-08-12 Thread Eli Bendersky
Changes by Eli Bendersky : -- keywords: -easy versions: +Python 3.3 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2011-08-12 Thread Eli Bendersky
Eli Bendersky 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 sys.path.appen

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

2011-08-12 Thread Eli Bendersky
Eli Bendersky 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 call "object met

[issue5639] Support TLS SNI extension in ssl module

2011-08-12 Thread Dolf Andringa
Dolf Andringa 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 wrote: > > Antoine Pitrou added the comment: > >

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

2011-08-12 Thread xavierd
xavierd 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 email.message_from_file still modifies the me

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

2011-08-12 Thread xavierd
Changes by xavierd : Added file: http://bugs.python.org/file22888/orig.eml ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2011-08-12 Thread xavierd
xavierd added the comment: with the patch applied: {{{ $ ./test.py PARSER INVALID EMAIL defects found ! [] }}} -- Added file: http://bugs.python.org/file22889/test.py ___ Python tracker _

[issue2857] add codec for java modified utf-8

2011-08-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Tom Christiansen wrote: > > Tom Christiansen 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 b

[issue5639] Support TLS SNI extension in ssl module

2011-08-12 Thread Antoine Pitrou
Antoine Pitrou 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 ___

[issue12740] Add struct.Struct.nmemb

2011-08-12 Thread Stefan Krah
New submission from Stefan Krah : 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 standard name

[issue12741] Implementation of shutil.move

2011-08-12 Thread David Townshend
New submission from David Townshend : 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 could result in race co

[issue11230] "Full unicode import system" not in 3.2

2011-08-12 Thread Tom Christiansen
Tom Christiansen 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 filenames. --

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

2011-08-12 Thread STINNER Victor
Changes by STINNER Victor : -- title: add codec for java modified utf-8 -> Add CESU-8 codec ("java modified utf-8") ___ Python tracker ___ ___

[issue11230] "Full unicode import system" not in 3.2

2011-08-12 Thread STINNER Victor
STINNER Victor 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<é normalized to NFC>" or "import h

[issue2857] Add "java modified utf-8" codec

2011-08-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 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 can well live o

[issue2857] Add "java modified utf-8" codec

2011-08-12 Thread Adal Chiriliuc
Adal Chiriliuc added the comment: Python does have other "weird" encodings like bz2 or rot13. Beside, batteries included :) -- ___ Python tracker ___ ___

[issue12742] Add support for CESU-8 encoding

2011-08-12 Thread Adal Chiriliuc
New submission from Adal Chiriliuc : 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 priority: normal severity:

[issue12743] C API marshalling doc contains XXX

2011-08-12 Thread JJeffries
New submission from JJeffries : 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), but it’s not clear that n

[issue12195] Little documentation of annotations

2011-08-12 Thread JJeffries
JJeffries 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 simple examples showing the sy

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

2011-08-12 Thread Éric Araujo
Éric Araujo 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 :( -- ___ Pyt

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

2011-08-12 Thread Éric Araujo
Éric Araujo added the comment: “I’ll make one change before committing” :) -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

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

[issue9723] Add shlex.quote

2011-08-12 Thread Roundup Robot
Roundup Robot 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': Avoid unwanted behavior change i

[issue9723] Add shlex.quote

2011-08-12 Thread Éric Araujo
Éric Araujo added the comment: I have restored compatibility (see commit messages). -- stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[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 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 possible, and filter

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

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12715] Add symlink support to shutil functions

2011-08-12 Thread Éric Araujo
Éric Araujo added the comment: Other reports related to shutil and symlinks: #9993, #4489, #12461. -- ___ Python tracker ___ ___ Pyth

[issue12712] weave build_tools library identification

2011-08-12 Thread Éric Araujo
Éric Araujo 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 it finds. It i

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

2011-08-12 Thread Éric Araujo
Éric Araujo 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? -- nosy: +bethard

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

2011-08-12 Thread Éric Araujo
Éric Araujo added the comment: +1 -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy nosy: +eric.araujo stage: -> needs patch versions: +Python 3.3 -Python 2.6 ___ Python tracker ___ ___

[issue11233] clarifying Availability: Unix

2011-08-12 Thread Éric Araujo
Éric Araujo 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 : 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 a

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

2011-08-12 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-08-12 Thread Meador Inge
Changes by Meador Inge : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2011-08-12 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2011-08-12 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2011-08-12 Thread Meador Inge
Meador Inge 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 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 : -- components: +Interpreter Core, Unicode -Library (Lib) versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___

[issue12743] C API marshalling doc contains XXX

2011-08-12 Thread Éric Araujo
Éric Araujo 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 __

[issue12742] Add support for CESU-8 encoding

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Library (Lib) nosy: +lemburg versions: +Python 3.3 -Python 3.4 ___ Python tracker ___ ___ Pyt

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

2011-08-12 Thread Philip Douglass
Philip Douglass 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 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 names are not helpful

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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 multiple statements as

[issue12706] timeout sentinel in ftplib and poplib documentation

2011-08-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2011-08-12 Thread Roundup Robot
Roundup Robot 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 tracker

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

2011-08-12 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

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

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +docs@python, eric.araujo stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ __

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

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> eric.araujo resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-b

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-08-12 Thread Éric Araujo
Éric Araujo 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. -- resolut

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11564] pickle not 64-bit ready

2011-08-12 Thread Antoine Pitrou
Antoine Pitrou 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: -> patch rev

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12733] Request for grapheme support in Python re lib

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12734] Request for property support in Python re lib

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12733] Request for grapheme support in Python re lib

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12734] Request for property support in Python re lib

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2011-08-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-08-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2011-08-12 Thread Michael Hall
Michael Hall 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 test_obligate.dat test_tran

[issue12711] Explain tracker components in devguide

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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 `Lib/doctest.py`_. Th

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

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

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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 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 set the validatec

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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 setting. However,

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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 "works for Unicode

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

2011-08-12 Thread Tom Christiansen
Tom Christiansen added the comment: > Terry J. Reedy 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 code. The doc just says, somew

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

2011-08-12 Thread Meador Inge
Meador Inge 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 rules. I extended

[issue11866] race condition in threading._newname()

2011-08-12 Thread Peter Saveliev
Peter Saveliev added the comment: Any news? I hope, the change is trivial enough… -- ___ Python tracker ___ ___ Python-bugs-list mail

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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 leaves the tested no

[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 : Added file: http://bugs.python.org/file22894/casemaps.py ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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 _

[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 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 characters;" is n

[issue11866] race condition in threading._newname()

2011-08-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 tracker

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

2011-08-12 Thread Tom Christiansen
Tom Christiansen added the comment: "Terry J. Reedy" 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 because he was trying to stay compatible w

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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 characters, beyond the defi

[issue9723] Add shlex.quote

2011-08-12 Thread Ezio Melotti
Ezio Melotti 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 it's at the end (or be

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

2011-08-12 Thread Terry J. Reedy
Terry J. Reedy 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() is overzealous by

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

2011-08-12 Thread Eric Snow
Eric Snow 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 methods". And both are disti

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

2011-08-12 Thread Eric Snow
Eric Snow added the comment: http://docs.python.org/dev/extending/newtypes.html -- ___ Python tracker ___ ___ Python-bugs-list mailin

[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 added the comment: > Terry J. Reedy 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 if re cannot be fixed to follow

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 change

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[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 : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12733] Request for grapheme support in Python re lib

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12734] Request for property support in Python re lib

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2011-08-12 Thread Matthew Barnett
Changes by Matthew Barnett : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

  1   2   >