[issue26000] Crash in Tokenizer - Heap-use-after-free

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks William for the information. I can reproduce this on 3.5.6. I was able to bisect this down to #31852 that deals with similar cases and fixed with commit 690c36f2f1085145d364a89bfed5944dd2470308. $ cpython git:(master) git checkout

[issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)

2018-09-24 Thread Jarry Shaw
Change by Jarry Shaw : -- pull_requests: +8930 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: Note: the master branch is not affected, I already fixed the bug in master. My PR backports the fix. -- title: segmentation-fault/core dump when try to run non-existing file specified on commandline -> [3.7] segmentation-fault/core dump when try to

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-09-24 Thread Carol Willing
Carol Willing added the comment: New changeset 558c49bcf3a8543d64a68de836b5d855efd56696 by Carol Willing (João Júnior) in branch 'master': bpo-34728: Remove deprecate *loop* argument in asyncio.sleep (GH-9415) https://github.com/python/cpython/commit/558c49bcf3a8543d64a68de836b5d855efd56696

[issue34705] Python 3.8 changes how returns through finally clauses are traced

2018-09-24 Thread Mark Shannon
Mark Shannon added the comment: When I get a chance I'll see what happens with https://github.com/python/cpython/pull/6641 -- ___ Python tracker ___

[issue34751] Hash collisions for tuples

2018-09-24 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > stuff like "t += t >> 16" is a many-to-one function, not a permutation Yes, I am aware of that. However, the number of collisions here is really quite small. It's very unlikely to hit one by accident. I also chose >> over << for two reasons: 1. It brings

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: "ast.Constant is not new. You can use it since 3.8." Since Python 3.6 ;-) -- ___ Python tracker ___

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-09-24 Thread Carol Willing
Change by Carol Willing : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34705] Python 3.8 changes how returns through finally clauses are traced

2018-09-24 Thread Mark Shannon
Mark Shannon added the comment: The new behaviour looks the more correct to me. Arguably the sequence should not include the second "4 line", but is otherwise correct. -- ___ Python tracker

[issue34784] Heap-allocated StructSequences

2018-09-24 Thread Eddie Elizondo
New submission from Eddie Elizondo : PyStructSequence_NewType does not currently work. Read the full analysis here: https://mail.python.org/pipermail/python-dev/2018-September/155069.html This aims to fix the implementation of PyStructSequence_NewType. -- components: Library (Lib)

[issue34751] Hash collisions for tuples

2018-09-24 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: While writing up the analysis above, it occurred to me that collisions already happen for 2-tuples: >>> hash((3, -2)) == hash((-3, 0)) True These kind of 2-tuples of small integers don't look contrived at all. I can easily see them appearing, in

[issue29685] test_gdb failed

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add your GDB version? The version parsing is done with regex r"^GNU gdb.*?\b(\d+)\.(\d+)" and I think it's not matching your version which seems to be empty. Adding the output of `gdb -nx --version` will be helpful in debugging this

[issue34784] Heap-allocated StructSequences

2018-09-24 Thread Eddie Elizondo
Change by Eddie Elizondo : -- keywords: +patch pull_requests: +8929 stage: -> patch review ___ Python tracker ___ ___

[issue34783] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: eohm: thank you for your bug report and great job of your analysis of the root cause! Your PR works as expected, but I prefer to get the current core configuration rather than keeping our old copy longer than previously in main.c. I wrote a PR 9526 to

[issue34783] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8931 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34785] pty.spawn -- auto-termination after child process is dead (a zombie)

2018-09-24 Thread Jarry Shaw
New submission from Jarry Shaw : As in pty.spawn, once started, the parent process will be hanged, even if the child process is already dead (or a zombie), and must wait for a KeyboardInterrupt or else to terminate the whole process. Thus, I propose to revise `_copy` function, where the

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2018-09-24 Thread Stefan Krah
Change by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34744] New %(flag)s format specifier for argparse.add_argument help string

2018-09-24 Thread Vostretsov Nikita
Vostretsov Nikita added the comment: >'option_strings' is already being used in '_format_action_invocation()'. So I >don't see why this flag needs to appear again in the help line. 'option_strings' is available as a whole list, you can not use just first element of it >Though the user can

[issue34751] Hash collisions for tuples

