[issue32876] HTMLParser raises exception on some inputs

2018-09-14 Thread Ezio Melotti
Change by Ezio Melotti : -- keywords: +patch pull_requests: +8724 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue26467] Add async magic method support to unittest.mock.Mock

2018-09-14 Thread Lisa Roach
Change by Lisa Roach : -- keywords: +patch pull_requests: +8725 stage: test needed -> patch review ___ Python tracker ___ ___ Python

[issue33073] Add as_integer_ratio() to int() objects

2018-09-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +8726 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21109] tarfile: Traversal attack vulnerability

2018-09-14 Thread shashank
shashank added the comment: Figured a fix for the bug I found, trick was to keep track of current working dir of symlink it was trying to evaluate. Attached patch: safetarfile-3.diff Patch is for code only. I'd like to see this go thorough, and would appreciate feedback. -- Added fi

[issue34675] Avoid terminology related to slavery

2018-09-14 Thread Freed_Slave
New submission from Freed_Slave : It is very good to see that "master" and "slave" terminology was removed from the project, however there are still references to "owned" references, as if these references were property. There are also things needing to be "freed" as if they were indentured se

[issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified

2018-09-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +8727 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified

2018-09-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +8728 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33498] pathlib.Path wants an rmtree method

2018-09-14 Thread Lukas Röllin
Lukas Röllin added the comment: I definitely would like this too. I have a code base that's only grazing on path usage, and I could completely convert it to pathlib, but one shutil.rmtree still remains... -- nosy: +Dreami ___ Python tracker

[issue33073] Add as_integer_ratio() to int() objects

2018-09-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +8729 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified

2018-09-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2018-09-14 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : > Run "pydoc -w " to write out the HTML documentation for a module to a file named ".html". As mentioned in the help this works only for modules and since import is a keyword it throws an error. Maybe this could be added as an enhancement? Thanks

[issue33073] Add as_integer_ratio() to int() objects

2018-09-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33259] Encoding issue in the name of the local DST timezone

2018-09-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems like formatting timezone names on Windows has a lot of issues. I don't if it's related to the ones reported before but just like to add reference comment with more issues : https://bugs.python.org/msg302937 Thanks -- nosy: +xtreak _

[issue33173] GzipFile's .seekable() returns True even if underlying buffer is not seekable

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

[issue32933] mock_open does not support iteration around text files.

2018-09-14 Thread Anthony Flury
Anthony Flury added the comment: I still support backporting to 3.6 and 3.7 : Yes it is correct that this fix could change the behavior of existing test code, but only if someone has written a test case for a function where : 1. The function under test uses dunder_iter iteration 2. The t

[issue33073] Add as_integer_ratio() to int() objects

2018-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The merged PR contains several errors. See comments on GitHub. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker _

[issue33052] Sporadic segmentation fault in test_datetime

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

[issue32496] lib2to3 fails to parse a ** of a conditional expression

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

[issue32153] mock.create_autospec fails if an attribute is a partial function

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

