[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: My build error seems actually unrelated to encoding issues. Working directory is ASCII-only, locale is UTF-8. $ ./configure --with-pydebug [snip] $ make [snip] ranlib libpython3.2dm.a gcc -pthread -Xlinker

[issue10461] Use with statement throughout the docs

2010-11-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: +1 I have not yet had occasion to use 'with' yet, but in reading the Unicode HOWTO diff, I noticed that I liked replacing 'open,read,close' with 'with open, read' just for reading purposes since it turns 3 steps into 1 compound transaction.

[issue10461] Use with statement throughout the docs

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

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I will try tomorrow, thanks for reminding me. That was a fresh clone. I did. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6011 ___

Re: [issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Ron Adam
On 11/19/2010 08:21 AM, Alexander Belopolsky wrote: Alexander Belopolskybelopol...@users.sourceforge.net added the comment: On Thu, Nov 18, 2010 at 2:37 AM, Ron Adamrep...@bugs.python.org wrote: .. I'll try reading and writing directly to the socket and working up some tests from that. I

[issue10183] test_concurrent_futures failure on Windows

2010-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Then I get more failures: == FAIL: test_map_timeout (test.test_concurrent_futures.ProcessPoolExecutorTest) --

[issue10434] Document the rules for public names

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

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-11-19 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Nov 19, 2010 at 3:06 PM, STINNER Victor rep...@bugs.python.org wrote: .. Whereas PyUnicode_FromFormatV() converts the format string (bytes) to unicode (characters). If you would like a comparaison in C, it's like

[issue10434] Document the rules for public names

2010-11-19 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10434 ___ ___ Python-bugs-list

[issue4113] Add custom __repr__ to functools.partial

2010-11-19 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Well, of course it can be done with PyUnicode_Concat (obviously, since PyUnicode_AppendAndDel uses that). I used PyUnicode_AppendAndDel because that function does exactly what I needed. I don't see why PyUnicode_AppendAndDel should be

[issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: I added an empty _pydoc.css file. The server does read it and you'll be able to play around with it, but don't expect it to be pretty if you do until the rest of the html is updated. Should I put that in the pydoc_data? It just

[issue10463] Wrong return value for xml.etree.ElementTree.parse()

2010-11-19 Thread Daniel Seither
New submission from Daniel Seither p...@tiwoc.de: Cite from http://docs.python.org/library/xml.etree.elementtree.html xml.etree.ElementTree.parse(source, parser=None) Parses an XML section into an element tree. source is a filename or file object containing XML data. parser is an optional

[issue10463] Wrong return type for xml.etree.ElementTree.parse()

2010-11-19 Thread Daniel Seither
Changes by Daniel Seither p...@tiwoc.de: -- title: Wrong return value for xml.etree.ElementTree.parse() - Wrong return type for xml.etree.ElementTree.parse() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10463

[issue10463] Wrong return type for xml.etree.ElementTree.parse()

2010-11-19 Thread Daniel Seither
Daniel Seither p...@tiwoc.de added the comment: I need to read more accurately what is printed on my console... Forget about it. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-19 Thread Doug Shea
Doug Shea doug.s...@gmail.com added the comment: Is there perhaps a work-around we could use to get this to compile and have a math module? Force it to export that 'round' symbol in the core, perhaps? -- nosy: +Doug.Shea ___ Python tracker

[issue10183] test_concurrent_futures failure on Windows

2010-11-19 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Could you try with the patch that I just attached? And thanks for you help, I really appreciated it! -- Added file: http://bugs.python.org/file19645/timing2.patch ___ Python tracker

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: This issue seems already fixed. File: Lib/argparse.py 922 # if we didn't use all the Positional objects, there were too few 1923 # arg strings supplied. 1924 if positionals: 1925 self.error(_('too few

[issue10183] test_concurrent_futures failure on Windows

2010-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Could you try with the patch that I just attached? And thanks for you help, I really appreciated it! It works ok indeed. -- ___ Python tracker rep...@bugs.python.org

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: No, it's exactly line 1925 that's the problem. The OP would like that to tell him which arguments were missing instead of saying just 'too few arguments'. The block below that is for checking required optionals/positionals. It won't

[issue10459] missing character names in unicodedata (CJK...)

2010-11-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Marc-Andre: Many of the characters you refer actually do have names assigned, even if the names don't appear in the Unicode character database. Instead, they are specified in section 4.8 of the Unicode standard, and unicodedata.c already

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Third, for that Graphviz output, was anything special required? If so, I would toss the code into Tools for others to benefit from. It's merely the to_dot function from Lib/__optimizer__.py (which turns an AST into .dot source code),

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: The attached patch solves this issue. I haven't added any unittest because test_argparse.py is quite huge - over 4300 lines-, and I was undecided between «ArgumentError tests» (4251) and «ArgumentTypeError tests» (4262). Any hint? However,

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file19647/bug10424.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424 ___

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: No, it's rather Linux and tool specific to go into ast.py. But adding it to the Tools/ directory makes sense. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10399

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-11-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: On Friday 19 November 2010 21:58:25 you wrote: I choosed to use ASCII instead of UTF-8, because an UTF-8 decoder is long (210 lines) and complex (see PyUnicode_DecodeUTF8Stateful()), whereas ASCII decode is just: unicode_char =

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

2010-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a new patch with a 5 column tables. I had to use some rst trickery to make a decent header that works both in the HTML and Latex outputs. I put the title in the middle cell (the 3rd) of the header and left the others empty. The

[issue10459] missing character names in unicodedata (CJK...)

2010-11-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Martin v. Löwis wrote: Martin v. Löwis mar...@v.loewis.de added the comment: Marc-Andre: Many of the characters you refer actually do have names assigned, even if the names don't appear in the Unicode character database. Instead,

[issue9198] Should repr() print unicode characters outside the BMP?

2010-11-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9198 ___ ___ Python-bugs-list

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Sorry again for another epic-length comment... I'm attaching the latest work-in-progress on this. The code is still fairly messy (embarrasingly so in places), but it's better to have it out in public in this tracker than stuck on my hard

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry again for another epic-length comment... I'm attaching the latest work-in-progress on this. If this a work in progress, you could create an SVN branch in the sandbox (you can then use svnmerge to avoid diverging too much from mainline)

[issue809163] Can't add files with spaces

2010-11-19 Thread John Keyes
John Keyes johnke...@gmail.com added the comment: This is my first contribution as part of the Bug Weekend (and possibly my first to Python). I tested this by writing a MANIFEST.in and a very small setup.py but after looking at distutils I narrowed the area down to the FileList. I wrote a

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: r86538 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10391 ___

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-19 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20101120.zip is a new version of the regex module. The match object now supports additional methods which return information on all the successful matches of a repeated capture group. The API was inspired by that of .Net:

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-11-19 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: joblack - are you still seeing issues with this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10002 ___

[issue809163] Can't add files with spaces

2010-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for diagnosis and the test patch, and welcome to the bug weekend. Some comments: test.support has a symbol, TESTFN, which is guaranteed to be unique for the test run and located in an appropriate writeable location. Many tests

[issue10437] ThreadPoolExecutor should accept max_workers=None

2010-11-19 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Daniel, I wasn't trying to avoid importing multiprocessing. What's your use case though? I think that defaulting the number of threads to the numbers of CPUs would trick users into believing that threads are useful for CPU-intensive work in

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There are currently no tests in argparse that test the content of error messages, which is fairly standard for stdlib tests since the error messages aren't considered part of the API (only the nature of the exception is). So there's

[issue10183] test_concurrent_futures failure on Windows

2010-11-19 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Fixed in r10183 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10183 ___

[issue8705] shutil.rmtree with empty filepath

2010-11-19 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: This can't actually work. You can't delete a directory which has open handles to it on Windows, namely the Python process you're running in that directory. The empty file path isn't really the issue here. shutil.rmtree(os.getcwd()) attempts the

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-19 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Terry, when is the deadline for producing the patch for 3.2? Perhaps we should at least submit the 2.7 patch for now so that it goes in for sure? -- ___ Python tracker rep...@bugs.python.org

[issue10122] Documentation typo fix and a side question

2010-11-19 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: If you visit http://docs.python.org/library/functions.html?highlight=getattr#getattr there is still the word 'attributed' present in online docs. Please fix the docs completely. -- ___

[issue10356] decimal.py: hash of -1

2010-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. Does anyone remember the reason for making sNaNs unhashable in the first place. I recall there was a discussion about this, but can't remember which issue. -- ___ Python tracker

[issue10356] decimal.py: hash of -1

2010-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah, now I remember: making sNaNs hashable has the potential to introduce seemingly random exceptions with set and dict operations. The logic went something like: (1) if sNaNs are hashable, you can put them in dicts, (2) operations on

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-19 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: Got a test case that demonstrates a failure? Looks like it works to me... $ uname -ip sparc SUNW,Sun-Fire-280R $ python -c 'import sys; print sys.byteorder' big $ python -c 'import sha; print sha.new(open(test, rb).read()).hexdigest()'

[issue8690] multiprocessing.dummy.Queue does not expose same interface as multiprocessing.Queue

2010-11-19 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: +1 on make it identical to multiprossing.Queue. Since the documentation said: multiprocessing.dummy replicates the API of multiprocessing but is no more than a wrapper around the threading module. Does the word replicates implies that

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Something is definietly weird on the PS3. I´ll give more concrete data soon. (and yes, I may have misread the code) -- ___ Python tracker rep...@bugs.python.org

[issue10356] decimal.py: hash of -1

2010-11-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: If I'm not mistaken, signaling NaNs are only created when the user explicitly initializes a variable. I see this as direct request to raise an exception whenever the variable is accessed in a way that changes the outcome of the program:

[issue10356] decimal.py: hash of -1

2010-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Stefan] ... a direct request to raise an exception... Understood; the issue is that this conflicts with the general expectation that equality (and inequality) comparisons always work (at least, for objects that are perceived as

[issue10356] decimal.py: hash of -1

2010-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Grr. Horrible formatting on that last comment. Sorry about that. Anyway, I'd be interested to hear other people's opinions. -- ___ Python tracker rep...@bugs.python.org

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10430 ___ ___ Python-bugs-list mailing list

[issue4476] compileall fails if current dir has a types package

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I can reproduce in 3.1 and 3.2. 2.7 is okay. -- stage: - needs patch title: compileall.py fails if current dir has a types subdir with 3.0 (ok with 2.5) - compileall fails if current dir has a types package

[issue4476] compileall fails if current dir has a types package

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: python -v shows that runpy tries to import pkgutil which imports types which is the package in the current directory. Is this an import bug or a worksforme “don’t use standard module names in your projects”? -- nosy: +brett.cannon,

[issue10457] Related help topics shown outside pager

2010-11-19 Thread Cherniavsky Beni
New submission from Cherniavsky Beni c...@users.sf.net: help('NAMESPACES') or any other long help is shows in a pager. That's great. It's a bit surprising however that the text shown in the pager doesn't include the Related help topics: ... line, which is shown when you leave the pager.

[issue992389] attribute error after non-from import

2010-11-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue992389 ___ ___ Python-bugs-list

[issue10457] Related help topics shown outside pager

2010-11-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: d...@python - components: -Documentation nosy: +eric.araujo -d...@python stage: - needs patch versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: If I was looking for opportunities for a compiler to do something weird, I'd start with the TestEndianness macro (i.e. maybe it is incorrectly flagging the Cell as little endian when it is actually big endian) The endianness handling itself

[issue10436] tarfile.extractfile in r| stream mode fails with filenames or members from getmembers()

2010-11-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Documentation -Library (Lib) nosy: +d...@python stage: - needs patch versions: -Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10436

[issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Nov 18, 2010 at 2:37 AM, Ron Adam rep...@bugs.python.org wrote: .. I'll try reading and writing directly to the socket and working up some tests from that. I don't suppose there's something like that already in

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-19 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: Éric Araujo writes: That's fair enough. :) Do you want to close this feature request then? Me? No. I just figured that after all this arguing, I should mention that closing it as out of scope is not something I'll be

[issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: issue2001_b.diff patch includes changes to urllib. Is this intentional? Is it a bug fix, a feature? There is no mention in the NEWS file. If these changes are needed for pydoc enhancements, I would like to separate

[issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001 ___ ___

[issue10070] 2to3 wishes for already-2to3'ed files

2010-11-19 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10070 ___

[issue9182] document “--” as a way to disti nguish option w/ narg='+' from positional argument in arg parse

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sergey: Do you want to make a patch for that, and/or for the documentation? Guidelines are on http://www.python.org/dev/patches/ -- nosy: +bethard resolution: accepted - versions: +Python 3.1, Python 3.2 -Python 2.6

[issue10458] 2.7 += re.ASCII

2010-11-19 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no: Could Python 2.7 get a dummy re.ASCII = re.A flag, for source code compatibility with 3.2? -- components: Regular Expressions messages: 121520 nosy: hfuru priority: normal severity: normal status: open title: 2.7 +=

[issue8158] documentation of 'optparse' module incomplete

2010-11-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy nosy: +d...@python -georg.brandl versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8158 ___

[issue10458] 2.7 += re.ASCII

2010-11-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10458 ___ ___

[issue10459] missing character names in unicodedata (CJK...)

2010-11-19 Thread Vlastimil Brom
New submission from Vlastimil Brom vlastimil.b...@gmail.com: I just noticed an ommision of come character names in unicodedata module. These are some CJK - Ideographs: 龼 (0x9fbc) - 鿋 (0x9fcb) (CJK Unified Ideographs [19968-40959] [0x4e00-0x9fff]) ꜀ (0x2a700) - 뜴 (0x2b734) (CJK Unified

[issue10458] 2.7 += re.ASCII

2010-11-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: -1. That's a new feature. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10458 ___

[issue10459] missing character names in unicodedata (CJK...)

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

[issue10459] missing character names in unicodedata (CJK...)

2010-11-19 Thread Vlastimil Brom
Changes by Vlastimil Brom vlastimil.b...@gmail.com: -- components: +Library (Lib), Unicode type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10459 ___

[issue10458] 2.7 += re.ASCII

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Agreed. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10458 ___ ___

[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

2010-11-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Yes, in my original myopic observation I was mistaken in thinking that we were reading the digest out of the 5 entry int32 digest field in the SHAobject. I´ve already verified that the Endianness field is correctly set. What I

[issue4113] Add custom __repr__ to functools.partial

2010-11-19 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Here is a patch. It includes tests. -- keywords: +patch nosy: +durban Added file: http://bugs.python.org/file19637/issue4113.diff ___ Python tracker rep...@bugs.python.org

[issue10460] Misc/indent.pro does not reflect PEP 7

2010-11-19 Thread Mick Beaver
New submission from Mick Beaver myheartinamer...@gmail.com: Hello, I noticed that the indent.pro in Misc seems very different from PEP 7. Would it be possible to have one that produces C code that meets the PEP 7 style guidelines? As always, thanks for all of the hard work for Python! -Mick

[issue8890] Use tempfile instead of /tmp in examples

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Who wants to make a patch to update the documentation? For command-line examples (like “python setup.py install --install-base /tmp”), someone has to research what standard variable to use (TMPDIR, TMP, something else?). -- keywords:

[issue8890] Use tempfile instead of /tmp in examples

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch submission guidelines are found at http://www.python.org/dev/patches/ Since patches are made for the py3k branch, some matches in Henri’s grep won’t get patched: bsddb, compiler, posixfile and rexec have been removed. The person that

[issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: issue2001_c.diff is the same as issue2001_b.diff, but without urlparse changes and with minor modifications to pydoc.rst resolving a conflict with a recent commit. I have also uploaded the same patch to rietveld:

[issue8538] Add FlagAction to argparse

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think FlagAction should implement strictly boolean options, that is --foo and --no-foo, without arguments at all. For ConfigureAction, there is a precedent (unless I’m mistaken) in configure, which permits such things: --without-unicode

[issue9938] Documentation for argparse interactive use

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do you want to work on a patch? (Aside: you may want to learn about the cmd and shlex modules for read-eval-print-loop programs :) -- keywords: +easy nosy: +eric.araujo ___ Python tracker

[issue9182] document “--” as a way to disti nguish option w/ narg='+' from positional argument in arg parse

2010-11-19 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: The original point is basically a duplicate of issue 9338. It is undesirable behavior, I just don't know how to fix it. Patches to fix it are welcome (on issue 9338). ;-) As to documenting '--', I agree it's hidden too far down in the

[issue4113] Add custom __repr__ to functools.partial

2010-11-19 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: There is an ongoing discussion about deprecating undocumented PyUnicode_AppendAndDel(). See Marc-Andre's comment in msg121371: +.. c:function:: void PyUnicode_Append(PyObject **pleft, PyObject *right) + + Concat two

[issue9182] document “--” as a way to disti nguish option w/ narg='+' from positional argument in arg parse

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You’re right, sorry I was unclear: “a patch for that” referred to the addition of “--” in the generated usage text. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9182

[issue4476] compileall fails if current dir has a types package

2010-11-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Indeed, any time you shadow a standard library module you run the risk of breaking things. runpy (and its dependencies) are just like any other module in that respect. -- resolution: - invalid stage: needs patch - committed/rejected

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-11-19 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Can you please expand on deeply different? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8028 ___

[issue10459] missing character names in unicodedata (CJK...)

2010-11-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Vlastimil Brom wrote: New submission from Vlastimil Brom vlastimil.b...@gmail.com: I just noticed an ommision of come character names in unicodedata module. These are some CJK - Ideographs: 龼 (0x9fbc) - 鿋 (0x9fcb) (CJK Unified

[issue8158] Docstring of optparse.OptionParser incomplete

2010-11-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: documentation of 'optparse' module incomplete - Docstring of optparse.OptionParser incomplete ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8158

[issue4476] compileall fails if current dir has a types package

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do you think it would be useful to update the doc of compileall? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4476 ___

[issue4391] optparse: use proper gettext plurals forms

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: optparse is widely used, so the answer to my question is: yes, it is worth fixing. Checking argparse for the same errors is also a good idea. Dwayne: can you update your patch to address my remarks? If not, someone else or I may do it.

[issue9921] os.path.join('x','') behavior

2010-11-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg118372 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9921 ___

[issue9921] os.path.join('x','') behavior

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think the comment is fine as is. +1 to adding your wording to the docs. -- keywords: +patch nosy: +eric.araujo stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org

[issue2001] Pydoc interactive browsing enhancement

2010-11-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Gah, I accidentally generated a diff that included some unrelated changes to urrlib (and its tests) for a different issue I had been working on, and Ron's subsequent patch picked them up. I then misinterpreted left them alone to mean didn't

[issue10396] stdin argument to pdb.Pdb doesn't work unless you also set Pdb.use_rawinput = False

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 on clarifying the docs. Michael, where in the file do you think it should go? (You can also directly make a diff if you want.) -- assignee: - d...@python components: +Documentation -Library (Lib) keywords: +patch nosy:

[issue10395] new os.path function to extract common prefix based on path components

2010-11-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10395 ___ ___ Python-bugs-list

[issue4476] compileall fails if current dir has a types package

2010-11-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No. Once you start shadowing standard library modules, all bets are off as to what will and won't work. It's one of the reasons we need to be somewhat careful with the naming of new standard library modules. I'm mildly curious as to why 2.7

[issue4476] compileall fails if current dir has a types package

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the replies. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4476 ___ ___

[issue10461] Use with statement throughout the docs

2010-11-19 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: The docs contain numerous examples that would trigger resource warnings under 3.2 (for example “open(...).read()”). They should be changed to use (and thus promote) the with statement. Not adding the “easy” keyword, since grepping for those

[issue10252] Fix resource warnings in distutils

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: These constructs don’t generate warnings at present but should IMO use the with statement too: ./distutils/command/upload.py:128: open(filename+.asc).read()) ./distutils/command/bdist_rpm.py:514:

[issue4153] Unicode HOWTO up to date?

2010-11-19 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in revision 86530. Thanks Terry and Raymond for your comments. I would like to keep this issue open (at a low priority) because the question in the titles is still relevant. There are many new 3.x features

[issue4153] Unicode HOWTO up to date?

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Agreed on 1 and 3. Regarding 2, looking at the early history of the file makes me suspect that amk is the author. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4153

[issue9921] os.path.join('x','') behavior

2010-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: first part by itself sounds like there can only be two parts. How about 'inserts a separator between each pair of...' Also, what does 'absolute' mean on Windows? Does it include the drive? If so, the second sentence should probably

  1   2   >