[issue26853] missing symbols in curses and readline modules on android

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: IOW, on Linux tinfo should work fine in combination with ncursesw. -- ___ Python tracker ___

[issue26862] SYS_getdents64 does not need to be defined on android API 21

2016-04-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: I have no problem just removing the #ifdef as Android API 21 is now old enough (Lollipop / 5.0) that anyone building Python 3.6 for use on Android is probably fine with it. If there is a #define that can be used to test the android api level at compile

[issue26664] find a bug in activate.fish of venv of cpython3.6

2016-04-26 Thread Tin Tvrtković
Changes by Tin Tvrtković : -- versions: +Python 3.5 ___ Python tracker ___ ___

[issue26866] Inconsistent environment in Windows using "Open With"

2016-04-26 Thread Steve Dower
Steve Dower added the comment: I don't think there's actually a way to fix this - the current working directory is inherited from the current process in the "Open with" case (FWIW, #3 also produces the same result as #1). I suspect it would need a fix in Windows, which is highly unlikely, or

[issue26853] missing symbols in curses and readline modules on android

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: Do you need libtinfow? It seems that it's not supported in setup.py, and getting even libtinfo support into some Linux distributions took quite a while. -- nosy: +skrah ___ Python tracker

[issue26664] find a bug in activate.fish of venv of cpython3.6

2016-04-26 Thread Tin Tvrtković
Tin Tvrtković added the comment: I'm getting this exact issue on Python 3.5 (xenial system installation). All my existing venvs (from before my upgrade to xenial) work. Here's the diff: > diff .venv/bin/activate.fish ../wrapt/.venv/bin/activate.fish 35c35 < set -gx VIRTUAL_ENV

[issue26664] find a bug in activate.fish of venv of cpython3.6

2016-04-26 Thread Tin Tvrtković
Tin Tvrtković added the comment: Also I will add I've been using fish for a long time and have never been affected by #26348. -- ___ Python tracker ___

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: It seems that Android is the only known platform that deviates from /bin/sh. So perhaps we should simply set a variable to either /bin/sh or /system/bin/sh rather than waiting for #16353 to settle. -- nosy: +skrah versions: +Python 3.6 -Python 3.4

[issue26846] Workaround for non-standard stdlib.h on Android

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: > Maybe issue #26723 can be closed now as well ? I think it was already closed, but I added a link to this issue now. -- ___ Python tracker

[issue20306] Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset f0f519aca558 by Stefan Krah in branch 'default': Issue #20306: Android is the only system that returns NULL for the pw_passwd https://hg.python.org/cpython/rev/f0f519aca558 -- ___ Python tracker

[issue23275] Can assign [] = (), but not () = []

2016-04-26 Thread Martin Panter
Martin Panter added the comment: Okay I’ll let Berker update his patch, but I’m happy to try my hand at updating the documentation if needed. I reviewed the current patch. I can’t say whether the ast.c change is good or not. But IMO the test would be better off in somewhere like

[issue16662] load_tests not invoked in package/__init__.py

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: > ImportError: No module named 'pytest' It looks like you must install pytest dependency. If you consider that it's really a bug in Python, please open an issue: this issue is now closed. -- ___ Python tracker

[issue25823] Speed-up oparg decoding on little-endian machines

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: I dislike the usage of union to use fetch 16-bit but only in little endian. I would prefer to modify the PyCodeObject to ensure that co_code is aligned to 16-bit and use an uint16_t* pointer in ceval.c. It would be simpler no? In the worst case, we should

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that deprecates empty non-str and non-decodable arguments for urlparse, urlsplit, urlunparse, urlunsplit, urldefrag, and parse_qsl. -- Added file: http://bugs.python.org/file42600/urlparse_empty_bad_arg_deprecation.patch

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-04-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue26249] Change PyMem_Malloc to use pymalloc allocator

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: > 68b2a43d8653 introduced memory leak. I was very surprised to see a regression in test_format since I didn't change any change related to bytes, bytearray or str formatting in this issue. In fact, it's much better than that! With PyMem_Malloc() using

[issue26850] PyMem_RawMalloc(): update also sys.getallocatedblocks() in debug mode

