[issue27128] Add _PyObject_FastCall()

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2af917bde71 by Victor Stinner in branch 'default': PyFile_WriteObject() now uses fast call https://hg.python.org/cpython/rev/c2af917bde71 New changeset 0da1ce362d15 by Victor Stinner in branch 'default': import_name() now uses fast call https://hg.

[issue27808] os.waitpid does not return (0, 0) when child has not exited (FreeBSD)

2016-08-19 Thread Casey Lucas
New submission from Casey Lucas: I'm not sure if this a Python issue or a FreeBSD issue but the return value from os.waitpid is not reliably (0,0) on FreeBSD when the WNOHANG is used and the child process has not yet exited. Python docs say that the return value will be (0,0) but this is not

[issue12713] argparse: allow abbreviation of sub commands by users

2016-08-19 Thread paul j3
paul j3 added the comment: I haven't read the discussion in full, but it looks like this patch was added without any recent discussion or testing. Previously if we had `choices=['a','abc']`, any exact match would be accepted, and partial matches rejected. With this change the only choice that

[issue27805] In Python 3, open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2016-08-19 Thread Martin Panter
Martin Panter added the comment: The origin of this seems to be r68835 and Issue 5008. Victor mentioned imitating the Gnu C library. Maybe there is a better way that also supports non-seekable files better, perhaps handle ESPIPE without failing. This also affects Python 2, if you consider io.o

[issue27809] _PyObject_FastCall(): add support for keyword arguments

2016-08-19 Thread STINNER Victor
New submission from STINNER Victor: _PyObject_FastCall() (added in the issue #27128) already supports keyword arguments for C functions, but not Python functions. Attached patch adds support for keyword arguments in _PyFunction_FastCall(), to allow to use _PyObject_FastCall() in more cases. E

[issue27805] In Python 3, open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: Syscalls made by open("/dev/stdout", "a") in Python 2: open("/dev/stdout", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3 lseek(3, 0, SEEK_END) = -1 ESPIPE (Illegal seek) fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 I used th

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-08-19 Thread STINNER Victor
New submission from STINNER Victor: The issue #27128 added _PyObject_FastCall() to avoid the creation of temporary tuples when calling functions. I propose to add a new METH_FASTCALL calling convention. The example using METH_VARARGS | METH_KEYWORDS: PyObject* func(DirEntry *self, PyObject

[issue27805] In Python 3, open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: > Users of Supervisor have been depending on that for a long time. Hum, the workaround is very simple no? Just open /dev/stdout with mode "w", no? -- ___ Python tracker _

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-08-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-08-19 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +_PyObject_FastCall(): add support for keyword arguments ___ Python tracker ___ ___ Pytho

[issue27366] PEP487: Simpler customization of class creation

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 545bfa4c20eb by Victor Stinner in branch 'default': Issue #27366: Fix init_subclass() https://hg.python.org/cpython/rev/545bfa4c20eb -- ___ Python tracker

[issue27128] Add _PyObject_FastCall()

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: I created two new issues: * issue #27809: _PyObject_FastCall(): add support for keyword arguments * issue #27810: Add METH_FASTCALL: new calling convention for C functions -- ___ Python tracker

[issue25746] test_unittest failure in leaks searching mode

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: While checking that I didn't introduce a reference leak recently with my changes around _PyObject_FastCall(), I found the same issue: test_unittest doesn't work with regrtest -R. I get the same error: $ ./python -m test -R 0:1 -v test_unittest ===

[issue26823] Shrink recursive tracebacks

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7f3678f9509 by Victor Stinner in branch 'default': Fix reference leak in tb_printinternal() https://hg.python.org/cpython/rev/a7f3678f9509 -- ___ Python tracker _

[issue27800] Regular expressions with multiple repeat codes

2016-08-19 Thread Martin Panter
Martin Panter added the comment: Okay so it sounds like my usage is valid if I add the brackets. I will try to come up with a documentation patch as some stage. The reason why it is not supported without brackets is to maintain a bit of consistency with the question mark (?), which modifies th

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: Any update on this issue? test_srcdir() of test_sysconfig still fails on "x86 Gentoo Installed with X 3.x" buildbot. I opened the issue #27798 which was closed a duplicate of this issue. First failure of the buildbot: http://buildbot.python.org/all/builders/

[issue22021] shutil.make_archive() root_dir do not work

2016-08-19 Thread bananaapple
bananaapple added the comment: I am sorry. I understand now. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26689] Add `has_flag` method to `distutils.CCompiler`

2016-08-19 Thread Ned Deily
Ned Deily added the comment: https://mail.python.org/pipermail/distutils-sig/2016-August/029469.html -- ___ Python tracker ___ ___ Pyt

[issue12713] argparse: allow abbreviation of sub commands by users

2016-08-19 Thread Ned Deily
Changes by Ned Deily : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-19 Thread Matthias Klose
Matthias Klose added the comment: please could somebody test the attached patch (I'm also trying to setup a gentoo env)? The idea is to keep the multiarch and triplet macros in sync. diff -r a7f3678f9509 configure.ac --- a/configure.ac Sat Aug 20 03:05:13 2016 +0200 +++ b/configure.ac

[issue27713] Spurious "platform dependent libraries" warnings when running make

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 97b996d81c62 by Ned Deily in branch '3.5': Issue #27713: Surpress spurious build warnings when updating importlib's https://hg.python.org/cpython/rev/97b996d81c62 New changeset 751ca458d669 by Ned Deily in branch 'default': Issue #27713: merge from

[issue27713] Spurious "platform dependent libraries" warnings when running make

2016-08-19 Thread Ned Deily
Ned Deily added the comment: That was easy; thanks, Xiang Zhang! Pushed for release in 3.5.3 and 3.6.0. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-19 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I've just tried doko's patch on Arch Linux. Before this patch there are three test failures in test_distutils and test_sysconfig, just like Gentoo. After the patch, all tests in test_distutils and test_sysconfig pass. On my PC both `gcc -print-multiarch` and `g

[issue27283] Add a "What's New" entry for PEP 519

2016-08-19 Thread Berker Peksag
Berker Peksag added the comment: pep_519_whatsnew.diff looks pretty good to me, thanks! It would be nice to add a simple example to demonstrate the feature (like we did for PEP 498: https://docs.python.org/3.6/whatsnew/3.6.html#pep-498-formatted-string-literals) >>> import pathlib >>> with ope

[issue11602] python-config code should be in sysconfig

2016-08-19 Thread Caleb Hattingh
Changes by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue12982] Document that importing .pyo files needs python -O

2016-08-19 Thread Caleb Hattingh
Caleb Hattingh added the comment: Presumably PEP488 (and the 4 years of inactivity) means that this issue could be closed? -- nosy: +cjrh ___ Python tracker ___

[issue12294] multiprocessing.Pool: Need a way to find out if work are finished.

2016-08-19 Thread Caleb Hattingh
Changes by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

<    1   2