[issue31969] re.groups() is not checking the arguments

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, it should not throw error that there is no any optional match. It is not easy to check if there is optional match. For example, the pattern '(a)|(b)' contains optional matches, while the group in the pattern '()?' always

[issue31811] async and await missing from keyword list in lexical analysis doc

2017-11-08 Thread Tom Floyer
Change by Tom Floyer : -- pull_requests: -4095 ___ Python tracker ___ ___

[issue24132] Direct sub-classing of pathlib.Path

2017-11-08 Thread Paul Moore
Paul Moore added the comment: @elguavas the problem is, no-one has proposed a patch. There's not likely to be much movement on this until someone provides one. -- ___ Python tracker

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2017-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is done. Thank you Sanyam! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2017-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 7973e279a21999f134aff92dd6d344ec4591fae9 by Antoine Pitrou (Sanyam Khurana) in branch 'master': bpo-21862: Add -m option to cProfile for profiling modules (#4297)

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2017-11-08 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4289 stage: -> patch review ___ Python tracker ___

[issue31338] Use abort() for code we never expect to hit

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8bf288e2c5330148e4bd07d9c2f1ccd05ced5a86 by Serhiy Storchaka (Petr Viktorin) in branch 'master': Docs: Mention that Py_UNREACHABLE was added in 3.7 (#4337)

[issue31978] make it simpler to round fractions

2017-11-08 Thread Wolfgang Maier
New submission from Wolfgang Maier : Hi, because of floating point inaccuracies it is suboptimal to use round(int1/int2) for rounding of a fraction. fractions.Fraction, OTOH, offers exact rounding through its implementation of __round__, but using it

[issue31978] make it simpler to round fractions

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also _divide_and_round() in Lib/datetime.py, _div_nearest() in Lib/_pydecimal.py and _PyLong_DivmodNear() in Objects/longobject.c. -- nosy: +belopolsky, facundobatista, rhettinger, serhiy.storchaka, skrah, stutzbach

[issue31338] Use abort() for code we never expect to hit

2017-11-08 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +4291 ___ Python tracker ___ ___

[issue31338] Use abort() for code we never expect to hit

2017-11-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4293 ___ Python tracker ___ ___

[issue31970] asyncio debug mode is very slow

2017-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sorry. It looks like I completely misunderstood. =) -- ___ Python tracker ___

[issue31970] asyncio debug mode is very slow

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: > The problem is the Protocol API imposes copies by default (...) IMHO performance is a good motivation to enhance the asyncio API ;-) The tricky part is to keep the backward compatibility. --

[issue31853] Use super().method instead of socket.method in SSLSocket

2017-11-08 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +earonesty ___ Python tracker ___ ___

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2017-11-08 Thread Germano
Germano added the comment: Hi, I hit this problem wile mocking one static method and found this fix. Tested it and works for me. However, I did not find it pushed anywhere: no Python 3.x and no mock for 2.7. Is there any reason why it is not pushed anywhere, yet?

[issue31970] asyncio debug mode is very slow

2017-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I've a few ideas how to add 0-copy support to protocols. I'd be interesting to hear about them. The main challenge IMHO is to find a way to allow a readinto()-like functionality. -- ___ Python

[issue31971] idle_test: failures on x86 Windows7 3.x

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: > I am completely puzzled at the sudden failure on one machine. The "x86 Windows7 3.x" buildbot worker is very slow. So this bug is probably a race condition which is hard to trigger on a fast machine. --

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset cd66d6d632b4a8190e97f265ee163f11b5ae38e6 by Victor Stinner (Oren Milman) in branch '2.7': bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (GH-4333)

[issue31910] test_socket.test_create_connection() failed with EADDRNOTAVAIL (err 99)

2017-11-08 Thread Berker Peksag
Berker Peksag added the comment: I don't see this failure on Travis for a while now. Can this issue be closed? -- nosy: +berker.peksag type: -> behavior ___ Python tracker

[issue31980] Special case log(x, 2), log(x, 10) and pow(2, x)

2017-11-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : C99 provides functions log2(), log10() and exp2(). Is it worth to special case math.log(), math.pow() and built-in pow() for using these functions? log2(x) can be more accurate than log(x)/log(2). There are math.log2() and

[issue31981] os.mkdirs does not exist on 2.7.5+

