[issue29278] Python 3.6 build fails with parallel make

2017-01-14 Thread Utku Gultopu
New submission from Utku Gultopu: Version Info Linux 4.4.0-59-generic #80-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux Issue = When the multiple jobs option (`make -j`) is specified, build fails after compiling the `structmember.c` file. Subsequent compilation attempts show the f

[issue22302] Windows os.path.isabs UNC path bug

2017-01-14 Thread Eryk Sun
Changes by Eryk Sun : -- Removed message: http://bugs.python.org/msg226094 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue22302] Windows os.path.isabs UNC path bug

2017-01-14 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> needs patch versions: +Python 3.6, Python 3.7 -Python 3.3, Python 3.4 ___ Python tracker ___ ___ P

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-14 Thread Michael Felt
Michael Felt added the comment: Ok. I shall rebuild from scratch. When I do, I start from a "clean" system - only the compiler and my mkinstallp helper script. I am adding the latest zlib for what I would package but I shall forgoe that for this test. --

[issue29248] os.readlink fails on Windows

2017-01-14 Thread Craig Holmquist
Craig Holmquist added the comment: New patch with test. I'm not sure if C:\Users\All Users and C:\ProgramData exist with those names on non-English installations of Windows. I set the test to skip if they aren't found. -- nosy: +craigh Added file: http://bugs.python.org/file46293/iss

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-01-14 Thread INADA Naoki
INADA Naoki added the comment: transmogrify.h uses hack to share docstring. I can't find straightforward way. -- ___ Python tracker ___ __

[issue23407] os.walk always follows Windows junctions

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: Craig, can you add a patch for issue 29248, including a test based on the "All Users" link? -- dependencies: +os.readlink fails on Windows ___ Python tracker ___

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2017-01-14 Thread INADA Naoki
INADA Naoki added the comment: Updated patch for unicodeobject. @taleinat, could you confirm it? -- nosy: +inada.naoki Added file: http://bugs.python.org/file46292/unicodeobject.c.v6.patch ___ Python tracker _

[issue29256] Windows select() errors out when given no fds to select on, which breaks SelectSelector

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: Some WinSock functions are just dispatchers that call a provider function. The dispatch table is set up when WinSock (i.e. ws2_32.dll) calls the WSPStartup function [1] of a provider DLL (e.g. mswsock.dll). In the case of select(), it calls the socket provider's WSP

[issue29275] time module still has Y2K issues note

2017-01-14 Thread SilentGhost
SilentGhost added the comment: The main message there is about the parsing of the two-digit year, so while it might worth it to remove the mention of Y2K, it would only be a minor change. -- nosy: +SilentGhost ___ Python tracker

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Ari
Ari added the comment: Sorry, it was a false alarm. I had a poorly constructed testcase. I was trying to grab all image links from html markup while simultaneously substituting image links to somesite.com with links to anothersite.com. I had handle_starttag and handle_startendtag defined in my

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Brendan Donegan
Brendan Donegan added the comment: I even get the correct behaviour in 2.7.12: Python 2.7.12+ (default, Sep 17 2016, 12:08:02) [GCC 6.2.0 20160914] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from HTMLParser import HTMLParser >>> class MyHTMLParser(HTMLPa

[issue26865] Meta-issue: support of the android platform

2017-01-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: Current status: --- Available using the pyona build system [1]: * Cross compilation of Python for a given Android API level and architecture with android-ndk-r13b. * Cross compilation of third party extension modules (currently as a patch). *

[issue29277] os.getcwd failing on LOFS share

2017-01-14 Thread miniflow
New submission from miniflow: I am calling os.getcwd and am occasionally seeing failures inside my program. This is not due to files missing as the files on the share are static. Eror is: [Errno 2] No such file or directory Which is definitely not the case. Can any sort of trace be done at

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Xiang Zhang
Xiang Zhang added the comment: I can get the expected behaviour with the lastest 2.7 build. Python 2.7.13+ (2.7:0d4e0a736688, Jan 15 2017, 00:51:57) [GCC 5.2.1 20151010] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from HTMLParser import HTMLParser >>> cl

[issue29276] HTMLParser in Python 2.7 doesn't recognize image tags wrapped up in link tags

2017-01-14 Thread Ari
New submission from Ari: The following code produces incorrect results under Python 2.7.13. One would expect it to print 2 lines, "Encountered a start tag: a" and "Encountered a start tag: img". Yet it prints only "Encountered a start tag: a". from HTMLParser import HTMLParser class MyHTMLPars

[issue29275] time module still has Y2K issues note

2017-01-14 Thread Elizabeth Myers
Changes by Elizabeth Myers : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29275] time module still has Y2K issues note

2017-01-14 Thread Elizabeth Myers
New submission from Elizabeth Myers: It's 2017. I think it's time to remove the Y2K warning from this: https://docs.python.org/3/library/time.html :P. It's 17 years past the sell-by date for that notice. -- assignee: docs@python components: Documentation messages: 285489 nosy: Elizacat

[issue23407] os.walk always follows Windows junctions

2017-01-14 Thread Craig Holmquist
Craig Holmquist added the comment: New patch with spaces instead of tabs -- Added file: http://bugs.python.org/file46291/issue23407-4.patch ___ Python tracker ___ ___

[issue29248] os.readlink fails on Windows

