[issue32027] argparse allow_abbrev option also controls short flag combinations

2017-11-16 Thread Berker Peksag
Berker Peksag added the comment: Thank you for the report and for the PR. I think this is a duplicate of issue 26967. > This issue is either a doc issue only or an unintended combination of > long option shortening and (the way more common) flag combinations. This is indeed a bug so it would

[issue32045] Does json.dumps have a memory leak?

2017-11-16 Thread Rohan D'Sa
New submission from Rohan D'Sa : import gc, json class leak(object): def __init__(self): pass gc.set_debug(gc.DEBUG_LEAK) while True: leak_ = leak() json.dumps(leak_.__dict__, indent=True) gc.collect() print(f"garbage count: {len(gc.garbage)}") Using the following c

[issue31808] tarfile.extractall fails to overwrite symlinks

2017-11-16 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +4364 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue31808] tarfile.extractall fails to overwrite symlinks

2017-11-16 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue32045] Does json.dumps have a memory leak?

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: indent=True just makes json to use Python implementation instead of C implementation. Python implementation uses closures which reference one other. Simple example not involving json is: import gc def f(): def g(): return h def h():

[issue32046] 2to3 fix for operator.isCallable()

2017-11-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently 2to3 converts `operator.isCallable(obj)` to `hasattr(obj, '__call__')`. This looks cumbersome, and can be deceived by instance attribute __call__. The more correct way is to use `isinstance(obj, collections.abc.Callable)`. Starting from Python 3

[issue32044] pip3 install 3.6.3 crashes on startup; 3.5.4 works; on OS X 10.13.1

2017-11-16 Thread Berker Peksag
Berker Peksag added the comment: 1) Don't reopen a closed issue. 2) Please use python-list or StackOverflow for usage questions. You need to replace 'pip' with 'pip3' in your case. If you get a similar error with 'pip3', try 'sudo pip3 install -U ...' or 'pip3 install --user -U ...'.

[issue31808] tarfile.extractall fails to overwrite symlinks

2017-11-16 Thread Dong-hee Na
Dong-hee Na added the comment: I 've submitted the patch please take a look. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30349] Preparation for advanced set syntax in regular expressions

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 05cb728d68a278d11466f9a6c8258d914135c96c by Serhiy Storchaka in branch 'master': bpo-30349: Raise FutureWarning for nested sets and set operations (#1553) https://github.com/python/cpython/commit/05cb728d68a278d11466f9a6c8258d914135c96c -

[issue30349] Preparation for advanced set syntax in regular expressions

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue31672] string.Template should use re.ASCII flag

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is something left to do here? In 3.7 r'(?-i:[_a-zA-Z][_a-zA-Z0-9]*)' can be replaced with r'(?a:[_a-z][_a-z0-9]*)' if it will add clarity. -- ___ Python tracker _

[issue24896] It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue31701] faulthandler dumps 'Windows fatal exception: code 0xe06d7363'

2017-11-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4365 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32046] 2to3 fix for operator.isCallable()

2017-11-16 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +4366 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32043] Add a new -X dev option: "developer mode"

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset ccb0442a338066bf40fe417455e5a374e5238afb by Victor Stinner in branch 'master': bpo-32043: New "developer mode": "-X dev" option (#4413) https://github.com/python/cpython/commit/ccb0442a338066bf40fe417455e5a374e5238afb -- __

[issue31702] Allow to specify the number of rounds for SHA-* hashing in crypt

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue31702] Allow to specify the number of rounds for SHA-* hashing in crypt

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cede8c9edb408321b493d8d5e73be9e1018020e4 by Serhiy Storchaka in branch 'master': bpo-31702: Allow to specify rounds for SHA-2 hashing in crypt.mksalt(). (#4110) https://github.com/python/cpython/commit/cede8c9edb408321b493d8d5e73be9e1018020e4

[issue32047] asyncio: enable debug mode when -X dev is used

2017-11-16 Thread STINNER Victor
New submission from STINNER Victor : The bpo-32043 added a new "developer mode" enabled with the new -X dev command line option. I propose to enable asyncio debug mode with the global Python "developer mode". If an asyncio application is correctly written, the single side effect of -X dev wou

[issue32047] asyncio: enable debug mode when -X dev is used

2017-11-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4367 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue31701] faulthandler dumps 'Windows fatal exception: code 0xe06d7363'

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: > May I ask why AddVectoredExceptionHandler is used instead of > SetUnhandledExceptionFilter? Honestly, I don't know well Windows API and so I'm not sure which one is the best. https://stackoverflow.com/questions/28629351/is-addvectoredexceptionhandler-a-rep

