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

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: I ran benchmarks on tp_fastcall.patch. Hum, it seems like there is a performance issue somewhere :-( Almost all benchmarks are much slower with the patch. haypo@speed-python$ python3 -m perf compare_to 2017-01-11_00-07-default-b9404639a18c.json

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: Hum, it was long time ago since I worked on Windows. Well, Python has a "mbcs" codec which uses the ANSI code page which exists like "forever". These libraries should be patched to use "mbcs" instead of sys.getfilesystemencoding(). --

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-13 Thread JGoutin
JGoutin added the comment: Yes, I reported this encoding issue to some of them. But, there is still some problems : - Some libraries are not updated frequently (Or not still maintained), and still use fsencode. - Tests and CI don't see this problem if they don't have a test case for filename

[issue29265] test suite is attempting to spawn 258 child processes to run tests

2017-01-13 Thread Brian Vandenberg
Brian Vandenberg added the comment: This is odd. I just went back and re-ran 3.5.1 to see how many cores and it's having the same problem now. So, scratch that last coment. -- ___ Python tracker

[issue29268] test_spwd fails on solaris using NIS users

2017-01-13 Thread Brian Vandenberg
New submission from Brian Vandenberg: On all our solaris 10 machines when I run a simple test program it never reports a failure when calling getspnam: #include #include int main( int, char** ) { spwd *asdf = getspnam( "some_user" ); if( NULL == sdf ) { perror(

[issue29261] Missing venv/scripts/common after "make install"

2017-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 077681e35577 by Vinay Sajip in branch '3.5': Fixes #29261: added venv/scripts/common to LIBSUBDIRS. https://hg.python.org/cpython/rev/077681e35577 New changeset f20b2073dd4a by Vinay Sajip in branch '3.6': Fixes #29261: merged fix from 3.5.

[issue29266] test_create_connection_service_name fails if "http" isn't listed in /etc/services

2017-01-13 Thread R. David Murray
Changes by R. David Murray : -- components: +asyncio nosy: +gvanrossum, yselivanov ___ Python tracker ___

[issue29266] test_create_connection_service_name fails if "http" isn't listed in /etc/services

2017-01-13 Thread R. David Murray
R. David Murray added the comment: It looks like that test already does so (it expects an OSError when passed the service name 'nonsense'). -- nosy: +r.david.murray ___ Python tracker

[issue16189] config/ld_so_aix not found: old dir name

2017-01-13 Thread Martin Panter
Changes by Martin Panter : -- title: ld_so_aix not found -> config/ld_so_aix not found: old dir name ___ Python tracker ___

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

2017-01-13 Thread Dave Jones
New submission from Dave Jones: While investigating a bug report in one of my libraries (https://github.com/waveform80/picamera/issues/355) I've come across a behaviour that appears in Python 3.6 but not prior versions. Specifically, calling super() in a sub-class of a ctypes scalar type

[issue29269] test_socket failing in solaris

2017-01-13 Thread Brian Vandenberg
New submission from Brian Vandenberg: I started looking into this failure to see if I could figure out why but it looks like I'd have to spend more time than I have available to figure out the cause. Environment/setup: * air-gapped network (no internet access) * sparc / Solaris 10 * Built

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-13 Thread Martin Panter
Martin Panter added the comment: So are you saying you tried patching Python 2 and/or 3, but did not see any relevant change at all? -- ___ Python tracker

[issue25825] AIX shared library extension modules installation broken: wrong dir names

2017-01-13 Thread Martin Panter
Changes by Martin Panter : -- title: AIX shared library extension modules installation broken -> AIX shared library extension modules installation broken: wrong dir names ___ Python tracker

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: Patch uploaded herewith. -- assignee: -> vinay.sajip stage: -> patch review Added file: http://bugs.python.org/file46283/issue-24875-01.diff ___ Python tracker

[issue29265] os.cpu_count is problematic on sparc/solaris

2017-01-13 Thread R. David Murray
R. David Murray added the comment: You don't know it, but you are actually reporting a possible sparc/Solaris specific (I think) bug against os.cpu_count. There was some discussion about how cpu_count might be problematic in this regard. It doesn't cause any real problem with the tests,

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Yury Selivanov
New submission from Yury Selivanov: Quoting Alberto Berdi from python-tulip mailing list: working with the Python 3.6 asyncio implemented in C, i've got what is for me a strange behavior of the asyncio.Task.current task function. Executing the following test: import asyncio async def

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-13 Thread JGoutin
JGoutin added the comment: Personally, I call "sys._enablelegacywindowsfsencoding()" for only one reason : Temporary fixing issues with some third party libraries which use C code for files I/O (With filename as "mbcs" encoded bytes internally). Theses libraries generally call

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

2017-01-13 Thread Brian Vandenberg
New submission from Brian Vandenberg: When building pythong 3.6.0 on solaris 10/sparc I'm seeing the following error: Modules/_ctypes/libffi/src/sparc/ffi.c:440:8: error: 'asm' undeclared (first use in this function) (...) If I force it to use -std=gnu99 then it seems to compile fine.

[issue29265] test suite is attempting to spawn 258 child processes to run tests

2017-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo ___ Python tracker ___ ___

[issue28911] Clarify the behaviour of assert_called_once_with

2017-01-13 Thread Lisa Roach
Lisa Roach added the comment: It took me a little while to wrap my brain around this, but you are definitely right that the documentation is not sufficient, your changes are an improvement. My wonder is, should we change the documentation or be looking at the code itself? I have always

[issue29261] Missing venv/scripts/common after "make install"

2017-01-13 Thread Zachary Ware
Zachary Ware added the comment: LGTM. -- assignee: -> vinay.sajip nosy: +vinay.sajip, zach.ware stage: -> commit review ___ Python tracker ___

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

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: > Strange, I'm unable to reproduce the result on a different computer: > > haypo@smithers$ ./python -m perf compare_to ref.json tp_fastcall.json -v > Median +- std dev: [ref] 20.0 ms +- 0.5 ms -> [tp_fastcall] 20.0 ms +- > 0.6 ms: 1.00x slower (+0%) > Not

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-01-13 Thread Segev Finer
Segev Finer added the comment: I have read some of https://github.com/rprichard/win32-console-docs and it documents quite a bunch of nastiness with PROC_THREAD_ATTRIBUTE_HANDLE_LIST in Windows Vista/7. Windows is so much fun sometimes :P Essentially console handles in Windows before Windows 8

[issue29267] Cannot override some flags in CFLAGS from the command-line

2017-01-13 Thread Brian Vandenberg
New submission from Brian Vandenberg: Due to issue 29264 I was attempting to override the build default "-std=c99" with: /path/to/configure (...) CFLAGS=-std=gnu99 ... however, the configure script is written like this: CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" This causes it to

[issue29265] test suite is attempting to spawn 258 child processes to run tests

2017-01-13 Thread Brian Vandenberg
New submission from Brian Vandenberg: I'm attempting to build python 3.6.0 on sparc/solaris 10. After the initial configure/compile complete I ran "make test" and I see: $ make test running build running build_ext (...) running build_scripts copying and adjusting (...) changing mode of (...)

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-13 Thread Thomas Nyberg
Thomas Nyberg added the comment: Hi Vinay, You should probably upload a patch with the changes you made (however trivial) if you want that version considered. Makes it easier to comment and can then point to it for others to consider. Cheers, Thomas --

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: > Temporary fixing issues with some third party libraries which use C code for > files I/O (With filename as "mbcs" encoded bytes internally). > > Theses libraries generally call > "filename.encode(sys.getfilesystemencoding())" or "os.fsencode(filename)" >

[issue29197] Remove os.path.splitunc()

2017-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2be38927ea61 by Serhiy Storchaka in branch 'default': Issue #29197: Removed deprecated function ntpath.splitunc(). https://hg.python.org/cpython/rev/2be38927ea61 -- nosy: +python-dev ___ Python tracker

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

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: Strange, I'm unable to reproduce the result on a different computer: haypo@smithers$ ./python -m perf compare_to ref.json tp_fastcall.json -v Median +- std dev: [ref] 20.0 ms +- 0.5 ms -> [tp_fastcall] 20.0 ms +- 0.6 ms: 1.00x slower (+0%) Not significant!

[issue29197] Remove os.path.splitunc()

2017-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29266] test_create_connection_service_name fails if "http" isn't listed in /etc/services

2017-01-13 Thread Brian Vandenberg
New submission from Brian Vandenberg: One of our solaris machines doesn't have an entry in /etc/services for "http". This is causing test_create_connection_service_name to fail. In my case I can just ignore that particular failure, but as a fix you might consider overtly getting valid

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

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: Ok, I pushed a new commit "Add Py_TPFLAGS_HAVE_FASTCALL flag" in my Git branch. (By the way, I'm using the Git branch as a working copy, it can change anytime to get a nice list of commits. If you want reliable changes, use patches attached to this issue.)

[issue29265] test suite is attempting to spawn 258 child processes to run tests

2017-01-13 Thread Brian Vandenberg
Brian Vandenberg added the comment: I forgot to mention, this wasn't an issue in 3.5.1 though I never did check how many jobs it was using. I ran into other issues building that version and moved to a newer version because at least one of them (logging test race condition) was fixed after

[issue29197] Remove os.path.splitunc()

2017-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

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

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: > Slower (63): > - unpickle_pure_python: 671 us +- 16 us -> 952 us +- 9 us: 1.42x slower (+42%) > ... This benchmark was run with LTO+PGO. It seems like PGO produced less efficient machine code with the patch. Maybe a missed optimization. Oh, I just realized

[issue29265] os.cpu_count is problematic on sparc/solaris

2017-01-13 Thread Brian Vandenberg
Brian Vandenberg added the comment: > It doesn't cause any real problem with the tests, though. I routinely run > with -j40 on my 2 cpu test box because the test run completes faster that way > due to the way many tests spend time waiting for various things. In my case it did because it

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

2017-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ncoghlan, serhiy.storchaka versions: +Python 3.7 ___ Python tracker ___

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Lele Gaifax
Changes by Lele Gaifax : -- nosy: +lelit ___ Python tracker ___ ___ Python-bugs-list

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-13 Thread Michael Felt
Michael Felt added the comment: I did not go through a whole build process. Changing: if _PYTHON_BUILD: vars['BLDSHARED'] = vars['LDSHARED'] to if _PYTHON_BUILD: vars['LDSHARED'] = vars['BLDSHARED'] is not going to help if both variables are wrong in

[issue29272] test_logging hangs if /etc/hosts only aliases "localhost" to ::1

2017-01-13 Thread Brian Vandenberg
New submission from Brian Vandenberg: On some of the linux boxes on our (air-gapped, if that matters) network it looks like some of them were mis-configured and their /etc/hosts file looks something like this: $ cat /etc/hosts 127.0.0.1 snoopy.the.internal.domain snoopy localhost4

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Yury Selivanov
Changes by Yury Selivanov : -- keywords: +patch nosy: +inada.naoki Added file: http://bugs.python.org/file46284/task.patch ___ Python tracker

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Alberto Berti
Changes by Alberto Berti : -- nosy: +azazel ___ Python tracker ___ ___

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Lele Gaifax
Lele Gaifax added the comment: FWIW, the problem afflicts other functions, for example the following script exhibits a similar difference: import asyncio async def coro(): print(asyncio.Task.all_tasks()) print(asyncio.Task.all_tasks(None)) loop = asyncio.get_event_loop()

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Lele Gaifax
Lele Gaifax added the comment: Yay, Yury is too fast!! :-) -- ___ Python tracker ___ ___ Python-bugs-list

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

2017-01-13 Thread Eryk Sun
Eryk Sun added the comment: In 3.6, type_new in Objects/typeobject.c sets the __classcell__ in the dict if it's a cell object. It happens that CreateSwappedType in Modules/_ctypes/_ctypes.c re-uses the dict to create the swapped type (e.g. big endian), which in turn updates the __classcell__.

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

2017-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyArg_UnpackStack() is declared as in the limited API since 3.3. If you want to add PyArg_UnpackStack() to the limited API, define it as added in 3.7. For compatibility with extensions built with older Pythons you should define new type flag and read

[issue29260] Use designated initializers to define PyTypeObject types

2017-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is nothing about this in PEP 7, but I think it would be better to use common subset of C and C++. This would allow to migrate to the subset of C++ in future. It is sad that PEP 7 allows C99 features not compatible with C++. --

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread INADA Naoki
INADA Naoki added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-01-13 Thread INADA Naoki
INADA Naoki added the comment: 1. _PyCFunction_FastCallKeywords() calls _PyStack_AsDict(), then calls _PyCFunction_FastCallDict(). 2. _PyCFunction_FastCallDict() calls _Py_FastCall_FromArgs() when METH_FASTCALL. 3. _Py_FastCall_FromArgs() calls _PyStack_UnpackDict(), then calls fastcall(). Can

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

2017-01-13 Thread Martin Panter
New submission from Martin Panter: The “unittest” documentation has “tests cases” written a few times. This doesn’t seem right to me, but I thought I should get a second opinion in case I missed something. -- assignee: docs@python components: Documentation files: tests-cases.patch

[issue26296] colorys rgb_to_hls algorithm error

2017-01-13 Thread Bryan B
Bryan B added the comment: Adding myself to this since I'm going to fix another hiccup in this file and I might as well clean this up too. -- nosy: +aarqon ___ Python tracker

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

2017-01-13 Thread Eryk Sun
Eryk Sun added the comment: Here's a patch that deletes __classcell__ from the dict before calling type_new. -- keywords: +patch Added file: http://bugs.python.org/file46285/issue_29270_01.patch ___ Python tracker

[issue23407] os.walk always follows Windows junctions

2017-01-13 Thread Craig Holmquist
Craig Holmquist added the comment: FWIW, the only name-surrogate tags in the user-mode SDK headers (specifically winnt.h) are IO_REPARSE_TAG_MOUNT_POINT and IO_REPARSE_TAG_SYMLINK, as of at least the Windows 8.1 SDK. -- ___ Python tracker

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

2017-01-13 Thread Larry Hastings
Larry Hastings added the comment: Hoping to tag in less than 48 hours...! -- ___ Python tracker ___ ___

[issue29263] Implement LOAD_METHOD/CALL_METHOD for C functions

2017-01-13 Thread INADA Naoki
INADA Naoki added the comment: This is proof of concept patch to support LOAD_METHOD & CALL_METHOD for METH_FASTCALL methods. (This patch should be applied after fastcall.patch) $ ./python -m perf timeit --compare-to `pwd`/python-fastcall -s "d = b''" -- "d.decode()" python-fastcall:

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

2017-01-13 Thread Larry Hastings
Larry Hastings added the comment: Could one of you recent tagees (Terry, Zach) review the patch? Hoping to tag 3.5.3 final in less than 48 hours, and I want to cherry-pick the fix for this...! -- ___ Python tracker

[issue26296] colorsys rgb_to_hls algorithm error

2017-01-13 Thread Bryan B
Bryan B added the comment: Well, the other issue was resolved by updating Python on my computer to 3.6 ;) Setting up the entire Python build and test environment for an issue this small seems a little excessive, especially for a module that seems seldomly used. I'm gonna have to be that guy

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

