[issue12747] Move devguide into cpython repo

2011-08-12 Thread Ezio Melotti
Ezio Melotti added the comment: The possible options I see are: 1) move it in Doc/ or some other dir -- but we will have to maintain it in all the branches; 2) keep it only in the default branch -- but we will have to remove it from the old branch when we cut a release; 3) make a

[issue12747] Move devguide into cpython repo

2011-08-12 Thread Eric Snow
Eric Snow added the comment: I suppose it doesn't have to be in Doc/. -- title: Move devguide into /Docs of cpython repo -> Move devguide into cpython repo ___ Python tracker _

[issue12747] Move devguide into /Docs of cpython repo

2011-08-12 Thread Ezio Melotti
Ezio Melotti added the comment: Actually if we move the devguide to Doc/ we will have to maintain a copy for each branch -- that's the real reason why it's in a separate repo. So I think it's better to leave the devguide in a separate repo, and keep using it to document things that are not st

[issue12747] Move devguide into /Docs of cpython repo

2011-08-12 Thread Ezio Melotti
Ezio Melotti added the comment: I'm +0 about it. See also #12409. -- components: +Devguide nosy: +ezio.melotti, sandro.tosi ___ Python tracker ___ _

[issue12747] Move devguide into /Docs of cpython repo

2011-08-12 Thread Eric Snow
New submission from Eric Snow : The idea of moving the devguide into the cpython repo, presumably under Doc/, was mentioned in a thread on python-dev[1] (related to issue 12652). Does anyone have any objections? I'm guessing that Brett made a separate repo (A) for simplicity and (B) because

[issue12746] normalization is affected by unicode width

2011-08-12 Thread Benjamin Peterson
New submission from Benjamin Peterson : Narrow build: unicodedata.normalize("NFKC", "𝔘𝔫𝔦𝔠𝔬𝔡𝔢") '𝔘𝔫𝔦𝔠𝔬𝔡𝔢' Wide build: >>> unicodedata.normalize("NFKC", "𝔘𝔫𝔦𝔠𝔬𝔡𝔢") 'Unicode' Normalization needs to properly decode characters in the supplementary plane. -- components: Extension Modules mes

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

2011-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 787ed1a7aba8 by Benjamin Peterson in branch '3.2': in narrow builds, make sure to test codepoints as identifier characters (closes #12732) http://hg.python.org/cpython/rev/787ed1a7aba8 New changeset 5af15f018e20 by Benjamin Peterson in branch 'def

[issue9723] Add shlex.quote

2011-08-12 Thread Matt Joiner
Matt Joiner added the comment: Why can't pipes.quote can't be moved to shlex.quote verbatim as I originally proposed? Is there justification to also change it as part of the relocation? I think any changes to its behaviour should be a separate issue. -- _

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

2011-08-12 Thread Matthew Barnett
Matthew Barnett added the comment: In a narrow build, a codepoint in the astral plane is encoded as surrogate pair. I could implement a workaround for it in the regex module, but I think that the proper place to fix it is in the language as a whole, perhaps by implementing PEP 393 ("Flexible

[issue12745] Python2 or Python3 page

2011-08-12 Thread João Bernardo
New submission from João Bernardo : Since 2008 (as far as can remember) the Python Download page has a link to that web page: http://wiki.python.org/moin/Python2orPython3 I know it's been updated but it keeps saying the same thing since Python 3.0 was launched. Basically it says that Python 3

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

2011-08-12 Thread Tom Christiansen
Tom Christiansen added the comment: "Terry J. Reedy" wrote on Fri, 12 Aug 2011 23:05:27 -: > 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#ident

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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 _

[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

[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

[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

[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

[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

[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

[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,

[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

[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 Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 ___ __

[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

[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

[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:

[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

[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

[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 _

[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

[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 __

[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 ___ ___

[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. -- __

[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 __

[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

[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

[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.

[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 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

[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

[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 ___ ___

[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:/

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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 É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

[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

[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

[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:

[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 ___ ___

[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 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

[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 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 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. --

[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

[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

  1   2   >