[issue37628] IDLE: Fix Font sample (config dialog) geometry

2019-07-25 Thread Tal Einat
Tal Einat added the comment: Since it's a text widget, it would be simple and rather intuitive to make it scrollable. We could then make its size set according to the size of the config dialog window, rather than the other way around. -- ___

[issue37585] Comparing PyDictValues does not give expected results

2019-07-25 Thread Kyle Stanley
Kyle Stanley added the comment: Added Brett to the nosy list since he was the one who suggested a documentation change. -- nosy: +brett.cannon ___ Python tracker ___

[issue37585] Comparing PyDictValues does not give expected results

2019-07-25 Thread Kyle Stanley
Kyle Stanley added the comment: Based on the current status of the discussion in python-dev, the most agreed upon solution so far seems to be updating the documentation to mention this behavior, rather than modifying the existing behavior. I opened a PR which updates the documentation for

[issue37585] Comparing PyDictValues does not give expected results

2019-07-25 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +14723 pull_request: https://github.com/python/cpython/pull/14954 ___ Python tracker ___

Re: Proper shebang for python3

2019-07-25 Thread Eli the Bearded
In comp.lang.python, Thomas 'PointedEars' Lahn wrote: > Michael Torrie wrote: >> On 7/24/19 4:20 PM, Cameron Simpson wrote: >>> That is some progress, hooray. Then there's just sbin -> bin to go. >> I suppose in the olden days sbin was for static binaries, […] > No, “sbin” is short for “*system*

Python 3.7 - Reading text from Terminal window

2019-07-25 Thread nir . zairi
Hi, I want it to wait for a specific text on the terminal window that it opens (putty.exe), how can i do it? from pywinauto.application import Application from pynput.keyboard import Key, Controller print('Configuring') app = Application().start(cmd_line=u'"C:\\...putty.exe" ')

Re: Why am I getting duplicate values in my output?

2019-07-25 Thread Chris Angelico
On Fri, Jul 26, 2019 at 12:46 PM DT wrote: > def main(): > ap_list = [] > ap_dict = {} > > for row in csv_reader: > ap_dict['ap_name'] = ap.name > ap_dict['ap_ipv4'] = ap.ipv4 > ap_dict['ap_model'] = ap.model > ap_dict['ap_location']

Why am I getting duplicate values in my output?

2019-07-25 Thread DT
With the following code: import csv class AccessPoint(object): def __init__(self, name, ipv4, model, location): self.name = name self.ipv4 = ipv4 self.model = model self.location = location print('{0} born'.format(self.name)) def __del__(self):

[issue29446] Improve tkinter 'import *' situation

2019-07-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29446] Improve tkinter 'import *' situation

2019-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 76b645124b3aaa34bc664eece43707c01ef1b382 by Terry Jan Reedy (Flavian Hautbois) in branch 'master': bpo-29446: tkinter 'import *' only imports what it should (GH-14864)

Can not execute options trade

2019-07-25 Thread spawnaga
The placeOrder command does not send the order for options trades. I tried to submit the order for stocks and it went through but not options # -*- coding: utf-8 -*- """ Created on Wed Jul 24 21:58:32 2019 @author: Alex Oraibi """ import time from time import localtime, strftime from

[issue37628] IDLE: Fix Font sample (config dialog) geometry