[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2018-09-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is it something specific to the environment? I tried the test on Ubuntu 16.04 on both master and on v3.6.3 with no errors. Maybe if you can execute the following code based on which the test is executed then it will be helpful to debug this. impo

[issue33073] Add as_integer_ratio() to int() objects

2018-09-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The merged PR contains several errors. See comments on GitHub. Some comments were seen after the merge of 8750 and were addressed in 9297. If you want to change the checked in code, please open a separate PR and tracker item. If you want different doc

[issue31290] segfault on missing library symbol

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

[issue34616] implement "Async exec"

2018-09-14 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > A utility to check whether an AST requires async mode should be fairly > straightforward. Here is one case we forgot in IPython apparently : In [1]: x = 1 ...: def f(): ...: nonlocal x ...: x = 1 This is not detected as a syntax

[issue31177] unittest mock's reset_mock throws an error when an attribute has been deleted

2018-09-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can confirm this behavior on CPython master as well. It seems that when an attribute is deleted then a deleted flag is set for the attribute at https://github.com/python/cpython/blob/73820a60cc3c990abb351540ca27bf7689bce8ac/Lib/unittest/mock.py#L737

[issue34676] Guarantie that divmod() and PyNumber_Divmod() return a 2-tuple

2018-09-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It is documented that divmod() returns a pair of numbers, but the implementation doesn't enforce this. Actually divmod() just returns the result of __divmod__() or __rdivmod__() without checking it. PyNumber_Divmod() is documented as the C equivalent of

[issue34597] Python needs to check existence of functions at runtime for targeting older macOS platforms

2018-09-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: Linking with newer SDKs is needed to get access to some newer features and APIs. That's less relevant for Python itself, but can be relevant for the embedding application. You can still compile Python itself on an older machine, then link it into an applic

[issue34597] Python needs to check existence of functions at runtime for targeting older macOS platforms

2018-09-14 Thread Christoph Reiter
Change by Christoph Reiter : -- nosy: -lazka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue34676] Guarantie that divmod() and PyNumber_Divmod() return a 2-tuple

2018-09-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8730 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue31177] unittest mock's reset_mock throws an error when an attribute has been deleted

2018-09-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +8731 stage: -> patch review ___ Python tracker ___ ___ Pyt

[issue33073] Add as_integer_ratio() to int() objects

2018-09-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8732 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34675] Avoid terminology related to slavery

2018-09-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: No thanks. -- nosy: +Mariatta resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue34671] Remove references to Benevolent Dictator

2018-09-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: No thanks. -- nosy: +Mariatta resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue34677] Event scheduler page example

2018-09-14 Thread mediator42
New submission from mediator42 : Hi, I am pretty confident, that the example you put on the Event scheduler page (https://docs.python.org/3.7/library/sched.html) is somehow strange. If the priority argument behave as described, it should print the "keyword" line before the "positional" line,

[issue34678] need to remove the term "white space"

2018-09-14 Thread dwayne gigleum
New submission from dwayne gigleum : As we are purging offensive language "white space" needs removing, as this can be offensive. as seen in lots of places: https://github.com/python/cpython/search?p=1&q=white+space -- messages: 325346 nosy: dwaygig priority: normal severity: normal

[issue34597] Python needs to check existence of functions at runtime for targeting older macOS platforms

2018-09-14 Thread Zorg
Zorg added the comment: > Why do you believe that is safer? Apple goes to great lengths to provide > compatibility for existing applications to keep running on newer systems. They also don't want developers to develop using older SDKs. Hypothetically speaking, more information may be store

[issue34597] Python needs to check existence of functions at runtime for targeting older macOS platforms

2018-09-14 Thread Zorg
Zorg added the comment: Also more obviously: it's less convenient for others keeping themselves up to date to set up an older development environment. -- ___ Python tracker _

[issue33052] Sporadic segmentation fault in test_datetime

2018-09-14 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue32933] mock_open does not support iteration around text files.

2018-09-14 Thread Ned Deily
Ned Deily added the comment: The potential change in behavior affecting existing code was one issue. But the other was the fact that people writing tests to make use of the new behavior can't depend on that behavior being there for 3.7 or 3.6 without checking the patch level, for example, 3

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2018-09-14 Thread Nic Watson
New submission from Nic Watson : Summary: essentially asyncio.add_signal_handler doesn't work when called off the main thread. One might consider this a documentation failure. (Note: there's also a bigger issue with cleanup, which I'll submit separately) Exception in thread Thread-1: Traceb

[issue34605] Avoid master/slave terminology

2018-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: News about this issue published on different resources are exaggerated. Actually the controversial changes were rejected. All merged changes look correct to me, they fix outdated terminology ("worker" instead of "buildslave" is now the official term in the

[issue34653] PyParser_SimpleParseStringFilename should be deleted

2018-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not going to backport this to 3.7, just in case. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker ___

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 9b9d97dd139a799d28ff8bc90d118b1cac190b03 by Eric V. Smith in branch 'master': bpo-34363: dataclasses.asdict() and .astuple() now handle fields which are namedtuples. (GH-9151) https://github.com/python/cpython/commit/9b9d97dd139a799d28ff8bc90d11

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-09-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +8733 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34680] asyncio event_loop close fails off main thread if signal handler registered