2017-01-13 Thread Eryk Sun
Changes by Eryk Sun : -- stage: -> patch review ___ Python tracker ___ ___

[issue29263] Implement LOAD_METHOD/CALL_METHOD for C functions

2017-01-13 Thread INADA Naoki
INADA Naoki added the comment: Maybe, we should do * Make clinic use more METH_FASTCALL * Use clinic more in builtin methods before trying this optimization. -- ___ Python tracker

[issue1621] Do not assume signed integer overflow behavior

2017-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd2c7d497878 by Martin Panter in branch '3.5': Issues #1621, #29145: Test for str.join() overflow https://hg.python.org/cpython/rev/dd2c7d497878 New changeset eb6eafafdb44 by Martin Panter in branch 'default': Issue #1621: Overflow should not be

[issue29062] hashlib documentation link error

2017-01-13 Thread Martin Panter
Martin Panter added the comment: Looks like Doc/tools/susp-ignored.csv needs updating: $ make -C Doc/ suspicious [. . .] writing output... [ 49%] library/hashlib WARNING: [library/hashlib:502] ":vatrogasac" found in ">>> cookie = b'user:vatrogasac'"

[issue29145] failing overflow checks in replace_*

2017-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd2c7d497878 by Martin Panter in branch '3.5': Issues #1621, #29145: Test for str.join() overflow https://hg.python.org/cpython/rev/dd2c7d497878 New changeset 0c6ea411af17 by Martin Panter in branch 'default': Issue #29145: Merge test from 3.6

