[issue35198] Build issue while compiling cpp files in AIX

2019-01-04 Thread Kevin
Kevin added the comment: Ah. We always compile with GCC, so would not have hit that particular problem. -- ___ Python tracker ___

[issue35657] multiprocessing.Process.join() ignores timeout if child process use os.exec*()

2019-01-04 Thread Josh Rosenberg
Josh Rosenberg added the comment: Looks like the cause of the change was when os.pipe was changed to create non-inheritable pipes by default; if I monkey-patch multiprocessing.popen_fork.Popen._launch to use os.pipe2(0) instead of os.pipe() to get inheritable descriptors or just clear

[issue35657] multiprocessing.Process.join() ignores timeout if child process use os.exec*()

2019-01-04 Thread Josh Rosenberg
Josh Rosenberg added the comment: I don't know what triggered the change, but I strongly suspect this is not a supported use of the multiprocessing module; Process is for worker processes (still running Python), and it has a lot of coordination machinery set up between parent and child (for

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I think this can be closed now. Whether to merge doc-fix backport to now security-only 3.6 branch is up to Ned. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread miss-islington
miss-islington added the comment: New changeset 902196d867a34cc154fa9c861c883e69232251c6 by Miss Islington (bot) in branch '3.7': bpo-35631: Improve typing docs wrt abstract/concrete collection types (GH-11396) https://github.com/python/cpython/commit/902196d867a34cc154fa9c861c883e69232251c6

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +10853, 10854, 10855, 10856, 10857, 10858 ___ Python tracker ___ ___ Python-bugs-list

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +10856, 10857, 10858 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +10856, 10857 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 31ec52a9afedd77e36a3ddc31c4c45664b8ac410 by Ivan Levkivskyi (Ville Skyttä) in branch 'master': bpo-35631: Improve typing docs wrt abstract/concrete collection types (GH-11396)

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +10854, 10856 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +10853, 10854 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35631] Improve typing docs wrt abstract/concrete collection types

2019-01-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +10853 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2019-01-04 Thread STINNER Victor
STINNER Victor added the comment: Nice optimization! I wanted to implement it, but then I forgot. -- ___ Python tracker ___ ___

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2019-01-04 Thread Vaibhav Gupta
Vaibhav Gupta added the comment: Hi Emmanuel Please go ahead and make a PR. :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2019-01-04 Thread Emmanuel Arias
Emmanuel Arias added the comment: ping Vaibhav :-) > I would like to make a PR for this. -- nosy: +eamanu ___ Python tracker ___

[issue35658] Reggie_Linear_Regression_Solution.ipynb devide by 10 diff with multiply by .1

2019-01-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: Not a bug. 0.1 is a binary floating point value, please read the FAQs: https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate 1/10 = 0.1 in decimal cannot be represented *exactly* in binary floating point, so when you

[issue35609] Improve of abc.py docstring

2019-01-04 Thread Emmanuel Arias
Emmanuel Arias added the comment: > No plan for removal. See https://bugs.python.org/issue28886#msg282582 Thanks! -- ___ Python tracker ___

[issue35658] Reggie_Linear_Regression_Solution.ipynb devide by 10 diff with multiply by .1

2019-01-04 Thread Bart van den Donk
New submission from Bart van den Donk : possible_ms1 = [i*.1 for i in range(-100, 101, 1)] #your list comprehension here print(possible_ms1) possible_ms2 = [i/10 for i in range(-100, 101, 1)] #your list comprehension here print(possible_ms2) Multiply by .1 gives dirty results. Divide by 10

[issue10948] Trouble with dir_util created dir cache

2019-01-04 Thread Malcolm Smith
Malcolm Smith added the comment: Please reopen this issue. The distutils2 project has now been abandoned, so that's no longer a justification for taking no action. At the very least, the documentation should be fixed to either warn about this surprising behavior, or make it clear that the

[issue35198] Build issue while compiling cpp files in AIX

2019-01-04 Thread Michael Felt
Michael Felt added the comment: While the PR probably solves this - there is a 'bug' in pandas (I expect) that prevents me from completing the test - as, I expect LONG before the .cpp source is to be compiled - there is a error because a wrong flag is passed to the compiler

[issue35657] multiprocessing.Process.join() ignores timeout if child process use os.exec*()

2019-01-04 Thread Huazuo Gao
New submission from Huazuo Gao : import os import time from multiprocessing import Process p = Process(target=lambda:os.execlp('bash', 'bash', '-c', 'sleep 1.5')) t0 = time.time() p.start() p.join(0.1) print(time.time() - t0) --- Python 3.5 - 3.8 take 1.5 sec to finish Python 2.7 take 0.1

[issue35655] documentation have wrong info about fibo module examples

2019-01-04 Thread Christian Heimes
Christian Heimes added the comment: The documentation examples are not based on the 3rd party Fibo Python package. All examples are based on the short script https://docs.python.org/3/tutorial/modules.html?highlight=fibo#modules : For instance, use your favorite text editor to create a

[issue35656] More matchers in unittest.mock

2019-01-04 Thread Petter S
New submission from Petter S : The ``ANY`` object in ``unittest.mock`` is also pretty useful when verifying dicts in tests: self.assertEqual(result, { "message": "Hi!", "code": 0, "id": mock.ANY }) Then it does not matter what the (presumably randomly

[issue35655] documentation have wrong info about fibo module examples

2019-01-04 Thread Juan
New submission from Juan : The below sections in modules documentation have wrong information about fibo module: 6. Modules 6.1. More on Modules 6.1.1. Executing modules as scripts 6.3. The dir() Function The name of module is Fibo not fibo and the attributes are fab,fab2 not fib,fib2.

[issue35654] Remove 'guarantee' that sorting only relies on __lt__ from sorting howto

2019-01-04 Thread Martijn Pieters
Martijn Pieters added the comment: (I have no opinion on this having to be a language feature however) -- ___ Python tracker ___

[issue35654] Remove 'guarantee' that sorting only relies on __lt__ from sorting howto

2019-01-04 Thread Martijn Pieters
Martijn Pieters added the comment: Well, if this is indeed by design (and I missed the list.sort() reference) then I agree the HOWTO should not be changed! I'd be happy to change this to asking for more explicit mentions in the docs for sorted, heapq and bisect that using only < (__lt__) is

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-01-04 Thread twisteroid ambassador
twisteroid ambassador added the comment: Oh wait, there's also this in asyncio docs for loop.sock_connect: Changed in version 3.5.2: address no longer needs to be resolved. sock_connect will try to check if the address is already resolved by calling socket.inet_pton(). If not,

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-01-04 Thread twisteroid ambassador
twisteroid ambassador added the comment: I just noticed that in the socket module, an AF_INET address tuple is allowed to have an unresolved host name. Quote: A pair (host, port) is used for the AF_INET address family, where host is a string representing either a hostname in Internet domain

<    1   2