[issue13779] os.walk: bottom-up

2012-02-23 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com added the comment: Good solution. +1 for closing. Patrick -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13779 ___

[issue13873] SIGBUS in test_big_buffer() of test_zlib on Debian bigmem buildbot

2012-02-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: File /var/tmpfs/martin.vonloewis/3.x.loewis-parallel2/build/Lib/test/test_zlib.py, line 96 in test_big_buffer The SIGBUS could be due to the buildbot running out of tmpfs. -- nosy: +neologix

[issue10805] traceback.print_exception throws AttributeError when exception is None

2012-02-23 Thread Giovanni Funchal
Giovanni Funchal gafunc...@gmail.com added the comment: This bug affects me, found it when migrating from 2.7 to 3.2, in a function calling traceback.print_exc() called while there were no active exception being handled. Previous behavior was to print None. -- nosy: +Giovanni.Funchal

[issue14098] provide public C-API for reading/setting sys.exc_info()

2012-02-23 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: I wonder if these functions should have an error return value, i.e. return -1 on failure. They'd never fail in CPython, but other implementations may want to report failures, in case their internal implementation is more involved.

[issue1521950] shlex.split() does not tokenize like the shell

2012-02-23 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Éric Araujo mer...@netwok.org added the comment: I did not fully get what you meant here, but the example you added to the doc made it clear.  Is this covered by tests? Yes, I believe that testSyntaxSplitCustom covers this. Overall great

[issue14099] zipfile: ZipFile.open() should not reopen the underlying file

2012-02-23 Thread Stepan Kasal
New submission from Stepan Kasal ka...@ucw.cz: When a file inside a zip is open, the underlying zip file is open again. (Unless the file name is unknown, because the ZipFile object was created with fp only.) This design is incorrect, insecure, and ineffective: - the reopen uses the same string

[issue14099] zipfile: ZipFile.open() should not reopen the underlying file

2012-02-23 Thread Matej Cepl
Changes by Matej Cepl mc...@redhat.com: -- nosy: +mcepl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14099 ___ ___ Python-bugs-list mailing list

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-23 Thread sbt
sbt shibt...@gmail.com added the comment: I get a segfault with Python 3.3.0a0 (default:31784350f849, Feb 23 2012, 11:07:41) [GCC 4.5.2] on linux Type help, copyright, credits or license for more information. d = {'__qualname__':'XXX'} T = type('foo', (), d) d Segmentation

[issue13873] SIGBUS in test_big_buffer() of test_zlib on Debian bigmem buildbot

2012-02-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f3f3bb45205b by Nadeem Vawda in branch 'default': Issue #13873: Fix crash in test_zlib on bigmem buildbot. http://hg.python.org/cpython/rev/f3f3bb45205b -- nosy: +python-dev

[issue14091] python subprocess hangs if script called from another directory

2012-02-23 Thread Massimo Paladin
Massimo Paladin massimo.pala...@gmail.com added the comment: Will follow it. Thanks, -Massimo -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14091

[issue13873] SIGBUS in test_big_buffer() of test_zlib on Debian bigmem buildbot

2012-02-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: The SIGBUS could be due to the buildbot running out of tmpfs. I haven't been able to reproduce the crash by running the test on a tmpfs on my own machine (Ubuntu AMD64; 8GB RAM; Linux 3.0.0-15-generic; zlib 1:1.2.3.4.dfsg-3ubuntu3), but

[issue14087] multiprocessing.Condition.wait_for missing

2012-02-23 Thread sbt
sbt shibt...@gmail.com added the comment: Patch which just copies the implementation from threading. -- keywords: +patch Added file: http://bugs.python.org/file24611/cond_wait_for.patch ___ Python tracker rep...@bugs.python.org

[issue1521950] shlex.split() does not tokenize like the shell