2018-09-24 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Has anyone figured out the real source of the degeneration when mixing in > negative integers? The underlying reason for the collisions is the following mathematical relation: x ^ -x = -2 << i where i is the index of the smallest set bit of x. In

[issue24937] Multiple problems in getters & setters in capsulethunk.h

2018-09-24 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-24 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +8934 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34786] ProcessPoolExecutor documentation reports wrong exception being raised

2018-09-24 Thread Joni Kähärä
New submission from Joni Kähärä : https://docs.python.org/3.8/library/concurrent.futures.html "initializer is an optional callable that is called at the start of each worker process; initargs is a tuple of arguments passed to the initializer. Should initializer raise an exception, all

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-24 Thread miss-islington
miss-islington added the comment: New changeset 1b77f929f8d18e9a97335a8ec5e838e5be506568 by Miss Islington (bot) (Steve Dower) in branch 'master': bpo-34582: Fixes Python version used for patch check (GH-9532) https://github.com/python/cpython/commit/1b77f929f8d18e9a97335a8ec5e838e5be506568

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-24 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue17239] XML vulnerabilities in Python

2018-09-24 Thread miss-islington
miss-islington added the comment: New changeset 582d188e6e3487180891f1fc457a80dec8be26a8 by Miss Islington (bot) (Christian Heimes) in branch '3.6': [3.6] bpo-17239: Disable external entities in SAX parser (GH-9217) (GH-9512)

[issue17239] XML vulnerabilities in Python

2018-09-24 Thread miss-islington
miss-islington added the comment: New changeset 394e55a9279d17240ef6fe85d3b4ea3fe7b6dff5 by Miss Islington (bot) (Christian Heimes) in branch '3.7': [3.7] bpo-17239: Disable external entities in SAX parser (GH-9217) (GH-9511)

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-24 Thread miss-islington
miss-islington added the comment: New changeset 73653062b1ef76b879c01a09163db2cff6548c3c by Miss Islington (bot) (Steve Dower) in branch '3.6': [3.6] bpo-34582: Update syntax of Azure Pipelines builds (GH-9521) (GH-9528)

[issue34786] ProcessPoolExecutor documentation reports wrong exception being raised

2018-09-24 Thread Joni Kähärä
Joni Kähärä added the comment: Perhaps I wasn't clear that this considered ProcessPoolExecutor documentation, not ThreadPoolExecutor. Taking the example from documentation and adding an initializer like this: import concurrent.futures import math PRIMES = [ 112272535095293,

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-24 Thread Steve Dower
Steve Dower added the comment: New changeset 57675090b0fe7d6c7d72e56384dc2ff6798f1723 by Steve Dower in branch 'master': bpo-34582: Update syntax of Azure Pipelines builds (GH-9521) https://github.com/python/cpython/commit/57675090b0fe7d6c7d72e56384dc2ff6798f1723 --

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +8933 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31506] Improve the error message logic for object_new & object_init

2018-09-24 Thread Nick Coghlan
Nick Coghlan added the comment: We added the method names to help provide a nudge that the issue is likely to be a missing method implementation in the subclassing case, so I'd like to keep them if we can find a way to make the messages accurate again. What if we updated the offending

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-24 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +8935 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34582] VSTS builds should use jobs, pools, and test results

2018-09-24 Thread Steve Dower
Steve Dower added the comment: New changeset 657fdf2eba617ade49052de91cafeb373b652077 by Steve Dower (Miss Islington (bot)) in branch '3.7': bpo-34582: Update syntax of Azure Pipelines builds (GH-9521) https://github.com/python/cpython/commit/657fdf2eba617ade49052de91cafeb373b652077

[issue34752] warnings.warn fails silently with unicode input

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this a known limitation as per https://bugs.python.org/issue23637#msg239361 where non-ASCII characters would require byte string. I couldn't find the relevant documentation for it though. $ ./python.exe Python 2.7.15+

[issue34786] ProcessPoolExecutor documentation reports wrong exception being raised

2018-09-24 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8936 stage: -> patch review ___ Python tracker ___ ___

[issue34786] ProcessPoolExecutor documentation reports wrong exception being raised

2018-09-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34751] Hash collisions for tuples