2019-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I consider it a bug for *IDLE* to place and size windows so that the bottom of the window is hidden. (If users, perhaps temporarily, move a window down so that the bottom is hidden, that is their business.) This is especially bad for the Settings dialog

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Cameron Simpson
On 26Jul2019 03:43, Chris Angelico wrote: On Fri, Jul 26, 2019 at 3:28 AM eryk sun wrote: On 7/25/19, Kirill Balunov wrote: import os from pathlib import Path dummy = " " # or "" or " " os.path.isdir(dummy) > False Path(dummy).is_dir() > True I can't reproduce

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Cameron Simpson
On 25Jul2019 13:40, eryk sun wrote: Windows trims trailing spaces and dots from the final component of a path, unless we use a non-normalized \\?\ path. Hoo! Well, that explains some extremely weird NAS behaviour I encountered the other month with some paths ending in spaces. (My machine

Re: Proper shebang for python3

2019-07-25 Thread Cameron Simpson
On 24Jul2019 22:57, Dan Sommers <2qdxy4rzwzuui...@potatochowder.com> wrote: On 7/24/19 10:24 PM, Michael Torrie wrote: ... In more recent times, binaries that are mostly applicable to the super user go there. I don't see why you would want to merge those. A normal user rarely has need of much

[issue37687] Invalid regexp should rise exception

2019-07-25 Thread Matthew Barnett
Matthew Barnett added the comment: For historical reasons, if it isn't valid as a repeat then it's a literal. This is true in other regex implementations, and is by no means unique to the re module. -- resolution: -> not a bug stage: -> resolved status: open -> closed

book on modern Python

2019-07-25 Thread beliavsky--- via Python-list
I did some basic programming in Python 2 and now use Python 3. All I know about Python 3 is that print is a function requiring parentheses. What is a good book on modern Python that covers topics such as type annotations? I know of Fluent Python: Clear, Concise, and Effective Programming by

[issue37687] Invalid regexp should rise exception

2019-07-25 Thread belegnar
New submission from belegnar : `re.error` should be rised on `re.compile("string{data}")` because manual says only numbers are valid within `{}` -- components: Regular Expressions messages: 348458 nosy: belegnar, ezio.melotti, mrabarnett priority: normal severity: normal status: open

[issue37686] No error message in joining two root directories

2019-07-25 Thread Bin Hu
New submission from Bin Hu : Two root directories shall not be joined in the first place. But, when such a command is passed, os.path.join() module should give a warning message instead of just keeping the second argument being passed as the output. Python 3.7.3 (default, Mar 27 2019,

[issue37641] Embeddable distribution pyc filenames show build machine location

2019-07-25 Thread miss-islington
miss-islington added the comment: New changeset 0f211979c29109dcffc3039a24a9d3ecdfd900c9 by Miss Islington (bot) in branch '3.8': bpo-37641 preserve relative file location in embeddable zip (GH-14884) https://github.com/python/cpython/commit/0f211979c29109dcffc3039a24a9d3ecdfd900c9

[issue37641] Embeddable distribution pyc filenames show build machine location

2019-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +14722 pull_request: https://github.com/python/cpython/pull/14953 ___ Python tracker ___

[issue37641] Embeddable distribution pyc filenames show build machine location

2019-07-25 Thread Steve Dower
Steve Dower added the comment: New changeset c4cda4369f4b8f33082890d16dfc364a90658ef6 by Steve Dower (Bill Collins) in branch 'master': bpo-37641 preserve relative file location in embeddable zip (GH-14884) https://github.com/python/cpython/commit/c4cda4369f4b8f33082890d16dfc364a90658ef6

[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue37685. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue37685. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37685] Fix equality checks for some types

2019-07-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +14721 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14952 ___ Python tracker

cx_Oracle 7.2.1

2019-07-25 Thread Anthony Tuininga
What is cx_Oracle? cx_Oracle is a Python extension module that enables access to Oracle Database for Python 3.x and 2.x and conforms to the Python database API 2.0 specifications with a number of enhancements. Where do I get it? https://oracle.github.io/python-cx_Oracle The easiest method to

[issue37685] Fix equality checks for some types

2019-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The __eq__ implementation should return NotImplemented instead of False or raising an exception (like AttributeError or TypeError) when it does not support comparison with the other operand's type. It is so for most of implementations in the stdlib, but

[issue37674] Is imp module deprecated or pending deprecation?

2019-07-25 Thread Brett Cannon
Brett Cannon added the comment: It's deprecated: https://github.com/python/cpython/blob/master/Lib/imp.py#L31. The wording is from back when the module was soft-deprecated via documentation before it was hard-deprecated via code. Feel free to tweak it to say "The imp module is deprecated in

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Chris Angelico
On Fri, Jul 26, 2019 at 6:13 AM Kirill Balunov wrote: > > > > чт, 25 июл. 2019 г. в 22:58, Chris Angelico : >> >> On Fri, Jul 26, 2019 at 5:52 AM Kirill Balunov >> wrote: >> [...] >> > No, it's not just because of curiosity. I will try to tell the background, >> > and maybe I went the wrong

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Kirill Balunov
чт, 25 июл. 2019 г. в 22:58, Chris Angelico : > On Fri, Jul 26, 2019 at 5:52 AM Kirill Balunov > wrote: > [...] > > No, it's not just because of curiosity. I will try to tell the > background, and maybe I went the wrong way initially. There is a very cool > project https://github.com/3b1b/manim,

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Chris Angelico
On Fri, Jul 26, 2019 at 5:52 AM Kirill Balunov wrote: > > > > чт, 25 июл. 2019 г. в 19:16, Chris Angelico : >> >> On Fri, Jul 26, 2019 at 1:30 AM Kirill Balunov >> wrote: >> > >> > Hi all! It is expected that: >> > ``` >> > >>> import os >> > >>> from pathlib import Path >> > >>> dummy = " "

[issue37684] list.extend docs inaccurate

2019-07-25 Thread wim glenn
Change by wim glenn : -- keywords: +patch pull_requests: +14720 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14951 ___ Python tracker ___

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Kirill Balunov
чт, 25 июл. 2019 г. в 19:16, Chris Angelico : > On Fri, Jul 26, 2019 at 1:30 AM Kirill Balunov > wrote: > > > > Hi all! It is expected that: > > ``` > > >>> import os > > >>> from pathlib import Path > > >>> dummy = " " # or "" or " " > > >>> os.path.isdir(dummy) > > False > > >>>

[issue37684] list.extend docs inaccurate

2019-07-25 Thread wim glenn
New submission from wim glenn : >From https://docs.python.org/3/tutorial/datastructures.html#more-on-lists : list.extend(iterable) Extend the list by appending all the items from the iterable. Equivalent to a[len(a):] = iterable. The "equivalent" is not very good. Consider

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Kirill Balunov
чт, 25 июл. 2019 г. в 20:28, eryk sun : > On 7/25/19, Kirill Balunov wrote: > > > import os > from pathlib import Path > dummy = " " # or "" or " " > os.path.isdir(dummy) > > False > Path(dummy).is_dir() > > True > > I can't reproduce the above result in either

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-25 Thread mental
mental added the comment: Interestingly enough the race only seems to occur when the mutator resets the index with an identical value (try replacing the setitem value with: `not X[0]` or populate from `[b'hi']` and with the mutator code use `X[0][::1]`. I can't help but think to implement

Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Maksim Fomin via Python-list
‐‐‐ Original Message ‐‐‐ On Thursday, July 25, 2019 3:27 PM, Kirill Balunov wrote: > Hi all! It is expected that: > > >>> import os > >>> from pathlib import Path > >>> dummy = " " # or "" or " " > >>> os.path.isdir(dummy) > > False > >>>

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread eryk sun
On 7/25/19, Chris Angelico wrote: > On Fri, Jul 26, 2019 at 3:54 AM eryk sun wrote: > >> That's what I said. But the OP shows os.path.isdir(" ") == False and >> Path(" ").is_dir() == True, which is what I cannot reproduce and >> really should not be able to reproduce, unless there's a bug >>

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Chris Angelico
On Fri, Jul 26, 2019 at 3:54 AM eryk sun wrote: > > On 7/25/19, Chris Angelico wrote: > > On Fri, Jul 26, 2019 at 3:28 AM eryk sun wrote: > >> > >> On 7/25/19, Kirill Balunov wrote: > >> > > >> import os > >> from pathlib import Path > >> dummy = " " # or "" or " " > >>

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread eryk sun
On 7/25/19, Chris Angelico wrote: > On Fri, Jul 26, 2019 at 3:28 AM eryk sun wrote: >> >> On 7/25/19, Kirill Balunov wrote: >> > >> import os >> from pathlib import Path >> dummy = " " # or "" or " " >> os.path.isdir(dummy) >> > False >> Path(dummy).is_dir() >> >

[issue37683] Use importlib.resources in venv

2019-07-25 Thread Brett Cannon
New submission from Brett Cannon : Right now the venv module directly reads the file system to find the activation scripts and then copies them over. Moving over to importlib.resources would be a more portable solution. Unfortunately the venv API is specifically tied to the file system via

[issue37682] random.sample should support iterators

2019-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Possible implementation: from itertools import islice as _islice def reservoir_sample(self, population, k): if k < 0: raise ValueError("Sample is negative") it = iter(population) result = list(_islice(it, k)) if len(result) < k:

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Chris Angelico
On Fri, Jul 26, 2019 at 3:28 AM eryk sun wrote: > > On 7/25/19, Kirill Balunov wrote: > > > import os > from pathlib import Path > dummy = " " # or "" or " " > os.path.isdir(dummy) > > False > Path(dummy).is_dir() > > True > > I can't reproduce the above result in

[issue24935] LDSHARED is not set according when CC is set.

2019-07-25 Thread Hong Xu
Change by Hong Xu : -- pull_requests: +14719 pull_request: https://github.com/python/cpython/pull/14950 ___ Python tracker ___ ___

[issue37682] random.sample should support iterators

2019-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: FYI, random.sample() (as most of other functions in the random module) is implemented in pure Python. -- nosy: +serhiy.storchaka ___ Python tracker

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread eryk sun
On 7/25/19, Kirill Balunov wrote: > import os from pathlib import Path dummy = " " # or "" or " " os.path.isdir(dummy) > False Path(dummy).is_dir() > True I can't reproduce the above result in either Linux or Windows. The results should only be different for an

[issue37682] random.sample should support iterators

2019-07-25 Thread mental
Change by mental : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37682] random.sample should support iterators

2019-07-25 Thread Thomas Dybdahl Ahle
New submission from Thomas Dybdahl Ahle : Given a generator `f()` we can use `random.sample(list(f()), 10)` to get a uniform sample of the values generated. This is fine, and fast, as long as `list(f())` easily fits in memory. However, if it doesn't, one has to implement the reservoir sampling

[issue37679] test_with_pip fails on FreeBSD 10 bot

2019-07-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37679] test_with_pip fails on FreeBSD 10 bot

2019-07-25 Thread Steve Dower
Steve Dower added the comment: Guessing this is a new warning in pip? Can we just disable the cache explicitly for these tests? Or should we reconfigure the buildbot to suppress the warning. -- nosy: +Marcus.Smith, dstufft, ncoghlan, paul.moore, pradyunsg, steve.dower

[issue37502] Fix default argument handling for buffers argument in pickle.loads

2019-07-25 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37502] Fix default argument handling for buffers argument in pickle.loads

