[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-02-26 Thread Michael Felt
Changes by Michael Felt : -- title: ctypes.util.find_library fails ALWAYS when gcc is not used -> ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX) ___ Python tracker ___

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-02-26 Thread Michael Felt
Michael Felt added the comment: The _dlopen call in __init__.py I have been able to fix (hack) with the following: root@x064:[/data/prj/aixtools/python/python-2.7.10/Lib/ctypes]diff -u __init__.py /opt/lib/python2.7/ctypes/__init__.py --- __init__.py 2015-05-23 16:09:01 + +++ /opt/lib/pyth

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2016-02-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks for accepting my patch. I'm curious: any reason not applying to 2.7 branch? We're building youtube-dl.exe with py2exe on Python 2.7 as py2exe on 3.x sometimes fails. (https://github.com/rg3/youtube-dl/issues/5094) --

[issue26442] Doc refers to xmlrpc.client but means xmlrpc.server

2016-02-26 Thread ProgVal
New submission from ProgVal: The doc of xmlrpc.server and xmlrpc.client both warn about XML vulnerabilities. However, both say “The xmlrpc.client module is not secure”, whereas the page for xml.server should say xmlrpc.server. -- assignee: docs@python components: Documentation messages

[issue26421] string_richcompare invalid check Py_NotImplemented

2016-02-26 Thread yuriy_levchenko
yuriy_levchenko added the comment: because, PyObject_GetAttr(PyObject *v, PyObject *name) have this code if (!PyString_Check(name)) { and PyDict_GetItem(PyObject *op, PyObject *key) have this code if (!PyString_CheckExact(key) || (hash = ((PyStringObject *) key)->ob_shash) ==

[issue26443] cross building extensions picks up host headers

2016-02-26 Thread Martin Hundebøll
New submission from Martin Hundebøll: When cross building python, the building of extensions is called with -I/usr/include and -L/usr/lib This makes some extensions fail to compile due to picking up inline assembly from host headers (e.g. _socket[1]). I have fixed this locally by applying the

[issue26434] multiprocessing cannot spawn grandchild from a Windows service

2016-02-26 Thread Davin Potts
Davin Potts added the comment: I can reproduce the problem under Windows 7. Thank you for your example and description -- they were very helpful. Detection that the original parent was PythonService.exe is necessary to avoid undoing the paths set appropriately for running under a service. Th

[issue26195] Windows frozen .exe multiprocessing.Queue access is denied exception

2016-02-26 Thread Davin Potts
Davin Potts added the comment: Using tools like pyinstaller (and other competing frozen-exe-creating tools) unfortunately complicates things for multiprocessing to understand the environment it's now in. It is unclear from this description whether this should be regarded as an issue to be add

[issue26444] Fix 2 typos on ElementTree docs

2016-02-26 Thread Ismail s
New submission from Ismail s: 'incrementall' has been changed to 'incrementally' (and text reflowed). 'keywword' has been changed to 'keyword'. -- assignee: docs@python components: Documentation files: work.patch keywords: patch messages: 260897 nosy: Ismail s, docs@python priority: norm

[issue26432] Add partial.kwargs

2016-02-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: -1 "foolish consistency" and all that ... In the context of partial, it is fairly clear that "keywords" means "keyword arguments" while it may not be as clear in other more specialized contexts. In the age of autocompletion almost everywhere, aliases ar

[issue26444] Fix 2 typos on ElementTree docs

2016-02-26 Thread Georg Brandl
Georg Brandl added the comment: Reflow is kinda bad for patch review :) -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-

[issue26444] Fix 2 typos on ElementTree docs

2016-02-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29beb1554dec by Georg Brandl in branch '3.5': Closes #26444: typo fixes. https://hg.python.org/cpython/rev/29beb1554dec -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed __

[issue26442] Doc refers to xmlrpc.client but means xmlrpc.server

2016-02-26 Thread Georg Brandl
Georg Brandl added the comment: Thanks! -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2016-02-26 Thread Steve Dower
Steve Dower added the comment: It was fixed in 2.7 - https://hg.python.org/cpython/rev/3cddcf471c70 The issue number wasn't in the commit, so it didn't appear here. -- ___ Python tracker __

[issue26442] Doc refers to xmlrpc.client but means xmlrpc.server

2016-02-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9b240ec2bd42 by Georg Brandl in branch '3.5': Closes #26442: fix copy-paste. https://hg.python.org/cpython/rev/9b240ec2bd42 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed __

[issue25910] Fixing links in documentation

2016-02-26 Thread Georg Brandl
Changes by Georg Brandl : -- status: languishing -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue26445] setup.py sdist mishandles package_dir option

2016-02-26 Thread glep
New submission from glep: Suppose I have a setup.py with the option ... packages=['package', 'package.utils'], package_dir={'package.utils', '../utils'}, ... as would arise if ../utils was a package shared between several projets ('package', 'package1', ...). I would expect the so

[issue25910] Fixing links in documentation

2016-02-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce5ef48b5140 by Georg Brandl in branch '3.5': Closes #25910: fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch. https://hg.python.org/cpython/rev/ce5ef48b5140 -- nosy: +python-dev resolution: -> fix

[issue25910] Fixing links in documentation

2016-02-26 Thread Georg Brandl
Georg Brandl added the comment: Reopening, for fixing the rest of the broken ones. -- nosy: +georg.brandl resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue26446] Mention in the devguide that core devs are expected to follow the PSF CoC