2018-09-24 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > In the absence of a real analysis, the intuition is simply that "t ^= t << 7" > will clear masses of leading sign bits when hashing "small" negative integers. That's a clever solution. If you want to go that route, I would rather suggest t ^= t << 1 which

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-09-24 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34786] ProcessPoolExecutor documentation reports wrong exception being raised

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think it raises BrokenThreadPool . A sample program that I tried as below raising an exception in the initializer. Maybe I am wrong here. Can you please attach a script that triggers BrokenProcessPool? # bpo34786.py import concurrent.futures

[issue24937] Multiple problems in getters & setters in capsulethunk.h

2018-09-24 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 2d3ff2b5ea6c903973f99d2155c9c1b60591dceb by Petr Viktorin in branch 'master': bpo-24937: Replace the extension module porting HOWTO by links to external projects (GH-9317)

[issue34752] warnings.warn fails silently with unicode input

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I looked some more into the linked issue and I think this is an explicit decision and the comment in the code indicates that the warning will be lost :

[issue34751] Hash collisions for tuples

2018-09-24 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > For example, FNV-1a has far better "avalanche" behavior than Bernstein We don't care about that though. We want to have no collisions, not a random output. -- ___ Python tracker

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset ddc163df25191af5bf891dbf8f6500b1d7c9 by Victor Stinner in branch '3.7': bpo-34783: Fix Py_Main() (GH-9526) https://github.com/python/cpython/commit/ddc163df25191af5bf891dbf8f6500b1d7c9 --

[issue34752] warnings.warn fails silently with unicode input

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Since Nick had some issue on adding a message to the issue I am adding the email sent to me as a message below : (sorry I can't see how to post a reply message on the bugs page, I'm still new to this) anyhow here's what I wanted to post:

[issue34751] Hash collisions for tuples

2018-09-24 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +8937 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8938 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset a46467ff198c42c8f34768c7be4b4562f6f44736 by Victor Stinner in branch 'master': bpo-34783: Add test_cmd_line_script.test_nonexisting_script() (GH-9535) https://github.com/python/cpython/commit/a46467ff198c42c8f34768c7be4b4562f6f44736

[issue33309] Unittest Mock objects do not freeze arguments they are called with

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the details. As part of triaging I am closing this as not a bug since passing mutable arguments to a mock object and modifying it is a documented behavior at

[issue34223] PYTHONDUMPREFS=1 ./python -c pass does crash

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of 30156. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> PYTHONDUMPREFS segfaults on exit ___ Python tracker

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-24 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: > How people can get Iterable[FrameSummary] as an input and pass it to > format_list()? If I want to format a traceback, but omit traceback lines that refer to a particular module (for example, code for a coroutine runner), I could write

[issue30156] PYTHONDUMPREFS segfaults on exit

2018-09-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8943 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30156] PYTHONDUMPREFS segfaults on exit

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: Is this optiization really worth it? 7 nanoseconds faster, but leak a weird tuple which caused 3 different crashes... -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-09-24 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I created a new PR based on Tim's t ^= t << 7 idea, except that I'm using << 1 instead, to have more mixing in the lower bits. With the standard FNV multiplier on 64 bits, I did get collisions while testing. I haven't figured out exactly why these occurred,

[issue23584] test_doctest lineendings fails in verbose mode

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the patch. As part of triaging I am closing this as fixed since the patch was applied with the below commits except for 3.4 branch : 09a08de363cbe18a87392e1c2ebf0ac1f414592c (3.5) c747e5564f0315357a3e7d2f580c6d1c8a3b4ab8 (2.7) Thanks

[issue32797] Tracebacks from Cython modules no longer work

2018-09-24 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +8942 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28418] Raise Deprecation warning for tokenize.generate_tokens

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Since generate_tokens was made public and documented with issue12486 I am closing this issue as won't fix as part of triaging. Feel free to reopen this issue if needed. Thanks -- resolution: -> wont fix stage: -> resolved status: open

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: Thank you again eohm for your bug report and your analysis. Sadly, I chose to fix the issue differently, to reduce the maintenance burden on main.c: make the code closer to the master branch. My change is part of a long serie of changes to rework the Python

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +8941 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34537] test_gdb fails with LC_ALL=C

2018-09-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32706] test_check_hostname() of test_ftplib started to fail randomly

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: > Christian: It seems like the test now pass on my Fedora 27. Is it time to > enable the test again? Ignore my comment. I forgot that it's a race condition and I'm still able to get the failure using msg311097 scenario. --

