[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 ___

[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)

[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

[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

[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

[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

[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 ___

[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

[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

[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:

[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

[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

[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

[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

[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.

[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