[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

[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 Serhiy Storchaka
Serhiy Storchaka added the comment: The code in msg257977 doesn't match current sources. -- ___ Python tracker ___ ___ Python-bugs-lis

[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
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[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
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

[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

[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 ___ __

[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 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

[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

[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/

[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

[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

[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/

[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

[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

[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

[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: 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 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 <

[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

[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

[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 ___

[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 ___ _

[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 _

[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

[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 __

[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 ___ _

[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 ___ ___

[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

[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 ___ __

[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 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

[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

[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

[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

<    1   2