[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-10 Thread Ethan Furman
Ethan Furman added the comment: Argh, sorry -- that was supposed to be *does not* change user behavior nor the API, it's *just* a performance increase. Does that change your inclination? -- ___ Python tracker ___

[issue23634] os.fdopen reopening a read-only fd on windows

2015-03-10 Thread eryksun
eryksun added the comment: > I guess you were mainly testing with Python 2. Python 3 on Linux > does not raise any error either In Python 3 os.fdopen delegates to io.open, which calls io.FileIO to create the raw file object. This doesn't verify a compatible mode on the file descriptor. Simila

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-10 Thread Larry Hastings
Larry Hastings added the comment: My inclination is 3.5 only. Barry, do you want to argue for this going into 3.4? -- ___ Python tracker ___ ___

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-10 Thread Wei Wu
Wei Wu added the comment: @haypo: Thank you for your review. I attached an updated patch addressing the review comments. In addition, I also added a change note in Misc/NEWS. -- Added file: http://bugs.python.org/file38436/issue23566_update.patch ___

[issue23636] Add scgi to urllib.parse.uses_netloc

2015-03-10 Thread Ned Deily
Changes by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: (correct new issue #) Idle is partially disabled in a2 (#23631), with symptoms similar to that of the first example in msg237230. Trivial test: open Idle Shell, enter '1/0'. If this is not fixed before .a3, I think it should be reverted until it is. ---

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-03-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg237840 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Whoops, unlinked misplaced message.) I will add py.ini *again* and watch more carefully before and after further installs. The problem with the doc is that it does not say where the py.ini file should go, and it inherently cannot because the locations are no

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg237839 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idle is partially disabled in a2 (#23633), with symptoms similar to that of the first example in msg237230. Trivial test: open Idle Shell, enter '1/0'. If this is not fixed before .a3, I think it should be reverted until it is. -- nosy: +terry.reedy

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The faulty patch for #17911 is a possible, perhaps probably cause (Guido, email). -- ___ Python tracker ___ ___

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Steve Dower
Steve Dower added the comment: For point 4, there's no code in either the 3.5 or the 3.4 (AFAIK) installer that would remove a py.ini file. From 3.5 onwards the py(w).exe files will be properly refcounted so the latest version is always installed regardless of order (i.e. 3.6 will update 3.5's

[issue23636] Add scgi to urllib.parse.uses_netloc

2015-03-10 Thread Martin Panter
Martin Panter added the comment: See also Issue 16134 for adding RTMP schemes to the registry. However, I wonder if it is time for a more general fix, rather than having an arms race with whatever URL scheme someone dreams up next. According to Issue 7904, urlsplit() etc intentially support pa

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-10 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, the stack track makes me suspect http://bugs.python.org/issue17911 -- nosy: +gvanrossum ___ Python tracker ___ _

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-10 Thread Steve Dower
Steve Dower added the comment: "Planned" is a bit strong - in need of some simultaneous time and motivation :) Thanks for the upvote. -- ___ Python tracker ___ _

[issue23635] Python won't install correctly.

2015-03-10 Thread Steve Dower
Steve Dower added the comment: (This doesn't affect 3.5) My guess is the missing ensurepip module is the problem. See if you can Repair the original install and then remove it. -- versions: -Python 3.5 ___ Python tracker

[issue1722348] urlparse.urlunparse forms file urls incorrectly

2015-03-10 Thread Martin Panter
Martin Panter added the comment: I believe this was closed incorrectly. The original test case includes four slashes, not three, and still fails in 3.5. However Issue 23505 has been opened in the mean time which should cover this. -- nosy: +vadmium resolution: works for me -> duplicate

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-10 Thread Martin Panter
Martin Panter added the comment: I much prefer the new patch with better compatibility and flexibility :) If you want to strengthen the tests to reflect some of the decisions made here you could add the following tests: Positive tests: * putheader('C1-Control', b'next\x85line') * putheader('Em

[issue23636] Add scgi to urllib.parse.uses_netloc

2015-03-10 Thread Anthony Ryan
Changes by Anthony Ryan : Added file: http://bugs.python.org/file38435/py2bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue23636] Add scgi to urllib.parse.uses_netloc

2015-03-10 Thread Anthony Ryan
New submission from Anthony Ryan: The scgi protocol is not included in urllib.parse.uses_netloc list, while other less common protocols are (such as gopher). I would like to see scgi get added to this list. -- components: Library (Lib) files: py3bug messages: 237831 nosy: Anthony Ryan

[issue14285] Traceback wrong on ImportError while executing a package

2015-03-10 Thread Martin Panter
Martin Panter added the comment: Closely related: Issue 19771, which seems to be complaining about a the error message when __main__.py generates an ImportError. -- ___ Python tracker _

[issue19771] runpy should check ImportError.name before wrapping it

2015-03-10 Thread Martin Panter
Martin Panter added the comment: Closely related: Issue 14285, where an ImportError and various other exceptions caused by code in __init__.py are also incorrectly caught, trigger unexpected error messages, with no traceback being reported. Not sure if checking the “name” attribute will help i

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-10 Thread Demian Brecht
Demian Brecht added the comment: Latest patch should now address all comments. -- Added file: http://bugs.python.org/file38433/issue22928_5.patch ___ Python tracker ___ _

[issue23635] Python won't install correctly.

2015-03-10 Thread Alex Zhang
New submission from Alex Zhang: Currently can't install 343 on my computer. I had 342 installed, and wanted to uninstall that for 343. Afterwards, being the idiot that I was, I deleted the files in the Python34 folder. Uninstalling gives me an error. There is a problem with this Windows Inst

[issue21610] load_module not closing opened files

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a5d4073d46a by Benjamin Peterson in branch '2.7': close files explicit (closes #21610) https://hg.python.org/cpython/rev/5a5d4073d46a -- nosy: +python-dev resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue23634] os.fdopen reopening a read-only fd on windows

2015-03-10 Thread Martin Panter
Martin Panter added the comment: I guess you were mainly testing with Python 2. Python 3 on Linux does not raise any error either: wrote 3 to a read-only file should raise, opening a ro descriptor for writing aa

[issue2211] Cookie.Morsel interface needs update

2015-03-10 Thread Demian Brecht
Demian Brecht added the comment: Latest patch should address all comments. -- Added file: http://bugs.python.org/file38432/issue2211_2.patch ___ Python tracker ___ ___

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-10 Thread Paul Moore
Paul Moore added the comment: Steve has something like that planned, I believe. It's been discussed a couple of times on python-dev -- ___ Python tracker ___ ___

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-10 Thread David Linke
David Linke added the comment: Besides clarifying documentation, it may be helpful to provide a script that (temporarily) sets the path to pythonX and pythonX/scripts. A batch cmd script that does that and also changes the default Python for the launcher is here: https://gist.github.com/dalito

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the link to where the doc *was* updated for 2.7. Currently, -m idlelib.idle works, so copying idle.py to __main__.py should make -m idlelib work. I will try this later, and see if the exact contents of idle.py are needed. Having '-m idlelib' work

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread mdcb
mdcb added the comment: backward compatibility is implemented as 'new python can load old pickle'. isn't it what backward compatible means? The payload changed from 10 to 12 bytes to accomodate the nanoseconds, I don't know how to handle reverse-backward compatibility or if it's really needed.

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file38431/memoryview_tuple_indexing.patch ___ Python tracker ___ ___

[issue23634] os.fdopen reopening a read-only fd on windows

2015-03-10 Thread mattip
New submission from mattip: If I have a read-only fd, and I try to open it as 'w' with os.fdopen(fd, 'w'), the operation raises on linux but succeeds on windows. Python relies on the underlying clib's fdopen to return an error, which glibc does, but MSVC happily closes the original fd and r

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue23633] Improve py launcher help, index, and doc

2015-03-10 Thread Terry J. Reedy
New submission from Terry J. Reedy: This issue is about making coordinated changes to the py launcher doc and binary. 1. The py launcher doc is https://docs.python.org/3/using/windows.html#python-launcher-for-windows. If one does not know where to look, it is hard to find. Add an index entr

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-10 Thread Ethan Furman
Changes by Ethan Furman : -- Removed message: http://bugs.python.org/msg237815 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-10 Thread Ethan Furman
Ethan Furman added the comment: Larry, I have a very small patch (~4 lines) that does change user behavior or the API, but does have a significant performance boost. I'm still learning what is/is not okay to add to maintenance releases, so wanted to run this by you. -- nosy: +larry _

[issue23486] Enum member lookup is 20x slower than normal class attribute lookup

2015-03-10 Thread Ethan Furman
Ethan Furman added the comment: Larry, I have a very small patch (~4 lines) that does change user behavior or the API, but does have a significant performance boost. I'm still learning what is/is not okay to add to maintenance releases, so wanted to run this by you. -- assignee: -> e

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: It is a bit of pity. A least non-sliced indexing should be able to work: >>> import numpy as np >>> a = np.arange(10) >>> memoryview(a)[0] 0 >>> a = np.arange(10).reshape((2,5)) >>> a[0,1] 1 >>> memoryview(a)[0,1] Traceback (most recent call last): File "",

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good, committed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-10 Thread Terry J. Reedy
New submission from Terry J. Reedy: 3.5.0a2, my Win 7 and Guido's new Win laptop: error tracebacks are mangled in a way that makes Idle severely less functional, hence 'release blocker'. First, the normal behavior. Python 3.5.0a2 (v3.5.0a2:0337bd7ebcb6+, Mar 9 2015, 10:29:45) [MSC v.1900 64

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pickling is not backward compatible. I.e. older versions of Python couldn't unpickle datetime pickled in new Python. -- ___ Python tracker __

[issue19909] Best practice docs for new SSL features

2015-03-10 Thread Christian Heimes
Christian Heimes added the comment: I'm closing the reminder ticket. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread mdcb
mdcb added the comment: Intention of the patch was to keep it simple and limited to nanoseconds (per the report). Throwing in Decimal would work (and possibly bring further precision) but consider: datetime.fromnanoseconds(ns) vs datetime.fromtimestamp(Decimal(ts)) I find the former cleane

[issue18620] multiprocessing page leaves out important part of Pool example

2015-03-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +jnoller, sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c4c4e43c452 by Steve Dower in branch '2.7': Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls https://hg.python.org/cpython/rev/7c4c4e43c452 -- nosy: +python-dev ___ Python t

[issue23192] Generator return value ignored in lambda function

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please add a test based on Chris's example? And it would be good to add a test for a lambda with "yield from". -- assignee: -> serhiy.storchaka stage: -> test needed ___ Python tracker

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-10 Thread Davin Potts
Davin Potts added the comment: Yes, setting -Werror::ResourceWarning would indeed cause the test to fail again. A couple of options we could potentially adopt: 1. Decide to ignore anything extra in the file anytime any kind of "error" filterwarning is present. 2. Decide to ignore anything extra

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The fix for Python implementation LGTM, but a fix for C implementation is needed too. -- stage: patch review -> needs patch ___ Python tracker __

[issue23630] support multiple hosts in create_server/start_server

2015-03-10 Thread Sebastien Bourdeauducq
Sebastien Bourdeauducq added the comment: See attached. -- keywords: +patch Added file: http://bugs.python.org/file38428/asyncio_multibind.diff ___ Python tracker ___ ___

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, tests for PyStructSequence types already exist (tests for sys.flags and sys.float_info). The patch LGTM. -- ___ Python tracker ___ _

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2015-03-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't the test fail with -Werror::ResourceWarning or like? -- ___ Python tracker ___ ___ Python

[issue23630] support multiple hosts in create_server/start_server

2015-03-10 Thread Guido van Rossum
Guido van Rossum added the comment: So it sounds like you already have a patch in mind... Can you work on it and upload it? (It's open source -- you get to make it yourself. :-) -- ___ Python tracker _

[issue23630] support multiple hosts in create_server/start_server

2015-03-10 Thread Sebastien Bourdeauducq
Sebastien Bourdeauducq added the comment: That could work, but I would have to manually resolve and filter the lists of hostnames so that the program does not attempt to bind the same address twice - something that is better implemented in create_server, which already does the hostname resolut

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-10 Thread Davin Potts
Changes by Davin Potts : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2015-03-10 Thread Davin Potts
Davin Potts added the comment: Attaching patch for both 3.4 and default/3.5 (single file works for both) which fixes the test to properly adjust for running under -Werror. Whether -Werror is set or otherwise the equivalent of 'warnings.simplefilter("error", Warning)' has been set, any warning

[issue23630] support multiple hosts in create_server/start_server

2015-03-10 Thread Guido van Rossum
Guido van Rossum added the comment: This makes some sense, but it's easy to work around -- just call create_server() multiple times, once for each host. Why does that not work for you? -- ___ Python tracker _

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-10 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +pythonhacker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Fixed the other three cases you pointed out (-B2.patch). -- Added file: http://bugs.python.org/file38426/tokenize-reloadable-B2.patch ___ Python tracker ___

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +pythonhacker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19610] setup.py does not allow a tuple for classifiers

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it should include other list fields if we don't want to open separate issues for every list field. -- ___ Python tracker ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-10 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: -B.patch as Serhiy suggests, for tokenize only for the time being. -- Added file: http://bugs.python.org/file38425/tokenize-reloadable-B.patch ___ Python tracker __

[issue11726] clarify that linecache only works on files that can be decoded successfully

2015-03-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: First attempt at describing this attached. -- keywords: +patch Added file: http://bugs.python.org/file38424/linecache-encoding-doc.patch ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-10 Thread Cyd Haselton
Cyd Haselton added the comment: Dog just died unexpectedly, behind on photograph project, need to start on Python tutorial, have a chat in a different language on Sunday I need to prep for and its patch day tomorrow. So yeah. Completely understand. --

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! How it worked before? Now we can remove __sizeof__ implementations for tuples and bytes. Could you please add sizeof test for PyStructSequence types? -- ___ Python tracker

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Patch attached to fix this. -- keywords: +patch Added file: http://bugs.python.org/file38423/tokenize-reloadable.patch ___ Python tracker ___ __

[issue23606] ctypes.util.find_library("c") no longer makes sense

2015-03-10 Thread Steve Dower
Steve Dower added the comment: That change should get the buildbots passing again, as it will now skip those tests. The "appcrt%d" return value was blatantly incorrect anyway. -- ___ Python tracker ___

[issue23606] ctypes.util.find_library("c") no longer makes sense

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 86c9ef950288 by Steve Dower in branch 'default': Issue #23606: Disable ctypes.util.find_library("c") on Windows so tests are skipped while we figure out how best to approach the CRT change https://hg.python.org/cpython/rev/86c9ef950288 -- n

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My first note was about efficiency of the implementation. When followlinks is true, you can avoid testing entry.is_link() and creating the symlinks set. The new implementation of os.walk() changes a behavior. The problem is that a symlink to a directory can

[issue23595] Split the math module into _math (C) + math (py)

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, fair enough, I abandon my change. I agree that a partial implementation of math.py (only a few functions) is not useful. To implement more math functions, struct and ctypes modules are probably needed. But it sounds overkill, since CPython already has a fu

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > When followlinks is true, symlinks is not needed. Hum, it's not easy to understand your code. I guess that the problem is that a symlink to a directory can become something else (not a directory or a symlink to a directory).

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +patch Added file: http://bugs.python.org/file38422/sizeof_var_obj.patch ___ Python tracker ___ _

[issue23629] Default __sizeof__ is wrong for var-sized objects

2015-03-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: In the stdlib, this only appears with the memoryview object, but third-party types can be affected. Attaching patch. -- components: Interpreter Core messages: 237776 nosy: pitrou, serhiy.storchaka, skrah priority: normal severity: normal stage: patch

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When followlinks is true, symlinks is not needed. But I this commit breaks a code like following: def unsymlink(top): for root, dirs, files in os.walk(top): for name in dirs: path = os.path.join(root, name) if os.path.islin

[issue7803] setup hangs on disk space requirements

2015-03-10 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-10 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Ok, please bear with me. I'm going to be REALLY busy for a bit; I have a BIG test/exam coming up next week, a music recital shortly afterwards, and lots of stuff/studying in between. Sorry for any delays! -- ___ Pyt

[issue23606] ctypes.util.find_library("c") no longer makes sense

2015-03-10 Thread Steve Dower
Steve Dower added the comment: Good question, I'm not sure. Right now, the api-* DLLs use forwarding rather than apisetschema, but that could change. Since they support back to XP though, I suspect it probably won't the api-* DLLs will stay as they are with ucrtbase exporting ordinals rather t

[issue23627] Incorrect string formatting of float values in Python 2.7

2015-03-10 Thread Eric V. Smith
Eric V. Smith added the comment: By using %s, you're asking the formatting code to first convert the parameter to a string. Then, by using .10, you're asking it to truncate the value. It's essentially equivalent to: >>> str(-7.7176718e-05) '-7.7176718e-05' >>> str(-7.7176718e-05)[:10] '-7.7176

[issue7803] setup hangs on disk space requirements

2015-03-10 Thread Mark Lawrence
Mark Lawrence added the comment: @Steve can you close this please. -- nosy: +BreamoreBoy, steve.dower type: -> behavior ___ Python tracker ___ ___

[issue23628] See if os.scandir() could help speed up importlib

2015-03-10 Thread Brett Cannon
New submission from Brett Cannon: With os.scandir() now committed and implemented in C, it would be interesting to see if os.scandir() could provide any performance benefit to importlib. If finders can pass the DirEntry to loaders then some stat calls could potentially be saved at the expense

[issue23627] Incorrect string formatting of float values in Python 2.7

2015-03-10 Thread pushpendre rastogi
New submission from pushpendre rastogi: Hi, The string formatting module in python 2.7 incorrectly formats floating point values. The following code shows the problem >>> print "%.10s"%(-7.7176718e-05) -7.7176718 >> print "%.10s"%(-0.771767) -7.71767e- Ideally the code should have thrown a

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-10 Thread Andriy Sokolovskiy
Andriy Sokolovskiy added the comment: @Claudiu Popa, IIRC I did not add 1-2 test images because I not found how to make image or how to convert image to this format. So, if there will no chance to add them, should we remove these formats from the patch? --

[issue20613] Wrong line information in bytecode generated by compiler module

2015-03-10 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker ___ ___ Python-bugs-li

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-10 Thread Demian Brecht
Changes by Demian Brecht : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23626] Windows per-user install of 3.5a2 doesn't associate .py files with the new launcher

2015-03-10 Thread Paul Moore
New submission from Paul Moore: Installing Python 3.5a2 with the 64-bit Windows installer using a user-level install doesn't associate .py files with the new (3.5) version of the launcher. I encountered this when there was an existing system install of Python 3.4, so .py files remained associa

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-03-10 Thread Paul Moore
Paul Moore added the comment: OK, so if the installer changes look good to you, then this PR is once again ready to go. Sorry to anyone watching for the glitch. -- ___ Python tracker __

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-10 Thread Ben Hoyt
Ben Hoyt added the comment: Thanks. Will do! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23491] PEP 441 - Improving Python Zip Application Support