[issue31701] faulthandler dumps 'Windows fatal exception: code 0xe06d7363'

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 33217d22131ab1ffaa09a6944bae704f722f25a9 by Victor Stinner in branch '3.6': bpo-31701: faulthandler: ignore MSC and COM Windows exception (#3929) (#4416) https://github.com/python/cpython/commit/33217d22131ab1ffaa09a6944bae704f722f25a9

[issue31701] faulthandler dumps 'Windows fatal exception: code 0xe06d7363'

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: I backported the fix to Python 3.6. @Steve Dower: What do you think of using SetUnhandledExceptionFilter? -- versions: +Python 3.7 ___ Python tracker ___

[issue32048] Misprint in the unittest.mock documentation.

2017-11-16 Thread Артемий Родионов
Change by Артемий Родионов : -- assignee: docs@python components: Documentation nosy: docs@python, Артемий Родионов priority: normal severity: normal status: open title: Misprint in the unittest.mock documentation. type: enhancement versions: Python 3.7 _

[issue32048] Misprint in the unittest.mock documentation.

2017-11-16 Thread Артемий Родионов
Change by Артемий Родионов : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue32043] Add a new -X dev option: "developer mode"

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou asked me to document the performance and memory overhead of -X dev: https://mail.python.org/pipermail/python-dev/2017-November/150578.html For example, I measured an increase of +50% on the peak memory usage (measured by tracemalloc) when runn

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The proper way of escaping the replacement string has been documented by issue31714. -- resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> Improve re documentation ___ Python tr

[issue23689] Memory leak in Modules/sre_lib.h

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 2.7, Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker __

[issue9134] sre bug: lastmark_save/restore

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker ___ __

[issue32049] 2.7.14 does not uninstall cleanly if installation was run as SYSTEM account (SCCM)

2017-11-16 Thread Sven Pagel
New submission from Sven Pagel : If I install Python 2.7.14 on Windows (using the MSI) using the SYSTEM account, as is done by SCCM, uninstalling fails to clean up the registry so Python is still showing up as installed in the control panel (and still detected by SCCM). SCCM runs the following

[issue24555] Python logic error when deal with re and muti-threading

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> re functions never release GIL ___ Python tracker ___ __

[issue25054] Capturing start of line '^'

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka versions: +Python 2.7, Python 3.7 -Python 3.5 ___ Python tracker ___ _

[issue32047] asyncio: enable debug mode when -X dev is used

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: I sent an email about this change to python-dev: https://mail.python.org/pipermail/python-dev/2017-November/150572.html -- ___ Python tracker ___

[issue30004] in regex-howto, improve example on grouping

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a pull request on GitHub Cristian? -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett, serhiy.storchaka stage: -> needs patch versions: -Python 3.3, Python 3.4, Python 3.5 _

[issue28951] re.flags not documented in Module Contents as promised.

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : Removed file: https://bugs.python.org/file45941/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28951] re.flags not documented in Module Contents as promised.

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett stage: -> needs patch versions: +Python 2.7, Python 3.6, Python 3.7 -Python 3.5 ___ Python tracker

[issue28951] re.flags not documented in Module Contents as promised.

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : Removed file: https://bugs.python.org/file45940/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28951] re.flags not documented in Module Contents as promised.

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : Removed file: https://bugs.python.org/file45934/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4368 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: I tested manually Serhiy's PR 4420: it works as expected! haypo@selma$ ./python -m test test_os --list-cases -m test.test_os.FileTests.test_access test.test_os.FileTests.test_access haypo@selma$ ./python -m test test_os --list-cases -m test_access test.test_o

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: $ time ./python -m test.bisect --fail-env-changed -o bisect test_asyncio -N1 ... Bisection failed after 2 iterations and 0:00:11 real0m10,441s user0m8,726s sys 0m0,292s There is good opportunity for optimizing the regular expression. All cases ha

[issue32046] 2to3 fix for operator.isCallable()

2017-11-16 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue30148] Pathological regex behaviour