[issue22980] C extension naming doesn't take bitness into account

2017-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 80fc40a9ae47 by Martin Panter in branch '3.5': Issue #22980: Skip a sysconfig test if _ctypes is not available. https://hg.python.org/cpython/rev/80fc40a9ae47 -- ___ Python tracker

[issue29273] test___all__ alters utf8 locale setting

2017-01-13 Thread Martin Panter
New submission from Martin Panter: On a Linux computer I have LANG=en_US.utf8 set. Python 3 initializes the locale with this setting (see revision 43e32b2b4004): >>> locale.setlocale(locale.LC_CTYPE) # Get setting initialized by Python 'en_US.utf8' In Lib/test/test___all__.py, there is a

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

2017-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: * If a type only defines tp_fastcall: tp_fastcall is always use (tp_call uses the wrapper) Is tp_call set to the wrapper rather then inheriting? What if tp_call is defined in a superclass? > * If a type defines tp_call and tp_fastcall, PyObject_Call() uses

[issue29260] Use designated initializers to define PyTypeObject types

2017-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The widespread use of PyType_FromSpec() will supersede this issue. But there is a caveat (issue26979). -- nosy: +serhiy.storchaka ___ Python tracker

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: I see why I couldn't reproduce the problem - there's no pip installed in the site-packages of the Pythons I was testing with, so the problem didn't show up. Mark, can you apply the version of EnvBuilder.create that I posted in a message above and see if that

