[issue26071] bdist_wininst created binaries fail to start and find 32bit Pythons

2016-01-11 Thread Mark Hammond
Mark Hammond added the comment: welp, I hadn't actually tested the patch on x64 yet ;) > #ifdef WIN_64 should read: > #ifdef _WIN64 WIN_64 is a Python invented name and this stub doesn't Python pull the headers in... -- ___ Python tracker

[issue26077] Make slicing of immutable structures return a view instead of a copy

2016-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: While it's theoretically possible, there's a reason why we haven't done this in the past: we don't want to keep the possibly large original object alive when using a slice. For buffer interface types, you can already use memoryview to get a view in case y

[issue25596] Use scandir() to speed the glob module

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Xavier for correcting the documentation. Here is minimal patch that switches the glob module to scandir(). -- title: regular files handled as directories in the glob module -> Use scandir() to speed the glob module Added file: http://bugs.p

[issue25596] Use scandir() to speed the glob module

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Results of microbenchmarks for glob_scandir_4.patch: $ ./python -m timeit -s "from glob import glob" -- "glob('**/*', recursive=True)" Unpatched: 275 msec per loop Patched: 79.4 msec per loop $ ./python -m timeit -s "from glob import glob" -- "glob('/usr/l

[issue26032] Use scandir() to speed up pathlib globbing

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed minimal patch implements globbing in pathlib using os.scandir(). Here are results of microbenchmarks: $ ./python -m timeit -s "from pathlib import Path; p = Path()" -- "list(p.glob('**/*'))" Unpatched: 598 msec per loop Patched: 372 msec per loop

[issue25596] Use scandir() to speed up the glob module

2016-01-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Use scandir() to speed the glob module -> Use scandir() to speed up the glob module ___ Python tracker ___ __

[issue26079] Build with Visual Studio 2015 using PlatformToolset=v120

2016-01-11 Thread Bjoern Thiel
New submission from Bjoern Thiel: Fixing the build output folder for tix-8.4.3.6. -- components: Build files: build.patch keywords: patch messages: 257956 nosy: bjoernthiel priority: normal severity: normal status: open title: Build with Visual Studio 2015 using PlatformToolset=v120 type

[issue26079] Build with Visual Studio 2015 using PlatformToolset=v120

2016-01-11 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware type: crash -> compile error ___ Python tracker ___ ___

[issue26071] bdist_wininst created binaries fail to start and find 32bit Pythons

2016-01-11 Thread Steve Dower
Steve Dower added the comment: The downside of the preprocessor - no errors when you spell an ifdef wrong ;) It looks good to me. -- ___ Python tracker ___ _

[issue25596] Use scandir() to speed up the glob module

2016-01-11 Thread Ben Hoyt
Ben Hoyt added the comment: Nice! Good to see scandir() getting used to speed up other functions, functions that folks are using a ton already, like glob(). -- ___ Python tracker __

[issue22642] trace module: unclear error message

2016-01-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: I reviewed the patch. It looks like the problem is not just with list functions but with other options too. Like. $ ./python.exe -m trace -t $ ./python.exe -m trace -c $ ./python.exe -m trace -T Will throw the same error. So, any changes should address all th

[issue22642] trace module: unclear error message

2016-01-11 Thread SilentGhost
SilentGhost added the comment: I could submit a patch, but I'd switch over from getopt to argparse. I think this exactly the case when such a change is warranted. -- nosy: +SilentGhost ___ Python tracker _

[issue26058] PEP 509: Add ma_version to PyDictObject

2016-01-11 Thread STINNER Victor
STINNER Victor added the comment: The PEP is now at python.org: PEP 509. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue26058] PEP 509: Add ma_version to PyDictObject

2016-01-11 Thread STINNER Victor
Changes by STINNER Victor : -- title: Add dict.__version__ read-only property -> PEP 509: Add ma_version to PyDictObject ___ Python tracker ___ _

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2016-01-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch is correct and will fix the issue. It will require test coverage to be complete so that we don't land upon similar issues in future. -- nosy: +orsenthil stage: -> test needed versions: +Python 3.5, Python 3.6 -Python 3.4 ___