2017-11-16 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue28450] Misleading/inaccurate documentation about unknown escape sequences in regular expressions

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Barry, could you please improve the documentation about unknown escape sequences in regular expressions? My skills is not enough for this. -- ___ Python tracker __

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4369 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32050] Deprecated python3 -x option

2017-11-16 Thread STINNER Victor
New submission from STINNER Victor : Python has a -x option documented as a "DOS specific hack only": https://docs.python.org/dev/using/cmdline.html#cmdoption-x Python doesn't support MS-DOS since Python 2.1: https://www.python.org/dev/peps/pep-0011/#no-longer-supported-platforms I propose to d

[issue32050] Deprecated python3 -x option

2017-11-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4370 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32050] Deprecated python3 -x option

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: The note in the documentation is wrong: the line number is correct when using the -x option, even if the first line is skipped. Example with Python 2.7: --- $ cat x.py print(1) print(2) x $ python2 x.py 1 2 Traceback (most recent call last): File "x.py",

[issue32040] Sorting pahtlib.Paths does give the same order as sorting the (string) filenames of that pathlib.Paths

2017-11-16 Thread QbLearningPython
QbLearningPython added the comment: Thanks, serhiy.storchaka, for your answer. I am not fully convinced. You have described the current behaviour of the pathlib package. But let me ask: should be this the desired behaviour? Since string filenames and pathlib.Paths are different ways to refer

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Yury Selivanov added the comment: > It's worse than a resource leak - the same file descriptor number could be > reused for a different file/socket, and then depending on the selector in > use, you could see the data from a completely different connection. I actually debugged a bug like this

[issue32050] Deprecated python3 -x option

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python still supports Windows. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: The socket.socket (Python type) has a private _io_refs counter. close() does nothing until _io_refs reachs zero. Maybe we can develop an API to temporary increase the _io_refs counter to prevent a real close? Pseudo-code: @contextlib.contextmanager def dont

[issue32050] Deprecated python3 -x option

2017-11-16 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4371 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32050] Deprecated python3 -x option

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: > Python still supports Windows. What is the use case for this option on Windows? On Unix, the first line is usually used for the shebang, a line like: #!/usr/bin/env python3 But this shebang is seen as a comment in Python and Python simply ignore the sh

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Yury Selivanov added the comment: > The socket.socket (Python type) has a private _io_refs counter. close() does > nothing until _io_refs reachs zero. I didn't know about this. Looks like I can use '_io_refs' to fix some problems in uvloop, thanks Victor! The only problem with '_io_refs' an

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: >From my example: "finally: sock._io_refs -= 1" Oh, sock._decref_socketios() must be uesd here to really close the socket if it was closed in the meanwhile: def _decref_socketios(self): if self._io_refs > 0: self._io_refs -= 1

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Yury Selivanov added the comment: > Oh, sock._decref_socketios() must be uesd here to really close the socket if > it was closed in the meanwhile: For it to work correctly, socket objects should be initialized with "self._io_refs = 1". -- ___ Pyth

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Change by Yury Selivanov : -- Removed message: https://bugs.python.org/msg306374 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Yury Selivanov added the comment: > Oh, sock._decref_socketios() must be uesd here to really close the socket if > it was closed in the meanwhile: There's also 'sock._closed' attribute that sock.close() and sock. _decref_socketios() interact with.. Alright, let me play with this in uvloop.

[issue32050] Deprecated python3 -x option

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The same as on DOS. Change the extension of the Python script from .py to .bat, and insert the following first line: @path\to\python -x %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 Now you can run it as a bat-file. The command in the first line will run Python, passing

[issue32050] Deprecated python3 -x option

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: > @path\to\python -x %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 Oh wow, I never saw that before. There is now a "py" launcher on Windows, do we still need such "hack"? -- components: +Windows -Interpreter Core nosy: +paul.moore, steve.dower, tim.golden, zach.ware

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm... _decref_socketios() is not really a public API. I think it would be nice to have an official way to deal with this, and a socket close callback sounds reasonable to me. -- ___ Python tracker

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: > Hmm... _decref_socketios() is not really a public API. I think it would be > nice to have an official way to deal with this, and a socket close callback > sounds reasonable to me. I dislike the idea of an event when a socket is closed. It doesn't prevent a

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Yury Selivanov added the comment: > Hmm... _decref_socketios() is not really a public API. I think it would be > nice to have an official way to deal with this, and a socket close callback > sounds reasonable to me. We can just make it public (after some renames) :) My first idea was to ad