2016-04-26 Thread STINNER Victor
New submission from STINNER Victor: I modified PyMem_Malloc() to use the pymalloc allocator in the issue #26249. This change helped to find a memory leak in test_format that I introduced in Python 3.6: http://bugs.python.org/issue26249#msg264174 This memory leak gave me an idea:

[issue26839] python always calls getrandom() at start, causing long hang after boot

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #25420 which is similar but specific to "import random". -- ___ Python tracker ___

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: The issue is more general than just "import random", Python reads entropy at startup to initialize a random seed for its randomized hash function: see the issue #26839. -- ___ Python tracker

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2016-04-26 Thread jan matejek
jan matejek added the comment: unlike #26839, however, there is no workaround for "import random". so i maintain that this issue is in fact very specific to the random module -- ___ Python tracker

[issue26723] Add an option to skip _decimal module

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: After #26846 _decimal builds on Android. -- resolution: rejected -> fixed superseder: -> Workaround for non-standard stdlib.h on Android ___ Python tracker

[issue26249] Change PyMem_Malloc to use pymalloc allocator

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: There are no more know bugs related to this change, I close the issue. Thanks for the test_format report Serhiy, I missed it. -- status: open -> closed ___ Python tracker

[issue20598] argparse docs: '7'.split() is confusing magic

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44f888e47ab0 by Martin Panter in branch '2.7': Issue #20598: Replace trivial split() calls with lists in argparse docs https://hg.python.org/cpython/rev/44f888e47ab0 New changeset 49561532504c by Martin Panter in branch '3.5': Issue #20598: Replace

[issue26849] android does not support versioning in SONAME

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: When python is cross-compiled for android with --enable-shared, the following error occurs: # python -c "import socket" Fatal Python error: PyThreadState_Get: no current thread This also occurs when importing subprocess, asyncore or asyncio but not when

[issue20306] Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: Okay, for the record: I think that returning "None" would probably be more correct than the empty string, but I don't think users actually care to the point that they will introduce a case split in their applications. Realistically, probably no one cares about

[issue25349] Use _PyBytesWriter for bytes%args

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 090502a0c69c by Victor Stinner in branch 'default': Issue #25349, #26249: Fix memleak in formatfloat() https://hg.python.org/cpython/rev/090502a0c69c -- ___ Python tracker

[issue26249] Change PyMem_Malloc to use pymalloc allocator

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 090502a0c69c by Victor Stinner in branch 'default': Issue #25349, #26249: Fix memleak in formatfloat() https://hg.python.org/cpython/rev/090502a0c69c -- ___ Python tracker

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2016-04-26 Thread Martin Panter
Martin Panter added the comment: Thanks Pau, for some reason I didn’t pick up the dylib OS X problem last time I looked at that link. This is a quick summary of the library names searched on different platforms: Windows: {name} and {name}.dll, via %PATH% OS X: lib{name}.dylib, {name}.dylib

[issue26039] More flexibility in zipfile write interface

2016-04-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: zipfile-open-w8 removes the concurrent read-write check for non-seekable files. As Martin points out, reading currently requires seeking, and a streaming read API would look very different from the current API. -- Added file:

[issue25823] Speed-up oparg decoding on little-endian machines

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: "I there are no objections I'm inclined to push the patch in hope that this will make the Wordcode patch (issue26647) simpler and more efficient (yes, this will add more work for Demur for synchronization)." I would prefer to be kind with Demur and wait until

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: @Serhiy and Yury: I'm waiting for your review on this change. I would like to push the wordcode change, I propose to push it sunday. Tell me if you need more time to review it. -- ___ Python tracker

[issue19317] ctypes.util.find_library should examine binary's RPATH on Solaris

2016-04-26 Thread Richard PALO
Richard PALO added the comment: There *is* a feature with linking called $ORIGIN. -- ___ Python tracker ___

[issue26859] unittest fails with "Start directory is not importable"

2016-04-26 Thread Martin Panter
Martin Panter added the comment: Is this the same bug as Issue 26481? I.e. is it the unittest dicovery mode that is affected? Maybe close the other bug as a duplicate, since Xavier has provided a patch here. -- components: +Tests nosy: +martin.panter stage: -> patch review

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-04-26 Thread Luiz Poleto
Luiz Poleto added the comment: I am seeing some results when running urlparse with patch urlparse_empty_bad_arg_deprecation2.patch applied: >>> urllib.parse.urlparse({}) __main__:1: DeprecationWarning: Use of {} is deprecated __main__:1: DeprecationWarning: Use of '' is deprecated

