[issue7559] TestLoader.loadTestsFromName swallows import errors

2012-04-20 Thread Chris Jerdonek
Chris Jerdonek added the comment: I'm still getting hit with this. In what versions is it okay for us to fix the bad API, as Michael suggested? -- ___ Python tracker ___ __

[issue14604] spurious stat() calls in importlib

2012-04-20 Thread Brett Cannon
Brett Cannon added the comment: OK, so a cursory look at importlib suggests that the possible costs of those stat calls (by looking at what has to examine the filesystem) are: * os.listdir() for caching * os.path.isdir() for directories if they are a package * os.path.isfile() for __init__.py

[issue1572710] cElementTree.SubElement doesn't recognize keyword "attrib"

2012-04-20 Thread Dave Abrahams
Dave Abrahams added the comment: On second thought, I see what effbot is trying to say... but it's still a bug. Given the way the interface is declared and the behavior of regular python functions: Element(tag, attrib={}, **extra) indicates that I can pass attrib (or tag, for that matter)

[issue13959] Re-implement parts of imp in pure Python

2012-04-20 Thread Eric Snow
Eric Snow added the comment: I'd still like to consider this a bit more. When you're trying to understand imports, having one place to look (Lib/importlib/_bootstrap.py) is better than two, especially when the one is pure Python code. So it still may be worth it to pull in the odds and ends

[issue1572710] cElementTree.SubElement doesn't recognize keyword "attrib"

2012-04-20 Thread Dave Abrahams
Dave Abrahams added the comment: @effbot, I think you may have misread the OP's example. The first two arguments /are/ being passed positionally. In any case, there's a real bug here. cElementTree seems to choke on uses of attrib. Change cElementTree to ElementTree below and this one work

[issue14573] json iterencode can not handle general iterators

2012-04-20 Thread Éric Araujo
Éric Araujo added the comment: Agreed with Antoine; I think that if this is added, it should be opt-in, not default. Also, it is not clear if the request is about iterators or iterables. -- nosy: +eric.araujo ___ Python tracker

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2012-04-20 Thread Éric Araujo
Éric Araujo added the comment: Yes. See the devguide if you need more info. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14613] time.time can return NaN

2012-04-20 Thread Éric Araujo
Éric Araujo added the comment: See http://patch-tracker.debian.org/package/python2.7 for the list of patches applied to Python 2.7 in Debian. I don’t know if there are more patches in Ubuntu. -- nosy: +eric.araujo ___ Python tracker

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2012-04-20 Thread Dave Abrahams
Dave Abrahams added the comment: These bugs are annoying. How does one convert a set of examples into a patch? Do you mean you want these to become test cases? -- nosy: +dabrahams ___ Python tracker

[issue14584] Add gzip support to xmlrpc.server

2012-04-20 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Library (Lib) nosy: +eric.araujo stage: -> needs patch title: Add gzip support the XMLRPC Server -> Add gzip support to xmlrpc.server ___ Python tracker ___

[issue14639] Different behavior for urllib2 in Python 2.7

2012-04-20 Thread Diego Manenti Martins
Diego Manenti Martins added the comment: It stoped to work. It was working when using with python 2.6 and crashed on switching to python 2.7 I expect the same behavior of curl -X POST http://server.com/post_image?tid=zoV6LJ -T test.jpg -- ___ Pyth

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-20 Thread Joe Peterson
Joe Peterson added the comment: I have now included a patch for 2.7. Here are the two latest patches: Python 2: issue10941_python2.diff Python 3: issue10941_python3.diff -- Added file: http://bugs.python.org/file25297/issue10941_python2.diff ___ Py

[issue14575] IDLE crashes after file open in OS X