[issue32050] Deprecated python3 -x option

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, of course. The py launcher is not an alternative to this "hack". It just allows you to specify just "py" (with possible options -2, -3, -3.6) instead of hardcoding the full name to the Python binary or add the path to directory containing the Python bi

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: > There is good opportunity for optimizing the regular expression. All cases > have the literal 'test.test_asyncio.' prefix, and even longer literal > prefixes are common for tens cases. I implemented such code long time ago :-) https://github.com/haypo/hach

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Guido van Rossum
Guido van Rossum added the comment: Perhaps you can just dup() the socket? That's what the ref counter is for IIRC. -- ___ Python tracker ___ __

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread STINNER Victor
STINNER Victor added the comment: > Perhaps you can just dup() the socket? That's what the ref counter is for > IIRC. Sure. That's another option. But for asyncio with a lot of concurrent users, I'm not sure that it's ok to create a temporary file descriptor, since there is a risk of hitting

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Yury Selivanov added the comment: > Perhaps you can just dup() the socket? That's what the ref counter is for > IIRC. I already dup them for loop.create_server(sock=sock) and loop.create_connection(sock=sock) cases. Duping for sock_recv & friends will add too much overhead (they are relativ

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Guido van Rossum
Guido van Rossum added the comment: OK, then maybe socket objects should get a dup() method that just increments the ref counter, and that would be the public API you're looking for? -- ___ Python tracker ___

[issue31324] support._match_test() used by test.bisect is very inefficient

2017-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I know :-) Unfortunately it is not obviously that these optimization actually optimize regular expressions. Due to the implementation particularities sometimes "unoptimized" code is faster than "optimized". I'm going to implement these optimizations in the

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Yury Selivanov added the comment: > OK, then maybe socket objects should get a dup() method that just increments the ref counter, and that would be the public API you're looking for? "dup()" returns a new socket object, but here we only want to protect the original one. Maybe just 'sock.inc_i

[issue32051] Possible issue in multiprocessing doc

2017-11-16 Thread jason
New submission from jason : in multiprocessing doc https://docs.python.org/3.6/library/multiprocessing.html under 17.2.2.7.2. Using a remote manager, >>> from multiprocessing.managers import BaseManager >>> import queue >>> queue = queue.Queue() >>> class QueueManager(BaseManager): pass >>> Que

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2017-11-16 Thread Guillaume Boily
Guillaume Boily added the comment: As pointed here: https://github.com/testing-cabal/mock/issues/353, this issue is related to the method assert_has_calls or probably any calls that use the method _call_matcher to match calls. Given that you mock a class and spec it, since we always bind to t

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Ben Darnell
Ben Darnell added the comment: Note that a guard on socket objects can only solve part of the problem: in the case where i've seen this bug, it was with raw file descriptors from libcurl, and there's nothing python can do about that because there are no (python) socket objects. -- _

[issue32038] Add API to intercept socket.close()

2017-11-16 Thread Yury Selivanov
Yury Selivanov added the comment: > Note that a guard on socket objects can only solve part of the problem: in > the case where i've seen this bug, it was with raw file descriptors from > libcurl, and there's nothing python can do about that because there are no > (python) socket objects. We

[issue32046] 2to3 fix for operator.isCallable()

2017-11-16 Thread Éric Araujo
Éric Araujo added the comment: Why about just removing the check, now that callable has been back in 3.x for a few releases? -- nosy: +eric.araujo ___ Python tracker ___ _

[issue32046] 2to3 fix for operator.isCallable()

2017-11-16 Thread Éric Araujo
Change by Éric Araujo : -- Removed message: https://bugs.python.org/msg306393 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue32040] Sorting pahtlib.Paths does give the same order as sorting the (string) filenames of that pathlib.Paths

2017-11-16 Thread R. David Murray
R. David Murray added the comment: It is "obvious by inspection". Paths are paths instead of strings because they are formed out of discrete path components instead of strings. If you sorted each directory in the paths from the top down, and then sorted the subdirectories, and then sorted t

[issue32040] Sorting pahtlib.Paths does give the same order as sorting the (string) filenames of that pathlib.Paths

2017-11-16 Thread R. David Murray
R. David Murray added the comment: To put it another way, think about sorting a list of tuples. Same behavior. -- ___ Python tracker ___ __