[issue25788] fileinput.hook_encoded has no way to pass arguments to codecs

2016-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forget. Needed updates of the documentation (including the "versionchanged" directive). And would be nice if you add corresponding entities in Doc/whatsnew/3.6.rst, Misc/NEWS and Misc/ACKS. The rest of the patch LGTM. --

[issue26868] Incorrect check for return value of PyModule_AddObject in _csv.c

2016-04-26 Thread Berker Peksag
New submission from Berker Peksag: This is probably harmless, but Modules/_csv.c has the following code: Py_INCREF(_Type); if (PyModule_AddObject(module, "Dialect", (PyObject *)_Type)) return NULL; However, PyModule_AddObject returns only -1 and 0. It also doesn't decref

[issue26672] regrtest missing in the module name

2016-04-26 Thread Berker Peksag
Berker Peksag added the comment: Good catch, thanks for the report! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: enhancement -> behavior ___ Python tracker

[issue26672] regrtest missing in the module name

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ef61a4747eb by Berker Peksag in branch '2.7': Issue #26672: Fix regrtest example in test.rst https://hg.python.org/cpython/rev/2ef61a4747eb -- nosy: +python-dev ___ Python tracker

[issue26864] urllib.request no_proxy check differs from curl

2016-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: I write a patch to fix this. It seems on Windows and MacOS the behaviour is right. On MacOS it leaves the matching to fnmatch. On Windows it uses case insensitive regular matching. -- keywords: +patch Added file:

[issue26864] urllib.request no_proxy check differs from curl

2016-04-26 Thread Martin Panter
Martin Panter added the comment: I think this patch looks okay. It fixes the case insensitivity problem, but there is also the string suffix problem (see the myexample.com demo). I think it is reasonable for example.com to match my.example.com, but not myexample.com. -- stage: ->

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-04-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: xiang.zhang priority: normal severity: normal status: open title: test_ssl test_options fails on ubuntu 16.04 ___ Python tracker

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-04-26 Thread Martin Panter
Martin Panter added the comment: Regarding urlparse(b'', ''). Currently the second parameter is “scheme”, which is documented as being an empty text string by default. If we deprecate this, we should update the documentation. -- ___ Python tracker

[issue26864] urllib.request no_proxy check differs from curl

2016-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: Yes, you are right. I don't notice that. I will try to fix it. -- ___ Python tracker ___

[issue25788] fileinput.hook_encoded has no way to pass arguments to codecs

2016-04-26 Thread Joseph Hackman
Joseph Hackman added the comment: Uploading a new patch to address the issues in previous patch. -- Added file: http://bugs.python.org/file42620/issue25788-2.patch ___ Python tracker

[issue26864] urllib.request no_proxy check differs from curl

2016-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: The code has changed recently. I update the patch to reveal the change. -- Added file: http://bugs.python.org/file42622/issue26864_v2.patch ___ Python tracker

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-04-26 Thread Luiz Poleto
Luiz Poleto added the comment: As for urlparse_empty_bad_arg_disallow.patch, I didn't go too deep into testing it but I found that calling urlparse with different non-str args are producing different results: urlparse({}) TypeError: unhashable type: 'slice' urlparse([]) AttributeError:

[issue26826] Expose new copy_file_range() syscal in os module and use it to improve shutils.copy()

