[issue14061] Clean up archiving code in shutil

2012-02-23 Thread Éric Araujo
Éric Araujo 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 exact text of the e

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

2012-02-23 Thread Éric Araujo
Éric Araujo 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 blocker _

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

2012-02-23 Thread Éric Araujo
Éric Araujo 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 that I realized that

[issue14097] Improve the "introduction" page of the tutorial

2012-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14097] Improve the "introduction" page of the tutorial

2012-02-23 Thread Ezio Melotti
Ezio Melotti 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: http://bugs.python.org/

[issue672115] Assignment to __bases__ of direct object subclasses

2012-02-23 Thread Adam Venturella
Adam Venturella 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 "object" I have to won

[issue1353344] python.desktop

2012-02-23 Thread Éric Araujo
Éric Araujo 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 _

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

2012-02-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-02-23 Thread Éric Araujo
Éric Araujo added the comment: There is a module that implements this for optparse: ; 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 it. optcomplete

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

2012-02-23 Thread Éric Araujo
Éric Araujo 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 __

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

2012-02-23 Thread Éric Araujo
Éric Araujo 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 blog post contains c

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

2012-02-23 Thread Éric Araujo
Éric Araujo 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 tertools.count docs

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

2012-02-23 Thread Éric Araujo
Éric Araujo 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 existing ones? -

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

2012-02-23 Thread Éric Araujo
Éric Araujo 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 title: expose a hidd

[issue14088] sys.executable generating canonical path

2012-02-23 Thread Éric Araujo
Éric Araujo 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 _

[issue1659] Tests needing network flag?

2012-02-23 Thread Éric Araujo
Éric Araujo 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. -- nosy: +eric.arau

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-23 Thread Brett Cannon
Brett Cannon 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 think there is anyth

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

2012-02-23 Thread Terry J. Reedy
Terry J. Reedy 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 semi-deterministically mak

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

2012-02-23 Thread Larry A. Taylor
New submission from Larry A. Taylor : 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. In the Debug window, click Go.

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-23 Thread Brett Cannon
Brett Cannon 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 1.2x slower. Using

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

2012-02-23 Thread Larry A. Taylor
Larry A. Taylor 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 shell/IDLE with debug is running a lon

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

2012-02-23 Thread STINNER Victor
STINNER Victor 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 with a non-ASCII d

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

2012-02-23 Thread Roundup Robot
Roundup Robot 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 -- ___ Python

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

2012-02-23 Thread Stefan Krah
Stefan Krah 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 refs] >>> locale.set

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

2012-02-23 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker <

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

2012-02-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13846] Add time.monotonic() function

2012-02-23 Thread STINNER Victor
STINNER Victor 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. -- __

[issue13846] Add time.monotonic() function

2012-02-23 Thread Roundup Robot
Roundup Robot 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 tracker

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

2012-02-23 Thread STINNER Victor
New submission from STINNER Victor : 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 http://svn.boost.org/svn/boos

[issue812369] module shutdown procedure based on GC

2012-02-23 Thread Martin v . Löwis
Martin v. Löwis 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 expectation that

[issue14087] multiprocessing.Condition.wait_for missing

2012-02-23 Thread Charles-François Natali
Charles-François Natali 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) for i in

[issue13703] Hash collision security issue

2012-02-23 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2012-02-23 Thread Dave Malcolm
Changes by Dave Malcolm : -- components: +Library (Lib) type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14097] Improve the "introduction" page of the tutorial

2012-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: some of theses are great suggestions. I'll do an update shortly. -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker __

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

2012-02-23 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2012-02-23 Thread Daniel Walsh
New submission from Daniel Walsh : 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. -- messages: 154091 nosy: Dan

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

2012-02-23 Thread Daniel Walsh
New submission from Daniel Walsh : 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 development and make maintai

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

2012-02-23 Thread STINNER Victor
STINNER Victor 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 ___ Python tracker

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

2012-02-23 Thread STINNER Victor
STINNER Victor 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 __

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

2012-02-23 Thread STINNER Victor
STINNER Victor added the comment: > I'm okay with leaving the tests as they are in 3.3. Any objections? Nope, it's fine. -- ___ Python tracker ___ _

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

2012-02-23 Thread Meador Inge
Meador Inge added the comment: haypo, I can reproduce the segfault using the 'None' test case on your patch as well. -- ___ Python tracker ___ _

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

2012-02-23 Thread STINNER Victor
STINNER Victor 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 with Python compiled in d

[issue14101] example function in tertools.count is misindented

2012-02-23 Thread Zbyszek Szmek
New submission from Zbyszek Szmek : 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 consecutive values.\n\ Eq

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

2012-02-23 Thread Meador Inge
Meador Inge 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', (), d) [6

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

2012-02-23 Thread Stephen Day
Stephen Day 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 unescaped encoded c

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

2012-02-23 Thread Nadeem Vawda
Nadeem Vawda 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 system /tmp isn't a tmpfs.

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

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

2012-02-23 Thread Senthil Kumaran
Senthil Kumaran 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 handling of query str

[issue14059] Implement multiprocessing.Barrier

2012-02-23 Thread sbt
sbt added the comment: Forgot to mention, mp_barrier.patch needs to be applied on top of cond_wait_for.patch for Issue14087. -- ___ Python tracker ___ _

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

2012-02-23 Thread Stepan Kasal
Stepan Kasal 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 even fully wr

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

2012-02-23 Thread Antoine Pitrou
Antoine Pitrou 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 don't remember

[issue7652] Merge C version of decimal into py3k.

2012-02-23 Thread Stefan Krah
Stefan Krah 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 = 10**19) of Granlund/Montgo

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

2012-02-23 Thread Antoine Pitrou
Antoine Pitrou 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

[issue7652] Merge C version of decimal into py3k.

2012-02-23 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file24615/40917e4b51aa.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11438] 2to3 does not fix izip_longest

2012-02-23 Thread Peter
Changes by Peter : -- nosy: +maubp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[issue14059] Implement multiprocessing.Barrier

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

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-23 Thread Brett Cannon
Brett Cannon 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 reply survived.

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

2012-02-23 Thread Nadeem Vawda
Nadeem Vawda 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 for test_tools says "T

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-23 Thread Brett Cannon
Brett Cannon added the comment: On Wed, Feb 22, 2012 at 19:35, Éric Araujo 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 other work will touch varying levels of Py

[issue10848] Move test.regrtest from getopt to argparse

2012-02-23 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-02-23 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-02-23 Thread Stefan Behnel
Changes by Stefan Behnel : -- keywords: +patch Added file: http://bugs.python.org/file24613/exc_info_capi.patch ___ Python tracker ___ ___

[issue14100] expose a hidden note

2012-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, presumably the XXX tells you why it's hidden. -- nosy: +loewis ___ Python tracker ___ ___ Pyt

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

2012-02-23 Thread Stefan Behnel
Stefan Behnel 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 order to support the use case o

[issue14100] expose a hidden note

2012-02-23 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- title: expose a note a hidden note -> expose a hidden note ___ Python tracker ___ ___ Python-bugs

[issue2209] mailbox module doesn't support compressed mbox

2012-02-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Jürgen, would you consider writing a patch? -- nosy: +jcea versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___

[issue14100] expose a note a hidden note

2012-02-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +haypo, pitrou stage: -> patch review type: -> enhancement ___ Python tracker ___ ___ Python-bugs

[issue14100] expose a note a hidden note

2012-02-23 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : 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 status: open title: e

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

2012-02-23 Thread Dan Christian
Dan Christian 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 tokens; and ">'abc';" gets split

[issue14087] multiprocessing.Condition.wait_for missing

2012-02-23 Thread sbt
sbt 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 ___

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

2012-02-23 Thread Nadeem Vawda
Nadeem Vawda 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 maybe it's due to someth

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

2012-02-23 Thread Massimo Paladin
Massimo Paladin added the comment: Will follow it. Thanks, -Massimo -- resolution: -> works for me status: open -> closed ___ Python tracker ___ __

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

2012-02-23 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

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

2012-02-23 Thread sbt
sbt 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 fault

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

2012-02-23 Thread Matej Cepl
Changes by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2012-02-23 Thread Stepan Kasal
New submission from Stepan Kasal : 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 as file name

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

2012-02-23 Thread Vinay Sajip
Vinay Sajip added the comment: >Éric Araujo 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 patch!  Dan, do you have time to tes

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

2012-02-23 Thread Stefan Behnel
Stefan Behnel 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. OTOH, documenting that they

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

2012-02-23 Thread Giovanni Funchal
Giovanni Funchal 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 ___

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

[issue13779] os.walk: bottom-up

2012-02-23 Thread patrick vrijlandt
patrick vrijlandt added the comment: Good solution. +1 for closing. Patrick -- ___ Python tracker ___ ___ Python-bugs-list mailing l