2015-03-10 Thread Steve Dower
Steve Dower added the comment: The whole installer is run with a different global flag depending on the type of install. So it's automatic, though sometimes you can't do both per-user and all-user changes at the same time (not that you should anyway). -- __

[issue23432] Duplicate content in SystemExit documentation

2015-03-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the review, Martin. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23432] Duplicate content in SystemExit documentation

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64c0b4aead0f by Berker Peksag in branch '3.4': Issue #23432: Remove duplicate content from SystemExit docs. https://hg.python.org/cpython/rev/64c0b4aead0f New changeset 5163fb8dc61f by Berker Peksag in branch 'default': Issue #23432: Remove duplicat

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: 2015-03-10 12:36 GMT+01:00 Ben Hoyt : > I intend to do some review of the scandir/DirEntry docs as well. I'll send > those in the next few days. Open maybe a new issue if you want to enhance the doc. -- ___ Python t

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: Serhiy's patch looks good to me. I'd completely missed that __qualname__ could be used to avoid needing a second argument even when handling objects other than bound methods. That's very cool, and I can see why you figured it was easier to just write the patch t

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50e32059a404 by Victor Stinner in branch '3.4': Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example https://hg.python.org/cpython/rev/50e32059a404 -- ___ Python tracker

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d76dabd40f6 by Victor Stinner in branch 'default': Issue #22524: Rephrase scandir addition in What's New in Python 3.5 https://hg.python.org/cpython/rev/8d76dabd40f6 -- ___ Python tracker

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-10 Thread STINNER Victor
STINNER Victor added the comment: My suggestion to add a new walk_dirs list is wrong: os.walk() documentation explicitly says that the dirs list can be modified to delete some directories: https://docs.python.org/dev/library/os.html#os.walk """ When topdown is True, the caller can modify the dir

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52c7017fdcdd by Victor Stinner in branch 'default': Issue #23571: Oops, fix #ifdef assert() https://hg.python.org/cpython/rev/52c7017fdcdd -- ___ Python tracker __

  1   2   >