2012-02-23 Thread Dan Christian
Dan Christian robo...@users.sourceforge.net added the comment: I haven't been following this much. Sorry. My day job isn't in this area any more (and I'm stuck using 2.4 :-(). Looking at the docs, I notice the old is different from what it used to be. Notably: 'e;' gets split into two

[issue14100] expose a note a hidden note

2012-02-23 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: I wonder if this note was hidden deliberately. -- assignee: docs@python components: Documentation files: make-note-visible.patch keywords: patch messages: 154065 nosy: docs@python, tshepang priority: normal severity: normal

[issue14100] expose a note a hidden note

2012-02-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +haypo, pitrou stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14100 ___

[issue2209] mailbox module doesn't support compressed mbox

2012-02-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Jürgen, would you consider writing a patch? -- nosy: +jcea versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2209

[issue14100] expose a hidden note

2012-02-23 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- title: expose a note a hidden note - expose a hidden note ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14100 ___

[issue14098] provide public C-API for reading/setting sys.exc_info()

2012-02-23 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Writing up a test case, I noticed that it makes sense to let PyErr_SetExcInfo() steal the references. This matches the main use case of saving and restoring the fields. For the getter, it's still best to return new references in

[issue14100] expose a hidden note

2012-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, presumably the XXX tells you why it's hidden. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14100 ___

[issue14098] provide public C-API for reading/setting sys.exc_info()

2012-02-23 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: -- keywords: +patch Added file: http://bugs.python.org/file24613/exc_info_capi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14098

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-23 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14095 ___ ___ Python-bugs-list

[issue10848] Move test.regrtest from getopt to argparse

2012-02-23 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10848 ___ ___

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Wed, Feb 22, 2012 at 19:35, Éric Araujo rep...@bugs.python.org wrote: I have already done that and pushed the initial change. The ultimate goal will be fetching from sys.modules when level == 0 and not bool(fromlist) only touch C code. All

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Shall I commit the new file or first add more tests? Might as well commit now; there's no sense in leaving the code sitting around just because the file feels a bit short. A couple of minor nits about your patch, though: - The docstring

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: That last comment from me looks odd because somewhere along the way my replies to Éric's comment got stripped out. First two paragraphs are in response to 1) Third paragraph is for 2) Fourth paragraph is for 3) Rest makes sense since the inline

[issue14059] Implement multiprocessing.Barrier

2012-02-23 Thread sbt
sbt shibt...@gmail.com added the comment: Patch which subclasses threading.Barrier. -- keywords: +patch Added file: http://bugs.python.org/file24614/mp_barrier.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14059

[issue11438] 2to3 does not fix izip_longest

2012-02-23 Thread Peter
Changes by Peter p.j.a.c...@googlemail.com: -- nosy: +maubp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11438 ___ ___ Python-bugs-list mailing

[issue7652] Merge C version of decimal into py3k.

2012-02-23 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file24615/40917e4b51aa.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. (I can't reproduce the crash, btw) -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file24616/qualname_dict.patch ___ Python tracker rep...@bugs.python.org

[issue7652] Merge C version of decimal into py3k.

2012-02-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Over the last two months I've done a full review of all files except _decimal.c and mpdecimal.c. I now have additional ACL2 proofs for a couple of functions in basearith.c (some are partial proofs), a full proof for the special case (d =

[issue14071] allow more than one hash seed per process (move _Py_HashSecret into PyInterpreterState)

2012-02-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed with Victor, this is not really doable currently. Besides, you can't really have several interpreter instances simultaneously, you can have several sub-interpreters, which isn't exactly the same thing (sub-interpreters share some stuff, I

[issue14099] zipfile: ZipFile.open() should not reopen the underlying file

2012-02-23 Thread Stepan Kasal
Stepan Kasal ka...@ucw.cz added the comment: Attached please find a patch that fixes this issue by reusing the original fp from ZipFile object. Two of the test cases attempted to read a file from a zip as soon as write() was called. I believe that this is not correct usage: zip file is not

[issue14059] Implement multiprocessing.Barrier

2012-02-23 Thread sbt
sbt shibt...@gmail.com added the comment: Forgot to mention, mp_barrier.patch needs to be applied on top of cond_wait_for.patch for Issue14087. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14059

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2012-02-23 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: A couple of points to help summarize and to help come to a conclusion. In the initial message, Stephen pointed out, it would be desirable to merely encode spaces using percent encoding. It seems to me that only in cases where a custom

[issue13873] SIGBUS in test_big_buffer() of test_zlib on Debian bigmem buildbot

2012-02-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: but maybe it's due to something specific about the configuration of the buildbot machine? Maybe you didn't try with a large enough file. Here's a trial on my box: $ df -h /tmp/ Filesystem Size Used Avail Use% Mounted on

[issue13873] SIGBUS in test_big_buffer() of test_zlib on Debian bigmem buildbot

2012-02-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Well, it turns out that when I tested it on my own machine, I actually wasn't using a tmpfs - I misread the output of df and used /tmp¹ instead of /run. Doing the test in /run does in fact give a bus error. Mea culpa. ¹ Apparently on my

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2012-02-23 Thread Stephen Day
Stephen Day stevv...@gmail.com added the comment: While it's likely that adding a `quote`/`quote_plus` function paramater to urlencode is the right solution, I want to ensure that the key point is communicated clearly: encoding a space as a '+' is pathological, in that in the common case, an

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-23 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I can reproduce the segfault on F16: Python 3.3.0a0 (default:3828d93fd330, Feb 23 2012, 13:49:57) [GCC 4.4.6] on linux Type help, copyright, credits or license for more information. d = {'__qualname__':'XXX'} [66934 refs] T = type('foo', (),

[issue14101] example function in tertools.count is misindented

2012-02-23 Thread Zbyszek Szmek
New submission from Zbyszek Szmek zbys...@in.waw.pl: Indentation is broken. diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -3221,10 +3221,10 @@ Return a count object whose .__next__() method returns

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Here is a patch. Oh, I also wrote a patch :-) My patch fixes this issue but also many memory leaks in error cases. (I can't reproduce the crash, btw) I can reproduce the crash, but only with Python compiled in release mode (not

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-23 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: haypo, I can reproduce the segfault using the 'None' test case on your patch as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14095

[issue13873] SIGBUS in test_big_buffer() of test_zlib on Debian bigmem buildbot

2012-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I'm okay with leaving the tests as they are in 3.3. Any objections? Nope, it's fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13873

[issue14091] python subprocess hangs if script called from another directory

2012-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Will follow it. If you report the issue to abrt, could you give me the url to your report please? (as a comment to this issue) -- ___ Python tracker rep...@bugs.python.org

[issue14095] type_new() removes __qualname__ from the input dictionary

2012-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I merged the two patches (qualname_dict.patch and type_new.patch) and added a fix for non-string __qualname__ = type_new-2.patch. -- Added file: http://bugs.python.org/file24620/type_new-2.patch

[issue14102] argparser should create a man page for me.

2012-02-23 Thread Daniel Walsh
New submission from Daniel Walsh rhat...@gmail.com: I have developed a new tool virt-sandbox-service using argparse. Currently the argparse has the ability to print help and usage. Being naturally lazy, I think it should be able to print out a man page also. This would help with

[issue14103] argparser should create a bash_completion script for me.

2012-02-23 Thread Daniel Walsh
New submission from Daniel Walsh rhat...@gmail.com: I have developed a new tool virt-sandbox-service using argparse. Currently the argparse has the ability to print help and usage. Being naturally lazy, I think it should be able to generate a bash_completion script also. --

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2012-02-23 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866 ___ ___ Python-bugs-list

[issue14097] Improve the introduction page of the tutorial

2012-02-23 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: some of theses are great suggestions. I'll do an update shortly. -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue14103] argparser should create a bash_completion script for me.

2012-02-23 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- components: +Library (Lib) type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14103 ___

[issue13703] Hash collision security issue

2012-02-23 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___ ___ Python-bugs-list

[issue14087] multiprocessing.Condition.wait_for missing

2012-02-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: In test/test_multiprocessing.py: def test_waitfor(self): [...] with cond: result = cond.wait_for(lambda : state.value==0) self.assertTrue(result) self.assertEqual(state.value, 0)

[issue812369] module shutdown procedure based on GC

2012-02-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: (This is just a report about PyPy's situation; I understand that the situation in CPython is a bit more delicate if CPython is embedded in a larger process.) I think that would indeed be unacceptable for Python - there is a long-standing

[issue14104] Implement time.monotonic() on Mac OS X

2012-02-23 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: time.monotonic() can use mach_absolute_time() on Mac OS X. mach_timebase_info() may be used to convert the result to a number of seconds. Examples: https://github.com/ThomasHabets/monotonic_clock/blob/master/src/monotonic_mach.c

[issue13846] Add time.monotonic() function

2012-02-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 50b1f2d07011 by Victor Stinner in branch 'default': Issue #13846: Enhance time.monotonic() documentation http://hg.python.org/cpython/rev/50b1f2d07011 -- ___ Python

[issue13846] Add time.monotonic() function

2012-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Boost has a monotonic time implementation (steady_clock) for OS X I opened a new issue for Mac OS X: #14104. -- @Éric: I enhanced the doc. Feel free to complete or rewrite it if you have better information about such clocks.

[issue14104] Implement time.monotonic() on Mac OS X

2012-02-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ned.deily, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___

[issue13706] non-ascii fill characters no longer work in formatting

2012-02-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f89e2f4cda88 by Victor Stinner in branch 'default': Issue #13706: Fix format(int, n) for locale with non-ASCII thousands separator http://hg.python.org/cpython/rev/f89e2f4cda88 --

[issue13706] non-ascii fill characters no longer work in formatting

2012-02-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The ps_AF locale fails with an assert after the latest commit: Python 3.3.0a0 (default:f89e2f4cda88+, Feb 24 2012, 01:14:50) [GCC 4.4.3] on linux Type help, copyright, credits or license for more information. import locale [67103

[issue13706] non-ascii fill characters no longer work in formatting

2012-02-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a29d20fa85b4 by Victor Stinner in branch 'default': Issue #13706: Fix format(float, n) for locale with non-ASCII decimal point (e.g. ps_aF) http://hg.python.org/cpython/rev/a29d20fa85b4 --

[issue13706] non-ascii fill characters no longer work in formatting

2012-02-23 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: The ps_AF locale fails with an assert after the latest commit: ... format(13232434234.23423, n) python: Python/formatter_unicode.c:606: fill_number: Assertion `r == spec-n_grouped_digits' failed. Aborted Oh, you found a locale

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2012-02-23 Thread Larry A. Taylor
Larry A. Taylor larry.tay...@bankofamerica.com added the comment: I have had this happen to me many times with Windows XP, the standard OS here. Using IDLE and Python 2.7. Some of the time the following applies: I have more than one Python Shell open at the same time. The first Python

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, so I have now streamlined the case so that only C is called when a module is in sys.modules, level == 0 and not fromlist. Using the normal_startup benchmark, bootstrapped importlib is 1.12x slower. A fast run of startup_nosite puts it at

[issue14105] Breakpoints in debug lost if line is inserted; IDLE

2012-02-23 Thread Larry A. Taylor
New submission from Larry A. Taylor larry.tay...@bankofamerica.com: My environment is Windows XP, using IDLE and Python 2.7 distribution. Open an IDLE Python shell. Open the file with three lines in it, 1,2 and 3. In IDLE, Set Breakpoint on Line 2. In Shell, set Debug. In IDLE, select run.

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2012-02-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Some changes have been made to the subprocess connection code since my last message here. I believe they occurred after the last releases. There should be new 2.7.3 and 3.2.3 releases in about a month, after PyCon. Larry, if you can

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-23 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So I finished rewriting _return_module() so that if fromlist is not defined then it's all in C (and subsequently naming the function _handle_fromlist()). That leaves rewriting in C _calc___package__() and _resolve_name(). After that I don't

[issue1659] Tests needing network flag?

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: All tests now use regrtest resources and/or unittest skips and/or test.support.transient_internet. I ran the faulty tests mentioned in this report while disconnected and got no failure, only skips. Closing as duplicate/out of date.

[issue14088] sys.executable generating canonical path

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I wonder if the doc for sys.executable should mention that .. segments may be present. -- nosy: +eric.araujo, petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14088

[issue14100] Add a missing info to PEP 393 + link from whatsnew 3.3

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Agreed with Antoine. If you want, you can make a patch for the PEPs repo with the info requested by the XXX note, then a patch to replace that note by a link to the PEP, unless Martin wanted to do that himself. -- nosy: +eric.araujo

[issue14099] ZipFile.open() should not reopen the underlying file

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report and patch. I’m afraid changing the constructor signature is not an option, due to our backward compatibility policy. Do you think the bug can be fixed without changing the signature, or with new arguments added after the

[issue14101] example function in tertools.count docstring is misindented

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch LGTM. Raymond, any objection? -- components: +Extension Modules -Documentation, Library (Lib) nosy: +eric.araujo, rhettinger stage: - patch review title: example function in tertools.count is misindented - example function in

[issue14102] argparse: add ability to create a man page

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Are you aware of help2man? It can transmogrify the output of “your-program-that-uses-argparse --help” to a man page. Another solution is to use docutils’ rst2man to convert some documentation file to the man format. On the other hand, this

[issue14102] argparse: add ability to create a man page

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Forgot the link to the blog post: https://andialbrecht.wordpress.com/2009/03/17/creating-a-man-page-with-distutils-and-optparse/ -- ___ Python tracker rep...@bugs.python.org

[issue14103] argparse: add ability to create a bash_completion script

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: There is a module that implements this for optparse: https://hg.furius.ca/public/optcomplete/; I contacted the author when argparse was moved to the standard library and he told me that he would like to support argparse but had to time to code

[issue14103] argparse: add ability to create a bash_completion script

2012-02-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14103 ___ ___

[issue1353344] python.desktop

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Here’s a patch by Georg for the unix install machinery: http://mail.python.org/pipermail/python-dev/2006-July/067261.html -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue672115] Assignment to __bases__ of direct object subclasses

2012-02-23 Thread Adam Venturella
Adam Venturella aventure...@gmail.com added the comment: I too just found the same issue, dunno if it was settled on as being a bug per se. class object(object): pass Also worked for me. I don't feel great about doing that though. So I opted for more verbose name as not to collide with

[issue14097] Improve the introduction page of the tutorial

2012-02-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The attached patch addresses 8) -- you might want to use it as a starting point (that's what I was going to fix before deciding to do a full review of the page). -- assignee: rhettinger - docs@python keywords: +patch Added file:

[issue14097] Improve the introduction page of the tutorial

2012-02-23 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14097 ___ ___

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for testing and confirming that this code never worked. I am now confident that we’re about to fix once and for all this basket of bugs in the correct way. I updated the tests to make them hopefully pass on Windows, and while doing

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Escalated to release blocker, as bugfix releases are about to go out of the door and I’d prefer they weren’t published with the buggy fixes committed for #13193. -- nosy: +benjamin.peterson, georg.brandl priority: normal - release

[issue14061] Clean up archiving code in shutil

2012-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I intend to commit this simple fix for all branches: -_UNPACK_FORMATS['bztar'] = (['.bz2'], _unpack_tarfile, [], +_UNPACK_FORMATS['bztar'] = (['.tar.bz2'], _unpack_tarfile, [], I could write a unit test, but it would be coupled to the