[issue22642] trace module: unclear error message

2016-01-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: @SilentGhost, I agree with you. I am making the change to use argparse as part of this issue24649. And this bug could be covered as part of the change to argparse. -- ___ Python tracker

[issue19251] bitwise ops for bytes of equal length

2016-01-11 Thread cowlicks
cowlicks added the comment: @Andrew Barnert > Maybe if you're coming to Python from... I'm not sure if your trying argue that my expectations are unusual? Python is my first programming language. To reiterate: I expected cpython to support bitwise operations on binary data. I don't think that i

[issue26069] Remove the Deprecated API in trace module

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f05bdc18661 by Senthil Kumaran in branch 'default': Issue #26069: Remove the deprecated apis in the trace module. https://hg.python.org/cpython/rev/6f05bdc18661 -- nosy: +python-dev ___ Python tracker <

[issue26069] Remove the Deprecated API in trace module

2016-01-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the review, matrixise. I've submitted this change. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue26069] Remove the Deprecated API in trace module

2016-01-11 Thread Berker Peksag
Berker Peksag added the comment: I couldn't find exact references, but I think we've reached an agreement that we want to keep old APIs in the stdlib to make porting from Python 2 easier. So you might want to revert this :) -- nosy: +berker.peksag _

[issue26069] Remove the Deprecated API in trace module

2016-01-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Berker, could you find the reference for it? It will be helpful to analyze. IMO, the non-removal of 2.x-> 3.x APIs could be done on a case to case basis. In this case, issue10371 made the change in (2010) of making the undocumented public methods to private

[issue26059] Integer Overflow

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the report. This module has been deprecated for a long time, but we should still fix this. Do you have any idea how to fix it? -- components: +Extension Modules -ctypes nosy: +gvanrossum ___ Python track

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread STINNER Victor
Changes by STINNER Victor : -- title: Integer Overflow -> Integer Overflow in strop.replace() ___ Python tracker ___ ___ Python-bugs-l

[issue7559] TestLoader.loadTestsFromName swallows import errors

2016-01-11 Thread Matej Cepl
Changes by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue26079] Build with Visual Studio 2015 using PlatformToolset=v120

2016-01-11 Thread Zachary Ware
Zachary Ware added the comment: I'm on the fence about this one. MSVC 12.0 is not officially supported for any Python release. Also, using PlatformToolset makes things difficult for ICC builds (which set PlatformToolset to e.g. "Intel C++ Compiler 16.0"). On the other hand, this is a very si

[issue26079] Build with Visual Studio 2015 using PlatformToolset=v120

2016-01-11 Thread Steve Dower
Steve Dower added the comment: Good catch! Once I'm at a PC I'll merge this in unless someone else gets there first. (I believe it also applies to 2.7 since the project files were updated.) -- versions: +Python 2.7, Python 3.6 ___ Python tracker

[issue25348] Update pgo_build.bat to use --pgo flag for regrtest

2016-01-11 Thread Steve Dower
Steve Dower added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: I cannot reproduce this on Mac (the code form 1.py just gives a very long answer). I don't have a Windows machine to try it on. Do you have a patch or fix? -- ___ Python tracker

[issue26080] "abandonned" -> "abandoned" in PEP 510's https://hg.python.org/peps/rev/b463c740990c

2016-01-11 Thread W. Trevor King
New submission from W. Trevor King: In the recently-landed [1], There was also the Unladen Swallow project, but it was abandonned in 2011. Should have used “abandoned” instead of “abandonned”. [1]: https://hg.python.org/peps/rev/b463c740990c changeset: 6155:b463c740990c user: Victo

[issue26080] "abandonned" -> "abandoned" in PEP 510's https://hg.python.org/peps/rev/b463c740990c

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63151533cebf by Victor Stinner in branch 'default': PEP 510: abandonned => abandoned https://hg.python.org/peps/rev/63151533cebf -- nosy: +python-dev ___ Python tracker