2018-09-14 Thread Nic Watson
New submission from Nic Watson : If a signal handler callback is registered on an event loop, and the event loop has close() called on it, the close will fail. Exception: Exception in thread Thread-1: Traceback (most recent call last): File "/home/nic/.pyenv/versions/3.7.0/lib/python3.7/thre

[issue34680] asyncio event_loop close fails off main thread if signal handler registered

2018-09-14 Thread epiphyte
Change by epiphyte : -- nosy: +epiphyte ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2018-09-14 Thread epiphyte
Change by epiphyte : -- nosy: +epiphyte ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

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

2018-09-14 Thread Steve Dower
Steve Dower added the comment: Co-opting this bug for my own PR, that will include these changes as well as generating JUnit-format test results and publishing them in Azure Pipelines builds. -- assignee: -> steve.dower components: +Build, Tests title: VSTS builds should use new YAM

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

2018-09-14 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +8734 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue34678] need to remove the term "white space"

2018-09-14 Thread Carol Willing
Change by Carol Willing : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue33649] asyncio docs overhaul

2018-09-14 Thread Carol Willing
Change by Carol Willing : -- pull_requests: +8735 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue34678] need to remove the term "white space"

2018-09-14 Thread dwayne gigleum
dwayne gigleum added the comment: are you being a hypocrit trying to supress me? -- resolution: not a bug -> status: closed -> open ___ Python tracker ___ ___

[issue34672] '%Z' strftime specifier never works with musl

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 5633c4f342d957df2ef0d67b9bfb472a0d28a76b by Benjamin Peterson in branch 'master': bpo-34672: Try to pass the C library's own timezone strings back to it. (GH-9288) https://github.com/python/cpython/commit/5633c4f342d957df2ef0d67b9bfb472a0d28

[issue34678] need to remove the term "white space"

2018-09-14 Thread Éric Araujo
Éric Araujo added the comment: Trolling is not welcome. -- nosy: +eric.araujo resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue34672] '%Z' strftime specifier never works with musl

2018-09-14 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue34681] Incorrect class name Pattern in sre_parse.py

2018-09-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In 8a3ebf8ca87a7d2989148d7c218974ab4235ca5d, with synchronizing regex engine with SRE 0.9.6, the class State in sre_parse.py was renamed to Pattern and the following comment was added: "master pattern object. keeps track of global attributes". This nam

[issue34681] Incorrect class name Pattern in sre_parse.py

2018-09-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8736 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue34681] Incorrect class name Pattern in sre_parse.py

2018-09-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26979] The danger of PyType_FromSpec()

2018-09-14 Thread Petr Viktorin
Petr Viktorin added the comment: 1) If I understand correctly, this problem could be solved by per-class C storage? Something like PyModuleDef.m_size / PyModule_GetState, but for classes? 2) Making PyType_GetSlot work for static types would not be trivial. All types do have the same *basic*

[issue34676] Guarantie that divmod() and PyNumber_Divmod() return a 2-tuple

2018-09-14 Thread Paul Ganssle
Paul Ganssle added the comment: I would be somewhat worried that this might break something like numpy (though not numpy specifically) which might be counting on the ability to write a wrapper that overloads this behavior. Another concern is that people could be playing it fast-and-loose wit

[issue34682] Typo reports on docs@

2018-09-14 Thread Zachary Ware
New submission from Zachary Ware : >From ZooDSS (Никита Люшненко) on docs@: https://mail.python.org/pipermail/docs/2018-September/037223.html : """ https://docs.python.org/3/reference/datamodel.html#metaclass-example - "uses an collections.OrderedDict to remember" when it is better to use

[issue33070] Add platform triplet for RISC-V