2012-04-20 Thread Hugh Gibbons
Hugh Gibbons added the comment: thanks. That eliminated the crashiness. On Apr 17, 2012, at 6:26 PM, Ned Deily wrote: > > Ned Deily added the comment: > > The crash dump confirms that the buggy Apple Tcl/Tk 8.5 frameworks are being > used (/System/Library/Frameworks/Tk.framework/Versions/8

[issue14639] Different behavior for urllib2 in Python 2.7

2012-04-20 Thread Eric V. Smith
Eric V. Smith added the comment: In what way is it different? Does it cause a problem, or is it compatible but different? -- nosy: +eric.smith ___ Python tracker ___ __

[issue14470] Remove using of w9xopen in subprocess module

2012-04-20 Thread Rick Rune
Rick Rune added the comment: Removed w9xpopen usage in subprocess module via attached patch. -- keywords: +patch nosy: +Rune Added file: http://bugs.python.org/file25296/subprocess_minus_w9xpopen.patch ___ Python tracker

[issue14639] Different behavior for urllib2 in Python 2.7

2012-04-20 Thread Diego Manenti Martins
New submission from Diego Manenti Martins : this code sends data in a different way if using python 2.6 or python 2.7 >>> import urllib2 >>> url = 'http://server.com/post_image?tid=zoV6LJ' >>> f = open('test.jpg') >>> data = f.read() >>> res = urllib2.urlopen(url, data) I checked it with wiresh

[issue14636] Mock could check for exceptions in side effect list

2012-04-20 Thread Michael Foord
Michael Foord added the comment: Seems like a good change. -- assignee: -> michael.foord ___ Python tracker ___ ___ Python-bugs-list

[issue13959] Re-implement parts of imp in pure Python

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset c820aa9c0c00 by Brett Cannon in branch 'default': Issue #13959: Keep imp.get_magic() in C code, but cache in importlib http://hg.python.org/cpython/rev/c820aa9c0c00 -- ___ Python tracker

[issue14635] telnetlib uses select instead of poll - limited to FD_SETSIZE fds

2012-04-20 Thread Éric Araujo
Éric Araujo added the comment: Out of curiosity, are you reporting this because you ran into it in your code? I was not aware that telnet was still in real use. -- nosy: +eric.araujo ___ Python tracker _

[issue14638] pydoc error on instance of a custom class

2012-04-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14636] Mock could check for exceptions in side effect list

2012-04-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14579] Vulnerability in the utf-16 decoder after error handling

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

[issue14625] Faster utf-32 decoder

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

[issue14624] Faster utf-16 decoder

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

[issue14323] Normalize math precision in RGB/YIQ conversion

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Terry: sorry, I missed this before. Re 1. Sure, this seems reasonable, if there's a real sense in which the new numbers are better than the old. Besides MATLAB, there's also a set of numbers given on Wikipedia that might be considered. I don't have the do

[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-04-20 Thread Stefan Krah
Stefan Krah added the comment: I'm not sure what to do. Martin's opinion was that the change should be reverted: http://mail.python.org/pipermail/python-dev/2012-March/117390.html -- ___ Python tracker __

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14339] Optimizing bin, oct and hex

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops; that looks like a slightly older version of the form. I think the correct one is: http://www.python.org/psf/contrib/contrib-form/ -- ___ Python tracker ___

[issue14339] Optimizing bin, oct and hex

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Aargh. Sorry, yes. Serhiy, can you do this? The form can be found at: http://www.python.org/psf/contrib/contrib-form-python/ -- ___ Python tracker

[issue14635] telnetlib uses select instead of poll - limited to FD_SETSIZE fds

2012-04-20 Thread Charles-François Natali
Charles-François Natali added the comment: See also issue #10527, dealing with multiprocessing. Note that this probably affects other modules besides telnetlib, so it might be interesting to find a way to factorize code (i.e. use poll() if available or fallback to select()). -- nosy:

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed. Thanks Brecht for the report (and Antoine for diagnosing the problem). -- resolution: -> fixed ___ Python tracker ___

[issue14638] pydoc error on instance of a custom class

2012-04-20 Thread Florent Xicluna
New submission from Florent Xicluna : pydoc fails on custom instances in specific cases. (When instance __name__ does not resolve to a str). This is a small example: >>> import pydoc >>> class A: ... def __getattr__(self, name): ... return True ... >>> print(pydoc.render_doc(A)) Python

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset cdcc6b489862 by Mark Dickinson in branch '3.2': Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of an int subclass. http://hg.python.org/cpython/rev/cdcc6b489862 New changeset c7b0f711dc15 by Mark Dickinson in branch 'defa

