[issue27486] FTPlib hangs on some pasv responses

2016-07-11 Thread SilentGhost
Changes by SilentGhost : -- nosy: +giampaolo.rodola stage: -> test needed ___ Python tracker ___

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 11, 2016, at 07:05 PM, Ethan Furman wrote: >class BaseZeroEnum(Enum, start=0): > "initial integer is 0" > ... > >? Oh, and yes if you specify a starting number you also activate the >AutoNumber feature. I like the way this one looks. --

[issue26877] tarfile use wrong code when read from fileobj

2016-07-11 Thread Марк Коренберг
Марк Коренберг added the comment: http://stackoverflow.com/questions/1964806/short-read-from-filesystem-when-can-it-happen Disk-based filesystems generally use uninterruptible reads, which means that the read operation generally cannot be interrupted by a signal. Network-based filesystems

[issue27489] Win 10, choco install python gets message: Access to the path 'C:\WINDOWS\system32\**\**.exe.ignore' is denied.

2016-07-11 Thread Joel Handwell
New submission from Joel Handwell: While installing python 3.5.1 using chocolatey package manager on Windows 10, I got following message: python3 v3.5.1 WARNING: The names of some imported commands from the module 'chocolateyInstaller' include unapproved verbs that might make them less

[issue27489] Win 10, choco install python gets message: Access to the path 'C:\WINDOWS\system32\**\**.exe.ignore' is denied.

2016-07-11 Thread Joel Handwell
Changes by Joel Handwell : -- resolution: -> third party ___ Python tracker ___ ___

[issue27487] -m switch regression in Python 3.5.2 (under rare circumstances)

2016-07-11 Thread Wolfgang Maier
New submission from Wolfgang Maier: As a result of Issue14285 Python 3.5.2 now imports packages in runpy. _get_module_details before calling importlib.util.find_spec. Although I'm not sure how important this is, I wanted to report that this new behaviour can have a side-effect under pretty

[issue16858] tarfile silently hides errors

2016-07-11 Thread Марк Коренберг
Марк Коренберг added the comment: http://stackoverflow.com/questions/1964806/short-read-from-filesystem-when-can-it-happen Disk-based filesystems generally use uninterruptible reads, which means that the read operation generally cannot be interrupted by a signal. Network-based filesystems

[issue27488] Underscore not showing Mac El Capitan

2016-07-11 Thread Zachary Ware
Zachary Ware added the comment: This is due to changes in the default font settings for IDLE. You can boost your font size and/or pick a different font, and your underscores will appear. 3.4 is no longer receiving bug fixes (or binary installers), so there's nothing we can do here.

[issue27484] Some Examples in Format String Syntax are incorrect or poorly worded

2016-07-11 Thread R. David Murray
R. David Murray added the comment: Agree with Zach. The example comments are correct as written, especially when considered in the context of the preceding example. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed

[issue16858] tarfile silently hides errors