2018-09-14 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> add new triplets for mips r6 and riscv variants ___ Python tracker ___

[issue34682] Typo reports on docs@

2018-09-14 Thread Geoffrey Spear
Geoffrey Spear added the comment: "Means" is perfectly acceptable to use as a singular form: http://grammarist.com/usage/means/ (the rest of these all look like legitimate typos) -- nosy: +geoffreyspear ___ Python tracker

[issue34676] Guarantie that divmod() and PyNumber_Divmod() return a 2-tuple

2018-09-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 Perhaps this should be left as-is. There is no known problem that we would be solving and it would add an extra step to a fine-grained function. In general, I think we have these guards in places where it is known that downstream callers rely on a pa

[issue32933] mock_open does not support iteration around text files.

2018-09-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +8737 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33649] asyncio docs overhaul

2018-09-14 Thread Carol Willing
Carol Willing added the comment: New changeset c9d66f0ed4f07b9d184d22abbfdd4c3c8e2702df by Carol Willing in branch 'master': bpo-33649 Polish asyncio docs on queues, protocols, and subproccesses (#9306) https://github.com/python/cpython/commit/c9d66f0ed4f07b9d184d22abbfdd4c3c8e2702df --

[issue34672] '%Z' strftime specifier never works with musl

2018-09-14 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +8738 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

2018-09-14 Thread Guido van Rossum
New submission from Guido van Rossum : Input file with a subtle error: a number where an assignment target is required: for 1 in []: pass Run it, it gives a SyntaxError. Note how the caret pointing to the incorrect token is position one to the left of where you'd expect it: File "s.py", l

[issue33259] Encoding issue in the name of the local DST timezone

2018-09-14 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

2018-09-14 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue31635] test_strptime failure on OpenBSD

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

[issue32313] Wrong inspect.getsource for datetime

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

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

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

[issue34684] Generate _geoslib.c with Cython 0.28.2 for Python 3.7 transition

2018-09-14 Thread shirish
New submission from shirish : umm... I do not know about python other than python $something.py to run a python script. At Debian people are having an issue with not having _geoslib.c generated with a more recent Cython 0.28.2 for the transition. There is a patch and the bug has been put a

[issue34672] '%Z' strftime specifier never works with musl

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset b93062b7fbc965cd0d522f597ed51eb4e493dfc2 by Benjamin Peterson in branch 'master': bpo-34672: Don't pass NULL to gmtime_r. (GH-9312) https://github.com/python/cpython/commit/b93062b7fbc965cd0d522f597ed51eb4e493dfc2 -- __

[issue33649] asyncio docs overhaul

2018-09-14 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +8739 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34684] Generate _geoslib.c with Cython 0.28.2 for Python 3.7 transition

2018-09-14 Thread Zachary Ware
Zachary Ware added the comment: _geoslib.c is not part of the core distribution of Python, and in fact I don't know which project it *is* part of. I'm afraid you'll need to find its home project and report this there. -- nosy: +zach.ware resolution: -> third party stage: -> resolv

[issue34685] scheduler tests for posix_spawn fail on AMD64 FreeBSD 10.x Shared 3.x

2018-09-14 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/87/builds/1428/steps/4/logs/stdio == ERROR: test_setscheduler_with_policy (test.test_posix.TestPosixSpawn)

[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter

2018-09-14 Thread Erwan Le Pape
New submission from Erwan Le Pape : I'm attempting to leverage PEP 552 to make the core interpreter build process more deterministic. However, the standard Python Makefile uses `python -E` when calling the compileall (and all other setup scripts), which forces randomization since it can only

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 78aa3d8f5204bc856d7b2eb67288cf90c6a30660 by Eric V. Smith (Miss Islington (bot)) in branch '3.7': bpo-34363: dataclasses.asdict() and .astuple() now handle fields which are namedtuples. (GH-9151) (GH-9304) https://github.com/python/cpython/commi

[issue28955] Not matched behavior of numeric comparison with the documentation

2018-09-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +8740 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue28955] Not matched behavior of numeric comparison with the documentation

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ad8a0004206ba7aec5a8a60fce413da718080db2 by Benjamin Peterson (Tony Flury) in branch 'master': closes bpo-28955: Clarified comparisons between NaN and number in reference documentation (GH-5982) https://github.com/python/cpython/commit/ad8a0