2017-11-08 Thread Mikey D
New submission from Mikey D : https://docs.python.org/2/library/os.html os.mkdirs('/tmp/folder') AttributeError: 'module' object has no attribute 'mkdirs'' os.makedirs('/tmp/folder') os.path.isdir('/tmp/folder') True -- assignee: docs@python components:

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-08 Thread R. David Murray
R. David Murray added the comment: >From the linked email: > That way ad hoc scripts and the REPL will get warnings by default, > while zipapps and packages can avoid warnings by keeping their > __main__.py simple, and importing a CLI helper function from another >

[issue31978] make it simpler to round fractions

2017-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: > There is one slight additional tweak in the patch: in the case of ndigits < > 0, it returns an int, not a Fraction (see test_fractions modification to make > it pass). This would be a backwards incompatible change, potentially breaking

[issue31970] asyncio debug mode is very slow

2017-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: >> I've a few ideas how to add 0-copy support to protocols. > I'd be interesting to hear about them. The main challenge IMHO is to find a > way to allow a readinto()-like functionality. Exposing sendfile() should be straightforward. I

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: Thank you for the backport Oren, I already merged it into Python 2.7. Thanks Oren Milman for your bug report *and* for your bug fix! > I opened #4333 for 2.7, but it is quite straightforward.. Am i missing > something? Sorry, I

[issue24132] Direct sub-classing of pathlib.Path

2017-11-08 Thread Christophe BAL
Christophe BAL added the comment: Mistyping : /search for class PPath/ with two P. Le 08/11/2017 à 13:59, Christophe BAL a écrit : > Christophe BAL added the comment: > > For the moment, you can take a look at this little script that acheives >

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-08 Thread Oren Milman
Oren Milman added the comment: I opened #4333 for 2.7, but it is quite straightforward.. Am i missing something? -- ___ Python tracker

[issue31981] os.mkdirs does not exist on 2.7.5+

2017-11-08 Thread Mikey D
Mikey D added the comment: Forgot to add, python 2.7.5 python-2.7.5-48.el7.x86_64 (RHEL 7.3) On Wed, Nov 8, 2017 at 7:59 AM, Mikey D wrote: > > New submission from Mikey D : > > https://docs.python.org/2/library/os.html > >

[issue31981] os.mkdirs does not exist on 2.7.5+

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, os.mkdirs does not exist. What is your issue Mikey? -- nosy: +serhiy.storchaka ___ Python tracker

[issue31981] os.mkdirs does not exist on 2.7.5+

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No problem. ;) -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue31970] asyncio debug mode is very slow

2017-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 08/11/2017 à 14:40, Giampaolo Rodola' a écrit : > Exposing sendfile() should be straightforward. sendfile() is not useful for data that's read from (or written to) memory. > As for a readinto()-like functionality: the only thing I'm aware

[issue31910] test_socket.test_create_connection() failed with EADDRNOTAVAIL (err 99)

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: > I don't see this failure on Travis for a while now. Can this issue be closed? Since the failure occurred randomly, we cannot make sure that the bug is really fixed. Usually in this case, I close the issue, but reopen it if the bug

[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

2017-11-08 Thread Sanyam Khurana
Sanyam Khurana added the comment: Thanks a lot Antoine and Nick :) -- ___ Python tracker ___

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : This issue is inspired by the tweet https://twitter.com/dabeaz/status/925787482515533830 >>> a = 'n' >>> b = 'ñ' >>> sys.getsizeof(a) 50 >>> sys.getsizeof(b) 74 >>> float(b) Traceback (most recent

[issue24132] Direct sub-classing of pathlib.Path

2017-11-08 Thread Christophe BAL
Christophe BAL added the comment: For the moment, you can take a look at this little script that acheives subclassing of Path : https://github.com/bc-python/mistool/blob/master/mistool/os_use.py (search for class Path). Le 08/11/2017 à 09:55, Paul Moore a écrit : > Paul

[issue7938] makesetup interprets macros -DA=B as a Make variable definition

2017-11-08 Thread Michael Evans
Change by Michael Evans : -- pull_requests: +4292 stage: -> patch review ___ Python tracker ___

[issue31970] asyncio debug mode is very slow

2017-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: In any case, I think this is better discussed on async-sig (where I already started a discussion thread some weeks ago -- see """APIs for high-bandwidth large I/O?"""). -- ___ Python tracker

[issue31970] asyncio debug mode is very slow

2017-11-08 Thread Yury Selivanov
Yury Selivanov added the comment: > IMHO performance is a good motivation to enhance the asyncio API ;-) The > tricky part is to keep the backward compatibility. Let's stop the discussion in this ticket :) -- ___ Python