2019-07-25 Thread miss-islington
miss-islington added the comment: New changeset 25cb4fd4fb0f44d2b6bf38379634f3d22b77aa17 by Miss Islington (bot) in branch '3.8': bpo-37502: handle default parameter for buffers argument of pickle.loads correctly (GH-14593)

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-25 Thread mental
mental added the comment: I have been able to reproduce the issue. I'm currently investigating to see what exactly inside the source of ShareableList is causing what appears to be miss synchronization. Currently I think the issue is the documentation failing to mention that ShareableList

Re: Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Chris Angelico
On Fri, Jul 26, 2019 at 1:30 AM Kirill Balunov wrote: > > Hi all! It is expected that: > ``` > >>> import os > >>> from pathlib import Path > >>> dummy = " " # or "" or " " > >>> os.path.isdir(dummy) > False > >>> Path(dummy).is_dir() > True > ``` > > or was it overlooked? > Was not aware

[issue37681] warning: ‘no_sanitize_thread’

2019-07-25 Thread hai shi
New submission from hai shi : When I build cpython, I got this error: Objects/obmalloc.c:1414:1: warning: ‘no_sanitize_thread’ attribute directive ignored [-Wattributes] { ^ I removed the _Py_NO_SANITIZE_THREAD and build again, this warning dismissed. not sure ASAN、TSAN and MSAN have some

[issue37502] Fix default argument handling for buffers argument in pickle.loads

2019-07-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 898318b53d921298d1f1fcfa0f415844afbeb318 by Antoine Pitrou (Markus Mohrhard) in branch 'master': bpo-37502: handle default parameter for buffers argument of pickle.loads correctly (GH-14593)

[issue37502] Fix default argument handling for buffers argument in pickle.loads

2019-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +14718 pull_request: https://github.com/python/cpython/pull/14948 ___ Python tracker ___

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-25 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +pierreglaser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30685] Multiprocessing Send to Manager Fails for Large Payload