[issue26000] Crash in Tokenizer - Heap-use-after-free

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: As part of triaging I am closing this issue as duplicate adding issue31852 as superseder which has the relevant PR and discussion about the fix. I have also verified the fix as in https://bugs.python.org/issue26000#msg326204. I think backporting

[issue34539] namedtuple's exec() throws segmentation fault

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Álvaro for the report and script. As part of triaging I am closing this as out of date since this bug seemed to have been fixed with issue34087 and is not reproducible on latest master and 3.7 branch. Feel free to reopen this if needed.

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: > Maybe. At least we need to add a "timeout" argument to asyncio.run() to let > it wait for executor jobs. The shutdown() method of concurrent.futures.Executor API doesn't accept a timeout. It waits for multiple things. I added "block_on_close = True"

[issue33977] [Windows] test_compileall fails randomly with PermissionError: [WinError 5] Access is denied: (...).pyc

2018-09-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34787] imghdr raise TypeError for PNG

2018-09-24 Thread Christian Heimes
Christian Heimes added the comment: startswith supports bytes just fine: $ python3 Python 3.6.6 (default, Jul 19 2018, 14:25:17) [GCC 8.1.1 20180712 (Red Hat 8.1.1-5)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> with open('test.png', 'rb') as f: ...

[issue26144] test_pkg test_4 and/or test_7 sometimes fail

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am closing this issue as duplicate as part of triaging adding issue34200 as superseder that reports the same error along with a PR and discussion. There have been no failures reported with respect to test_pkg after the fix was merged. Feel free

[issue31535] configparser unable to write comment with a upper cas letter

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: All config options including comment are converted to lowercase when they are stored. You can customize this behavior using https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.optionxform . You can also refer to

[issue30156] PYTHONDUMPREFS segfaults on exit

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: PR 9541: my new attempt to remove the micro-optimization. Commit message: bpo-30156: Remove property_descr_get() optimization property_descr_get() uses a "cached" tuple to optimize function calls. But this tuple can be discovered in debug mode with

[issue34786] ProcessPoolExecutor documentation reports wrong exception being raised

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Got it. Sorry about that I copy pasted the quoted string and assumed ThreadPoolExecutor overlooking the PR. The change is reasonable to me. Thanks -- ___ Python tracker

[issue34787] imghdr raise TypeError for PNG

2018-09-24 Thread lorenzogotuned
New submission from lorenzogotuned : Found on Python 3.6 This line https://github.com/python/cpython/blob/master/Lib/imghdr.py#L45 always raises`TypeError`as `startswith` does not accept bytes. -- messages: 326237 nosy: lorenzogotuned priority: normal severity: normal status: open

[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2018-09-24 Thread Jeremy McMillan
New submission from Jeremy McMillan : ipaddress module has no support for scoped IPv6 addresses which prevents the use of ipaddress.ip_address() and ipaddress.IPv6Address() with (always available by default on IPv6 systems) RFC conforming IPv6 link local addresses that specify interface

[issue34789] doc xml.sax.make_parser expects a list not just any sequence

2018-09-24 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +8944 stage: -> patch review ___ Python tracker ___ ___

[issue34364] problem with traceback for syntax error in f-string

2018-09-24 Thread Eric V. Smith
Eric V. Smith added the comment: I worked on this at the core sprint, and I have a patch almost ready. -- ___ Python tracker ___

[issue34372] Parenthesized expression has incorrect line numbers

2018-09-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Tracebacks should contain the first line of continuation lines versions: -Python 3.7 ___ Python tracker

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-24 Thread Yury Selivanov
New submission from Yury Selivanov : asyncio.wait() accepts coroutines, wraps them into Tasks, and later returns those implicitly created Tasks in (done, pending) sets. This is very confusing to new asyncio users and it's almost impossible to figure out what is going on. See the first PR

[issue34776] Postponed annotations break inspection of dataclasses

2018-09-24 Thread Eric V. Smith
Eric V. Smith added the comment: Ned: I'm marking this as a release blocker because I'd like to get it in 3.7.1. If I can't do that in the next 5 hours or so, I'll remove the release blocker tag. -- assignee: -> eric.smith nosy: +ned.deily priority: normal -> release blocker

[issue34791] xml package does not obey sys.flags.ignore_environment

2018-09-24 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +8946 stage: -> patch review ___ Python tracker ___ ___

[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2018-09-24 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +pmoody ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34789] doc xml.sax.make_parser expects a list not just any sequence

2018-09-24 Thread Andrés Delfino
New submission from Andrés Delfino : Doc says: "If parser_list is provided, it must be a *sequence* of strings which name modules that have a function named create_parser()" but code concatenas parser_list with an existing list: for parser_name in parser_list + default_parser_list: Fix this

[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2018-09-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2018-09-24 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, I have confirmed that this reproduces our issue and that your PR fixes it. I guess at this point we need someone to test with Brew. -- ___ Python tracker

[issue34791] xml package does not obey sys.flags.ignore_environment

2018-09-24 Thread Christian Heimes
New submission from Christian Heimes : On two occasions, the xml package uses environment variables to override parser / DOM implementations: xml.sax package and xml.dom.domreg module. On both occasions, the code should not use env vars to override module names, when the interpreter is

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-24 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +8945 stage: -> patch review ___ Python tracker ___ ___

[issue34364] problem with traceback for syntax error in f-string

2018-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Great! I was going to take it. Will be glad to make a review. -- ___ Python tracker ___ ___

[issue13607] Move generator specific sections out of ceval.

2018-09-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: patch review -> resolved status: pending -> closed ___ Python tracker ___

[issue34364] problem with traceback for syntax error in f-string

2018-09-24 Thread Eric V. Smith
Eric V. Smith added the comment: It's more elaborate than I'd like, but I think it's the right way to solve it: I'm passing in the starting line and column number to the parser machinery. -- ___ Python tracker

[issue34334] QueueHandler logs exc_info twice

2018-09-24 Thread Vinay Sajip
Vinay Sajip added the comment: Having looked at it again, Adrian Dries might be right that setting exc_text to None will also do the trick, and perhaps in a better way. The reasoning: Handler.format() formats record.msg % record.args, and caches it in record.message. If there is exception

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-24 Thread Yury Selivanov
Yury Selivanov added the comment: > 4.0 is too far. Why not disallow them in 3.10? What's the current plan? I thought it's going to be 3.8, 3.9, 4.0. Is there a PEP detailing this? -- ___ Python tracker

[issue26452] Wrong line number attributed to comprehension expressions

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks much Greg for the details but I am closing this as fixed since there have been some improvements merged with issue12458 along with tests. The original issue reported regarding multi-line comprehension was fixed as I have tested it on

[issue34364] problem with traceback for syntax error in f-string

2018-09-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34789] doc xml.sax.make_parser expects a list not just any sequence

2018-09-24 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: I'm just going to presume this issue has been around a long time, but I think that's a pretty safe presumption. Accepting a general sequence instead of only a list would reasonable, and I'd support a fix that caused the code to accept a general sequence

[issue12458] Tracebacks should contain the first line of continuation lines

2018-09-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31084] QueueHandler not formatting messages

2018-09-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +8947 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 4.0 is too far. Why not disallow them in 3.10? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue34791] xml package does not obey sys.flags.ignore_environment

2018-09-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +8950 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34791] xml package does not obey sys.flags.ignore_environment

2018-09-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +8948 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34791] xml package does not obey sys.flags.ignore_environment

2018-09-24 Thread miss-islington
miss-islington added the comment: New changeset 223e501fb9c2b6ae21b96054e20c4c31d94a5d96 by Miss Islington (bot) (Christian Heimes) in branch 'master': bpo-34791: xml package obeys ignore env flags (GH-9544) https://github.com/python/cpython/commit/223e501fb9c2b6ae21b96054e20c4c31d94a5d96

[issue34791] xml package does not obey sys.flags.ignore_environment

2018-09-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +8949 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34751] Hash collisions for tuples

2018-09-24 Thread Tim Peters
Tim Peters added the comment: > when you do t ^= t << 7, then you are not changing > the lower 7 bits at all. I want to leave low-order hash bits alone. That's deliberate. The most important tuple component types, for tuples that are hashable, are strings and contiguous ranges of "not

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-09-24 Thread STINNER Victor
STINNER Victor added the comment: I wrote a non regression test: PR 9535. -- ___ Python tracker ___ ___ Python-bugs-list mailing

  1   2   >