[issue14637] test.test_import.PathsTests.test_UNC_path is failing

2012-04-20 Thread Brett Cannon
New submission from Brett Cannon : See http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/104/steps/test/logs/stdio for the failure, but basically: == ERROR: test_UNC_path (test.test_import.PathsTests) ---

[issue14339] Optimizing bin, oct and hex

2012-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: This should have waited until Serhiy submits a contributor form. Serhiy, can you please do this soon? Else I'll have to revert the change. -- status: closed -> open ___ Python tracker

[issue14636] Mock could check for exceptions in side effect list

2012-04-20 Thread R. David Murray
New submission from R. David Murray : I just spent an hour figuring out why my test was failing because I tried to do this: mymock.side_effect = (AuthenticationError, None) expecting the first call to raise an auth error and the second time it was called to get a normal return. Since ther

[issue14339] Optimizing bin, oct and hex

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the patch. I made some minor changes, notably moving the overflow check closer to where it's needed, moving some comments around, and removing a (possibly inappropriate) PyErr_NoMemory call. -- resolution: -> fixed status: open -> closed

[issue14339] Optimizing bin, oct and hex

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset dcd3344b6d5b by Mark Dickinson in branch 'default': Issue #14339: Improve speed of bin, oct and hex builtins. Patch by Serhiy Storchaka (with minor modifications). http://hg.python.org/cpython/rev/dcd3344b6d5b -- nosy: +python-dev __

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > I don't see the point if OS "seek()" is going to give an error anyway. Please check that Windows won't crash the interpreter with bad 'whence' values, like it already does for closed file descriptors. -- ___

[issue14628] Clarify import statement documentation regarding what gets bound

2012-04-20 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14628] Clarify import statement documentation regarding what gets bound

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 150bd84e737e by Brett Cannon in branch 'default': Issue #14628: Document the fact that import always returns the module http://hg.python.org/cpython/rev/150bd84e737e -- nosy: +python-dev ___ Python track

[issue14599] Windows test_import failure thanks to ImportError.path

2012-04-20 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue14585] Have test_import run more importlib tests

2012-04-20 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14585] Have test_import run more importlib tests

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset a74ba7407457 by Brett Cannon in branch 'default': Issue #14585: test_import now runs all tests under http://hg.python.org/cpython/rev/a74ba7407457 -- nosy: +python-dev ___ Python tracker

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Stefan Krah
Stefan Krah added the comment: The patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14599] Windows test_import failure thanks to ImportError.path

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 56aa4cda11a8 by Brett Cannon in branch 'default': Issue #14599: Support ImportError.path on AIX and HPUX when loading http://hg.python.org/cpython/rev/56aa4cda11a8 -- ___ Python tracker

[issue14599] Windows test_import failure thanks to ImportError.path

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 573010778eed by Brett Cannon in branch 'default': Issue #14599: Generalize a test for ImportError.path and add support http://hg.python.org/cpython/rev/573010778eed -- ___ Python tracker

[issue14635] telnetlib uses select instead of poll - limited to FD_SETSIZE fds

2012-04-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : telnetlib uses select.select. This limits it to being able to work when file descriptors are still below FD_SETSIZE (often 1024) meaning it can't be used in some large programs today. It should use poll. (it is probably easy to fix this and the telnetli

[issue14627] Fatal Python Error when Python startup is interrupted by CTRL+c

2012-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In a running interpreter and Idle, ^C results in KeyboardInterrupt >>> and nothing else. >From a command line, I think KeyboardInterrupt: Python startup stopped" would be ideal. On Windows, I do not know if a program started from an icon, shortcut, or explo

[issue14620] Fatal Python error: Cannot recover from stack overflow.

2012-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are several other 'stack overflow' issues (just do a search on that phrase). Please take a look and see if yours is a duplicate of any of the others. If this does seem different, please reduce your code to the minimum needed and attach the file here.