2019-07-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's right. Thanks Zackery! -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> problem using multiprocessing with really big objects? ___ Python tracker

Difference between os.path.isdir and Path.is_dir

2019-07-25 Thread Kirill Balunov
Hi all! It is expected that: ``` >>> import os >>> from pathlib import Path >>> dummy = " " # or "" or " " >>> os.path.isdir(dummy) False >>> Path(dummy).is_dir() True ``` or was it overlooked? with kind regards, -gdg -- https://mail.python.org/mailman/listinfo/python-list

[issue37680] distutils appends LDFLAGS environment variable before object file names

2019-07-25 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37680] distutils appends LDFLAGS environment variable before object file names

2019-07-25 Thread Omer Ozarslan
Omer Ozarslan added the comment: Attached a better example. Run make (static_example|shared_example|working_shared_example). -- Added file: https://bugs.python.org/file48506/python-issue-2.tar.gz ___ Python tracker

Re: Proper shebang for python3

2019-07-25 Thread MRAB
On 2019-07-25 03:57, Dan Sommers wrote: On 7/24/19 10:24 PM, Michael Torrie wrote: > ... In more recent times, binaries that are mostly applicable to the > super user go there. I don't see why you would want to merge those. > A normal user rarely has need of much in /sbin. Already /bin

[issue36692] Unexpected stderr output from test_sys_settrace

