[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2012-07-19 Thread Vinay Sajip
Changes by Vinay Sajip : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2012-07-19 Thread Robin Schreiber
Changes by Robin Schreiber : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2012-07-19 Thread Christian Heimes
Christian Heimes 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 (__main__.TestI

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Antti Laine
New submission from Antti Laine : 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(' {}') ValueError: No JSON objec

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Antti Laine
Antti Laine 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 ___

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.1 ___ Python tracker ___ ___

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Jesús Cea Avión
Jesús Cea Avión 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 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 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 in fact run the TK gui

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread Jesús Cea Avión
Jesús Cea Avión 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 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 stream containing more th

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-19 Thread R. David Murray
R. David Murray 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. -- ___ Python trac

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

2012-07-19 Thread Anton Barkovsky
Anton Barkovsky added the comment: This test breaks now even in CPython. Remove it and be done with it? -- nosy: +anton.barkovsky ___ Python tracker ___

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Julia Lawall
New submission from Julia Lawall : 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 messages: 165838 nosy:

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

2012-07-19 Thread Stefan Krah
Stefan Krah 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 copy_buffer() function from

[issue15395] memory leaks in selectmodule.c

2012-07-19 Thread Julia Lawall
New submission from Julia Lawall : 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 file, in the function

[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 added the comment: Are we going to fix this before 3.3? Any objections to Victor's patch? -- ___ Python tracker ___ _

[issue15396] memory leak in tkinter

2012-07-19 Thread Julia Lawall
New submission from Julia Lawall : 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 title: memory leak i

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Meador Inge
Meador Inge 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 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 distutils.support._get_xxmodule_path() de

[issue15397] Unbinding of methods

2012-07-19 Thread Stefan Mihaila
Changes by Stefan Mihaila : -- nosy: +alexandre.vassalotti, ncoghlan, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15397] Unbinding of methods

2012-07-19 Thread Stefan Mihaila
New submission from Stefan Mihaila : 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__. Moreover, there currently a

[issue15397] Unbinding of methods

2012-07-19 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue15397] Unbinding of methods

2012-07-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15397] Unbinding of methods

2012-07-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Can you push patch in form available for review via Rietveld? -- ___ Python tracker ___ ___ Python-

[issue15397] Unbinding of methods

2012-07-19 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

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

[issue15038] Optimize python Locks on Windows

2012-07-19 Thread Benjamin Peterson
Benjamin Peterson 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; } -- nosy: +benjamin.pe

[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 : 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 ./python.exe -m test test_pep277;

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

2012-07-19 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr 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 "/Users/tatiana/code/cpython/Lib/test/test_pep2

[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 : 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 key is not documented:

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Roundup Robot
Roundup Robot 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: Fix ref leaks in PyModule_Create

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Meador Inge
Meador Inge added the comment: Thanks for the patch Julia! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15394] memory leak in PyModule_Create2

2012-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15397] Unbinding of methods

2012-07-19 Thread Stefan Mihaila
Stefan Mihaila 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 ___ Python trac

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

2012-07-19 Thread R. David Murray
R. David Murray 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 __

[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 added the comment: Did you get an exception from the release manager for this new feature? -- nosy: +georg.brandl ___ Python tracker ___ __

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

2012-07-19 Thread R. David Murray
R. David Murray added the comment: Tatiana, are you on a Mac as well? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15396] memory leak in tkinter

2012-07-19 Thread Roundup Robot
Roundup Robot 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: memory leak in tkinter http://hg.pytho

[issue15396] memory leak in tkinter

2012-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- status: open -> closed versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

[issue15396] memory leak in tkinter

2012-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailin

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

2012-07-19 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr 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 ___

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

2012-07-19 Thread R. David Murray
R. David Murray 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 ___ Python tracker

[issue15396] memory leak in tkinter

2012-07-19 Thread Jesús Cea Avión
Jesús Cea Avión 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 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 ___ __

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

2012-07-19 Thread Michael Smith
New submission from Michael Smith : 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 represented as a bare word w

[issue15395] memory leaks in selectmodule.c

2012-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue15396] memory leak in tkinter

2012-07-19 Thread Julia Lawall
Julia Lawall added the comment: On Thu, 19 Jul 2012, Jesús Cea Avión wrote: > > Jesús Cea Avión 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... My PhD student Su