[issue26080] "abandonned" -> "abandoned" in PEP 510's https://hg.python.org/peps/rev/b463c740990c

2016-01-11 Thread STINNER Victor
STINNER Victor added the comment: Fixed, thanks for the report. -- nosy: +haypo resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: static char * mymemreplace(const char *str, Py_ssize_t len, const char *pat, Py_ssize_t pat_len,pattern string to find */ const char *sub, Py_ssize_t sub_len,substitution string */ Py_ssize_t co

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I thought this was fixed in issue24708. At least I get MemoryError on 32-bit Linux as expected, and the code around looks correct. May be PyMem_MALLOC on 64-bit Windows works only with 32-bit size? -- nosy: +serhiy.storchaka

[issue22995] Restrict default pickleability

2016-01-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've verified that backing out the typeobject.c change allows kivy and pysam to build. s3ql still fails but for other reasons, though its build does get past the cython failure. This clinches it for me. I am going to remove the typeobject.c clause from 2.7

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue21047] html.parser.HTMLParser: convert_charrefs should become True by default

2016-01-11 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code in msg257977 doesn't match current sources. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue25919] http.client PUT method ignores error responses sent immediatly after headers

2016-01-11 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: The issue can be triggered by performing a large substitution that overflows the arithmetic used in mymemreplace() to calculate the size of the new string: -- ___ Python tracker

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: python 2.7.10 32bit and python 2.7.11 64bit crash on windows 10 -- ___ Python tracker ___ ___

[issue26050] Add new StreamReader.readuntil() method

2016-01-11 Thread Yury Selivanov
Yury Selivanov added the comment: Some info on this: https://github.com/python/asyncio/issues/282#issuecomment-155957235 Long story short, Future implemented in C can speedup some asyncio code up to 25%. I'm attaching a patch with a WIP implementation. There are some failing assertions deep

[issue26081] Implement asyncio Future in C to improve performance

2016-01-11 Thread Yury Selivanov
New submission from Yury Selivanov: Some info on this: https://github.com/python/asyncio/issues/282#issuecomment-155957235 Long story short, Future implemented in C can speedup some asyncio code up to 25%. I'm attaching a patch with a WIP implementation. There are some failing assertions de

[issue26050] Add new StreamReader.readuntil() method

2016-01-11 Thread Yury Selivanov
Changes by Yury Selivanov : -- Removed message: http://bugs.python.org/msg257983 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue26050] Add new StreamReader.readuntil() method

2016-01-11 Thread Yury Selivanov
Yury Selivanov added the comment: Sorry, posted my previous message here by mistake (it was for issue #26081). -- ___ Python tracker ___ _

[issue26079] Build with Visual Studio 2015 using PlatformToolset=v120

2016-01-11 Thread Steve Dower
Steve Dower added the comment: It's better than using the Visual Studio version, which isn't necessarily tied to any VC version. To support another compiler will require more code like this anyway. An alternative may be to patch Tcl et al. to not put the VC version into the output path? That'

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: Do you have any idea how to fix it? -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue26079] Build with Visual Studio 2015 using PlatformToolset=v120

2016-01-11 Thread Zachary Ware
Zachary Ware added the comment: The fewer patches we carry against Tcl/Tk the better. This can be revisited if necessary when other ICC issues with our Tcl/Tk build are fixed. -- ___ Python tracker ___

[issue26050] Add new StreamReader.readuntil() method

2016-01-11 Thread Yury Selivanov
Yury Selivanov added the comment: Leaving this issue open until we have the docs committed. -- ___ Python tracker ___ ___ Python-bugs-

[issue26050] Add new StreamReader.readuntil() method

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset db11d0db1598 by Yury Selivanov in branch '3.4': Issue #26050: Add asyncio.StreamReader.readuntil() method. https://hg.python.org/cpython/rev/db11d0db1598 New changeset a6288fe5420f by Yury Selivanov in branch '3.5': Merge 3.4 (Issue #26050) https://

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: please look image : Thanks, -- Added file: http://bugs.python.org/file41580/123.PNG ___ Python tracker ___