[issue28997] test_readline.test_nonascii fails on Android

2017-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: PEP 538 is implemented now in the master branch. Closing this issue as out of date for the following reasons: a) PR 4334 adds locale coercion for Android to the implementation of PEP 538 (and test_nonascii succeeds with this PR). b) With

[issue31980] Special case log(x, 2), log(x, 10) and pow(2, x)

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is also a GNU extension pow10(). -- ___ Python tracker ___

[issue31896] In function define class inherit ctypes.structure, and using ctypes.pointer leak memory

2017-11-08 Thread Berker Peksag
Berker Peksag added the comment: I agree with Terry. Your code calls hi() in an infinite loop (why timespec is defined in hi()?), we don't know how clock_gettime(3) is implemented etc. (it should cleanup its own memory if it calls malloc()) etc. Please use python-list

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: > I also tested the 2.7 and 3.6 PRs before submitting them. Oh, I don't trust anyone, including myself :-) Since there is no automated, I chose to ("double") test manually your PRs. --

[issue31879] Launcher fails on custom command starting with "python"

2017-11-08 Thread Paul Moore
Paul Moore added the comment: Personally I don't see the value (in general, I don't see much use for the whole custom command idea - making the launcher into a generalised shebang processor was never really a core feature). But I'm not going to say no if others find it

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4294 ___ Python tracker ___ ___

[issue31955] distutils C compiler: set_executables() incorrectly parse values with spaces

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 849482955f70eb1adc47a20dcbce3b4add47d864 by Victor Stinner (Mazay0) in branch '2.7': bpo-31955: Fix distutils CCompiler.set_executable() for Unicode (GH-4316)

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 0c4785bf39b4e86dea3a70b651e5d5db2f2cf017 by xdegaye in branch '3.6': [3.6] bpo-31934: Abort when building out of a not clean source tree (GH-4255). (#4340)

[issue31904] Python should support VxWorks RTOS

2017-11-08 Thread Brian Kuhl
Brian Kuhl added the comment: I'm quite happy to take on maintainer role for Python on VxWorks, so I think we can get that one solved. Enabling a build bot for cross compile of propitiatory OS presents a number of legal licensing issues that outside my control. And

[issue31978] make it simpler to round fractions

2017-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: On the main proposal: rounding an integer division to the nearest integer does seem to be a somewhat common need, and one that's not entirely trivial to code up and get right first time. (Unlike floor or ceiling of a quotient, which can

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2017-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: PR 4334 added: fix the implementation of PEP 538 on Android. The current implementation of PEP 538 fixes issue 28997 without the locale coercion for Android added by PR 4334, see msg305848. --

[issue21790] Change blocksize in http.client to the value of resource.getpagesize

2017-11-08 Thread Berker Peksag
Change by Berker Peksag : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31983] Officially add Py_SETREF and Py_XSETREF

2017-11-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31904] Python should support VxWorks RTOS

2017-11-08 Thread R. David Murray
R. David Murray added the comment: I'm not sure what licensing issues you are talking about, but setting up a buildbot shouldn't normally run into any. As long as you have a license to the run the OS, the fact that you are using it to receive jobs from our build