[issue29260] Use designated initializers to define PyTypeObject types

2017-01-13 Thread STINNER Victor
New submission from STINNER Victor: Currently, PyTypeObject fields are set in order in the C code. Typical example: PyTypeObject PyMethod_Type = { PyVarObject_HEAD_INIT(_Type, 0) "method", sizeof(PyMethodObject), 0, (destructor)method_dealloc, /* tp_dealloc

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-13 Thread Steve Dower
Steve Dower added the comment: Windows doesn't use the fs encoding at all until Python code requests/provides something in bytes. Except for the caching in fsencode/fsdecode, there's no problem setting it once at the start of your program (and it can only be set once - there's no parameter

[issue29062] hashlib documentation link error

2017-01-13 Thread Christian Heimes
Christian Heimes added the comment: Go ahead if it makes your work easier. I kept the file separate because the blake2 documentation is maintained externally. It's not going to change any time soon, though. Let's merge it. -- ___ Python tracker

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-13 Thread Xiang Zhang
Xiang Zhang added the comment: > I think the old code unlikely will be broken if preserve an exception type > and don't change conditions for raising an error. Currently there could be no error when the object gets a timezone. The timezone is simply discarded and only when microseconds comes

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-13 Thread Xiang Zhang
Xiang Zhang added the comment: timestamptz-2.patch make timestamp and timestamptz specilized for their own objects. -- Added file: http://bugs.python.org/file46277/timestamptz-2.patch ___ Python tracker

[issue29258] __init__.py required for pkgutil.walk_packages in python3

2017-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +brett.cannon, eric.snow, ncoghlan versions: -Python 3.3, Python 3.4 ___ Python tracker

[issue22343] Install bash activate script on Windows when using venv

2017-01-13 Thread Evan
Evan added the comment: Works for me on the master branch. Thanks, Vinay. -- ___ Python tracker ___ ___

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2017-01-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 13.01.2017 04:47, Nick Coghlan wrote: > Accepting "UTF-8" and interpreting it as functionally equivalent to C.UTF-8 > will mean that this setting will at least work as desired on servers that > offer C.UTF-8. I don't think that's within the scope of

[issue2771] Test issue

2017-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: test pr status -- pull_requests: +16 ___ Python tracker ___ ___

[issue22343] Install bash activate script on Windows when using venv

2017-01-13 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: Just a sanity check ... I can't reproduce the issue with the latest versions of Python (I haven't made any changes to the venv code): On Python 3.5: vinay@ubuntu:~/projects/python/3.5$ ./python Python 3.5.3rc1+ (3.5:d9a64d00a439, Jan 13 2017, 10:26:23) [GCC

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

2017-01-13 Thread Armin Rigo
Armin Rigo added the comment: Managed to write a patch in PyPy that seems to pass all tests including the new one, including on Windows. I know think that dd13098a5dc2 should be backed out (i.e. 030e100f048a should be kept). Reference to the PyPy changes:

[issue29210] Remove the support of the exclude argument in tarfile.TarFile.add()

2017-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e23948f2df2 by Serhiy Storchaka in branch 'default': Issue #29210: Removed support of deprecated argument "exclude" in https://hg.python.org/cpython/rev/4e23948f2df2 -- nosy: +python-dev ___ Python

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Adding Victor, who implemented the fs codec. AFAIK, it's not possible to change the encoding after interpreter initialization, since it will have been already used for many different things by the time you get to executing code. -- nosy: +haypo,

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

2017-01-13 Thread Armin Rigo
Armin Rigo added the comment: Gian-Carlo is right: I can modify the 2.6 tests in the same way as I described, and then I get the same error with python2.6. So it seems that all of 2.6 was prone to the same issue, and it was never found, but went away in 2.7 accidentally. That seems to mean

[issue29210] Remove the support of the exclude argument in tarfile.TarFile.add()

2017-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think ProgrammingError is not correct type of an exception. It is used for programming errors such as using uninitialized or closed objects or supplying incorrect number of bindings. But this error can be caused by invalid data in a database created not

[issue29062] hashlib documentation link error

2017-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 799ed3122456 by INADA Naoki in branch '3.6': Issue #29062: Merge hashlib-blake2.rst into hashlib.rst https://hg.python.org/cpython/rev/799ed3122456 New changeset 380e63b7fc82 by INADA Naoki in branch 'default': Issue #29062: Merge

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

2017-01-13 Thread Armin Rigo
Armin Rigo added the comment: ...hah, of course the commit dd13098a5dc2 also reverted away the new test. That test fails. Sorry about that, and feel free to redo that commit. It's just one more case in which the implicit refcounting is used, but I guess as it fixes a real issue it's a good

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: I've added a patch, can you confirm if it resolves the issue? -- assignee: -> vinay.sajip keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file46278/issue-29213-01.diff ___ Python tracker

[issue29210] Remove the support of the exclude argument in tarfile.TarFile.add()

2017-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Perhaps even TypeError should be converted to ValueError. But this is different issue of course. -- ___ Python tracker

[issue29062] hashlib documentation link error

2017-01-13 Thread INADA Naoki
INADA Naoki added the comment: Thanks. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-13 Thread Xiang Zhang
Xiang Zhang added the comment: I am okay with ValueError(actually I use it in the patch originally) but I am not in favour of catching the errors of the parser. The parser raises errors due to invalid data, not timezone. I think propagate it to users could make the reason more obvious.

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-13 Thread Xiang Zhang
Xiang Zhang added the comment: timestamptz-3.patch uses ValueError instead of ProgrammingError and treat suffix Z as UTC timezone. -- Added file: http://bugs.python.org/file46279/timestamptz-3.patch ___ Python tracker

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

2017-01-13 Thread STINNER Victor
New submission from STINNER Victor: A new FASTCALL calling convention was added to Python 3.6. It allows to avoid the creation of a temporary tuple to pass positional arguments and a temporary dictionary to pass keyword arguments. A new METH_FASTCALL calling convention was added for C

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

2017-01-13 Thread Michael Felt
Michael Felt added the comment: I would like to say: a) I am happy this is being considered for Python3-3.7 b) I still believe it is a "bug" plain and simple - it (find_library()) cannot work in "normal" situations. Why "IBM" or others never addressed this is beyond me - but - imho - that is

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-13 Thread Mark Haase
Mark Haase added the comment: Hey Thomas and Vinay, thanks for looking into this. Although I discovered this problem on my MacOS laptop 6 months ago, today I also reproduced this issue on my Ubuntu desktop. ``` /home/mhaase/Downloads $ mkdir temp /home/mhaase/Downloads $ cd temp

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

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: Naoki wants to use FASTCALL for CALL_METHOD: http://bugs.python.org/issue26110#msg283093 tp_fastcall should allow to easily implement it. -- ___ Python tracker

[issue26858] android: setting SO_REUSEPORT fails

2017-01-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: The changes made in issue #28174 fix the problem for the Android x86 platform and for the armv7 platform at Android API level 24, but the problem is still there on the armv7 platform at Android API level 21.

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: My experience with changing the Python "filesystem encoding" (sys.getfilesystemencoding()) at runtime: it doesn't work. The filesystem encoding must be set as soon as possible and must never change later. As soon as possible: before the first call to

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

2017-01-13 Thread STINNER Victor
STINNER Victor added the comment: I started to work on FASTCALL, because I dislike the "cached tuple" hack used in some performance critical code, and the hack causes various kinds of tricky but severe issues (can lead to segfault). Thanks to tp_fastcall, it becomes possible to drop the

  1   2   >