[issue15389] PEP 3121, 384 refactoring applied to curses module

2012-07-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Definitely. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15389 ___

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2012-07-19 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9998 ___ ___

[issue15389] PEP 3121, 384 refactoring applied to curses module

2012-07-19 Thread Robin Schreiber
Changes by Robin Schreiber robin.schrei...@me.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15389 ___ ___ Python-bugs-list

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-07-19 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: It looks like Stefan has fixed the issue in Python 3.3 a while ago. tobytes() returns the correct values with a fresh build of Python 3.3. $ PYTHONPATH=. /home/heimes/dev/python/py3k/python smc/freeimage/tests/test_image.py test_newbuffer

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Antti Laine
New submission from Antti Laine antti.a.la...@iki.fi: raw_decode on json.JSONDecoder does not handle leading whitespace. According to RFC 4627, section 2, whitespace can precede an object. With json.loads leading whitespace is handled just fine. d = json.JSONDecoder() d.raw_decode(' {}')

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Antti Laine
Antti Laine antti.a.la...@iki.fi added the comment: My coworker just submitted a pull request for a possible fix to simplejson on github. https://github.com/simplejson/simplejson/pull/38 -- ___ Python tracker rep...@bugs.python.org

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15393 ___

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Please, post a patch for 2.7 and 3.2/3.3, with a test. Seems quite easy. If you hurry, this could go in 3.3.0. -- keywords: +easy nosy: +jcea stage: - needs patch ___ Python tracker

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Antti Laine
Antti Laine antti.a.la...@iki.fi added the comment: Suggestion for a patch for 3.3.0. I wasn't quite sure how the testcases were supposed to be loaded. Sorry if I made a mess ;) -- keywords: +patch Added file: http://bugs.python.org/file26434/json-raw-decoder-fix-whitespace.diff

[issue15392] Create a unittest framework for IDLE

2012-07-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: All the tests should run from the standard test runner tool (currently regrtest), with the GUI tests guarded by the GUI resource, which is how it works for TK. I always run the test suite with -uall before non-trivial commits, so I do

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Antti, you are changing the signature of decode() and that would be a compatibility problem. Can you rewrite the patch to be more compatible? In your test, please, use a bit more complicated object than {} :-) --

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: IMO this is not a bug, according to the current documentation it is working as designed. raw_decode says it decodes a string that *starts with* a json document. To my understanding, raw_decode is designed to be used when parsing a

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I see, you are thinking that json document includes the possibility of leading whitespace. That is a reasonable interpretation...just make sure that we don't break backward compatibility. --

[issue13907] test_pprint relies on set/dictionary repr() ordering

2012-07-19 Thread Anton Barkovsky
Anton Barkovsky swarmer...@gmail.com added the comment: This test breaks now even in CPython. Remove it and be done with it? -- nosy: +anton.barkovsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13907

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Julia Lawall
New submission from Julia Lawall julia.law...@lip6.fr: In objects/moduleobject.c, in the function PyModule_Create2, it appears that m should be decrefed on all of the failure paths between its allocation and the return from the function. -- files: moduleobject.patch keywords: patch

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-07-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: In Python 3.3 memoryobject.c is a complete rewrite. Porting the fix separately would be quite a bit of work. PyBuffer_ToContiguous(), which causes the problem in 2.7/3.2 and is still broken in 3.3, could be fixed by using the recursive

[issue15395] memory leaks in selectmodule.c

2012-07-19 Thread Julia Lawall
New submission from Julia Lawall julia.law...@lip6.fr: In Modules/selectmodule.c, in the function seq2set, fast_seq should be decrefd on failure of the initialization of o. This will make a useless call to DECREF on o, but XDECREF is already used, so it is safe in the NULL case. In the same

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError(Non-UTF-8 code starting with...)

2012-07-19 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Are we going to fix this before 3.3? Any objections to Victor's patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14811 ___

[issue15396] memory leak in tkinter