2016-04-26 Thread Martin Panter
Martin Panter added the comment: Yes, the RST documentation has to be done by hand. It usually has more detail than the doc strings. I didn’t see any changes to the configure script in your patches. Did you make that change to define HAVE_COPY_FILE_RANGE yet? In /Modules/posixmodule.c (all

[issue24147] Dialect class defaults are not documented.

2016-04-26 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-04-26 Thread Xiang Zhang
New submission from Xiang Zhang: test_options in test_ssl fails on Ubuntu 16.04. I don't know this is due to the newest ubuntu or a recent code change. But I checkout revision 9 and then rebuild and test, test_option still fails. The traceback is: FAIL: test_options

[issue24933] socket.recv(size, MSG_TRUNC) returns more than size bytes

2016-04-26 Thread Martin Panter
Martin Panter added the comment: As far as I know, passing MSG_TRUNC into recv() is Linux-specific. I guess the “right” portable way to get a message size is to know it in advance, or guess and expand the buffer if MSG_PEEK cannot return the whole message. Andrey: I don’t think we are

[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-04-26 Thread Berker Peksag
Berker Peksag added the comment: Thanks for pinging, Daniel. I'm not a Windows user so I can't test the patch, but I left some review comments on Rietveld: http://bugs.python.org/review/26536/ -- components: +Extension Modules -IO, Windows nosy: +berker.peksag

[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-04-26 Thread Berker Peksag
Changes by Berker Peksag : -- components: +Windows ___ Python tracker ___ ___

[issue24933] socket.recv(size, MSG_TRUNC) returns more than size bytes

2016-04-26 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue25452] Add __bool__() method to subprocess.CompletedProcess

2016-04-26 Thread Berker Peksag
Berker Peksag added the comment: The idea sounds good to me. -- nosy: +berker.peksag stage: -> needs patch versions: +Python 3.6 -Python 3.5 ___ Python tracker

[issue26866] Inconsistent environment in Windows using "Open With"

2016-04-26 Thread Tom Middleton
Tom Middleton added the comment: That is interesting, in my use #3 seems to work. I am not certain if it matters whether the default application is already selected as python.exe or not. FWIW I'm on Windows 7 64 bit using 2.7.11 release install. **Full Disclosure** I did muck in the registry

[issue26839] python always calls getrandom() at start, causing long hang after boot

2016-04-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +lemburg, matejcik, mmarkk, rhettinger, thomas-petazzoni ___ Python tracker ___

[issue26850] PyMem_RawMalloc(): update also sys.getallocatedblocks() in debug mode

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: The expected side effect of this change is that hunting memory leaks in regrtest (python -m test) may get more noise. I ran the Python test suite using "./python -m test -R 3:3": test_nntplib, test_tools and test_unittest failed. Run alone, test_tools still

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is simpler patch that just disallows bad arguments without deprecation. -- Added file: http://bugs.python.org/file42602/urlparse_empty_bad_arg_disallow.patch ___ Python tracker

[issue26860] os.walk and os.fwalk yield namedtuple instead of tuple

2016-04-26 Thread Aviv Palivoda
New submission from Aviv Palivoda: I am suggesting that os.walk and os.fwalk will yield a namedtuple instead of the regular tuple they currently yield. The use case for this change can be seen in the next example: def walk_wrapper(walk_it): for dir_entry in walk_it: if dir_entry[0]

[issue26854] missing header on android for the ossaudiodev module

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: On linux /usr/include/sys/soundcard.h includes /usr/include/linux/soundcard.h while on android (also a linux) there is only /usr/include/linux/soundcard.h Patch attached. -- components: Cross-Build files: ossaudiodev.patch keywords: patch messages:

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Martin's comment. -- Added file: http://bugs.python.org/file42607/urlparse_empty_bad_arg_deprecation2.patch ___ Python tracker

[issue26856] android does not have pwd.getpwall()

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: User ids on android are the ids of the applications and they are used to enforce the applications access rights. See the 'User IDs and File Access' section at http://developer.android.com/guide/topics/security/permissions.html. Most integers are existing

[issue20598] argparse docs: '7'.split() is confusing magic

2016-04-26 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___

[issue26839] Python 3.5 running in a virtual machine with Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-04-26 Thread STINNER Victor
Changes by STINNER Victor : -- title: Python 3.5 running in a virtual machine with Linux kernel 3.17+ can block at startup or on importing the random module -> Python 3.5 running in a virtual machine with Linux kernel 3.17+ can block at startup or on

[issue26853] missing symbols in curses and readline modules on android

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: The android loader complains when shared libraries are not linked against their needed libraries (see also issue #21668). When ncurses is cross-compiled as a shared library, the curses and readline modules must be linked with libtinfow.so. The attached

[issue26857] gethostbyname_r() is broken on android

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: HAVE_GETHOSTBYNAME_R is defined on android API 21, but importing the _socket module fails with: ImportError: dlopen failed: cannot locate symbol "gethostbyaddr_r" referenced by "_socket.cpython-36m-i386-linux-gnu.so" Patch attached. The patch does not

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2016-04-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I still believe the underlying system API use should be fixed rather than all the different instances where it gets used. getrandom() should not block. If it does on a platform, that's a bug on that platform and Python should revert to the alternative of

[issue26839] python always calls getrandom() at start, causing long hang after boot

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: Wow, it's by design: " os.urandom(n) Return a string of n random bytes suitable for cryptographic use." ``man urandom'': "A read from the /dev/urandom device will not block waiting for more entropy. As a result, if there is not sufficient

[issue26852] add a COMPILEALL_FLAGS Makefile variable

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: Add a COMPILEALL_FLAGS Makefile variable to allow setting this flag to have legacy locations for byte-code files and save space on mobile devices. Patch attached. The '-E' python command line option added to $(PYTHON_FOR_BUILD) in the patch is fixing a

[issue20598] argparse docs: '7'.split() is confusing magic

2016-04-26 Thread Martin Panter
Martin Panter added the comment: I committed my simpler patch. I hope that is okay :) -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue26859] unittest fails with "Start directory is not importable"

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: unittest fails to load tests when the tests are in a package that has an __init__.pyc file and no __init__.py file. Patch attached. -- components: Library (Lib) files: unittest.patch keywords: patch messages: 264283 nosy: xdegaye priority: normal

[issue26862] SYS_getdents64 does not need to be defined on android API 21

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: Revert the changeset commited at issue #20307 as the compilation does not fail anymore on android API level 21. Patch attached. -- components: Cross-Build files: posixmodule.patch keywords: patch messages: 264287 nosy: Alex.Willmer, xdegaye

[issue26860] os.walk and os.fwalk yield namedtuple instead of tuple

2016-04-26 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue26860] os.walk and os.fwalk yield namedtuple instead of tuple