2016-07-11 Thread Марк Коренберг
Марк Коренберг added the comment: What the hell! sorry again :( -- ___ Python tracker ___ ___

[issue27488] Underscore not showing Mac El Capitan

2016-07-11 Thread Monti Carlo
New submission from Monti Carlo: Trying to type in underscore and it just made a space... Downloaded 3.5.2 and it works fine. -- components: IDLE messages: 270205 nosy: Monti Carlo priority: normal severity: normal status: open title: Underscore not showing Mac El Capitan versions:

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a34cef7681b by Ned Deily in branch 'default': Issue #27285: Cleanup "suspicious" warnings. https://hg.python.org/cpython/rev/2a34cef7681b -- ___ Python tracker

[issue27485] urllib.splitport -- is it official or not?

2016-07-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: splitport() doesn't work with IPv6 ("[::1]", see issue18191), nor with authority ("user:passw...@example.com"). Note that there is a almost duplicate function splitnport(). The existence of two similar functions that behave differently in corner cases looks

[issue27235] Heap overflow occurred due to the int overflow (Python-2.7.11/Modules/posixmodule.c)

2016-07-11 Thread Brian Martin
Changes by Brian Martin : -- nosy: +osvdb status: pending -> open ___ Python tracker ___

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-07-11 Thread Ned Deily
Ned Deily added the comment: Thanks for the fix up, Steve. For 3.6.0a3, I chose to just change the 3.3 and 3.4 whatsnew references to just in-line code without any links. If anyone wants something fancier, please feel free to expand on it (after the release). (BTW, Steve, when you submit an

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-11 Thread Ethan Furman
Ethan Furman added the comment: If you are constructing your own base Enum type, which would you rather do? class BaseZeroEnum(Enum): "initial integer is 0" _start_ = 0 ... or class BaseZeroEnum(Enum, start=0): "initial integer is 0" ... ? Oh, and yes if you specify a

[issue27485] urllib.splitport -- is it official or not?

2016-07-11 Thread Guido van Rossum
New submission from Guido van Rossum: I've seen and written some code that uses urllib.splitport() [1], but it's not in the export list, nor in the docs. However I see no easy other way to perform the same function. Should we make it official, or get rid of it? It's used internally in

[issue27486] FTPlib hangs on some pasv responses

2016-07-11 Thread 송병우
New submission from 송병우: FTPlib hangs on PASV responses when the connected server is within its local network. Here's my fix that checks the target address with ipaddress lib: https://github.com/python/cpython/pull/28/files -- components: Library (Lib) messages: 270198 nosy: 송병우

[issue27464] Document that SplitResult & friends are namedtuples

2016-07-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___

[issue27490] ARM cross-compile: pgen built without $(CFLAGS) as $(LIBRARY) dependency

2016-07-11 Thread Thomas Perl
New submission from Thomas Perl: Problem description: Trying to cross-compile $(LIBRARY) (libpython2.7.a for example) causes "pgen" to be built, even when it's not used in the cross-compilation case (only a file copy is done to generate $(GRAMMAR_H) and $(GRAMMAR_C)). The current rule for

[issue27490] ARM cross-compile: pgen built without $(CFLAGS) as $(LIBRARY) dependency

2016-07-11 Thread Thomas Perl
Thomas Perl added the comment: Also related: https://bugs.python.org/issue22359 -- ___ Python tracker ___ ___

[issue27483] Expose HEAD_LOCK/HEAD_UNLOCK in pystate.c

2016-07-11 Thread Maciej Fijalkowski
Maciej Fijalkowski added the comment: On windows the profiler runs in a separate thread and pauses/restarts other threads (hence the requirements are slightly different). HEAD_LOCK etc. are def not async-signal safe, but it's not an issue on linux --

[issue27484] Some Examples in Format String Syntax are incorrect or poorly worded

2016-07-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think all of these read fine as-is though I would change "argument first" to "first argument" or just "argument". Adding the word "positional" is a distractor from what the comments are trying to communicate. The version numbering is normally done

[issue27484] Some Examples in Format String Syntax are incorrect or poorly worded

2016-07-11 Thread Zachary Ware
Zachary Ware added the comment: I don't think "argument first" should be changed to "first argument": the point is that the converter is called on the argument before it's formatted into the string, the call is done "first". -- nosy: +zach.ware ___

[issue27489] Win 10, choco install python gets message: Access to the path 'C:\WINDOWS\system32\**\**.exe.ignore' is denied.

2016-07-11 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-11 Thread John Hagen
John Hagen added the comment: >class BaseZeroEnum(Enum, start=0): > "initial integer is 0" > ... I also think this looks better. -- ___ Python tracker

[issue27131] Unit test random shuffle

2016-07-11 Thread Jonathan Kross
Jonathan Kross added the comment: Just giving this one a bump to see if it can be applied soon. -- ___ Python tracker ___

[issue26608] RLock undocumented behavior in case of multiple acquire

2016-07-11 Thread ahxxm
ahxxm added the comment: As seen from commit log, all return type are double back-quoted, this could be a rendering error. I think this commit somehow makes it clear that RLock is a thread-level reentrant lock, some code example of suggested usage might be helpful though. -- hgrepos:

[issue27485] urllib.splitport -- is it official or not?

2016-07-11 Thread Martin Panter
Martin Panter added the comment: Previous discussion: Issue 1722, Issue 11009. In Python 2, most of the split- functions _have_ been in urllib.__all__ since revision 5d68afc5227c (2.1). Also, since revision c3656dca65e7 (Issue 1722, 2.7.4), the RST documentation does mention that at least

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2016-07-11 Thread Mihai Capotă
Changes by Mihai Capotă : -- nosy: +mihaic ___ Python tracker ___ ___ Python-bugs-list

[issue13402] Document absoluteness of sys.executable

2016-07-11 Thread Brad Larsen
Brad Larsen added the comment: It looks like sys.executable is *not* always an absolute path. In Python 2.7: $ which python2.7 /opt/local/bin/python2.7 $ cd /opt/local/bin $ ../bin/python2.7 -m 'import sys; print(sys.executable)' /opt/local/bin/../bin/python2.7 Also in

[issue13402] Document absoluteness of sys.executable

2016-07-11 Thread Ned Deily
Ned Deily added the comment: @blarsen, and there's something strange about your example. '-m' won't work with a real python executable, presumably you meant '-c'. And judging from the paths involved, I'm guessing you are using MacPorts on OS X. With either MacPorts or any other OS X

[issue13402] Document absoluteness of sys.executable

2016-07-11 Thread Brad Larsen
Brad Larsen added the comment: @eryksun, you are right! The output *is* an absolute path as far as `os.path.isabs` is concerned. @ned.deily, you are right about my example --- I transcribed it wrong, and it should be `-c`. The system in question is not a Mac OS system, but a Linux system

[issue13402] Document absoluteness of sys.executable

2016-07-11 Thread Ned Deily
Ned Deily added the comment: @blarsen, OK, but if you want to pursue this, please open a new issue against the current versions. This issue was closed years ago and against earlier versions so your comments will not get acted on. -- ___ Python

[issue13402] Document absoluteness of sys.executable

2016-07-11 Thread Eryk Sun
Eryk Sun added the comment: "/opt/local/bin/../bin/python2.7" is an absolute path. >>> os.path.isabs('/opt/local/bin/../bin/python2.7') True It's not relative to the working directory. -- nosy: +eryksun ___ Python tracker

[issue27485] urllib.splitport -- is it official or not?

2016-07-11 Thread Guido van Rossum
Guido van Rossum added the comment: Aha. I see you are referring to this note in the 2.7 docs for urllib: urllib also exposes certain utility functions like splittype, splithost and others parsing URL into various components. But it is recommended to use :mod:`urlparse` for parsing

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-11 Thread Ethan Furman
Ethan Furman added the comment: Here's the code. I'll do the doc changes next. -- keywords: +patch Added file: http://bugs.python.org/file43694/issue26988.stoneleaf.01.patch ___ Python tracker

[issue672115] Assignment to __bases__ of direct object subclasses

2016-07-11 Thread Memeplex
Memeplex added the comment: I understand Michael's comment http://bugs.python.org/issue672115#msg14169 but I'm failing to see how it's directly related to this issue: as Michael himself said it's even relevant for the object-subclass-object hack or for any hierarchy whatsoever. Is the comment

[issue16858] tarfile silently hides errors

2016-07-11 Thread Berker Peksag
Changes by Berker Peksag : -- Removed message: http://bugs.python.org/msg270206 ___ Python tracker ___

[issue16858] tarfile silently hides errors

2016-07-11 Thread Berker Peksag
Changes by Berker Peksag : -- Removed message: http://bugs.python.org/msg265967 ___ Python tracker ___

[issue16858] tarfile silently hides errors

2016-07-11 Thread Berker Peksag
Changes by Berker Peksag : -- Removed message: http://bugs.python.org/msg270204 ___ Python tracker ___

[issue26081] Implement asyncio Future in C to improve performance

2016-07-11 Thread INADA Naoki
INADA Naoki added the comment: Thanks. I'll working on test_asyncio in next few days. -- ___ Python tracker ___

[issue27487] -m switch regression in Python 3.5.2 (under rare circumstances)

2016-07-11 Thread Nick Coghlan
Nick Coghlan added the comment: Since this worked in 3.5.1, and fails in 3.5.2, I think it's reasonable to consider if it makes sense to find a way to make it work again in 3.5.3 (and then decide separately whether or not we want to preserve the capability in 3.6.0). Specifically, restoring

[issue16858] tarfile silently hides errors

2016-07-11 Thread Martin Panter
Changes by Martin Panter : -- Removed message: http://bugs.python.org/msg265966 ___ Python tracker ___

[issue14977] mailcap does not respect precedence in the presence of wildcards

2016-07-11 Thread Michael Lazar
Michael Lazar added the comment: Submitting an updated patch; simplified the implementation and updated test_mailcap.py -- Added file: http://bugs.python.org/file43695/mailcap_v2.patch ___ Python tracker

[issue27083] PYTHONCASEOK is ignored on Windows

2016-07-11 Thread Brian Herman
Brian Herman added the comment: In python 3.6 from hg it has been fixed. >>> glob.glob('*.py') ['setup.py', 'test.py'] >>> import test >>> test.__file__ 'C:\\Users\\brian\\Desktop\\cpython\\test.py' >>> -- nosy: +Brian.Herman ___ Python tracker

[issue27491] Errors when building with UNICODE character set

2016-07-11 Thread Minmin Gong
New submission from Minmin Gong: Switch the pythoncore's character set to UNICODE, some compile errors about Windows APIs show up. A patch is attached to fix this. -- components: Windows files: 0001-Fix-building-with-UNICODE-character-set.patch keywords: patch messages: 270228 nosy:

[issue23804] SSLSocket.recv(0) receives up to 1024 bytes

2016-07-11 Thread Martin Panter
Changes by Martin Panter : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-11 Thread STINNER Victor
STINNER Victor added the comment: Right, I built Python on FreeBSD, it's likely that make was not GNU make. -- ___ Python tracker ___

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-11 Thread Martin Panter
Martin Panter added the comment: Survey of different mechanisms for running Python to generate files: Tools/scripts/generate_opcode_h.py and Parser/asdl_c.py: configure.ac tries python3.6, python3, python, etc commands. It either runs the scripts with what it finds, or substitutes an “echo”

[issue27472] add the 'unix_shell' attribute to test.support

2016-07-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached patch ignores the following test modules listed in msg266084: Lib/distutils/tests/test_build_scripts.py|68 col 31| ("#!/bin/sh\n" Lib/distutils/tests/test_install_scripts.py|57 col 38| write_script("shell.sh", ("#!/bin/sh\n" reason: The

[issue27481] Replace TypeError with ValueError in doc regarding "embedded NUL character"

2016-07-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. But while we are here, it would be worth to change "NUL character" and "NUL byte" to "null character" or "null byte" as most used in the documentation and the code. -- assignee: docs@python -> serhiy.storchaka stage: -> commit review

[issue27481] Replace TypeError with ValueError in doc regarding "embedded NUL character"

2016-07-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python strings contain characters, not bytes. -- ___ Python tracker ___

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread Martin Mokrejs
New submission from Martin Mokrejs: Hi, it seems at least python 3.4.3-r5 on a Gentoo Linux. Failed to build these modules: _cryptnis -- files: build.log messages: 270163 nosy: mmokrejs priority: normal severity: normal status: open title: Cannot link _crypt and _nis

[issue27481] Replace TypeError with ValueError in doc regarding "embedded NUL character"

2016-07-11 Thread Xiang Zhang
Xiang Zhang added the comment: Just for a note, there has already been an issue26401 fixing the function.rst. Upload a new patch adding versionchanged tag. -- Added file: http://bugs.python.org/file43686/null_characters_doc_v2.patch ___ Python

[issue25572] _ssl doesn't build on OSX 10.11

2016-07-11 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> out of date stage: needs patch -> resolved type: -> behavior versions: -Python 3.4 ___ Python tracker

[issue27481] Replace TypeError with ValueError in doc regarding "embedded NUL character"

2016-07-11 Thread Xiang Zhang
New submission from Xiang Zhang: Errors regarding "embedded NUL character" were changed from TypeError to ValueError, in r92365, issue22215, but the doc doesn't get updated. Add a patch to apply the change in doc. -- assignee: docs@python components: Documentation files:

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread Martin Mokrejs
Martin Mokrejs added the comment: Also is an issue with 3.5.1-r3: x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L. -L/scratch/mmokrejs/gentoo/lib -L/scratch/mmokrejs/gentoo/usr/lib -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -O2 -pipe -march=native -fwrapv

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread Martin Mokrejs
Changes by Martin Mokrejs : -- versions: +Python 3.5 ___ Python tracker ___

[issue27078] Make f'' strings faster than .format: BUILD_STRING opcode?

2016-07-11 Thread Antti Haapala
Antti Haapala added the comment: Ah so it seems. Somehow I thought __format__ was slotted, but that is not the case and it needs to be looked up, and what is worse, of course a tuple needs to be built as well. Oh well, at least it should be quite minimal to make it be faster than `f(x)`

[issue26826] Expose new copy_file_range() syscall in os module.

2016-07-11 Thread Marcos Dione
Marcos Dione added the comment: Fixed extra space and semicolon (?!?!). Also, I'm getting 500 errors from riedvelt when I try to reply to comments. -- Added file: http://bugs.python.org/file43688/copy_file_range.diff ___ Python tracker

[issue27481] Replace TypeError with ValueError in doc regarding "embedded NUL character"

2016-07-11 Thread Xiang Zhang
Xiang Zhang added the comment: Sorry, I didn't notice the difference. -- Added file: http://bugs.python.org/file43690/null_characters_doc_v4.patch ___ Python tracker

[issue25572] _ssl doesn't build on OSX 10.11

2016-07-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: The new paragraph about Homebrew for OSX is useful, we can close this issue. -- status: open -> closed ___ Python tracker

[issue27481] Replace TypeError with ValueError in doc regarding "embedded NUL character"

2016-07-11 Thread Xiang Zhang
Xiang Zhang added the comment: Yes. I noticed the change but didn't change it. Now add it. -- Added file: http://bugs.python.org/file43689/null_characters_doc_v3.patch ___ Python tracker

[issue25523] Correct "a" article to "an" article

2016-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 651f7addf4a8 by Martin Panter in branch '2.7': Issue #25523: Correct "a" article to "an" article https://hg.python.org/cpython/rev/651f7addf4a8 -- ___ Python tracker

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread R. David Murray
R. David Murray added the comment: Since you are using the gentoo build system to build this, the bug report should go to the gentoo project, as indicated by the message at the end of your build log. If they find a bug in python itself, then it can be reported here (Arfrever at least can

[issue25523] Correct "a" article to "an" article

2016-07-11 Thread Martin Panter
Changes by Martin Panter : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue23804] SSLSocket.recv(0) receives up to 1024 bytes

2016-07-11 Thread Martin Panter
Martin Panter added the comment: Oops, that last merge is not related to this -- ___ Python tracker ___ ___

[issue26081] Implement asyncio Future in C to improve performance

2016-07-11 Thread INADA Naoki
INADA Naoki added the comment: In my patch, test_asyncio runs against C version Future. I saw how test_json tests against C version and pure Python version. But test_asyncio is more larger than test_json. Before working on it, could someone give me idea to run whole test_asyncio with and

[issue23804] SSLSocket.recv(0) receives up to 1024 bytes

2016-07-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset df908a9d97a6 by Martin Panter in branch 'default': Issue #23804: Merge spelling and NEWS fixes from 3.5 https://hg.python.org/cpython/rev/df908a9d97a6 -- ___ Python tracker

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread Martin Mokrejs
Martin Mokrejs added the comment: Ah, thank you for a quick answer. The problem is not with a Gentoo, the problem is with python which needs too new libc or libnss or libcrypt. I am re-opening, why cannot I compile newer python version on glibc-2.12 host? This is not a problme with

[issue27482] heap-buffer-overflow on address 0x6250000078ff

2016-07-11 Thread mtowalski
New submission from mtowalski: PoC is attached. Version: 2.7.12 = ==4461==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x625078ff at pc 0x00508e70 bp 0x7ffe3e88db60 sp 0x7ffe3e88db58 READ of size 1 at

[issue26081] Implement asyncio Future in C to improve performance

2016-07-11 Thread Yury Selivanov
Yury Selivanov added the comment: > Before working on it, could someone give me idea to run whole test_asyncio with and without C version Future easily? asyncio uses loop.create_future() to create sockets. I'd suggest you to create two base test classes: one that monkeypatches

[issue27392] Add a server_side keyword parameter to create_connection

2016-07-11 Thread Yury Selivanov
Yury Selivanov added the comment: > How about we use connect_socket() or a variant on that name? That feels > similar to connect_{read,write}_pipe(), which also take a protocol_factory > and an already-opened I/O object. I like the idea to use "connect_" prefix here. How about simple

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread R. David Murray
R. David Murray added the comment: Can you demonstrate the problem without involving the gentoo build system, using a vanilla tarball downloaded from our site? -- ___ Python tracker

[issue27392] Add a server_side keyword parameter to create_connection

2016-07-11 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds Good To Me. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27484] Some Examples in Format String Syntax are incorrect or poorly worded

2016-07-11 Thread Rufus V. Smith
New submission from Rufus V. Smith: In section 6.1.3 Format String Syntax, some examples have incorrect or poorly worded comments: Original: "Harold's a clever {0!s}"# Calls str() on the argument first "Bring out the holy {name!r}"# Calls repr() on the argument first "More {!a}"

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread Martin Mokrejs
Changes by Martin Mokrejs : Added file: http://bugs.python.org/file43693/nohup-gentoo-prefix.out ___ Python tracker ___

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread R. David Murray
R. David Murray added the comment: Now you see why I guessed that it was a Gentoo issue :) Or an issue in whatever it is you are using, since it doesn't sound like vanilla gentoo, either. So, I'm closing this again. If you find something you really think is a bug in *our* build process,

[issue27483] Expose HEAD_LOCK/HEAD_UNLOCK in pystate.c

2016-07-11 Thread Maciej Fijalkowski
New submission from Maciej Fijalkowski: Hi The use case here is for C-based statistical profilers. When running vmprof on linux/os x, you can get the current thread state from PyThreadState_GetUnchecked or a similar solution. However, on windows you need to walk all the interpreter state,

[issue27483] Expose HEAD_LOCK/HEAD_UNLOCK in pystate.c

2016-07-11 Thread STINNER Victor
STINNER Victor added the comment: Is the profiler running in the same process than the profiled application? Vmprof uses a signal handler, right? HEAD_LOCK is a mutex, acquire a mutex is not async-signal safe :-( Is it an issue? -- ___ Python

[issue27480] Cannot link _crypt and _nis modules on a host with glibc-2.12

2016-07-11 Thread Martin Mokrejs
Martin Mokrejs added the comment: Interesting, using the system-wide RedHat stuff I can compile vanilla Python-3.4.5. See attached nohup.out. I tried to stick to the same configure arguments as Gentoo's package manager used. I also tried to compile the vanilla tarball under Gentoo::Prefix and

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-11 Thread Steve Dower
Steve Dower added the comment: I don't want Python to get into the business of changing the command line. I've started looking into building the shell extension so we can pass through arguments correctly. Once we have this, there are likely other features we can add to it (maybe extract