[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-10 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, the PyLong_As... conversions are a mess. In theory, they should all use __index__ if available, and ignore __int__. In practice, it's a mess that's difficult to change without breaking things. I think there are already some other issues open on this su

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The ssize_t functions deliberately ignore lossy int conversions (e.g. from > floats) - that's why they only work on types that implement __index__. They ignore __index__. -- ___ Python tracker

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Review comments added. Only original author can answer your questions. > I don't really see why the fix should not be as trivial as: Yes, these are simple and obvious, and only changes which I understand. -- _

[issue19710] Make sure documentation for PEP 451 is finished

2013-12-10 Thread Eric Snow
Eric Snow added the comment: I've attached a patch to issue19713 (file33088) that adds documentation for the new APIs. Also, there were some good reviews in issue18864 (especially for file32381) that never got fully addressed. -- ___ Python tracker

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-10 Thread Eric Snow
Eric Snow added the comment: Here's a patch for the deprecations (and API additions) in the importlib docs. -- keywords: +patch Added file: http://bugs.python.org/file33088/issue19713-importlib-docs.diff ___ Python tracker

[issue19946] Have multiprocessing raise ImportError when spawning a process that can't find the "main" module

2013-12-10 Thread Eric Snow
Eric Snow added the comment: There is definitely room for improvement relative to module specs and __main__ (that's the topic of issue #19701). That issue is waiting for __main__ to get a proper spec (see issues #19700 and #19697). -- ___ Python tr

[issue19701] Update multiprocessing for PEP 451

2013-12-10 Thread Eric Snow
Eric Snow added the comment: This came up in issue19946. -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19944] Make importlib.find_spec load packages as needed

2013-12-10 Thread Eric Snow
Eric Snow added the comment: As a testament to counter-intuitive API, I did not even realize this about either find_loader() or find_spec() until the bug the other day with reloading submodules. So I'm on board! As to the best approach, I'll argue for keeping just 1 function. I tried out bo

[issue19700] Update runpy for PEP 451

2013-12-10 Thread Eric Snow
Eric Snow added the comment: patch LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset e961a166dc70 by Eric Snow in branch 'default': Issue #18864: Add a setter for ModuleSpec.has_location. http://hg.python.org/cpython/rev/e961a166dc70 -- ___ Python tracker

[issue12029] Catching virtual subclasses in except clauses

2013-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, you're right - I found the example I was thinking of (Richard Jones's "Don't do this!" talk), and it was just demonstrating that the except clause accepts any expressions producing a tuple or BaseException instance, not that we call __iter__ at that point.

[issue15032] Provide a select.select implemented using select.poll

2013-12-10 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue15032] Provide a select.select implemented using select.poll

2013-12-10 Thread Éric Araujo
Éric Araujo added the comment: This may be obsoleted by the new selectors module. -- nosy: +eric.araujo, neologix ___ Python tracker ___ _