[issue26058] PEP 509: Add ma_version to PyDictObject

2016-01-11 Thread STINNER Victor
STINNER Victor added the comment: Patch version 3 updated for the second version of the PEP 509. Main changes: * ma_version now has the type PY_UINT64_T * remove dict.__version__ property: replace with _testcapi.dict_get_version() for tests -- versions: +Python 3.6 -Python 2.7 Added fi

[issue22995] Restrict default pickleability

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Therefore my guess was true. There is a bug in Cython. It creates classes that can't be correctly unpickled or copied. The question is wherever we should replace TypeError with a warning in maintained releases, or remove this check at all? Here is a patch ag

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't have a Windows machine too. -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ _

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: also linux Ubuntu version Python 2.7.6 -- Added file: http://bugs.python.org/file41583/12.png ___ Python tracker ___ _

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 2.7.6 and 2.7.10 are outdated. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue26059] Integer Overflow in strop.replace()

2016-01-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: I say work this problem on version 2.7.11 -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue22995] Restrict default pickleability

2016-01-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 11, 2016, at 05:50 PM, Serhiy Storchaka wrote: > >Therefore my guess was true. There is a bug in Cython. It creates classes >that can't be correctly unpickled or copied. I don't think that's necessarily true. Clearly the classes *can* be copied and unp

[issue22995] Restrict default pickleability

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset e79eddcdff63 by Barry Warsaw in branch '3.5': Issue #22995: [UPDATE] Comment out the one of the pickleability tests in https://hg.python.org/cpython/rev/e79eddcdff63 New changeset 927fd0e14d49 by Barry Warsaw in branch 'default': Issue #22995: [UPDA

[issue22995] Restrict default pickleability

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The classes can't be *correctly* copied and unpickled because the pickle data doesn't contain object's state. "Copied" and "unpickled" objects are not equal to original objects, they are non-initialized instances. You can test attributes of copied NameAssign

[issue26082] functools.lru_cache user specified cachedict support

2016-01-11 Thread Chiu-Hsiang Hsu
New submission from Chiu-Hsiang Hsu: Currently, lru_cache will automatically construct a Python dictionary in the function as cachedict. IMHO, it will be much more flexible to let users specified their cachedict, so they can use any kind of dict-like calss as their cachedict. Thus, users can u

[issue22995] Restrict default pickleability

2016-01-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 11, 2016, at 07:20 PM, Serhiy Storchaka wrote: >I think we have to left this restriction in 3.6 (and Cython should fix its >bug by providing either __getnewargs__/ __getnewargs_ex__, __getstate__ or >__reduce__/__reduce_ex__). But in 2.7 and 3.5 we shoul

[issue22995] Restrict default pickleability

2016-01-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: BTW Serhiy, can you please file a bug with upstream Cython? I think you're the right person to do it since you added this restriction. With reverting this in 2.7 and 3.5 it's not urgent, but we don't want to have to reopen this when 3.6 is out. --

[issue22995] Restrict default pickleability

2016-01-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22995] Restrict default pickleability

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d3ac16b78dc by Barry Warsaw in branch '2.7': Issue #22995: [UPDATE] Comment out the one of the pickleability tests in https://hg.python.org/cpython/rev/9d3ac16b78dc -- ___ Python tracker

[issue26061] logging LogRecordFactory allow kwargs

2016-01-11 Thread Vinay Sajip
Vinay Sajip added the comment: That the LogRecord receives kwargs is an internal implementation detail - note that it is not mentioned in the documentation, and not even currently used there. If you want to pass additional information to be stored in the record, use the documented approach - w

[issue25486] Resurrect inspect.getargspec() in 3.6

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32c8bdcd66cc by Yury Selivanov in branch 'default': Issue #25486: Resurrect inspect.getargspec in 3.6. Backout a565aad5d6e1. https://hg.python.org/cpython/rev/32c8bdcd66cc -- nosy: +python-dev ___ Python

[issue25486] Resurrect inspect.getargspec() in 3.6