[issue31338] Use abort() for code we never expect to hit

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 54cc0c0789af8ff2396cb19095b7ab269f2bc06c by Victor Stinner in branch 'master': bpo-31338: C API intro: add missing versionadded (#4339) https://github.com/python/cpython/commit/54cc0c0789af8ff2396cb19095b7ab269f2bc06c

[issue31978] make it simpler to round fractions

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I thought about adding a public function in the math module when worked on one of that functions. But there are not many cases for it in the stdlib (datetime, fractions, decimal, and maybe it's all). I don't know whether there

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 0de92859caf25e65fc968d4bb68626e9ba21b851 by xdegaye in branch 'master': bpo-31934: Abort when building out of a not clean source tree (GH-4255) https://github.com/python/cpython/commit/0de92859caf25e65fc968d4bb68626e9ba21b851

[issue31896] In function define class inherit ctypes.structure, and using ctypes.pointer leak memory

2017-11-08 Thread Berker Peksag
Berker Peksag added the comment: See also issue 12998. -- ___ Python tracker ___

[issue26179] Python C-API "unused-parameter" warnings

2017-11-08 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +4297 ___ Python tracker ___ ___

[issue29179] Py_UNUSED is not documented

2017-11-08 Thread Petr Viktorin
Petr Viktorin added the comment: Since the macro has a public name and is used in the wild outside CPython, I'll go ahead and submit a pull request documenting it. -- ___ Python tracker

[issue19976] Argument Clinic: generate second arg for METH_NOARGS

2017-11-08 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +4296 ___ Python tracker ___ ___

[issue29179] Py_UNUSED is not documented

2017-11-08 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +4295 stage: -> patch review ___ Python tracker ___

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4298 ___ Python tracker ___ ___

[issue26179] Python C-API "unused-parameter" warnings

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2138163621196a186975796afb2b0a6aa335231d by Victor Stinner (Petr Viktorin) in branch 'master': bpo-29179: Document the Py_UNUSED macro (#4341)

[issue29179] Py_UNUSED is not documented

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2138163621196a186975796afb2b0a6aa335231d by Victor Stinner (Petr Viktorin) in branch 'master': bpo-29179: Document the Py_UNUSED macro (#4341)

[issue31978] make it simpler to round fractions

2017-11-08 Thread Wolfgang Maier
Wolfgang Maier added the comment: ok, I agree with you that the returned type should not change with the value of an argument. I simply didn't think one vs two argument versions here, but in terms of three different code branches where one returns int

[issue31884] [Windows] subprocess set priority on windows

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset b5d9e0811463f3b28ba355a9e0bee7f1682854e3 by Victor Stinner (James) in branch 'master': bpo-31884 subprocess: add Windows constants for process priority (#4150)

[issue31955] distutils C compiler: set_executables() incorrectly parse values with spaces

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: Thank you Dee Mee for your bug report and your bug fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31901] atexit callbacks only called for current subinterpreter

2017-11-08 Thread Petr Viktorin
Petr Viktorin added the comment: When you destroy a subinterpreter before Py_Finalize is called, Python can't start calling its atexit callbacks – they no longer have a subinterpreter to run in. Therefore I think callbacks for a particular subinterpreter should be called

[issue31879] Launcher fails on custom command starting with "python"

2017-11-08 Thread Robert
Robert added the comment: I am still waiting for a OK (or denial) of my proposed Modification. I want to avoid that I start coding and when I am finished the PSF denies my PullRequest. Is anybody out there who can decide this or at least lead a discussion? --

[issue29179] Py_UNUSED is not documented

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: Thank you Petr for your PR! I merged it. -- ___ Python tracker ___

[issue29179] Py_UNUSED is not documented

2017-11-08 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue19976] Argument Clinic: generate second arg for METH_NOARGS

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2138163621196a186975796afb2b0a6aa335231d by Victor Stinner (Petr Viktorin) in branch 'master': bpo-29179: Document the Py_UNUSED macro (#4341)

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Oh I understand, there is no practical way to test that feature except manually. -- ___ Python tracker

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: I also tested the 2.7 and 3.6 PRs before submitting them. Thanks for testing and for your reviews Victor :-) -- ___ Python tracker

[issue31982] 8.3. collections — Container datatypes

2017-11-08 Thread Sasha Kacanski
New submission from Sasha Kacanski : Hi, In ChainMap example c = ChainMap()# Create root context d = c.new_child() # Create nested child context e = c.new_child() # Child of c, independent from d e.maps[0] # Current context dictionary -- like

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset fbdd3eeba3e526e162f2eb54d224cf36ed8cfea1 by xdegaye in branch '2.7': [2.7] bpo-31934: Abort when building out of a not clean source tree (GH-4255). (#4342)

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: alignment.patch: +long double dummy; /* force worst-case alignment */ Would it be possible to use max_align_t mentioned by Stefan, at least when this type is available? What is the impact of the patch on objects size?

[issue31884] [Windows] subprocess set priority on windows

2017-11-08 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue14119] Ability to adjust queue size in Executors

2017-11-08 Thread Michael Hrivnak
Michael Hrivnak added the comment: My project also has a use case for this, very similar to the others described. Here's what we want: with ThreadPoolExecutor(queue_size=500) as executor: for item in parse_a_long_list_of_work(somefile.xml):

[issue31934] Failure to build out of source from a not clean source

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: I tested manually the commit 0c4785bf39b4e86dea3a70b651e5d5db2f2cf017 merged into Python 3.6: it works as expected ;-) -- ___ Python tracker

[issue11253] Document ctypes.wintypes constants

2017-11-08 Thread Berker Peksag
Change by Berker Peksag : -- stage: -> needs patch title: autodocument first appearance of ctypes.wintypes constants -> Document ctypes.wintypes constants type: -> enhancement versions: +Python 3.6, Python 3.7 -Python 3.3

[issue31824] Missing default argument detail in documentation of StreamReaderWriter

2017-11-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the PR, Pablo. I think we can make the same change to StreamRecoder documentation too: https://docs.python.org/3/library/codecs.html#codecs.StreamRecoder -- nosy: +pablogsal ___

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the best way to silence logging in subprocesses? -- nosy: +vinay.sajip ___ Python tracker

[issue31983] Officially add Py_SETREF and Py_XSETREF

2017-11-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Private macros Py_SETREF and Py_XSETREF were introduced in 3.6 and backported to all maintained versions for fixing bugs (see issue20440 and issue26200). They are helpful and used not only for the primary purpose, but also for

[issue31811] async and await missing from keyword list in lexical analysis doc

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: The final commit uses the wrong bpo number: New changeset bf9d317626eebcf79bd0756b4dd43df82d5cc186 by Yury Selivanov (Tom Floyer) in branch 'master': bpo-31810: added missing keywords to docs. (#4140)

[issue31810] Travis CI, buildbots: run "make smelly" to check if CPython leaks symbols

2017-11-08 Thread Tom Floyer
Change by Tom Floyer : -- pull_requests: +4300 ___ Python tracker ___ ___

[issue31810] Travis CI, buildbots: run "make smelly" to check if CPython leaks symbols

2017-11-08 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset bf9d317626eebcf79bd0756b4dd43df82d5cc186 by Yury Selivanov (Tom Floyer) in branch 'master': bpo-31810: added missing keywords to docs. (#4140)

[issue31811] async and await missing from keyword list in lexical analysis doc

2017-11-08 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31969] re.groups() is not checking the arguments

2017-11-08 Thread Matthew Barnett
Matthew Barnett added the comment: @Narendra: The argument, if provided, is merely a default. Checking whether it _could_ be used would not be straightforward, and raising an exception if it would never be used would have little, if any, benefit. It's not a bug,

[issue31978] make it simpler to round fractions

2017-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: > I don't know whether there is a common enough need in third-party code. Me neither. But one thing to look for would be people doing `round(a / b)`, which is almost certainly giving the wrong result in corner cases. OTOH, even those uses

[issue31879] Launcher fails on custom command starting with "python"

2017-11-08 Thread Robert
Robert added the comment: Of course I do not know the initial ideas/philosophy of the launcher. But the current implementation supports these custom commands (for whatever reason). Thus I'd say they should work "properly". My view of "properly" is that the implementation

[issue31810] Travis CI, buildbots: run "make smelly" to check if CPython leaks symbols

2017-11-08 Thread Tom Floyer
Change by Tom Floyer : -- pull_requests: +4299 ___ Python tracker ___ ___

[issue31984] startswith and endswith leak implementation details

2017-11-08 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue31984] startswith and endswith leak implementation details

2017-11-08 Thread Ronan Lamy
New submission from Ronan Lamy : One would think that u.startswith(v, start, end) would be equivalent to u[start: end].startswith(v), but one would be wrong. And the same goes for endswith(). Here is the actual spec (for bytes, but str and bytearray are the same), in the

[issue31810] Travis CI, buildbots: run "make smelly" to check if CPython leaks symbols

2017-11-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -4299 ___ Python tracker ___ ___

[issue31969] re.groups() is not checking the arguments

2017-11-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug ___ Python tracker ___

[issue31984] startswith and endswith leak implementation details

2017-11-08 Thread Ronan Lamy
Ronan Lamy added the comment: The problem is the complexity of the actual behaviour of these methods. It is impossible to get it right without looking at the source (at least, it was for me), and I doubt any ordinary user can correctly make use of the v='' behaviour,

[issue31984] startswith and endswith leak implementation details

2017-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue24284. `s1.startswith(s2, start, end)` for non-negative indices and non-tuple s2 is equivalent to expressions start + len(s2) <= end and s2[start: start + len(s2)] == s2 or s1.find(s2, start, end) == start

[issue31984] startswith and endswith leak implementation details

2017-11-08 Thread R. David Murray
R. David Murray added the comment: Can you please give examples of what you think the problem is? -- nosy: +r.david.murray ___ Python tracker

[issue31983] Officially add Py_SETREF and Py_XSETREF

2017-11-08 Thread Stefan Krah
Stefan Krah added the comment: Just adding +1. -- nosy: +skrah ___ Python tracker ___

  1   2   >