2017-01-14 Thread Craig Holmquist
Changes by Craig Holmquist : -- keywords: +patch Added file: http://bugs.python.org/file46290/issue29248.patch ___ Python tracker ___

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-14 Thread David Edelsohn
David Edelsohn added the comment: Michael, you need to build from scratch. The values are set and tweaked in various phases of configure and then written to _sysconfigdata.py for installation. The values in the file reflect the values used during the build, but many of them are not used in an

[issue23407] os.walk always follows Windows junctions

2017-01-14 Thread Craig Holmquist
Craig Holmquist added the comment: Here's a new patch: now, _Py_attribute_data_to_stat and Py_DeleteFileW will just use the IsReparseTagNameSurrogate macro to determine if the file is a link, so os.walk etc. will know not to follow them. os.readlink, however, will only work with junctions an

[issue26296] colorsys rgb_to_hls algorithm error

2017-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The modulus fixes it for exact numbers. It doesn't produce exactly the same > result with floats, because of rounding. Is that a problem? I don't think that is a problem. The function uses a number of floating point operations producing inexact intermedi

[issue29259] Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects

2017-01-14 Thread INADA Naoki
INADA Naoki added the comment: I've created pull request about it: https://github.com/haypo/cpython/pull/1 -- ___ Python tracker ___ _

[issue29262] Provide a way to check for *real* typing.Union instances

2017-01-14 Thread Evan
Evan added the comment: I'm also interested in this. I've been using 'thing.__origin__ is typing.Union', but this doesn't work in some of the older versions of typing. -- nosy: +evan_ ___ Python tracker __

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: > it should be replaced with sys.getfilesystemencodeerrors() > to support UTF-8 Strict mode. I did that in the patch for issue 28188. The focus of the patch is to add bytes support on Windows for os.putenv and os.environb, but I also tried to maximize consistency (

[issue29062] hashlib documentation link error

2017-01-14 Thread INADA Naoki
Changes by INADA Naoki : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29264] sparc/ffi.c:440 error: 'asm' undeclared

2017-01-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Since Python 3.6, building ctypes with bundled libffi is deprecated. Please build libffi separately and configure CPython with --with-system-ffi. This issue can be closed as third-party. -- nosy: +Chi Hsuan Yen ___ P

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: Resolving this would be straightforward if we could use a subclass for the swapped type, but ctypes simple types behave differently for subclasses. A simple subclass doesn't automatically call the getfunc to get a converted value when returned as a function result,

[issue29274] Change “tests cases” → “test cases”

2017-01-14 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29125] Shell injection via TIX_LIBRARY when using tkinter.tix

2017-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: TclError in Terry's example is raised because Tcl script has unpaired braces. You should add "{" at the end of TIX_LIBRARY. Here is working exploit: $ TIX_LIBRARY="/dev/null}; exec python3 -m this >spoiled; set x {" python3 -c "from tkinter.tix import Tk;

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2017-01-14 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: I commented at the Rietveld, since I think that patch needs a bit more modification. * rename PyThread_ReInitTLS * update comments and messages that have explained CPython TLS API -- ___ Python tracker

[issue29062] hashlib documentation link error

2017-01-14 Thread INADA Naoki
INADA Naoki added the comment: Martin, thank you for pointing it out. I hadn't know about suspicious check. -- ___ Python tracker ___

[issue29062] hashlib documentation link error

2017-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea0c488b9bac by INADA Naoki in branch '3.6': Issue #29062: Doc: Fix make suspicious https://hg.python.org/cpython/rev/ea0c488b9bac New changeset 5c48fbe12cb8 by INADA Naoki in branch 'default': Issue #29062: Doc: Fix make suspicious https://hg.pytho

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, re-using Python-level method objects in different types is genuinely invalid when combined with __class__ or zero-argument super(), as there's no way to make the __class__ closure refer to two different classes at runtime - it will always refer back to the

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Eryk Sun
Eryk Sun added the comment: OK, this is completely broken and needs a more thoughtful solution than my simpleminded hack. Here's a practical example of the problem, tested in 3.5.2: class MyInt(ctypes.c_int): def __repr__(self): return super().__repr__() class Struc

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Dave Jones
Dave Jones added the comment: I confess I'm going to have to read a bit more about Python internals before I can understand Eryk's analysis (this is my first encounter with "cell objects"), but many thanks for the rapid analysis and patch! I'm not too concerned about the state being broken wit

[issue29125] Shell injection via TIX_LIBRARY when using tkinter.tix

2017-01-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the original code, python interpolates tixlib into the string sent to and executed by tcl exec. With the patch, tcl exec does the interpolation. Not knowing anything in particular about tcl's exec, I found a value for tixlib that appears to validate Serhi

[issue15527] Double parens in functions references

2017-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset be4da80b493e by Martin Panter in branch '2.7': Issue #15527: remove double parens by changing markup. https://hg.python.org/cpython/rev/be4da80b493e -- ___ Python tracker

[issue29006] 2.7.13 _sqlite more prone to "database table is locked"

2017-01-14 Thread Armin Rigo
Armin Rigo added the comment: larry: unless someone else comments, I think now that the current status of 3.5.3 is fine enough (nothing was done in this branch, and the problem I describe and just fixed in PyPy can be left for later). The revert dd13098a5dc2 needs to be itself reverted in the

[issue29270] super call in ctypes sub-class fails in 3.6

2017-01-14 Thread Nick Coghlan
Nick Coghlan added the comment: Eryk's diagnosis sounds right to me, and the suggested patch will get this back to working as well as it did in Python 3.5. However, it's worth noting that that state itself was already broken when it comes to zero-argument super() support on the type definition