2016-01-11 Thread Yury Selivanov
Yury Selivanov added the comment: inspect.getargspec is back to Python 3.6 (it was never removed from <= 3.5, fwiw) -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue25486] Resurrect inspect.getargspec() in 3.6

2016-01-11 Thread Stefan Krah
Stefan Krah added the comment: On Mon, Jan 11, 2016 at 08:17:11PM +, Yury Selivanov wrote: > inspect.getargspec is back to Python 3.6 (it was never removed from <= 3.5, > fwiw) Yay! Thank you very much! -- ___ Python tracker

[issue25596] Use scandir() to speed up the glob module

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Looks like switching to scandir will also resolve http://bugs.python.org/issue22167 without further action. -- ___ Python tracker ___ ___

[issue22167] iglob() has misleading documentation (does indeed store names internally)

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Once http://bugs.python.org/issue25596 (switching glob to use scandir) is solved this issue can be closed IMO. -- nosy: +gvanrossum ___ Python tracker __

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-01-11 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Originally reported at [1] and [2]. On Mac OS X, read() on pipes may return only the first 512 bytes. The remaining bytes are not read into `data` in _execute_child(). There's a patch proposal at [3]. I didn't test it myself because I can't reproduce the brok

[issue24705] sysconfig._parse_makefile doesn't expand ${} vars appearing before $() vars

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef84d21f5292 by doko in branch '3.5': - Issue #24705: Fix sysconfig._parse_makefile not expanding ${} vars https://hg.python.org/cpython/rev/ef84d21f5292 -- nosy: +python-dev ___ Python tracker

[issue26084] HTMLParser mishandles last attribute in self-closing tag

2016-01-11 Thread Tom Anderl
New submission from Tom Anderl: When the HTMLParser encounters a start tag element that includes: 1. an unquoted attribute as the final attribute 2. an optional '/' character marking the start tag as self-closing 3. no space between the final attribute and the '/' character the '/' charac

[issue23942] Explain naming of the patch files in the bug tracker

2016-01-11 Thread Maciej Szulik
Maciej Szulik added the comment: Ezio, I've meant we should provide some guidelines with information the system will pick whatever they choose based on submission date. More informational than as a requirement. -- ___ Python tracker

[issue26084] HTMLParser mishandles last attribute in self-closing tag

2016-01-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti nosy: +ezio.melotti stage: -> test needed ___ Python tracker ___ ___ Python-b

[issue25596] Use scandir() to speed up the glob module

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not this version of the path. It accumulates all scandir results in a list before yielding values. Otherwise globbing will consume a lot of open file descriptors and could leak them (see issue25994, issue25995). -- __

[issue11245] Implementation of IMAP IDLE in imaplib?

2016-01-11 Thread Maciej Szulik
Changes by Maciej Szulik : -- nosy: +maciej.szulik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23942] Explain naming of the patch files in the bug tracker

2016-01-11 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue25596] Use scandir() to speed up the glob module

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Oh well. Too bad. Never mind then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue25994] File descriptor leaks in os.scandir()

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Note there's also a nasty corner case related to generators and GC. If a generator contains a with-block or finally-clause, and the generator is not run until its end because the caller hit an exception on one of the items returned, and the generator object

[issue25995] os.walk() consumes a lot of file descriptors

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: I don't like the first solution (it just collects all scandir() results in a list, which defeats one of the purposes of using scandir()), but I don't understand the second solution. Ideally the number of FDs used should be limited by the depth of the tree be

[issue26085] Tkinter spoils the input text

2016-01-11 Thread fresh_nick
New submission from fresh_nick: Hello, I have Python 3.4.3 and Tk/Tcl 8.5 (built in Python; reported by tk.TclVersion and tk.TkVersion). When I assign printing 'This works' to a hotkey, the program prints 'This worsk'. After pressing the hotkey again, 'worsk' is replaced with 'works', but when

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-01-11 Thread Ned Deily
Changes by Ned Deily : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue25991] readline example eventually consumes all memory