[issue14620] Fatal Python error: Cannot recover from stack overflow.

2012-04-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14620] Fatal Python error: Cannot recover from stack overflow.

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: If you have a self-contained script that exhibits the problem, please could you attach it directly to the issue? -- nosy: +mark.dickinson ___ Python tracker _

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25295/utf16_update_after_error-3.2.patch ___ Python tracker ___ ___ Pytho

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file25293/utf16_error_handling-3.2.patch ___ Python tracker ___ ___ Python-

[issue14606] Memory leak subprocess on Windows

2012-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does your last message mean that this issue should be closed here? -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a minimal patch that corrects all bugs for 3.2. As a side effect, decoding is accelerated by 4-8%. -- Added file: http://bugs.python.org/file25294/utf16_error_handling-3.2.patch ___ Python tracker

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25293/utf16_error_handling-3.2.patch ___ Python tracker ___ ___ Python-bu

[issue13405] Add DTrace probes

2012-04-20 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Frank, if somebody provides a "diff" I can test under Ubuntu 10.04, I can try it myself. This patch MUST be differential from my current patch (to be applied OVER it) and must cover EVERYTHING, from "./configure" to the test execution. Anyway, "issues" in t

[issue13405] Add DTrace probes

2012-04-20 Thread Frank Ch. Eigler
Frank Ch. Eigler added the comment: > Stan, anybody working in SystemTap support, could you possibly > create a new issue in the tracker to track specifically stap > support?. You can depend on this bug, and coordinate effort. Clone > my repository and use it as base. I believe the only remotel

[issue14588] PEP 3115 compliant dynamic class creation

2012-04-20 Thread Daniel Urban
Daniel Urban added the comment: I've attached the third patch with the eval_body -> exec_body change; explicitly passing the default (None) now also allowed. I also fixed a refleak (I think). -- Added file: http://bugs.python.org/file25292/operator_build_class_3.patch ___

[issue14634] Mock cannot autospec functions with keyword-only arguments.

2012-04-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib) nosy: +ezio.melotti stage: -> test needed ___ Python tracker ___ ___ Python-b

[issue13405] Add DTrace probes

2012-04-20 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Stan, anybody working in SystemTap support, could you possibly create a new issue in the tracker to track specifically stap support?. You can depend on this bug, and coordinate effort. Clone my repository and use it as base. Thanks!. -- ___

[issue14634] Mock cannot autospec functions with keyword-only arguments.

2012-04-20 Thread R. David Murray
New submission from R. David Murray : The following code: def foo(a, *, b=None): pass unittest.mock.create_autospec(foo) fails with this traceback: Traceback (most recent call last): File "temp.py", line 6, in unittest.mock.create_autospec(foo) File "/home/rdm

[issue10156] Initialization of globals in unicodeobject.c

2012-04-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch works fine here, and the test exercises the issue correctly. -- ___ Python tracker ___ __

[issue14596] struct.unpack memory leak

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: IMO, the struct module does what it's intended to do just fine here. I don't a big need for any change. I'd propose closing this as "won't fix". -- ___ Python tracker _

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Also, Python 2.7 looks safe here. -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-

[issue13344] closed sockets don't raise EBADF anymore

2012-04-20 Thread Colin Marc
Changes by Colin Marc : -- nosy: +colinmarc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2012-04-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14599] Windows test_import failure thanks to ImportError.path

2012-04-20 Thread Brett Cannon
Changes by Brett Cannon : -- title: Windows test_import failure -> Windows test_import failure thanks to ImportError.path ___ Python tracker ___

[issue14621] Hash function is not randomized properly