2016-02-26 Thread Brett Cannon
New submission from Brett Cannon: It should be mentioned in the devguide that receiving one's core developer privileges includes following the PSF CoC (https://www.python.org/psf/codeofconduct/). -- components: Devguide messages: 260907 nosy: brett.cannon, ezio.melotti, willingc priori

[issue26447] rstrip() is pilfering my 'p'

2016-02-26 Thread Jerod “j3rd” Gawne
New submission from Jerod “j3rd” Gawne: Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32 In[4]: str = 'aaap.py' In[5]: print(str.rstrip('.py')) aaa In[6]: str = 'aaap.pdf' In[7]: print(str.rstrip('.pdf')) aaa In[8]: str = 'aaab

[issue26447] rstrip() is pilfering my 'p'

2016-02-26 Thread Ethan Furman
Ethan Furman added the comment: https://docs.python.org/3/library/stdtypes.html#str.strip - [...] The chars argument is not a prefix or suffix; rather, all combinations of its values are stripped: -- nosy: +ethan.furman resolution:

[issue26447] rstrip() is pilfering my 'p'

2016-02-26 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue26446] Mention in the devguide that core devs are expected to follow the PSF CoC

2016-02-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24421] Race condition compiling Modules/_math.c

2016-02-26 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26434] multiprocessing cannot spawn grandchild from a Windows service

2016-02-26 Thread Davin Potts
Davin Potts added the comment: Attached is a patch for the 2.7 branch which adds the check described in the previous message. I don't see a reasonable way to provide an accompanying test because it requires registering a win32 service (requiring administrative privileges) temporarily to attem

[issue18199] Windows: support path longer than 260 bytes using "\\?\" prefix

2016-02-26 Thread Ugra Dániel
Changes by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue25340] libraries variable in setup.py ignore for multiprocessing module

2016-02-26 Thread Davin Potts
Davin Potts added the comment: Closing as the original reporter has not responded to requests for additional information after 4.5 months. -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker

[issue6143] IDLE - an extension to clear the shell window