2016-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue25991] readline example eventually consumes all memory

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a2c891a4333 by Ezio Melotti in branch '2.7': #25991: fix readline example to limit history size. Patch by Daniel Dye. https://hg.python.org/cpython/rev/9a2c891a4333 New changeset 416db1a2fb81 by Ezio Melotti in branch '3.5': #25991: fix readline e

[issue26086] Bug in standardmodule os

2016-01-11 Thread Hana Larsen
New submission from Hana Larsen: I get a error in the stardard module "os" (I use Python 3.5.1 64bit for Windows 10!) What is wrong and have someone a patch See the "os-bug.PNG"-file. -- files: os-bug.PNG messages: 258023 nosy: Johano priority: normal severity: normal status: open title

[issue25995] os.walk() consumes a lot of file descriptors

2016-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Both patches are basically equivalent. The first one collects all scandir() results in a list, the second one collects only directory names in a list. The purpose of using os.scandir() in os.walk() was a speed up (issue23605), and both patches preserve it.

[issue24918] Docs layout bug

2016-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: Georg, do you have any opinion on this? AFAIK all the div.highlight contain a with the actual code and it's own background color, so using background: none; should be fine. -- nosy: +georg.brandl stage: needs patch -> patch review __

[issue26041] Update deprecation messages of platform.dist() and platform.linux_distribution()

2016-01-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25995] os.walk() consumes a lot of file descriptors

2016-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: I am all for preventing the leaks. But using FDs proportional to the tree depth seems reasonable to me. (If you are worried about some kind of DoS attack on the algorithm by someone who can build a tree with depth 1000, well, if they can do that they can also c

[issue26067] test_shutil fails when gid name is missing

2016-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: We looked at this at the PyLadies Sprint in Helsinki. When the group has an id but not a name (see "gid=203135016" in the "id" output -- the name is missing), its entry is missing from the list returned by grp.getgrall(). If this behaviour is expected and desire

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-01-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: I strongly recommend people use https://pypi.python.org/pypi/subprocess32/ instead of Python 2.7's subprocess module whenever possible. That said, the fix is pretty easy. -- assignee: -> gregory.p.smith ___ Pytho

[issue26068] re.compile() repr end quote truncated

2016-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: FTR the repr was added in #13592. -- nosy: +serhiy.storchaka type: -> behavior versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker _

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 268d13c7e939 by Gregory P. Smith in branch '2.7': Fixes issue #26083: Workaround a subprocess bug that raised an incorrect https://hg.python.org/cpython/rev/268d13c7e939 -- nosy: +python-dev ___ Python tr

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-01-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: note: this was not a security issue nor was it a crash. an exception was being raised anyways from the forked child prior to the exec(), this bug just caused that to be swallowed and this ValueError raised instead. -- resolution: -> fixed stage: -

[issue26063] Update copyright in the devguide

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset a4c18139d9b0 by Ezio Melotti in branch 'default': #26063: future-proof copyright updating. https://hg.python.org/devguide/rev/a4c18139d9b0 -- ___ Python tracker __

[issue25517] regex howto example in "Lookahead Assertions"

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6b5c03183e3 by Ezio Melotti in branch '2.7': #25517: fix regex in the regex howto. Patch by Elena Oat. https://hg.python.org/cpython/rev/c6b5c03183e3 New changeset 6bd4a4907f66 by Ezio Melotti in branch '3.5': #25517: fix regex in the regex howto.

[issue25517] regex howto example in "Lookahead Assertions"

2016-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue25967] Devguide: add 2to3 to the "Changing CPython's Grammar" checklist

2016-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 367486fbab84 by Ezio Melotti in branch 'default': #25967: add note about updating lib2to3 when the grammar is updated. Patch by Chris Thomas. https://hg.python.org/devguide/rev/367486fbab84 -- nosy: +python-dev ___

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-01-11 Thread Eryk Sun
Eryk Sun added the comment: > I strongly recommend people use https://pypi.python.org/pypi/subprocess32/ I think this warrants a note that draws more attention to itself than the "see also" text. -- nosy: +eryksun ___ Python tracker

  1   2   >