[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: 3.x is afflicted. -- nosy: +benjamin.peterson versions: +Python 3.3, Python 3.4 -Python 2.7 ___ Python tracker ___ __

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

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d61e8050b7d7 by Gregory P. Smith in branch '2.7': Fixes Issue #17200: telnetlib's read_until and expect timeout was broken by the http://hg.python.org/cpython/rev/d61e8050b7d7 New changeset 46186736e91c by Gregory P. Smith in branch '3.3': Fixes Iss

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d61e8050b7d7 by Gregory P. Smith in branch '2.7': Fixes Issue #17200: telnetlib's read_until and expect timeout was broken by the http://hg.python.org/cpython/rev/d61e8050b7d7 New changeset 46186736e91c by Gregory P. Smith in branch '3.3': Fixes Iss

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-10 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Review comments added. I don't really see why the fix should not be as trivial as: diff -r ca9bca7aecda Lib/telnetlib.py --- a/Lib/telnetlib.py Tue Dec 10 16:06:46 2013 -0600 +++ b/Lib/telnetlib.py Tue Dec 10 18:08:37 2013 -0800 @@ -312,7 +312,9 @@

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-12-10 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch, Terry. I've pushed a slightly modified version for release in 2.7.7, 3.3.4, and 3.4.0. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <

[issue18270] IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5becf8b612ee by Ned Deily in branch '2.7': Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial http://hg.python.org/cpython/rev/5becf8b612ee New changeset 016c64e66a9e by Ned Deily in branch '3.3': Issue #18270: Prevent possib

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2013-12-10 Thread Michael Foord
Michael Foord added the comment: I'd be happy with a doc change from "fixture" to instance (or maybe add instance in parentheses). I'd rather a simple change than making the documentation much longer. The reason for a separate instance per test is for test isolation. Each test can create and

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-10 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Yes, it returns a list but unless I'm missing something in the general case it's the caller's responsibility to loop through the charsets to test for failure and try again. This is not done automatically. In the specific case we're talking about, first get_f

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: The ssize_t functions deliberately ignore lossy int conversions (e.g. from floats) - that's why they only work on types that implement __index__. -- ___ Python tracker __

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2013-12-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: "Each instance of the TestCase will only be used to run a single test method, so a new fixture is created for each test." Yes, this seems to be, but it is not clear what fixture means in this context (as in "the preparation needed to perform one or *more* tests"

[issue19944] Make importlib.find_spec load packages as needed

2013-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: They're fundamentally different operations though, with one being a single step of the other. I just think "do the full lookup" should have the more obvious name, with the "do a single level lookup" still as a public API, but with the less obvious name. --

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2013-12-10 Thread Ned Batchelder
Ned Batchelder added the comment: This sentence seems to cover it: "Each instance of the TestCase will only be used to run a single test method, so a new fixture is created for each test." from http://docs.python.org/2/library/unittest.html The word "fixture" here is being used oddly, but tha

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2013-12-10 Thread R. David Murray
R. David Murray added the comment: I'm guessing it is that a new TestCase instance is instantiated each time an individual test is run. I don't know that this is part of the API, though, so I'm not sure how it should be documented. -- nosy: +r.david.murray ___

[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: Quite plausibly a bug in the pkgutil import system emulation. Does the same inconsistency appear in 3.3 with non-UTF8 bytes? -- ___ Python tracker __

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2013-12-10 Thread Claudiu.Popa
New submission from Claudiu.Popa: I was surprised that in the following __init__ is actually called once per test function, although nothing in documentation implied so. a.py -- import unittest class A(unittest.TestCase): def __init__(self, *args, **kwargs): print('called only o

[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca9bca7aecda by Zachary Ware in branch '2.7': Issue #19572: Replace a return that shouldn't have been removed from test_os. http://hg.python.org/cpython/rev/ca9bca7aecda -- ___ Python tracker

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about PyLong_AsSsize_t(), PyLong_AsUnsignedLong(), and PyLong_AsSize_t()? They are ignore __int__(). PyLong_AsVoidPtr() calls PyLong_AsLong(), PyLong_AsUnsignedLong(), PyLong_AsLongLong(), or PyLong_AsUnsignedLongLong() (depending on pointer's size and

[issue19914] help([object]) returns "Not enough memory." on standard Python types, object and object functions

2013-12-10 Thread HCT
HCT added the comment: the other issue I'm also seeing is that help() doesn't seem to take exactly an object as an optional argument. perhaps Python manual for help() should be updated according to the actual implementation? >>> help('hello') no Python documentation found for 'hello' >>> type

[issue19944] Make importlib.find_spec load packages as needed

2013-12-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread akira
akira added the comment: gudge, There is also an issue with the current strptime format [1] (`"%b %d %H:%M:%S %Y GMT"`). It is locale-dependent and it may fail if a non-English locale is in effect. I don't know whether I should open a new issue on this or are you going to fix it too. `cert_t

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-10 Thread STINNER Victor
STINNER Victor added the comment: > It would interesting to test this approach (try utf-8 or use the locale > encoding) ... Oh, it may be easy to implement it for decoders, but what about encoders? Should os.fsencode() always use UTF-8?? -- ___ Pyth

[issue16244] TimedRotatingFileHandler forces "write" mode, should use "append"

2013-12-10 Thread axil
axil added the comment: This fix breaks the behavior of RotatingFileHandler. Maxbytes>0 can now be only used with backupCount>0 otherwise it is ignored. So all programs that are using Maxbytes>0 and backupCount=0 are now facing an infinitely growing logfile. -- nosy: +axil type: behav

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

2013-12-10 Thread Maciej Szulik
Changes by Maciej Szulik : -- nosy: +maciej.szulik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19946] Have multiprocessing raise ImportError when spawning a process that can't find the "main" module

2013-12-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: I guess this is a case where we should not be trying to import the main module. The code for determining the path of the main module (if any) is rather crufty. What is sys.modules['__main__'] and sys.modules['__main__'].__file__ if you run under nose? -

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-10 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19946] Have multiprocessing raise ImportError when spawning a process that can't find the "main" module

2013-12-10 Thread Brett Cannon
Brett Cannon added the comment: So at the bare minimum, the multiprocessing code should raise an ImportError when it can't find the spec for the module to help debug this kind of thing. Also that typo should get fixed. Second, there is no way that 'nosetests' will ever succeed as an import sin

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-10 Thread STINNER Victor
STINNER Victor added the comment: 2013/12/10 Toshio Kuratomi : > if G_FILENAME_ENCODING: > charset = the first charset listed in G_FILENAME_ENCODING > if charset == '@locale': > charset = charset of user's locale > elif G_BROKEN_FILENAMES: > charset = charset of user's locale

[issue19928] Implement cell repr test

2013-12-10 Thread Zachary Ware
Zachary Ware added the comment: This was failing the Windows buildbots; the object addresses have capital letters instead of lower case. I'm sorry, I should have caught that at review. -- ___ Python tracker _

[issue19928] Implement cell repr test

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21a9abf6d428 by Zachary Ware in branch '2.7': Issue #19928: Fix test on Windows http://hg.python.org/cpython/rev/21a9abf6d428 New changeset a0f9f0778ce3 by Zachary Ware in branch '3.3': Issue #19928: Fix test on Windows http://hg.python.org/cpython/

[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Zachary Ware
Zachary Ware added the comment: Fixed that last comment in the commit. Thank you for all the reviews, Serhiy! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue19948] POSIX semantics of PATH search in execvpe is not respected

2013-12-10 Thread Eric V. Smith
Eric V. Smith added the comment: What platform is this on? Looking quickly through posix.execve (which is what I think gets called), it looks like it just calls C's execve(). Also, what's your use case for this? I realize it might be a standard behavior, but it seems like a bad idea to me. (No

[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 423e09aedf79 by Zachary Ware in branch '2.7': Issue #19572: More silently skipped tests explicitly skipped. http://hg.python.org/cpython/rev/423e09aedf79 -- ___ Python tracker

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-10 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Looking at the glib code, this looks like the SO post is closer to the truth. The API documentation for g_filename_to_utf8() is over-simplified to the point of confusion. This section of the glib API document is closer to what the code is doing: https://de

[issue19946] multiprocessing crash with forkserver or spawn when run from a non ".py" ending script

2013-12-10 Thread Olivier Grisel
Olivier Grisel added the comment: > So the question is exactly what module is being passed to > importlib.find_spec() and why isn't it finding a spec/loader for that module. The module is the `nosetests` python script. module_name == 'nosetests' in this case. However, nosetests is not consider

[issue19100] Use backslashreplace in pprint

2013-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In new patch wrapping stream is moved to PrettyPrinter constructor. -- Added file: http://bugs.python.org/file33084/pprint_unencodable_2.patch ___ Python tracker

[issue19943] typo: unkown → unknown

2013-12-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19661] AIX: Python: RuntimeError "invalid slot offset when importing a module" in _ssl module

2013-12-10 Thread dellair jie
dellair jie added the comment: Folks, I am closing this bug as it seems to be fixed with a with a redownload of original package. Thanks for sharing the ideas. Br, Li -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: $ ./python -3 -m test.regrtest test_builtin test_builtin test test_builtin crashed -- : filter ('.+ is renamed to imp.reload', DeprecationWarning) did not catch any warning 1 test failed: test_builtin Rest of the skiptest_not_return_or_pass.v6-2.7.diff pa

[issue16595] Add resource.prlimit

2013-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: How is that a problem? In any case, this shouldn't have anything to do with prlimit(), please open another issue. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue16595] Add resource.prlimit

2013-12-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: s/os.prlimit/resource.prlimit -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16595] Add resource.prlimit

2013-12-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Just received this report on psutil bug tracker: https://code.google.com/p/psutil/issues/detail?id=455 It seems os.prlimit() is affected by the same problem: >>> import resource >>> resource.RLIM_INFINITY -1 >>> -- resolution: fixed -> status: close

[issue504219] locale.resetlocale is broken

2013-12-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Martin Miller
Martin Miller added the comment: Requested information: Before Tkinter.wantobjects: 1 Tkinter._support_default_root: 1 Tkinter._default_root: None Tkinter._default_root has no

[issue19818] tracemalloc: comments on the doc

2013-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Zachary Ware
Zachary Ware added the comment: This patch includes Serhiy's suggestions. Oops! -- Added file: http://bugs.python.org/file33082/skiptest_not_return_or_pass.v6-2.7.diff ___ Python tracker _

[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Zachary Ware
Zachary Ware added the comment: I missed the comments on test_bsddb; I'll either post a new patch here or open a new issue depending on how big that diff becomes. -- ___ Python tracker

[issue19949] Explicitly skip or mask skipped/disabled tests in test_xpickle

2013-12-10 Thread Zachary Ware
New submission from Zachary Ware: The attached patch moves test_xpickle away from using alternately defined empty TestCases to skip the backward compatibility tests to using a skip decorator. Also, several disabled tests are moved from defining empty tests to setting the test name to None. A

[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Zachary Ware
Zachary Ware added the comment: Here's a new 2.7 patch. It addresses Serhiy's review comments and doesn't change test_xpickle, which I will be opening a new issue for. -- Added file: http://bugs.python.org/file33080/skiptest_not_return_or_pass.v5-2.7.diff

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

2013-12-10 Thread Justin Foo
Justin Foo added the comment: The speedups extension for MarkupSafe (which has a pure Python fallback) on Python 3.3.3 64-bit was happily compiled with `pip install markupsafe` after applying Steve's patch and Li Wah's definition for KEY_BASE. -- nosy: +jfoo __

[issue19878] bz2.BZ2File.__init__() cannot be called twice with non-existent file

2013-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3337298f5c75 by Nadeem Vawda in branch '2.7': Skip test for #19878 on Windows. http://hg.python.org/cpython/rev/3337298f5c75 -- ___ Python tracker

[issue19946] multiprocessing crash with forkserver or spawn when run from a non ".py" ending script

2013-12-10 Thread Brett Cannon
Brett Cannon added the comment: I see Oliver says he is testing a new forkserver feature from 3.4b1, so it might not necessarily be importlib's fault then. Does using the old importlib.find_loader() approach work? -- ___ Python tracker

[issue19946] multiprocessing crash with forkserver or spawn when run from a non ".py" ending script

2013-12-10 Thread Brett Cannon
Brett Cannon added the comment: The returning of None means that importlib.find_spec() didn't find the spec/loader for the specified module. So the question is exactly what module is being passed to importlib.find_spec() and why isn't it finding a spec/loader for that module. Did this code wo

[issue19946] multiprocessing crash with forkserver or spawn when run from a non ".py" ending script

2013-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds related to the ModuleSpec changes. -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ __

[issue12029] Catching virtual subclasses in except clauses

2013-12-10 Thread Guido van Rossum
Guido van Rossum added the comment: "I remembered we already run arbitrary code at roughly this point in the eval loop, as we have to invoke __iter__ to get the exceptions to check when an iterable is used in except clause." Are you sure? IIRC the except clause only accept exceptions and tupl

[issue19947] Inspect module broken

2013-12-10 Thread Zachary Ware
Zachary Ware added the comment: People are bitten by this kind of thing all the time, but usually only once ;) -- resolution: rejected -> invalid ___ Python tracker ___ _

[issue19948] POSIX semantics of PATH search in execvpe is not respected

2013-12-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue19947] Inspect module broken

2013-12-10 Thread Jimmy Merrild Krag
Jimmy Merrild Krag added the comment: Just figured that out my self. Holy mother of ¤%#&%/! I'm stupid! -- resolution: -> rejected status: pending -> closed ___ Python tracker _

[issue19942] UTF-8 encoding not enforced

2013-12-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, this is a silly bug where we "shortcut" decoding of utf-8 files by not checking if its valid UTF-8. However, this behavior has been around for a long time, so I'm not going to change it in 2.7.x. -- nosy: +benjamin.peterson resolution: -> wont

[issue19944] Make importlib.find_spec load packages as needed

2013-12-10 Thread Brett Cannon
Brett Cannon added the comment: Another option would be to add a keyword-only use_parent_path flag to importlib.find_spec() which is True by default. If use_parent is True, 'path' is provided, and there is no parent, then 'path' can act as a fallback. Which makes me wonder if also adding a key

[issue19947] Inspect module broken

2013-12-10 Thread Zachary Ware
Zachary Ware added the comment: I suspect you may have a file shadowing the standard library's types.py; you can test with the following command: python -c "import types;print(types.__file__)" If the output from that is not "C:\Python33\lib\types.py", then you have another file shadowing it,

[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are several bugs in processing encoding declaration (issue18961, issue18873) and yet several were fixed last time. Perhaps this issue or issue19942 relate to them. -- ___ Python tracker

[issue19939] Deprecate portions or all of pkgutil module.

2013-12-10 Thread Brett Cannon
Brett Cannon added the comment: I think programmatic deprecation is actually fine since that only comes up when running under -W which would be a bit odd for any tool to be run under except when testing. E.g. I had no personal issue deprecating imp for Python 3.4 even though that's the only wa

[issue19932] Missing spaces in import.h?

2013-12-10 Thread Brett Cannon
Brett Cannon added the comment: So it sounds like this specific issue is fixed. If you keep having build issues, Ziyuan, feel free to open another issue with the new problems. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-12-10 Thread Brett Cannon
Brett Cannon added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue19948] POSIX semantics of PATH search in execvpe is not respected

2013-12-10 Thread Stéphane Glondu
New submission from Stéphane Glondu: Hello, According to [1], "In the cases where the other members of the exec family of functions would fail and set errno to [ENOEXEC], the execlp() and execvp() functions shall execute a command interpreter and the environment of the executed command shall

[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread R. David Murray
R. David Murray added the comment: Well, we aren't going to change 2.7 to have this case start throwing an error, since someone may be depending on it. So I'm not sure there's anything to do here. -- nosy: +ncoghlan, r.david.murray ___ Python track

[issue19947] Inspect module broken

2013-12-10 Thread Jimmy Merrild Krag
New submission from Jimmy Merrild Krag: I have been having issues like the below all day: C:\JMK\CurrentWork\CPH-3516>python airport_code_downloader.py Traceback (most recent call last): File "airport_code_downloader.py", line 4, in import inspect File "C:\Python33\lib\inspect.py", line

[issue19744] test_venv fails if SSL/TLS is not available

2013-12-10 Thread Donald Stufft
Donald Stufft added the comment: Can this be solved in ensurepip for now? I've been banging away at this but it's going to require some refactoring in pip to make it reasonably work. The move to distlib and requests made this harder to do than the old PR against pip could handle. --

[issue19945] os.path.split starting with two slashes

2013-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: remind -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-li

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What are values of Tkinter.wantobjects, Tkinter._support_default_root, Tkinter._default_root, Tkinter._default_root.wantobjects()? Before and after calling tkFileDialog.askopenfilenames(). -- ___ Python tracker <

[issue19945] os.path.split starting with two slashes

2013-12-10 Thread Toilal
Changes by Toilal : -- resolution: -> remind status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue19946] multiprocessing crash with forkserver or spawn when run from a non ".py" ending script

2013-12-10 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +pitrou, sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: gudge, your contribution is welcome! If you need guidance about how to write a patch, you can read the developer's guide: http://docs.python.org/devguide/ Also you will have to sign a contributor's agreement: http://www.python.org/psf/contrib/ -- ___

[issue18885] handle EINTR in the stdlib

2013-12-10 Thread Yongzhi Pan
Changes by Yongzhi Pan : -- nosy: +fossilet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed the example in the docs is wrong, and so is the current behaviour. The example shows "round-tripping" using ssl.cert_time_to_seconds() and then time.ctime(), except that it is bogus as it takes a GMT time and ctime() returns a local time ("""Convert a t

[issue19766] test_venv: test_with_pip() failed on "AMD64 Fedora without threads 3.x" buildbot: urllib3 dependency requires the threading module

2013-12-10 Thread Donald Stufft
Donald Stufft added the comment: Vinay, I've verified that the current default branch of distlib works without threading when vendored in pip and these tests pass. -- ___ Python tracker ___

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: docs@python -> components: -Documentation ___ Python tracker ___ ___ Python-bugs-list maili

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +christian.heimes, giampaolo.rodola, janssen, pitrou versions: -Python 2.7, Python 3.3, Python 3.5 ___ Python tracker ___ __

[issue19945] os.path.split starting with two slashes

2013-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ntpath.split() in 2.7 doesn't work with UNC names. This is not a bug, this is just a lack of feature. Python 3 is correct. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue19828] test_site fails with -S flag

2013-12-10 Thread Zachary Ware
Zachary Ware added the comment: The real issue here is that the test used to determine whether -S was passed or not is outdated: instead of checking sys.flags.no_site, it checks whether 'site' is in sys.modules. This is no longer a valid test, since site's side effects are contained within si

[issue19946] multiprocessing crash with forkserver or spawn when run from a non ".py" ending script

2013-12-10 Thread Olivier Grisel
Changes by Olivier Grisel : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19946] multiprocessing crash with forkserver or spawn when run from a non ".py" ending script

2013-12-10 Thread Olivier Grisel
New submission from Olivier Grisel: Here is a simple python program that uses the new forkserver feature introduced in 3.4b1: name: checkforkserver.py """ import multiprocessing import os def do(i): print(i, os.getpid()) def test_forkserver(): mp = multiprocessing.get_context('fork

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Martin Miller
Martin Miller added the comment: Answering Serhiy Storchaka's question: Yes it's still reproducible with 2.7.6. -- nosy: +martinmiller ___ Python tracker ___ _

[issue19945] os.path.split starting with two slashes

2013-12-10 Thread Toilal
New submission from Toilal: Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from os.path import split >>> split('//computer/share') ('//computer', 'share') Python 3.3.3 (v3.3.3:c389627

  1   2   >