2012-04-20 Thread Vlado Boza
Vlado Boza added the comment: One possible fix: Look for StringHasher in google v8 code (http://code.google.com/p/v8/source/search?q=stringhasher&origq=stringhasher&btnG=Search+Trunk). Main loop looks like this: raw_running_hash_ += c;

[issue14581] Support case-insensitive file extensions on Windows in importlib

2012-04-20 Thread Brett Cannon
Brett Cannon added the comment: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/98/steps/test/logs/stdio suggests this fix worked. -- assignee: -> brett.cannon resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed __

[issue14629] discrepency between tokenize.detect_encoding() and PyTokenizer_FindEncodingFilename()

2012-04-20 Thread Eric Snow
Eric Snow added the comment: Looks good. Thanks for the help, Martin and Brett. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue14633] test_find_module_encoding should test for a less specific message

2012-04-20 Thread Eric Snow
Eric Snow added the comment: thanks, Brett! That did the trick. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-20 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Terry, yes, skiping the test in the code will raise an error anyway when doing the real "seek()" OS syscall. > Is there a reason to say (several times) 'can support' instead of > just 'support'? Do the OSes in question just optionally support > rather than al

[issue14629] discrepency between tokenize.detect_encoding() and PyTokenizer_FindEncodingFilename()

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b57de8a8383 by Brett Cannon in branch 'default': Issue #14629: Mention the filename in SyntaxError exceptions from http://hg.python.org/cpython/rev/1b57de8a8383 -- ___ Python tracker

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- keywords: +patch Added file: http://bugs.python.org/file25291/issue14630.patch ___ Python tracker ___ _

[issue14630] non-deterministic behavior of int subclass

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: Here's the patch. I searched through the rest of Objects/longobject.c for other occurrences of [0], and found nothing else that looked suspicious, so I'm reasonably confident that this was an isolated case. -- ___

[issue8885] markupbase declaration errors aren't recoverable

2012-04-20 Thread Ezio Melotti
Ezio Melotti added the comment: Because even on 2.7 the parser is now able to handle broken markup, so "error" won't be called anymore. -- ___ Python tracker ___ ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is there a reason to say (several times) 'can support' instead of just 'support'? Do the OSes in question just optionally support rather than always support? The first version added: change 'depend of' to 'depend on'. In several functions you delete error ch

[issue14633] test_find_module_encoding should test for a less specific message

2012-04-20 Thread Brett Cannon
Brett Cannon added the comment: Committed in http://hg.python.org/cpython/rev/a281a6622714 (I think our issue detection algorithm grabs the last issue in a commit message instead of the first one). -- assignee: -> brett.cannon resolution: -> fixed stage: -> committed/rejected statu

[issue14629] discrepency between tokenize.detect_encoding() and PyTokenizer_FindEncodingFilename()

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset a281a6622714 by Brett Cannon in branch 'default': Issue #14633: Simplify imp.find_modue() test after fixes from issue http://hg.python.org/cpython/rev/a281a6622714 -- ___ Python tracker

[issue14581] Support case-insensitive file extensions on Windows in importlib

2012-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset a32be109bd86 by Brett Cannon in branch 'default': Issue #14581: Windows users are allowed to import modules w/o taking http://hg.python.org/cpython/rev/a32be109bd86 -- nosy: +python-dev ___ Python tracke

[issue14629] discrepency between tokenize.detect_encoding() and PyTokenizer_FindEncodingFilename()

2012-04-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: IMO, the test is flawed testing for the specific error message. OTOH, the original message is better than the tokenize message in that it mentions the file name. However, tokenize does not have the file name available, so it can't possibly report it. I have

[issue14517] Recompilation of sources with Distutils

2012-04-20 Thread Éric Araujo
Éric Araujo added the comment: I think this is done on purpose; I’ll dig up the changeset and bug report later. -- ___ Python tracker ___ ___

[issue14627] Fatal Python Error when Python startup is interrupted by CTRL+c

2012-04-20 Thread Stefan Krah
Stefan Krah added the comment: The funny thing is, in 3.3 I can't reproduce it (i.e. I only get the KeyboardInterrupt). So I'm not sure if this happens more often now. ^CTraceback (most recent call last): File "", line 989, in _find_and_load File "", line 571, in load_module File "", lin

[issue14627] Fatal Python Error when Python startup is interrupted by CTRL+c