2016-04-26 Thread Ethan Furman
Ethan Furman added the comment: Quick review of patch looks good. I'll try to look it over more closely later. -- ___ Python tracker ___

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-04-26 Thread Anish Shah
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker ___ ___

[issue26847] filter docs unclear wording

2016-04-26 Thread Luke
Luke added the comment: For shame! ... I deserved that callout. :S My examples should have included the cast to bool, which is indeed not the same as the values' being "equal to False" in themselves... I didn't realize that "is false" was conventional shorthand for that cast and comparison.

[issue26858] setting SO_REUSEPORT fails on android

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: Android defines SO_REUSEPORT on android API 21 but setting this option in the asyncio tests raises OSError: [Errno 92] Protocol not available. The attached patch assumes there is a platform.android_ver() function to detect that this is the android platform.

[issue26839] Python 3.5 running in a virtual machine with Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: It is clear how /dev/urandom works. I just think that securing enough entropy on startup should be done by the init scripts (if systemd still allows that :) and not by an application. [Unless the application is gpg or similar.] --

[issue25823] Speed-up oparg decoding on little-endian machines

2016-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that implementing fast fetch 16-bit is simpler with wordcodes. -- dependencies: +ceval: use Wordcode, 16-bit bytecode ___ Python tracker

[issue26839] python always calls getrandom() at start, causing long hang after boot

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: Hmm. Why does os.urandom(), which should explicitly not block, use a blocking getrandom() function? This is quite unexpected on Linux. -- nosy: +skrah ___ Python tracker

[issue26839] python always calls getrandom() at start, causing long hang after boot

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: "Hmm. Why does os.urandom(), which should explicitly not block, use a blocking getrandom() function? This is quite unexpected on Linux." I modified os.getrandom() in the issue #22181 to use the new getrandom() syscall of Linux 3.17. The syscall blocks until

[issue26839] Python 3.5 running in a virtual machine blocks at startup or on importing the random module

2016-04-26 Thread STINNER Victor
Changes by STINNER Victor : -- title: python always calls getrandom() at start, causing long hang after boot -> Python 3.5 running in a virtual machine blocks at startup or on importing the random module ___ Python tracker

[issue26855] add platform.android_ver() for android

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: The attached patch misses a test case. Also how can we be sure that the '/system/build.prop' file may be guaranteed to exist on all android devices ? It is difficult to get a reliable information on the android infrastructure when the information does not