[issue31701] faulthandler dumps 'Windows fatal exception: code 0xe06d7363'

2017-11-16 Thread Ilya Kulakov
Ilya Kulakov added the comment: I think faulthandler should use both. E.g. in [1] you can read about an exception that can be handled by AddVectoredExceptionHandler but not SetUnhandledExceptionFilter. Perhaps implementation should use SetUnhandledExceptionFilter for everything and AddVector

[issue32052] Provide access to buffer of asyncio.StreamReader

2017-11-16 Thread Bruce Merry
New submission from Bruce Merry : While asyncio.StreamReader.readuntil is an improvement on only having readline, it is still quite limited e.g. you cannot have multiple possible terminators. The real problem is that it's not possible to roll your own without accessing _underscore fields (othe

[issue32025] Add time.thread_time()

2017-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should I leave this open for you to work on the macOS implementation, Victor? -- ___ Python tracker ___ __

[issue32053] Inconsistent use of tabs and spaces in indentation not always detected

2017-11-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> exec('''if 1: ... print(1) ...\tprint(2) ... ''') 1 2 The first indented line uses 8 spaces. The second indented line uses 7 spaces + tabulation. Indentations are different, but TabError is not raised. -- components: Interprete

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2017-11-16 Thread Marc Le Roy
Change by Marc Le Roy : -- nosy: +mleroy003 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue32054] Creating RPM on Python 2 works, but Python 3 fails because of sys.implementation.cache_tag

2017-11-16 Thread Pedro
New submission from Pedro : I am trying to create an RPM on SLES12 SP2. (I think that corresponds to OpenSUSE 42.2.) This is my setup.py file, nothing special: import setuptools setuptools.setup(name='MyApp', version='1.2.3', options={'bdist_rpm

[issue31701] faulthandler dumps 'Windows fatal exception: code 0xe06d7363'

2017-11-16 Thread Ilya Kulakov
Ilya Kulakov added the comment: Another option is to use AddVectoredContinueHandler [1]. It seems to be called if both VEH and SEH failed to handle the error. 1: https://msdn.microsoft.com/en-us/library/windows/desktop/ms679273(v=vs.85).aspx -- __

[issue31911] Use malloc_usable_size() in pymalloc for realloc

2017-11-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: What would be the point of this? This would complicate the code with platform-specific code and it's not obvious that it would change runtime performance in any significant way. -- nosy: +pitrou ___ Python tracker

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4372 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4373 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4374 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4375 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Steve Dower
Steve Dower added the comment: New changeset fd0fa67464f75cebca67cd14d050476a0c73bd53 by Steve Dower (native-api) in branch 'master': bpo-31691: Specify where to find build instructions for the Windows installer (#4426) https://github.com/python/cpython/commit/fd0fa67464f75cebca67cd14d050476a

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4376 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4377 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Steve Dower
Steve Dower added the comment: New changeset c02307e9634583d3f2660e46b5200bf0b282695a by Steve Dower (native-api) in branch '2.7': bpo-31691: Specify how to build installer in Windows (#4430) https://github.com/python/cpython/commit/c02307e9634583d3f2660e46b5200bf0b282695a -- __

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Steve Dower
Steve Dower added the comment: Thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> crash ___ Python tracker ___ ___

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Steve Dower
Steve Dower added the comment: New changeset 0a6158ca392adfdfbeb7eb43d8d8109c02b00d23 by Steve Dower (Miss Islington (bot)) in branch '3.6': bpo-31691: Specify where to find build instructions for the Windows installer (GH-4426) (#4431) https://github.com/python/cpython/commit/0a6158ca392adfd

[issue31691] Include missing info on required build steps and how to build installer

2017-11-16 Thread Steve Dower
Steve Dower added the comment: New changeset c69611990365ae2f2efffd191de0aba9ee98d95c by Steve Dower (native-api) in branch '3.6': bpo-31691: Specify where to find installer build instructions for Windows (#4427) https://github.com/python/cpython/commit/c69611990365ae2f2efffd191de0aba9ee98d95

[issue32051] Possible issue in multiprocessing doc

2017-11-16 Thread Berker Peksag
Berker Peksag added the comment: The example itself works fine, but I agree that it would be better to use a better name. We could replace ``('foo.bar.org', 5)`` in the following examples with ``('', 5)`` too. Would you like to send a PR? The documentation file is located at Doc/libr

  1   2   >