2012-04-20 Thread Brett Cannon
Brett Cannon added the comment: So importlib just increased the window of vulnerability for this kind of thing. -- ___ Python tracker ___ ___

[issue14628] Clarify import statement documentation regarding what gets bound

2012-04-20 Thread Brett Cannon
Brett Cannon added the comment: OK, so you say "to the object found in sys.modules." -- ___ Python tracker ___ ___ Python-bugs-list m

[issue13994] incomplete revert in 2.7 Distutils left two copies of customize_compiler

2012-04-20 Thread Éric Araujo
Éric Araujo added the comment: [MAL] > I know that distutils development was stopped (even though I don't consider > that a good thing) This is OT, but could you tell a bit more? The freeze appears to me to have been a necessary decision due to the impossibility of making non-trivial changes

[issue14628] Clarify import statement documentation regarding what gets bound

2012-04-20 Thread Eric Snow
Eric Snow added the comment: Sounds mostly right. sys.modules[name] won't necessarily contain a module object, as Benjamin brought up in issue14609. -- ___ Python tracker ___

[issue14627] Fatal Python Error when Python startup is interrupted by CTRL+c

2012-04-20 Thread Stefan Krah
Stefan Krah added the comment: Hmm, I've managed to produce the error with 3.1: $ python3.1 Fatal Python error: Py_Initialize: can't initialize sys standard streams Traceback (most recent call last): File "/usr/lib/python3.1/io.py", line 60, in import _io File "/usr/lib/python3.1/os.py

[issue14629] discrepency between tokenize.detect_encoding() and PyTokenizer_FindEncodingFilename()

2012-04-20 Thread Eric Snow
Eric Snow added the comment: Apparently the message string contained by the SyntaxError is different between the two. I noticed due to the hard-coded check in test_find_module_encoding (in Lib/test/test_imp.py). I've brought up the specific issue of that hard-coded message check in issue146

[issue14633] test_find_module_encoding should test for a less specific message

2012-04-20 Thread Eric Snow
Eric Snow added the comment: or even _not_ check the message string? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue14633] test_find_module_encoding should test for a less specific message

2012-04-20 Thread Eric Snow
Changes by Eric Snow : -- components: +Tests title: test_find_module_encoding should test for a less specific message (or -> test_find_module_encoding should test for a less specific message versions: +Python 3.3 ___ Python tracker

[issue14633] test_find_module_encoding should test for a less specific message (or

2012-04-20 Thread Eric Snow
New submission from Eric Snow : test_find_module_encoding (in Lib/test/test_imp.py), has the following check: self.assertRaisesRegex(SyntaxError, r"Non-UTF-8 code starting with '\\xf6'" r" in file .*badsyntax_pep3120.py", imp.find_module, 'badsyntax_pep3120', path) I

[issue8885] markupbase declaration errors aren't recoverable

2012-04-20 Thread Mark Nottingham
Mark Nottingham added the comment: Why remove 2.7? It'd be an easy bug fix if j is incremented. -- ___ Python tracker ___ ___ Python-b

[issue14627] Fatal Python Error when Python startup is interrupted by CTRL+c

2012-04-20 Thread Brett Cannon
Brett Cannon added the comment: Welcome to Python code running during startup. =) As I said, the only thing I can think of is raising the exception instead of catching it and immediately triggering the fatal exception, but that specific fatal error was not introduced by me so this is just a s

[issue14631] Instance methods and WeakRefs don't mix.

2012-04-20 Thread Mark Dickinson
Mark Dickinson added the comment: I quite like the WeakCallableRef idea, having had to work around this problem myself in the past (using a similar mechanism). This looks like a feature request rather than a bug report, though; changing Type and Versions accordingly. -- nosy: +mark.

[issue14628] Clarify import statement documentation regarding what gets bound

2012-04-20 Thread Brett Cannon
Brett Cannon added the comment: So I think the sentence is saying exactly what is going on, but you want clarification that the module object is originating from sys.modules specifically. So you could change the sentence to "The first form of import statement binds the module name in the loca

  1   2   >