[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 added the comment: Sorry, looks like a feature to me. Please wait for 3.4 with it. -- ___ Python tracker ___ ___ Pyth

[issue15395] memory leaks in selectmodule.c

2012-07-19 Thread Roundup Robot
Roundup Robot 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 #15395: memory leaks in selectmodule.c

[issue13888] test_builtin failure when run after test_tk

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy 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) ... skipped 'the pty and

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

2012-07-19 Thread Jesús Cea Avión
Jesús Cea Avión 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 resolutio

[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 added the comment: Ok sorry, backing out. -- resolution: fixed -> stage: committed/rejected -> status: closed -> open versions: +Python 3.4 -Python 3.3 ___ Python tracker __

[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 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 : -- nosy: +daniel.urban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15397] Unbinding of methods

2012-07-19 Thread Andrew Svetlov
Andrew Svetlov 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 ___ Pytho

[issue15397] Unbinding of methods

2012-07-19 Thread Martin v . Löwis
Martin v. Löwis 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 still need to run und

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

2012-07-19 Thread Flávio Ribeiro
Flávio Ribeiro 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 be used: #ifdef HAVE_RE

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

2012-07-19 Thread Ned Deily
Ned Deily 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 compiler did

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

2012-07-19 Thread Ned Deily
Ned Deily 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

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

2012-07-19 Thread Roundup Robot
Roundup Robot 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 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 the bug. --

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

2012-07-19 Thread Flávio Ribeiro
Flávio Ribeiro 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 LANG LANG=en_US.UTF-8

[issue15397] Unbinding of methods

2012-07-19 Thread Stefan Mihaila
Stefan Mihaila 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 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 that are not all

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

2012-07-19 Thread Antoine Pitrou
Antoine Pitrou 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 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 trying to mak

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

2012-07-19 Thread Hugo Lopes Tavares
Hugo Lopes Tavares 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) >>> re.compile

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

2012-07-19 Thread Ned Deily
Ned Deily 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 machine so th

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

2012-07-19 Thread Igor Sobreira
Igor Sobreira 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: http://bugs.python.org/file26442/restore_top_level_dir.pat

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

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy 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 first (_tk and

[issue15392] Create a unittest framework for IDLE

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy 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 tests in spite o

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

2012-07-19 Thread Matthew Barnett
Matthew Barnett added the comment: Python 2.7 is the end of the Python 2 line, and it's closed except for security fixes. -- ___ Python tracker ___

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

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy 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 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 unfortunate, but I don't

[issue15401] Typo in inspect.getclosurevars docstring

2012-07-19 Thread Nick Coghlan
New submission from Nick Coghlan : 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 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 on Windows buil

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-19 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue15386] Still getting two copies of importlib._bootstrap

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

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

2012-07-19 Thread Meador Inge
Meador Inge 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 922337203685477580

[issue15401] Typo in inspect.getclosurevars docstring

2012-07-19 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

[issue15401] Typo in inspect.getclosurevars docstring

2012-07-19 Thread Meador Inge
Meador Inge 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 : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-07-19 Thread Meador Inge
Meador Inge 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 ___ Pyth

[issue15401] Typo in inspect.getclosurevars docstring

2012-07-19 Thread Nick Coghlan
Nick Coghlan 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 tracker

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

2012-07-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Whether or not rename is atomic should be irrelevant for test_rename. Test_rename "just" performs renames in a tight loop and doesn't do concurrent access from another thread. The test result seems to indicate that rename() sometimes isn't done yet when the

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

2012-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Ok, I understand. You're trying to make the getvalue() call cheaper, > right? Yes, it saves up to half of time on large data (on Linux). It would be interesting to see the results of these microbenchmarks on Windows. -- __

[issue15402] Correct __sizeof__ support for struct

2012-07-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Here is a patch that implements __sizeof__ for struct.Struct. See also issue14596. -- components: Library (Lib) files: struct_sizeof-2.patch keywords: patch messages: 165902 nosy: mark.dickinson, meador.inge, storchaka priority: normal severity: no

[issue14596] struct.unpack memory leak

2012-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I do think issue (3) should be fixed, but a separate issue should be opened > for it. Issue #15402. -- ___ Python tracker ___ ___

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

2012-07-19 Thread Eli Bendersky
Changes by Eli Bendersky : -- assignee: eli.bendersky -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-07-19 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma