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

2012-07-20 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

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

2012-07-20 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com 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-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka storch...@gmail.com: 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:

[issue14596] struct.unpack memory leak

2012-07-20 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I do think issue (3) should be fixed, but a separate issue should be opened for it. Issue #15402. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14596

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

2012-07-20 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- assignee: eli.bendersky - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15381 ___ ___

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

2012-07-20 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___ ___ Python-bugs-list

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

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 204be25f24bd by Vinay Sajip in branch '2.7': Issue #15399: Added versionchanged for processName. http://hg.python.org/cpython/rev/204be25f24bd New changeset 6b771075cfa3 by Vinay Sajip in branch '3.2': Issue #15399:

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

2012-07-20 Thread Juarez Bochi
Juarez Bochi jbo...@gmail.com added the comment: I've updated my patch with the tests for datetime.time.strptime that were missing and also its pure Python implementation. The previous diff also had some issues that I've fixed now: duplicated datetime.strptime method definition in c and the

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

2012-07-20 Thread Juarez Bochi
Changes by Juarez Bochi jbo...@gmail.com: Removed file: http://bugs.python.org/file26440/issue1100942_pure.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100942 ___

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

2012-07-20 Thread Juarez Bochi
Juarez Bochi jbo...@gmail.com added the comment: Sorry. I updated my patch again to fix the exception message for time.strptime in the pure Python version. -- Added file: http://bugs.python.org/file26446/issue1100942_pure.diff ___ Python tracker

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

2012-07-20 Thread Juarez Bochi
Changes by Juarez Bochi jbo...@gmail.com: Removed file: http://bugs.python.org/file26445/issue1100942_pure.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100942 ___

[issue15397] Unbinding of methods

2012-07-20 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Stefan, you right. A bit hairy idiom from my perspective, but it works. Looks like this way used only for PyCFunction_New, all other code follows standard schema with trampoline. -- ___

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

2012-07-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I definitely think this counts as a feature request, and as such should be rejected. I'd expect the 'long' constructor to be able to parse representations of both ints and longs, but I don't see any reason to expect the 'int' constructor to

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

2012-07-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Reclosing this: it's at worst marginally a bug, and not worth the new code that would have to go into 2.7. @Meador: consider also that int accepts float objects, but not string representations of float objects... I don't see any real

[issue15402] Correct __sizeof__ support for struct

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

[issue9687] dbmmodule.c:dbm_contains fails on 64bit big-endian (test_dbm.py fails) when built against gdbm (int vs Py_ssize_t)

2012-07-20 Thread Ismail Donmez
Changes by Ismail Donmez ism...@namtrac.org: -- nosy: +cartman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9687 ___ ___ Python-bugs-list mailing

[issue15403] Refactor package creation support code into a common location

2012-07-20 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: This issue addresses the file creation portion of issue 15376, which is to refactor the walk_package support code in test_runpy into a common location. -- components: Tests keywords: easy messages: 165910 nosy: cjerdonek

[issue15376] Refactor the test_runpy walk_package support code into a common location

2012-07-20 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I'm going to address this issue in parts to make it easier to review and see what is going on. The first patch I'm uploading shortly here: issue 15403. That issue I created to address just the file creation part of the code. The

[issue15403] Refactor package creation support code into a common location

2012-07-20 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15403 ___ ___

[issue15403] Refactor package creation support code into a common location

2012-07-20 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file26447/issue-15403-1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15403

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
New submission from Andrew Svetlov andrew.svet...@gmail.com: Python leaks in method.__repr__ if class has no __name__. Very rare situation. -- assignee: asvetlov components: Interpreter Core files: leak.diff keywords: patch messages: 165913 nosy: asvetlov priority: normal severity:

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: Removed file: http://bugs.python.org/file26448/leak.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15404 ___

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: Added file: http://bugs.python.org/file26449/leak.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15404 ___

[issue15391] Add bitlength function to the math module

2012-07-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Indeed, int.bit_length is the way to do this. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15391 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

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

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4b724884c81f by Andrew Svetlov in branch '3.2': Issue #15404: Refleak in PyMethodObject repr. http://hg.python.org/cpython/rev/4b724884c81f -- nosy: +python-dev ___

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15404 ___

[issue15404] Refleak in PyMethodObject repr

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: - committed/rejected type: - resource usage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15404 ___

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

2012-07-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The fix would require all of these functions from memoryview.c (3.3): last_dim_is_contiguous cmp_structure copy_base copy_rec copy_buffer How to avoid code duplication? I could move them into abstract.c, but conceptually they're really

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

2012-07-20 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: You could move PyBuffer_ToContiguous() from abstract.c to memoryview.c. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12834 ___

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2012-07-20 Thread Antti Laine
Antti Laine antti.a.la...@iki.fi added the comment: you are changing the signature of decode() and that would be a compatibility problem I was changing the signature of raw_decode(), by adding a(n almost) private keyword. I really don't see how that would affect compatibility. you are

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

2012-07-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: You could move PyBuffer_ToContiguous() from abstract.c to memoryview.c. For 3.3 that would be ideal, yes. I asked a while ago on python-dev whether to backport the memoryview rewrite. The general mood was against it. So, for 2.7/3.2 I

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15091 ___ ___ Python-bugs-list

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15091 ___ ___

[issue15405] Invitation to connect on LinkedIn

2012-07-20 Thread reynaldo
New submission from reynaldo renbe...@gmail.com: LinkedIn Python, I'd like to add you to my professional network on LinkedIn. - reynaldo reynaldo bendijo owner at www.omickiey.com Greater Los Angeles Area Confirm that you know reynaldo bendijo:

[issue15405] Invitation to connect on LinkedIn

2012-07-20 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15405 ___

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Oh, wow, that was a *lot* harder than I expected to create a test for - I had to import importlib right at the start of regrtest, as well as tweak the import order in runpy, and doing so actually caused test_import to *crash* completely

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

2012-07-20 Thread Rafael Caricio
Rafael Caricio raf...@caricio.com added the comment: I had this problem when I run the tests in my machine (Mac OSX 10.6.8). The intermittence happen here. -- nosy: +rafaelcaricio ___ Python tracker rep...@bugs.python.org

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4431dc4bb770 by Nick Coghlan in branch 'default': Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- Removed message: http://bugs.python.org/msg165921 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15091 ___

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: That was a *lot* harder than I expected to create a test for - I had to import importlib right at the start of regrtest, as well as tweak the import order in runpy, and doing so actually caused test_import to *crash* completely without the

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

2012-07-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Thanks for the analysis Mark. I agree with your points. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15400 ___

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

2012-07-20 Thread Flávio Ribeiro
Flávio Ribeiro em...@flavioribeiro.com added the comment: Ronald, I thought it could be an `atomic` issue by the fact that test_rename transforms a filename in tmp and then it change again to the original name. Not being atomic, the rename will not finish the executation of the first one

[issue14562] urllib2 maybe blocks too long with small chunks

2012-07-20 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I had a discussion with Anrs on this, and it went along these lines - I confused the buffering issue (encountered with streaming data) of urllib2 with chunked transfer encoding. The flow will be blocked in the case at the socket level

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-07-20 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Yesterday I've studied this problem with flavio.ribeiro, and we've started solving it. The result of our progress is available at: issue5758_trace_execute_other_modules_main_v0.patch The problem of our approach is that any code

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

2012-07-20 Thread Juarez Bochi
Juarez Bochi jbo...@gmail.com added the comment: I've updated the patch based on ezio.melotti and berkerpeksag reviews (thanks). It's still missing the modifications proposed on msg107402. -- Added file: http://bugs.python.org/file26452/issue1100942_pure2.diff

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

2012-07-20 Thread Hugo Lopes Tavares
Hugo Lopes Tavares hlt...@gmail.com added the comment: Thanks for the review ezio.melotti. He has notice a few things in my patch: * assertEquals is deprecated; should use assertEqual * the convention is assertEqual(result, expected), not assertEqual(expected, result) * it should handle quotes

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2012-07-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Bump. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1675455 ___

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

2012-07-20 Thread Hugo Lopes Tavares
Hugo Lopes Tavares hlt...@gmail.com added the comment: Changed two test names to avoid misunderstanding. -- Added file: http://bugs.python.org/file26454/issue13592_add_repr_to_regex_v2_1.patch ___ Python tracker rep...@bugs.python.org

[issue15406] Deprecation Warnings fixes on test suite

2012-07-20 Thread Flávio Ribeiro
New submission from Flávio Ribeiro em...@flavioribeiro.com: Looking for bugs to be solved on a cPython Sprint, Hynek reported at core-mentorship list some Deprecation Warnings running the test suite in regression mode. This issue aims to solve this warnings. -- components: Tests

[issue15406] Deprecation Warnings fixes on test suite

2012-07-20 Thread Flávio Ribeiro
Flávio Ribeiro em...@flavioribeiro.com added the comment: The patch remove this warning: $ ./python.exe -Wm -m test test_ctypes [1/1] test_ctypes /Users/flavio.barbosa/dev/cpython/Lib/ctypes/test/test_bitfields.py:249: DeprecationWarning: Please use assertEqual instead.

[issue15406] Deprecation Warnings fixes on test suite

2012-07-20 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15406 ___ ___ Python-bugs-list mailing list

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

2012-07-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There seems to be a problem with the patch: when you store the getvalue() result somewhere (instead of discarding it), things get much slower: $ ./python -m timeit -s import io; n=2000; d=[b'a'*n,b'bb'*n,b'ccc'*n]*1000 s=io.BytesIO();

[issue15402] Correct __sizeof__ support for struct

2012-07-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Module a few cosmetic changes (variable names and doc string tweaks), the patch looks good. Having a correct answer for `sys.getsizeof(struct.Struct('100B'))` is definitely better. Per the documentation for 'sys.getsizeof' [1]: All built-in

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

2012-07-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Under Windows (64-bit Windows 7 on a VirtualBox VM), the patch increases performance slightly but not as much as under Linux: - before patch: C:\t\cpythonpc\VS9.0\amd64\python.exe -m timeit -s import io; n=2000; d=[b'a'*

[issue15407] CSV parser fails to iterate properly on 2.6.6

2012-07-20 Thread Cal Leeming
New submission from Cal Leeming cal.leem...@simplicitymedialtd.co.uk: Getting some extremely strange behavior when attempting to parse a fairly standard CSV in Python 2.6.6. I've tried a whole different mixture of dialects, quoting options, line terminators etc, and none seem to get a happy

[issue15407] CSV parser fails to iterate properly on 2.6.6

2012-07-20 Thread Cal Leeming
Cal Leeming cal.leem...@simplicitymedialtd.co.uk added the comment: Sorry, accidently pasted the wrong code snippet previously. The correct code snippet is: datx = open(data.txt, rb).read() rows = csv.reader( datx ) for row in rows: print x --

[issue15407] CSV parser fails to iterate properly on 2.6.6

2012-07-20 Thread Cal Leeming
Cal Leeming cal.leem...@simplicitymedialtd.co.uk added the comment: This bug also seems to be showing in 2.7.3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15407 ___

[issue15407] CSV parser fails to iterate properly on 2.6.6

2012-07-20 Thread Cal Leeming
Cal Leeming cal.leem...@simplicitymedialtd.co.uk added the comment: Okay, just found the reason for this.. It's because I was putting a .read() on the file descriptor.. I really think that the CSVReader should raise an assertion in the event that it is passed an object which has no iterator,

[issue15408] os.fork/os.popen behaviour change between 2.7 and 3.2

2012-07-20 Thread Walter Dörwald
New submission from Walter Dörwald wal...@livinglogic.de: The attached script behaves differently on Python 2.7.2 and Python 3.2.3. With Python 2.7 the script runs for ca. 30 seconds and then I get back my prompt. With Python 3.2 the script runs in the background, I get back my prompt

[issue15038] Optimize python Locks on Windows

2012-07-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Thanks, Benjamin. That's what reviews are for :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15038 ___

[issue15407] CSV parser fails to iterate properly on 2.6.6

2012-07-20 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: It already produces a TypeError with a specific message if the input is not iterable. You seem to be using a homegrown dialect; with the conventional list (csv.reader(the quick brown fox)) you very quickly see that you're iterating over a

[issue15359] Sockets support for CAN_BCM

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

[issue15402] Correct __sizeof__ support for struct

2012-07-20 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: The patch is easy. I want this in 3.3. Reluctant to touch 2.7 and 3.2, thought. I would be +0 to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15402

[issue15402] Correct __sizeof__ support for struct

2012-07-20 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: makes sense for 3.3 as i would consider it a bug. i think it is reasonable for 2.7 and 3.2 as well, it is an actual bug that the value reported to getsizeof on struct.Struct is meaningless. -- nosy: +gregory.p.smith

[issue15363] Idle/tkinter ~x.py 'save as' fails. closes idle

2012-07-20 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15363 ___

[issue14674] Link to explain deviations from RFC 4627 in json module docs

2012-07-20 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Pinging on this, since it's been just short of a month since Éric's last call comment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674

[issue15397] Unbinding of methods

2012-07-20 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Can't you unbind without any changes to the C code by doing def unbind(f): if hasattr(f, '__func__'): return f.__func__ self = getattr(f, '__self__', None) if self is not None and not isinstance(self,

[issue15406] Deprecation Warning fix on ctypes module

2012-07-20 Thread Flávio Ribeiro
Flávio Ribeiro em...@flavioribeiro.com added the comment: One issue per module will be created to facilitate the issues management. -- title: Deprecation Warnings fixes on test suite - Deprecation Warning fix on ctypes module ___ Python tracker

[issue15406] Deprecation Warning fix on ctypes module test

2012-07-20 Thread Flávio Ribeiro
Changes by Flávio Ribeiro em...@flavioribeiro.com: -- title: Deprecation Warning fix on ctypes module - Deprecation Warning fix on ctypes module test ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15406

[issue15406] Deprecation Warning fix on ctypes module test

2012-07-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Thanks for the patch. I will review it shortly. -- assignee: - meador.inge components: +ctypes nosy: +meador.inge stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org

[issue15407] CSV parser fails to iterate properly on 2.6.6

2012-07-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: We don't generally do that kind of type checking. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15407] CSV parser fails to iterate properly on 2.6.6

2012-07-20 Thread Cal Leeming
Cal Leeming cal.leem...@simplicitymedialtd.co.uk added the comment: @david Gotcha - I had a feeling that would be the case. Thank you for the quick replies anyway guys! Hopefully this will help others in the future :) -- ___ Python tracker

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

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

[issue15272] pkgutil.find_loader accepts invalid module names

2012-07-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: PEP 302 just says that find_module will be called with the fully qualified name of the module. And importation by file name was removed in Python 3 (at some point; don't remember exact feature release). So supporting slashes in a module name is

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

2012-07-20 Thread Igor Sobreira
Igor Sobreira i...@igorsobreira.com added the comment: My previous patch is incorrect, talking to voidspace on irc self._top_leve_dir should be reverted to it's previous value so when discover is called the original value should be stored, then discovery done, and then the original restored

[issue15408] os.fork/os.popen behaviour change between 2.7 and 3.2

2012-07-20 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: The problem is that os.wait() is returning when the wrong process exits. You can fix this by specifying the pid you are waiting for by doing os.waitpid(pid, 0) instead of os.wait(). Arguably os.popen() and subprocess.communicate() etc

[issue15163] pydoc displays __loader__ as module data

2012-07-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - eric.araujo stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15163 ___

[issue15409] Deprecation Warning fix on cookiejar module

2012-07-20 Thread Flávio Ribeiro
New submission from Flávio Ribeiro em...@flavioribeiro.com: Cookiejar calls some urllib.Request's deprecated methods. This patch fixes this deprecated calls. -- components: Extension Modules files: cookiejar_fix_deprecated_method_calls.patch keywords: patch messages: 165956 nosy:

[issue15292] import hook behavior documentation improvement

2012-07-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So I can't reproduce the problem under Python 2.7.3, Python 3.2.3, or a fresh checkout of Python 3.3. This is with both your script, Anders, and writing my own class that defined find_module() to just raise ImportError that I set in either

[issue2919] Merge profile/cProfile in 3.n+1

2012-07-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So I didn't find time at EuroPython. =) Is this dead, Alexandre, or do you want to see this happen for Python 3.4? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2919

[issue665194] datetime-RFC2822 roundtripping

2012-07-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue665194 ___ ___ Python-bugs-list

[issue1644818] Allow built-in packages and submodules as well as top-level modules

2012-07-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1644818 ___ ___

[issue3367] Uninitialized value read in parsetok.c

2012-07-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Should this be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___

[issue15406] Deprecation Warning fix on ctypes module test

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fb181698775d by Meador Inge in branch '3.2': Issue #15406: Fix deprecation warning in ctypes test_bitfields.py http://hg.python.org/cpython/rev/fb181698775d New changeset f93efd4c45bd by Meador Inge in branch

[issue14895] test_warnings.py EnvironmentVariableTests is a bad test

2012-07-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Phil said it's Jython's problem, so I won't worry about this on CPython's side. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15409] Deprecation Warning fix on cookiejar module

2012-07-20 Thread Flávio Ribeiro
Changes by Flávio Ribeiro em...@flavioribeiro.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15409 ___ ___

[issue15406] Deprecation Warning fix on ctypes module test

2012-07-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Thanks again for the patch Flávio. Please contribute again to Python (be sure to fill out a contributor agreement if you do: http://www.python.org/psf/contrib/). -- resolution: - fixed stage: patch review - committed/rejected status:

[issue15408] os.fork/os.popen behaviour change between 2.7 and 3.2

2012-07-20 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Actually, if you replace print(os.popen(uname).read()) with f = os.popen(uname) print(f.read()) f.close() or with os.popen(uname) as f: print(f.read()) then things should work. This

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 721b701feb4a by Brett Cannon in branch 'default': Issue #15091: Call importlib.invalidate_caches() and reactivate a test http://hg.python.org/cpython/rev/721b701feb4a --

[issue15091] ImportError when package is symlinked on Unix

2012-07-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15091 ___

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2012-07-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9914 ___ ___ Python-bugs-list mailing

[issue3367] Uninitialized value read in parsetok.c

2012-07-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think the original issue in parsetok.c is still present. The fix that was committed was for sys_update_path(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367

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

2012-07-20 Thread Igor Sobreira
Igor Sobreira i...@igorsobreira.com added the comment: Updated patch to restore previous value of ._top_level_dir on discover() done. And added a unit test. -- Added file: http://bugs.python.org/file26458/restore_top_level_dir_to_previous_value.patch

[issue15168] Move importlib.test to test.importlib

2012-07-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4cebcfc97774 by Brett Cannon in branch 'default': Issue #15168: Move importlb.test to test.test_importlib. http://hg.python.org/cpython/rev/4cebcfc97774 -- nosy: +python-dev

[issue15163] pydoc displays __loader__ as module data

2012-07-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have internet problems at home and am not set up to work on Python at work, so feel free to commit the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15163

[issue9736] doctest.DocTestSuite doesn't handle test globs correctly

2012-07-20 Thread Hugo Lopes Tavares
Hugo Lopes Tavares hlt...@gmail.com added the comment: I see the bug was not fixed yet, and I started to investigate it. I am attaching a test patch. I don't know if I will get it working soon, since I see it as a very low priority for Python. -- keywords: +patch nosy: +hltbra

[issue15168] Move importlib.test to test.importlib

2012-07-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15168

[issue15409] Deprecation Warning fix on cookiejar module

2012-07-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: This looks OK to me. I will commit later today. -- assignee: - meador.inge components: +Library (Lib) -Extension Modules stage: - commit review type: - behavior ___ Python tracker

[issue15409] Deprecation Warning fix on cookiejar module

2012-07-20 Thread Flávio Ribeiro
Flávio Ribeiro em...@flavioribeiro.com added the comment: nice Meador :-) Already sent the form to contribut...@python.org. Added also one diff to Misc/ACKS, it's up to you add it or not. Thanks -- Added file: http://bugs.python.org/file26460/add_flavioribeiro_acks.patch

  1   2   >