[issue34682] Typo reports on docs@

2018-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: Agreed with @geoffreyspear: "means" is okay, the rest of the changes look good. -- nosy: +eric.smith ___ Python tracker ___ __

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

2018-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: I'm doing some fairly major surgery on line and column numbers for fixing f-string errors. I'll see if I can include this case, too. -- nosy: +eric.smith ___ Python tracker

[issue34685] scheduler tests for posix_spawn fail on AMD64 FreeBSD 10.x Shared 3.x

2018-09-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Some extra stdout when I try to reproduce this on FreeBSD: test_setscheduler_only_param (test.test_posix.TestPosixSpawn) ... Traceback (most recent call last): File "", line 5, in AttributeError: module 'os' has no attribute 'exit' FAIL test_setsche

[issue28955] Not matched behavior of numeric comparison with the documentation

2018-09-14 Thread miss-islington
miss-islington added the comment: New changeset ca2fa2841f8e3ce5213a0e8c0abc1d0fdc7d386b by Miss Islington (bot) in branch '3.7': closes bpo-28955: Clarified comparisons between NaN and number in reference documentation (GH-5982) https://github.com/python/cpython/commit/ca2fa2841f8e3ce5213a0

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-09-14 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32933] mock_open does not support iteration around text files.

2018-09-14 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Ned! Anthony, I'm one of the maintainers of https://github.com/testing-cabal/mock and I'd be happy to merge a PR that backports the fix to the PyPI version of mock. -- versions: +Python 3.7 ___ Python trac

[issue32933] mock_open does not support iteration around text files.

2018-09-14 Thread Anthony Flury
Anthony Flury added the comment: Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think ast.c is in the right here and there are two complementary bugs in caret printing and the parser. print_error_text does this: while (--offset > 0) PyFile_WriteString(" ", f); which is off-by-one if offset is zero-indexed (which it sho

[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: It would be preferable to fix build outputs to be deterministic even under randomization in the interpreter. -- nosy: +benjamin.peterson ___ Python tracker _

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

2018-09-14 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

2018-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: I think Benjamin's diagnosis is correct. In which case, my f-string error reporting changes (see #34364) won't intersect with a fix to this issue. -- ___ Python tracker

[issue31392] Upgrade installers to OpenSSL 1.1.0g and 1.0.2n

2018-09-14 Thread Ned Deily
Ned Deily added the comment: Sorry, this should have been closed a while back. We're now on to 1.0.2p for 3.6.7 and 1.1.0i for 3.7.1. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue3468] Satisfy her lovemaking desire

2018-09-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +8741 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue34685] scheduler tests for posix_spawn fail on AMD64 FreeBSD 10.x Shared 3.x

2018-09-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: What is failing is this line in the spawned process: os.sched_getparam(0).sched_priority != {priority} For some reason posix_spawn cannot change the priority in BSD. I have tried to hardcode the change in the implementation but the priority does not c

[issue34685] scheduler tests for posix_spawn fail on AMD64 FreeBSD 10.x Shared 3.x

2018-09-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +8742 stage: -> patch review ___ Python tracker ___ ___ Python

[issue32313] Wrong inspect.getsource for datetime

2018-09-14 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue31635] test_strptime failure on OpenBSD

2018-09-14 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

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

2018-09-14 Thread Petr Viktorin
Petr Viktorin added the comment: Well, hasn't this languished for a while. I've talked with Benjamin, and he's OK with just removing the "Porting Extension Modules to Python 3" HOWTO, and replacing it by links to external guides that do a much better job at documenting this. Also, Python 2.

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

2018-09-14 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +8743 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

  1   2   >