2019-07-25 Thread hai shi
hai shi added the comment: It looks like setstrace function trigger this codeline: https://github.com/python/cpython/blob/master/Modules/_asynciomodule.c#L2618 Looks we can use set_exception_handler() to catch this error, but i am not sure it is worth catching this error through adding a

[issue37680] distutils appends LDFLAGS environment variable before object file names

2019-07-25 Thread Omer Ozarslan
New submission from Omer Ozarslan : distutils honors some environment variables during extension build, however, LDFLAGS is appended before declaring object files. This causes undefined symbols during importing an extension built with some static libraries using this environment variable.

Re: Proper shebang for python3

2019-07-25 Thread Dan Sommers
On 7/24/19 10:24 PM, Michael Torrie wrote: > ... In more recent times, binaries that are mostly applicable to the > super user go there. I don't see why you would want to merge those. > A normal user rarely has need of much in /sbin. Already /bin has way > too much stuff in it (although I

[issue35145] sqlite3: optionally autoconvert table_info's DATETIME fields

2019-07-25 Thread Robert Pollak
Robert Pollak added the comment: Sorry for not providing a pull request yet. By the way, the "DB Browser for SQLite" (https://sqlitebrowser.org/) also interprets DATETIME fields correctly. (Could someone please change the "Stage" of this issue to "needs patch"?) -- versions:

[issue37398] contextlib.ContextDecorator decorating async functions

2019-07-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I still think that iscoroutinefunction should not be used for async/sync decoration type autodetection. A day ago stuck with a case when decorator used iscoroutinefunction() for separation but returned a regular function wrapper that returns awaitable in

[issue37664] Update bundled pip and setuptools

2019-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This change seems to have buildbot failure on FreeBSD 10 for master and 3.8 branch. I have opened issue37679 . I couldn't find any issues similar to this during previous upgrades. https://buildbot.python.org/all/#/builders/167/builds/1380

[issue37679] test_with_pip fails on FreeBSD 10 bot

2019-07-25 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I guess the upgrade in issue37664 caused an issue with FreeBSD bot. The bot seems to fail after this change on master and 3.8. https://buildbot.python.org/all/#/builders/167/builds/1380 test_with_pip (test.test_venv.EnsurePipTest) ... FAIL

[issue37678] Incorrect behaviour for user@password URI pattern in urlparse

2019-07-25 Thread Sean Wang
New submission from Sean Wang : When an IPV4 URL with 'username:password' in it, and the password contains special characters like #[]?, urlparse would act as unexcepted. example: urlparse('http://user:pass#?[w...@example.com:80/path') -- components: Library (Lib) messages: 348431

[issue37677] Seg Fault on OSX when multiprocessing

2019-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. It would be helpful to have a standalone reproducer for this issue to try reproducing it in 3.6 and other versions. -- nosy: +davin, pitrou, xtreak ___ Python tracker

[issue37676] cmath.phase array support

2019-07-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___

[issue37677] Seg Fault on OSX when multiprocessing

2019-07-25 Thread alvis
New submission from alvis : Encountered a crash with the following logs. I have already added no_proxy=*, and it fixed the issue which i can replicate consistent. However, this crash does not happen every time, maybe once in a few week. Process: Python [66435] Path:

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2019-07-25 Thread Саша Черных
Change by Саша Черных : -- nosy: +nervov_fan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37676] cmath.phase array support

2019-07-25 Thread Hendrik
New submission from Hendrik : It would be nice if cmath.phase supports arrays like this: ``` import cmath import numpy as np z=255*np.ones((3,3)) * np.exp(1j * np.pi*np.ones((3,3))) def get_k_amp_array(z): return abs(z) def get_k_ph_array(z): return np.array([[cmath.phase(z_row) for

[issue37398] contextlib.ContextDecorator decorating async functions

2019-07-25 Thread Nathaniel Smith
Nathaniel Smith added the comment: There are two different axes of sync/async here, and it's important not to mix them up: the context manager could be sync or async, and the function that's being decorated could be sync or async. This issue is about the case where you have a sync context

[issue37398] contextlib.ContextDecorator decorating async functions

2019-07-25 Thread John Belmonte
John Belmonte added the comment: I was caught by this again, indirectly via @contextmanager. If I define a non-async context manager using @contextmanager, I expect the decorator support to work on async functions. I.e. the following should be equivalent: ``` async def foo(): with