2012-07-19 Thread Julia Lawall
New submission from Julia Lawall julia.law...@lip6.fr: In the file Modules/_tkinter.c, in the function PyInit__tkinter, m should be decrefed on the PyType_Ready error path. -- files: tkinter.patch keywords: patch messages: 165842 nosy: jll priority: normal severity: normal status: open

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: This looks OK to me (I don't see a way to write a test case to cover the leak). I will commit later today unless I hear some objections. -- assignee: - meador.inge nosy: +meador.inge stage: - commit review versions: +Python 3.3

[issue15364] sysconfig confused by relative paths

2012-07-19 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: I'd make get_config_var('srcdir') to be None for installed systems, because the source tree is not available there. While playing with a version of the patch which returns None for non-source builds, I found that

[issue15397] Unbinding of methods

2012-07-19 Thread Stefan Mihaila
Changes by Stefan Mihaila mstefa...@gmail.com: -- nosy: +alexandre.vassalotti, ncoghlan, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15397 ___

[issue15397] Unbinding of methods

2012-07-19 Thread Stefan Mihaila
New submission from Stefan Mihaila mstefa...@gmail.com: In order to implement pickling of instance methods, a means of separating the object and the unbound method is necessary. This is easily done for Python methods (f.__self__ and f.__func__), but not all of builtins support __func__.

[issue15397] Unbinding of methods

2012-07-19 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15397 ___ ___

[issue15397] Unbinding of methods

2012-07-19 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15397 ___ ___

[issue15397] Unbinding of methods

2012-07-19 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Can you push patch in form available for review via Rietveld? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15397 ___

[issue15397] Unbinding of methods

2012-07-19 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15397 ___ ___

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9e94eb39aaad by Hynek Schlawack in branch 'default': #1492704: Make shutil.copyfile() raise a distinct SameFileError http://hg.python.org/cpython/rev/9e94eb39aaad -- nosy: +python-dev

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-19 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: As beta2 has been postponed I have already committed it with some slight modifications. Re: deriving from Error: It doesn't make any sense to do so but this way we're mostly backward compatible. Changing it to EnvironmentError uncovered the two

[issue15038] Optimize python Locks on Windows

2012-07-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I see dead code here: Py_LOCAL_INLINE(int) PyCOND_BROADCAST(PyCOND_T *cv) { if (cv-waiting 0) { return ReleaseSemaphore(cv-sem, cv-waiting, NULL) ? 0 : -1; cv-waiting = 0; } return 0; } --

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Flávio Ribeiro
New submission from Flávio Ribeiro em...@flavioribeiro.com: Found a intermittent test on UnicodeFileTests.test_rename method. Python Version: Python 3.3.0b1 Hg commit hash: 3fbfa61634de MacOS X version 10.6.8 How can be reproduced: bumblebee:~/dev/cpython[] $ for i in {1..10}; do

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: I had the same problem here, after running several times... $ for i in {1..10}; do ./python.exe -m test test_pep277; done [1/1] test_pep277 test test_pep277 failed -- Traceback (most recent call last): File

[issue15399] processName key is un-/mis-documented in 2.6 and up

2012-07-19 Thread Gunnlaugur Thor Briem
New submission from Gunnlaugur Thor Briem gunnlau...@gmail.com: The ``processName`` format mapping key in logging formats works in versions 2.6.*, 2.7.* and 3.1.* onwards; in 2.5 and down and in 3.0.1, ``format`` fails when this key is present in the format. But in 2.6.8 docs, this mapping

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7140d97d36fd by Meador Inge in branch '3.2': Issue #15394: Fix ref leaks in PyModule_Create. http://hg.python.org/cpython/rev/7140d97d36fd New changeset 571777bf5527 by Meador Inge in branch 'default': Issue #15394:

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Thanks for the patch Julia! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15394

[issue15394] memory leak in PyModule_Create2

2012-07-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/issue15394 ___ ___ Python-bugs-list mailing list

[issue15397] Unbinding of methods

2012-07-19 Thread Stefan Mihaila
Stefan Mihaila mstefa...@gmail.com added the comment: Yes, the patch is at http://codereview.appspot.com/6425052/ The code there also contains some tests I've written for functools.unbind. -- Added file: http://bugs.python.org/file26439/unbind_test.patch

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: By the way, you can use -F to run the test suite until it fails: ./python -m test -F test_pep277 -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Did you get an exception from the release manager for this new feature? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492704

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Tatiana, are you on a Mac as well? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15398 ___

[issue15396] memory leak in tkinter

2012-07-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b584c58c2286 by Jesus Cea in branch '3.2': Closes #15396: memory leak in tkinter http://hg.python.org/cpython/rev/b584c58c2286 New changeset b2dac78db1c9 by Jesus Cea in branch 'default': MERGE: Closes #15396:

[issue15396] memory leak in tkinter

2012-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15396 ___

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-19 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Oh my understanding was that it was pushed to 3.4 only because of the then imminent beta2. Georg, is it okay to keep it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492704

[issue15396] memory leak in tkinter

2012-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- resolution: - fixed stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15396 ___

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: r.david.murray: yes, MacOS X 10.6.8 we managed to reproduce this in other 2 MacBook Pro 8.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15398

[issue15399] processName key is un-/mis-documented in 2.6 and up

2012-07-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: We only update the docs for the active versions, so only 2.7, 3.2, and default (3.3) are going to get updated. -- nosy: +r.david.murray, vinay.sajip versions: -Python 2.6, Python 3.1, Python 3.4

[issue15396] memory leak in tkinter

2012-07-19 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Thanks for the patch, Julia, and for submitting the contributor form. I have added you too to the Doc/ACKS.txt file. I wonder how you found this... -- nosy: +jcea resolution: fixed - stage: committed/rejected - status: closed - open

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Hugo Lopes Tavares
Hugo Lopes Tavares hlt...@gmail.com added the comment: I had no problems after running for a very long time (using -F). I am using Mac OSX 10.6.8. -- nosy: +hltbra ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15398

[issue15400] int('12345L', 10) raises ValueError

2012-07-19 Thread Michael Smith
New submission from Michael Smith kojirom...@gmail.com: The trailing 'L' in representations of long integers causes the int function to raise a ValueError. This is unexpected because it's reasonable to expect that `int` should be able to parse a number from any string when that string

[issue15395] memory leaks in selectmodule.c

2012-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15395 ___ ___

[issue15396] memory leak in tkinter

2012-07-19 Thread Julia Lawall
Julia Lawall julia.law...@lip6.fr added the comment: On Thu, 19 Jul 2012, Jesús Cea Avión wrote: Jesús Cea Avión j...@jcea.es added the comment: Thanks for the patch, Julia, and for submitting the contributor form. I have added you too to the Doc/ACKS.txt file. I wonder how you found

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Sorry, looks like a feature to me. Please wait for 3.4 with it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492704 ___

[issue15395] memory leaks in selectmodule.c

2012-07-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bc9b2956bb8b by Jesus Cea in branch '3.2': Closes #15395: memory leaks in selectmodule.c http://hg.python.org/cpython/rev/bc9b2956bb8b New changeset 9985b4651436 by Jesus Cea in branch 'default': MERGE: Closes

[issue13888] test_builtin failure when run after test_tk

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This is not a problem on Windows because the failing tests are skipped. test_input_tty (test.test_builtin.BuiltinTest) ... skipped 'the pty and signal modules must be available' test_input_tty_non_ascii (test.test_builtin.BuiltinTest) ...

[issue15400] int('12345L', 10) raises ValueError

2012-07-19 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: This problem is real but 2.7 is open only for bugfixes (no enhancements) and 3.x doesn't generate the l suffix anymore. I am closing this issue as won't fix. If you think this is a mistake, please reopen and argument it. -- nosy: +jcea

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-19 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Ok sorry, backing out. -- resolution: fixed - stage: committed/rejected - status: closed - open versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3adb4ee4b794 by Hynek Schlawack in branch 'default': #1492704: Backout and wait for 3.4 http://hg.python.org/cpython/rev/3adb4ee4b794 -- ___ Python tracker

[issue15397] Unbinding of methods

2012-07-19 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +daniel.urban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15397 ___ ___

[issue15397] Unbinding of methods

2012-07-19 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Looks like PyCFunction_NewEx is part of Stable API. If I'm right you have to make stub for this one as simple trampoline to new PyCFunction_NewExEx implementation. Martin, please confirm. -- nosy: +loewis

[issue15397] Unbinding of methods

2012-07-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Andrew is right: PyCFunction_NewEx must stay, and must continue to get the same parameters as it currently does. This not only applies to extensions already built, but also to extensions that are built against the new header files: they

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Flávio Ribeiro
Flávio Ribeiro em...@flavioribeiro.com added the comment: For doc purposes: My first shot is that in my machine the os.rename isn't atomic and this could be generating an overhead somehow. Looking at the code, I found decisions being made on posixmodule.c about what `rename` function should

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I haven't been able to reproduce this failure on either 10.6 or 10.7 with or without pydebug and either at 3fbfa61634de or the now slightly more current tip. What filesystem are you running the test under? What ./configure options did you use? What

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: And OS X doesn't support the *at system calls so HAVE_RENAMEAT will always be false on OS X. I don't recall every seeing this test fail before. -- ___ Python tracker rep...@bugs.python.org

[issue15365] Traceback reporting can fail if IO cannot be imported

2012-07-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 54524897fafc by Kristján Valur Jónsson in branch 'default': Issue #15365: Make traceback reporting ignore any errors when printing out http://hg.python.org/cpython/rev/54524897fafc -- nosy: +python-dev

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I found this link: http://www.weirdnet.nl/apple/rename.html in issue 8828, which sounds like it is relevant. (I thought I remembered something about rename not being atomic on OS X.) I didn't read it through, but maybe Apple fixed

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Flávio Ribeiro
Flávio Ribeiro em...@flavioribeiro.com added the comment: Hi Ned, I've used ./configure --with-pydebug make -j2 $ gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) Copyright (C) 2007 Free Software Foundation, Inc. $ printenv | grep LC_ $ printenv| grep

[issue15397] Unbinding of methods

2012-07-19 Thread Stefan Mihaila
Stefan Mihaila mstefa...@gmail.com added the comment: Doesn't the definition I've added at the end of methodobject.c suffice? (http://codereview.appspot.com/6425052/patch/1/10) Or should the macro be removed altogether? -- ___ Python tracker

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-07-19 Thread Juarez Bochi
Juarez Bochi jbo...@gmail.com added the comment: I have updated the patches since they were not applying cleanly and included a pure Python implementation that was missing. It has the same issues that were mentioned on msg107402. Do you have any suggestions? I'm planning to block the formats

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a preliminary version of the patch. I don't understand the purpose of your patch. It just replaces a direct realloc() call with an indirect one (since _PyBytes_Resize() will call realloc() internally). --

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a preliminary version of the patch. I don't understand the purpose of your patch. It just replaces a direct realloc() call with an indirect one (since _PyBytes_Resize() will call realloc() internally). Ok, I understand. You're

[issue13592] repr(regex) doesn't include actual regex

2012-07-19 Thread Hugo Lopes Tavares
Hugo Lopes Tavares hlt...@gmail.com added the comment: Hey, I started the patch under `default` branch, and get the following working: import re re.compile(foo) re.compile(foo, re.UNICODE) re.compile(foo, re.DOTALL) re.compile(foo, re.DOTALL|re.UNICODE)

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2012-07-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks, Flávio. That configuration looks perfectly normal and what I use so that should not be an issue. Interesting link, David. I'm not able to reproduce that failure on 10.6.8 using the procedure in the link but I am running 10.6.8 on a virtual

[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods

2012-07-19 Thread Igor Sobreira
Igor Sobreira i...@igorsobreira.com added the comment: Hello. I've attached a patch to cleanup self._top_level_dir in the end of discover(). Is that the expected behavior or I'm on the wrong track? -- keywords: +patch nosy: +igorsobreira Added file:

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I think this test disabling and failure issue should get some attention. Do the failures happen on non-Windows systems too? With installed 3.3.0b1 on Win7, test___all__, test_tcl, test_tk, test_ttk_textonly, and test_ttk_guionly all run if run

[issue15392] Create a unittest framework for IDLE

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I have not really used unittest, so I only know to blindly copy what has been done. Hence I need help to do better. Do you actually get gui tests for test_tk? When I run test/test_tk from Idle editor, and hence as __main__, I only get non-gui

[issue13592] repr(regex) doesn't include actual regex

2012-07-19 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Python 2.7 is the end of the Python 2 line, and it's closed except for security fixes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13592

[issue13592] repr(regex) doesn't include actual regex

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 2.7 is on extended maintenance for normal bugs, but does not get new features/enhancements. It is too late for 3.3 also. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker

[issue14596] struct.unpack memory leak

2012-07-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I just read through all this and see three separate points be discussed: 1. The unbounded caching behavior. 2. A more compact representation for repeat counts. 3. Correct __sizeof__ support for struct. For issue (1) I think this is

[issue15401] Typo in inspect.getclosurevars docstring

2012-07-19 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: s/dics/dicts/ http://hg.python.org/cpython/file/default/Lib/inspect.py#l1049 -- assignee: ncoghlan messages: 165893 nosy: ncoghlan priority: normal severity: normal status: open title: Typo in inspect.getclosurevars docstring

[issue15384] pkgutil importlib migration test was failing on Windows buildbots

2012-07-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Ah, that makes sense - since the zip file doesn't exist on buildbots, returning None is the correct result. Mystery explained, thanks :) -- resolution: - invalid status: open - closed title: pkgutil.get_importer() was returning None

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-19 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15386 ___ ___ Python-bugs-list

[issue15386] Still getting two copies of importlib._bootstrap

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

[issue15400] int('12345L', 10) raises ValueError

2012-07-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: It could be argued that this is a bug fix for 2.7. I find the current behavior odd at best since 'int' already accepts 'long' objects, but not the string representation of a 'long' object: sys.maxint 9223372036854775807 sys.maxint + 1

[issue15401] Typo in inspect.getclosurevars docstring

2012-07-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset abc26b51fbfc by Meador Inge in branch 'default': Issue #15401: Fix typo in inspect.getclosurevars docstring. http://hg.python.org/cpython/rev/abc26b51fbfc -- nosy: +python-dev

[issue15401] Typo in inspect.getclosurevars docstring

2012-07-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Whoops. Nick, I missed that this was assigned to you when I committed a fix. Sorry about that. -- nosy: +meador.inge resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior versions: +Python 3.3

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

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

[issue14201] Documented caching for shared library's __getattr__ and __getitem__ is incorrect

2012-07-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: The general wording and example look good; thanks. I reworded things a little. Updated patch attached. -- stage: needs patch - commit review Added file: http://bugs.python.org/file26443/issue14201-v2.patch

[issue15401] Typo in inspect.getclosurevars docstring

2012-07-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No worries - I only did that as a reminder to fix it when I got home tonight. It's bugs like this where I wish we had the infrastructure for Github-style online code editing set up :) -- ___ Python