[issue26861] shutil.copyfile() doesn't close the opened files

2016-04-26 Thread Vukasin Felbab
New submission from Vukasin Felbab: shutil.copyfile() doesn't close the opened files, so it is vulnerable to IO Error 24: too many files open actually, the src and dst files should be closed after copy -- components: IO messages: 264286 nosy: vocdetnojz priority: normal severity:

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: > so i maintain that this issue is in fact very specific to the random module I think that you misunderstood the issue. I'm now closing it as a duplicate of the issue #26839. -- Marc-Andre Lemburg: Please continue the discussion on the issue #26839. I

[issue26839] python always calls getrandom() at start, causing long hang after boot

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: The issue #25420 has been closed as a duplicate of this issue. Copy of the latest message: msg264262 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2016-04-26 12:05 I still believe the underlying system API use should be

[issue26851] android compilation and link flags

2016-04-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: The attached patch: * Sets the recommended android compilation flags, see: http://developer.android.com/ndk/guides/standalone_toolchain.html#abi. Note that the android toolchains already set the -fpic flag, as shown with: arm-linux-androideabi-gcc

[issue26839] Python 3.5 running in a virtual machine with Linux kernel 3.17+ can block at startup or on importing the random module

2016-04-26 Thread STINNER Victor
Changes by STINNER Victor : -- title: Python 3.5 running in a virtual machine blocks at startup or on importing the random module -> Python 3.5 running in a virtual machine with Linux kernel 3.17+ can block at startup or on importing the random module

[issue20598] argparse docs: '7'.split() is confusing magic

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: Thanks. The doc looks better like that. -- ___ Python tracker ___ ___

[issue26862] SYS_getdents64 does not need to be defined on android API 21

2016-04-26 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue26863] android lacks some declarations for the posix module

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: Thanks again! -- assignee: -> skrah nosy: +skrah resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue26839] Python 3.5 running in a virtual machine with Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-04-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: As mentioned on the other issue #25420, this is a regression and a change in documented behavior of os.urandom(), which is expected to be non-blocking, regardless of whether entropy is available or not. The fix should be easy (from reading the man page

[issue26826] Expose new copy_file_range() syscal in os module and use it to improve shutils.copy()

2016-04-26 Thread Marcos Dione
Changes by Marcos Dione : Removed file: http://bugs.python.org/file42616/copy_file_range.diff ___ Python tracker ___

[issue26826] Expose new copy_file_range() syscal in os module and use it to improve shutils.copy()

2016-04-26 Thread Marcos Dione
Marcos Dione added the comment: Version without the NEWS and ACKS change. -- Added file: http://bugs.python.org/file42617/copy_file_range.diff ___ Python tracker

[issue26839] Python 3.5 running in a virtual machine with Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-04-26 Thread STINNER Victor
STINNER Victor added the comment: Since many years, Linux systems store entropy on disk to quickly feed the entropy pool at startup. It doesn't create magically entropy on VM where you start with zero entropy at the first boot. -- ___ Python tracker

[issue26846] Workaround for non-standard stdlib.h on Android

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 287996ff241f by Stefan Krah in branch 'default': Issue #26846: Post commit cleanup. https://hg.python.org/cpython/rev/287996ff241f -- ___ Python tracker

[issue26861] shutil.copyfile() doesn't close the opened files

2016-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you provide an example? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue26857] gethostbyname_r() is broken on android

2016-04-26 Thread Stefan Krah
Stefan Krah added the comment: Thanks, fixed. -- assignee: -> skrah nosy: +skrah resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue26864] urllib.request no_proxy check differs from curl

2016-04-26 Thread Daniel Morrison
New submission from Daniel Morrison: The no_proxy environment variable works in python as a case sensitive suffix check. Curl handles this variable as a case insensitive hostname check. Case sensitivity appears to be in conflict with the DNS Case Insensitivity RFC

[issue26863] android lacks some declarations for the posix module

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4c6dab59cd8 by Stefan Krah in branch 'default': Issue #26863: HAVE_FACCESSAT should (currently) not be defined on Android. https://hg.python.org/cpython/rev/f4c6dab59cd8 -- nosy: +python-dev ___ Python

  1   2   >