[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-12 Thread Stefan Behnel
Stefan Behnel added the comment: I do not see this as a matter of performance but as a matter of usability. Basically, CPython could do just fine with just a single catch-all calling convention that packs all pos/kw arguments into C arguments and passes them over, leaving it entirely to the ca

[issue30617] IDLE: Add docstrings and unittests to outwin.py

2017-06-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks! I've added more unittests. They are passing, but I'm getting a callback error that I don't understand. The same _utest flag that's on the textview dialog didn't seem to work and I was just blindly trying things without success. Also, the window is

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: > Also with that, many implementors will not want to care about keyword > arguments and would thus appreciate it if they didn't have to. Forcing them > to test for keyword arguments and raising the correct error for it (with the > correct and consistent messag

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread R. David Murray
R. David Murray added the comment: What is your proposed solution? This doesn't at the moment sound like a bug in Python to me. -- nosy: +r.david.murray ___ Python tracker ___

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Stefan Krah
Stefan Krah added the comment: To expand on what Mark said: If the proposed format code implicitly gives these results ... >>> format(12 % 2**8, '08b') '1100' >>> format(-12 % 2**8, '08b') '0100' ..., would students not expect that these two operations have the same result? >>> 0b111

[issue30640] NULL + 1 in _PyFunction_FastCallDict()

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I mean the "k + 1" with k=NULL. Even if _PyEval_EvalCodeWithName() ignores that value, this still is an undefined behavior. For example the compiler can decide that since NULL+1 is not valid, then k never is NULL, and ignore the branch that sets k to NU

[issue30638] Additional dependencies and rule for `make regen-all`

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I don't think that we want `make regen-all` to require internet access. Agree. I mentioned it only because these files also are generated. -- ___ Python tracker __

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: Not exactly a bug, but I think that an improvement is possible. My plan is to delay computing the repr until the error is formatted, so that code which catches the TypeError can carry on safely. I think this is more relevant for inspect than for many other mod

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- pull_requests: +2186 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22559] [backport] ssl.MemoryBIO

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2187 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-06-12 Thread Christian Heimes
Christian Heimes added the comment: Also needs backport to 2.7 for #22559 -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-b

[issue22559] [backport] ssl.MemoryBIO

2017-06-12 Thread Christian Heimes
Christian Heimes added the comment: You have to include the changes from #29334, too. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue22559] [backport] ssl.MemoryBIO

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: I converted issue22559.diff to a pull request. I only had one conflict! --- Lib/ssl.py +++ Lib/ssl.py @@ -727,11 +857,7 @@ class SSLSocket(socket): if not self._sslobj: raise ValueError("Read on closed or unwrapped SSL socket.") tr

[issue22559] [backport] ssl.MemoryBIO

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: Christian Heimes: "You have to include the changes from #29334, too." Right now, we are only allow to squash a patch serie into an unique patch. I would prefer to keep the fix of bpo-29334 as a separated commit, so merge it after MemoryBIO is merged. The chang

[issue22559] [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- title: [backport] ssl.MemoryBIO -> [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546 ___ Python tracker ___ ___

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-12 Thread Antoine Pietri
Changes by Antoine Pietri : -- pull_requests: +2188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-12 Thread Ned Deily
Ned Deily added the comment: New changeset 8399a177de8bfa860a66e96665488c17199cb9d2 by Ned Deily (Antoine Pietri) in branch '3.6': [3.6] bpo-30177: add NEWS entry (#2134) https://github.com/python/cpython/commit/8399a177de8bfa860a66e96665488c17199cb9d2 --

[issue22559] [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546

2017-06-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-12 Thread Antoine Pietri
Changes by Antoine Pietri : -- pull_requests: +2189 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-06-12 Thread Ned Deily
Ned Deily added the comment: New changeset a77a35d70ba8aed047e63d4d9f7d0554e98d4c4b by Ned Deily (Antoine Pietri) in branch 'master': bpo-30177: add NEWS entry (#2135) https://github.com/python/cpython/commit/a77a35d70ba8aed047e63d4d9f7d0554e98d4c4b -- ___

[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've decided it's better to raise a ValueError if the child process hasn't stopped yet. After all, join() alone may have no effect: often you want to send the process a signal (a literal signal in UNIX terms, or a figurative signal such as write something on

[issue22559] [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546

2017-06-12 Thread Christian Heimes
Christian Heimes added the comment: Sounds good to me! I'll take care of the other patch after you have committed your PR. -- ___ Python tracker ___

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2190 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2191 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +2192 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: The format code space is already crowded, and it isn't immediately obvious that '08B' will format the 2's complement representation of the number, as opposed to '08b' which prepends a sign bit. Not to mention that, as Raymond remarked, we cannot use the same

[issue30632] IDLE: add unittest to test_autocomplete

2017-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue, and in part the patch, appears to be a duplicate of #30348. What am I missing? An issue can have multiple PRs, and one can either replace another one that is closed or augment one that must be applied first. -- __

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think in that case it is enough to report just type name. -- nosy: +serhiy.storchaka type: behavior -> enhancement versions: +Python 3.7 ___ Python tracker

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: Sure, I can do that if you want. The other thing I thought of was using object.__repr__, so the repr always shows like . -- ___ Python tracker ___

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The address of the object is not informative. The possibility of getting a source file is determined by the type of the object. -- ___ Python tracker ___

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Max Staff
New submission from Max Staff: There are different ways to catch exceptions of the type "OSError": By using "except OSError as e:" and then checking the errno or by using "except FileNotFoundError e:" or "except FileExistsError e:" or whatever error one wants to catch. There's no such way for

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
Thomas Kluyver added the comment: OK, I've updated the PR to do that. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue30630] Missing MSI files

2017-06-12 Thread Steve Dower
Steve Dower added the comment: Try installing https://go.microsoft.com/fwlink/?LinkId=746572 separately. This should add the required files, and because it's the "official" installer will provide more details about the underlying error (if any). You may also need to reboot your machine. This i

[issue9566] Compilation warnings under x64 Windows

2017-06-12 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: -2171 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30593] sqlite3 executescript does not respect isolation_level?

2017-06-12 Thread Noah Levitt
Noah Levitt added the comment: Here's a test case -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread R. David Murray
R. David Murray added the comment: There appears to be an errno for file name too long, so I presume you are making a feature request for a new exception class. I believe Antoine tried to strike a balance between the utility of the sub-exceptions and their number, so you'll have to make an ar

[issue30593] sqlite3 executescript does not respect isolation_level?

2017-06-12 Thread Noah Levitt
Noah Levitt added the comment: And here's a fix. Unfortunately I think the change could break people's scripts. If they have isolation_level set (not None) and use executescript(), they will have to issue an explicit call to connection.commit(). executescript() could do the commit itself expl

[issue30593] sqlite3 executescript does not respect isolation_level?

2017-06-12 Thread Noah Levitt
Changes by Noah Levitt : Added file: http://bugs.python.org/file46943/issue30593-test.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset f59cac4b6458e5c47e24a39ba46fb178c3766577 by Mariatta (Marco Buttu) in branch '3.6': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2136) https://github.com/python/cpython/commit/f59cac4b6458e5c47e24a39ba46fb178c3766577

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset bbb335891c2967bd13fbe2da775c0348260d95cb by Mariatta (Marco Buttu) in branch '2.7': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2137) https://github.com/python/cpython/commit/bbb335891c2967bd13fbe2da775c0348260d95cb

<    1   2