2016-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is lower priority to me than many others, but there does seem to be at least some demand shown on Stackoverflow. So I have not dismissed it completely. -- ___ Python tracker

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Eric Fahlgren
New submission from Eric Fahlgren: When trying out dis.dis on some synthetically long functions, I noted that spurious branch targets were being generated in the output. First one is at address 8: 157 0 LOAD_CONST 1 (1) 3 DUP_TOP 4 STORE_FAS

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Joe Jevnik
Changes by Joe Jevnik : -- nosy: +ll ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Barun Parruck
Barun Parruck added the comment: I'll take a look at it! :) Would you like unit tests as well? -- nosy: +Barun Parruck ___ Python tracker ___

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Barun Parruck
Barun Parruck added the comment: Hi, to check if I've done things right, which functions did you try out dis.dis on? -- ___ Python tracker ___ __

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Eric Fahlgren
Eric Fahlgren added the comment: My test case: def long(): z = a = b = c = d = e = f = g = h = 1 while x: x = x if x and x or not x else x above line repeated 2999 more times import dis print(dis.findlabels(long.__code__.co_code)[:10]) Buggy output: [35510, 35509, 62, 6

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Eric Fahlgren
Eric Fahlgren added the comment: Our paths crossed, I don't know exactly how you'd add a test case for this, maybe construct the monster function in a string, eval the string, the use the synthesized function in dis.findlabels? -- ___ Python tracker

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Barun Parruck
Barun Parruck added the comment: Allright, so I'm uploading a preliminary patch, please look through it to see if I understood what you meant me to do about dis.findlabels. The tests seem to mostly pass, except oddly enough, urlstdlib2, which is probably system-specific? I get the correct out

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Eric Fahlgren
Eric Fahlgren added the comment: Well, now that I'm thinking about it, you could synthesize a bytecode stream trivially and have a much better test. This is completely off the top of my head, so take it is guaranteed to (probably) not work as written, but it should get you started: from opco

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Barun Parruck
Barun Parruck added the comment: The patch I forgot to attach. Ha ha. -- keywords: +patch Added file: http://bugs.python.org/file42035/preliminarypatch.diff ___ Python tracker __

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Barun Parruck
Barun Parruck added the comment: Hi, I'm a little confused as to how to write a test using bytecode streams...probably due to my lack of clarity as to what exactly dis.disassemble does. Is there any way you could give me a bit more information? :) -- __

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2016-02-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Didn't see it. Sorry for bothering. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue26246] Code output toggle button uses removed jQuery method

2016-02-26 Thread Liang-Bo Wang
Liang-Bo Wang added the comment: Just FYI, I applied the patch to the zh-hant translation of the documentation and the code output toggle button is back and works as expected. https://docs.python.org.tw/3/tutorial/introduction.html#numbers You can see the result of any other page by changi

[issue26246] Code output toggle button uses removed jQuery method

2016-02-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset f0e20d942760 by Ezio Melotti in branch '3.4': #26246: update copybutton.js after JQuery update. Patch by Liang-Bo Wang. https://hg.python.org/cpython/rev/f0e20d942760 New changeset ac175a7af60b by Ezio Melotti in branch '3.5': #26246: merge with 3.

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Eric Fahlgren
Eric Fahlgren added the comment: The findlabels function takes a bytecode array of type bytes, usually the actual code from a function. My original test case uses the full Python compiler from source code to a CodeType object to create the bytecodes (plus all that other stuff that makes up a fun

[issue26246] Code output toggle button uses removed jQuery method

2016-02-26 Thread Ezio Melotti
Ezio Melotti added the comment: I applied the patch -- it should go live the next time the docs are updated. Thanks for the report and the patch! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue26421] string_richcompare invalid check Py_NotImplemented

2016-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyDict_GetItem and lookdict_string use PyString_CheckExact for fast path. String subclasses are proceeded in general way. PyObject_GetAttr and string_richcompare use PyString_Check because they work with string and string subclasses. Py_TPFLAGS_STRING_SUBCLA

[issue26246] Code output toggle button uses removed jQuery method

2016-02-26 Thread Liang-Bo Wang
Liang-Bo Wang added the comment: Thanks for the merge. I pulled the change and checked the result, but I found the patch missing a line to initiate the correct display state when the button was created. That is, it forgot to set `button.data('hidden', 'false');` when adding the button. This

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-02-26 Thread Barun Parruck
Barun Parruck added the comment: Hi, yes, that works much better, and I've definitely understood! Now, about the tests, how large would you like them to be? For instance : code = bytes ( chr(opmap["JUMP_FORWARD"]) + chr(0) + chr(255) + chr(EXTENDED_ARG) + chr(1) + chr(1) +