[issue34315] Regex not evalauated correctly

2018-08-01 Thread Raman
New submission from Raman : Sample code below import re regex = r'DELETE\s*(?P[a-zA-z_0-9]*)\s*FROM\s*(?P[a-zA-z_0-9]+)\s*([a-zA-Z0-9_]*)\s*(?PWHERE){0,1}(\s.)*?' test_str = 'DELETE FROM my_table1 t_ WHERE id in (1,2,3)' matches = re.finditer(regex, test_str, re.MULTILINE)

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2018-08-01 Thread chipstuff
chipstuff added the comment: Experienced the same issue, this is either Permissions or Antivirus blocking Python from being installed. After uninstall third party AV (avast) and running the following commands to update Defender's signature files the installation was completed.

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-01 Thread James Emerton
James Emerton added the comment: @rhettinger See #34311 about formatting Decimals using locale.format(). I'd like to see the problem fixed in one place or the other. Also, this is seems relatively straightforward to implement as it's really just a combination of the fixed precision 'f' and

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to see locale() remain somewhat decoupled from the rest of string formatting. IIRC locale() is finicky especially when concurrency is involved. I think a best practice is for an app to address locale issues explicitly rather than inside

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-08-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.walk() and glob.glob() used *only* stat(), opendir() and readdir() syscalls (and stat() syscalls dominated). The effect of reducing the number of the stat() syscalls is significant. shutil.rmtree() uses also the unlink() syscall. Since it is usually

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-01 Thread James Emerton
James Emerton added the comment: So far, I've implemented this for Decimal -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34312] Allow str.endswith and str.startswith to accept an iterable

2018-08-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have same concerns as Raymond. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue34314] Like __hash__, allow setting MyClass.__init__ to None to prevent it being called by type.__call__

2018-08-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Setting __hash__ to None doesn't do what you think. It doesn't prevent __hash__ from being called by hash(), instead it produces a TypeError. >>> class A: __hash__ = None ... >>> hash(A()) Traceback (most recent call last): File "", line 1, in

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8118 stage: -> patch review ___ Python tracker ___ ___

[issue34314] Like __hash__, allow setting MyClass.__init__ to None to prevent it being called by type.__call__

2018-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Right now, you really gotta jump through hoops > in some cases if you only want to use __new__ > and don't care about __init__ I'm now sure I see the difficulty. It is easy to define a classes with __new__ and without __init__: >>> class A:

[issue34314] Like __hash__, allow setting MyClass.__init__ to None to prevent it being called by type.__call__

2018-08-01 Thread Dan Snider
New submission from Dan Snider : Right now, you really gotta jump through hoops in some cases if you only want to use __new__ and don't care about __init__ (is there ever a time where you'd use both?). The problem originates in type.__call__. I'm attaching a full Python implementation of

[issue34259] Improve docstring of list.sort

2018-08-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34312] Allow str.endswith and str.startswith to accept an iterable

2018-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM that this would encourage silently inefficient coding patterns like: url.endswith({'.html', '.txt', '.php'}) # The set object gets rebuilt on every call # and a new set iterator object gets built on every call. # Looping over the contents

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-08-01 Thread ppperry
Change by ppperry : -- title: RFC: issue a warning in regrtest when no test have been executed? -> RFC: issue a warning in regrtest when no tests have been executed? ___ Python tracker

[issue34259] Improve docstring of list.sort

2018-08-01 Thread Josh Rosenberg
Josh Rosenberg added the comment: Copying from the sorted built-in's docstring would make sense here, given that sorted is implemented in terms of list.sort in the first place. -- nosy: +josh.r ___ Python tracker

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-01 Thread James Emerton
Change by James Emerton : -- nosy: +jemerton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-01 Thread James Emerton
James Emerton added the comment: Certainly adding another letter to the format spec would solve my issue and would in fact be somewhat preferable to using local.format directly. I think this could be fixed in the locale module by transforming the format spec and using new-style formatting,

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-01 Thread Eric V. Smith
Eric V. Smith added the comment: Would my suggestion in #33731 of adding another letter in the format spec for float and decimal.Decimal solve your problem? I guess if you're using monetary=True you'd need two additional letters: like 'f' but locale aware, and like 'f' but locale aware and

[issue34286] lib2to3 tests fail on the 3.7 branch (used to work with 3.7.0)

2018-08-01 Thread Berker Peksag
Berker Peksag added the comment: I ran "python3.7 -m test test_lib2to3" in a separate terminal. I don't remember the exact location, but I'm sure it wasn't the build location (it was probably my home directory) Is it possible to add some debug print()s inside

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-01 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-08-01 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I agree the provided benchmark on Linux should be more refined. And I'm not sure if "echo 3 | sudo tee /proc/sys/vm/drop_caches" before running it is enough honestly. The main point here is the reduction of stat() syscalls (-38%) and that can make a

[issue34302] Avoid inefficient way to find start point in deque.index

2018-08-01 Thread Seonggi Kim
Seonggi Kim added the comment: I thing so too, it's my fault. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34302] Avoid inefficient way to find start point in deque.index

2018-08-01 Thread ksg97031
Change by ksg97031 : -- keywords: +patch pull_requests: +8117 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34286] lib2to3 tests fail on the 3.7 branch (used to work with 3.7.0)

2018-08-01 Thread Matthias Klose
Matthias Klose added the comment: strange. I see it succeeding in the build location, not the install location. Did you make sure to cd /tmp before running the test? I still can reproduce it: $ python3.7 -m test test_lib2to3 Run tests sequentially 0:00:00 load avg: 0.24 [1/1] test_lib2to3

[issue34313] IDLE crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume then that you tested PR8603 without opening an editor (which is certainly possible). 10.13.6 was released in the last month. PCBuild/build.bat -e downloads missing external dependency source code into externals/ and then compiles it into

[issue24255] Replace debuglevel-related logic with logging

2018-08-01 Thread Conrad Ho
Conrad Ho added the comment: Hi, I have referenced the original patch and created an updated patch that uses the logging module + f-strings in place of the print statements in the http.client module. Also updated the relevant tests for print/logging in test_httplib to reflect these

[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

2018-08-01 Thread Eric Snow
Eric Snow added the comment: Also, PEP 3121 provides a good summary of some of the issues at hand. -- ___ Python tracker ___ ___

[issue1230540] sys.excepthook doesn't work in threads

2018-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: No, I think this is a bug that deserves fixing, at least in 3.8. -- versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

2018-08-01 Thread Eric Snow
Eric Snow added the comment: Also, part of the motivation for PEP 489 (extension module initialization) was to help with reloading extension modules. -- nosy: +petr.viktorin ___ Python tracker

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Removing 2.7 was unintended, from simultaneous editing. This is one of the exceptional cases where a backport is worth the risk (which seems here extremely low). I will remove it from the PR because auto backport will fail because of file renames, in

[issue1230540] sys.excepthook doesn't work in threads

2018-08-01 Thread Andrey Vlasovskikh
Andrey Vlasovskikh added the comment: I've added a PR with a patch I developed during the EuroPython 2018 sprint. I've fixed this issue in a way that is more or less consistent with how '_thread' threads interact with sys.excepthook, but I haven't added the log line they print to sys.stderr

[issue1230540] sys.excepthook doesn't work in threads

2018-08-01 Thread Andrey Vlasovskikh
Change by Andrey Vlasovskikh : -- keywords: +patch pull_requests: +8116 stage: needs patch -> patch review ___ Python tracker ___

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Tal Einat
Tal Einat added the comment: Why remove the 2.7 version? This bug occurs with 2.7.15 on macOS. -- ___ Python tracker ___ ___

[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

2018-08-01 Thread Eric Snow
Eric Snow added the comment: Ah, thanks for clarifying. So which of these is the main thing you really want: 1. reload extension modules 2. completely restart Python It sounds like #1. If that's the case then there are a number of issues to resolve to make it work. However, there are

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I wrote the following justification for adding grab_release while Tal was revising his PR to make the change. I will look at the PR now and test on Windows. --- Vlad, I was wondering about modality. Properly de-modalizing a dialog requires more than just

[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

2018-08-01 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34313] IDLE crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-08-01 Thread Tal Einat
New submission from Tal Einat : On macOS 10.13.5 (the latest available) with ActiveTcl 8.6.7 (the latest available), I'm building Python from latest master (to be 3.8.0). I'm consistently having IDLE crash almost immediately, just by opening any file for editing. The crash results in the

[issue34312] Allow str.endswith and str.startswith to accept an iterable

2018-08-01 Thread Brett Cannon
New submission from Brett Cannon : str.endswith() and str.startswith() only takes str or a tuple of str. It might be nice to make this str or an iterable of str (and that order must be kept so that a string isn't treated as an iterable of length-1 str). -- components: Interpreter

[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

2018-08-01 Thread chris
chris added the comment: Thanks for your comments and the link to the issue from the year 2000. > You mention "embedded python interpreter", but it sounds more like you mean > "embedded python runtime" Yes that's right. Sorry for imprecise wording. > Why is completely resetting Python "a

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-01 Thread James Emerton
New submission from James Emerton : We use locale.format('%.2f', x, True) to convert Decimal values to strings for display. Unfortunately, the locale module is using %-formatting to generate the initial string before applying locale specific formatting. As a result, any value which cannot be

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Tal Einat
Change by Tal Einat : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Tal Einat
Tal Einat added the comment: Adding grab_release() calls also resolves the issue. Tested on mac and win. PR updated with this approach, IMO ready for review. -- ___ Python tracker

[issue34302] Avoid inefficient way to find start point in deque.index

2018-08-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Why are we getting multiple tracker items opening and closing for this at the same time? Something odd is happening. Please don't close the tracker and change user ids in the middle of a conversation: https://bugs.python.org/issue34298

[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

2018-08-01 Thread Eric Snow
Eric Snow added the comment: Regarding your 3 points: > a) Py_Finalize cannot be used reliably Note that unloading extension modules is not the only thing that Py_Finalize isn't doing that it probably should be. I expect that you would find a number of memory leaks and potentially cases

[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

2018-08-01 Thread Eric Snow
Eric Snow added the comment: The matter of unloading extension modules is partly covered in bpo-401713. However, note that a few things have changed in the last 18 years. :) I think it would be worth revisiting the decision in that issue at this point. If that were sorted out would there

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Vlad Tudorache
Vlad Tudorache added the comment: I've checked again the source code in config_key.py, configdialog.py, help_about.py, query.py, searchbase.py, textview.py and added a self.grab_release() in functions like ok() and cancel() before the call to self.destroy() and I see no more lock/focus

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2018-08-01 Thread Berker Peksag
Berker Peksag added the comment: I've fixed a bug that uses DOMEventStream.__getitem__ at work today. I've opened PR 8609 to deprecate __getitem__ methods of DOMEventStream, FileInput and FileWrapper classes. -- components: +Library (Lib) nosy: +berker.peksag versions: +Python 3.8

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2018-08-01 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +8115 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34307] NullHandler init refusing arguments

2018-08-01 Thread Vinay Sajip
Vinay Sajip added the comment: > I expected it to be a "dummy" handler that might accept any argument I don't know why you expected that, but your expectation wasn't valid. You will need to define your own BaseHandler which handles any arguments passed by your logging configuration.

[issue34310] Build error with option "--with-pydebug" on Mac OS 10.13.6

2018-08-01 Thread Wu Yu
New submission from Wu Yu : I'm encountering a build error from the master branch of CPython (heads/master-dirty:d17fe275a3) on Mac OS 10.13.6, with "--with-pydebug" turned on. The error message: ./python.exe -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \

[issue34309] Embedding Python; Py_Initialize / Py_Finalize cycles

2018-08-01 Thread chris
New submission from chris : I'm linking an issue from numpy here: https://github.com/numpy/numpy/issues/8097 Embedding python suffers from a possibility to reliably reset the state of the python interpreter. For my use case, I noticed that when using numpy with Py_Initialize() and

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Vlad Tudorache
Vlad Tudorache added the comment: Adding self.grab_release() in the ok() method for the dialogs BEFORE destroy() solved the problem for me, keeping the grab_set() methods in place (uncommented, actives). -- ___ Python tracker

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Vlad Tudorache
Vlad Tudorache added the comment: I can confirm that removing the grab_set() calls fixes the locking. But am I the only one to notice that the dialogs aren't modal any more? -- ___ Python tracker

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-08-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For dropping disc caches on Linux run with open('/proc/sys/vm/drop_caches', 'ab') as f: f.write(b'3\n') before every test. -- ___ Python tracker

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-08-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not convinced that this change should be merged. The benefit is small, and 1) it is only for an artificial set of tiny files, 2) the benchmarking ignores the real IO, it measures the work with a cache. When copy real files (/usr/include or Lib/) with

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-01 Thread STINNER Victor
STINNER Victor added the comment: """ TODO list, open questions: * Should isolated=1 always imply config->ignore_environment=1 and config->user_site_directory = 0? * Should we rename debug to parser_debug? "debug" is a very generic term, whereas this flag is really specific to the parser *

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 80b762f010097ab8137782e5fbdc89c5c620ed4e by Victor Stinner in branch 'master': bpo-31650: Remove _Py_CheckHashBasedPycsMode global config var (GH-8608) https://github.com/python/cpython/commit/80b762f010097ab8137782e5fbdc89c5c620ed4e

[issue31650] implement PEP 552

2018-08-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 80b762f010097ab8137782e5fbdc89c5c620ed4e by Victor Stinner in branch 'master': bpo-31650: Remove _Py_CheckHashBasedPycsMode global config var (GH-8608) https://github.com/python/cpython/commit/80b762f010097ab8137782e5fbdc89c5c620ed4e

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8114 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31650] implement PEP 552

2018-08-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8113 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6c785c0ebdadc84d80a53d896c38fd7ada8ae1f6 by Victor Stinner in branch 'master': bpo-34170: Add Python/coreconfig.c for _PyCoreConfig (GH-8607) https://github.com/python/cpython/commit/6c785c0ebdadc84d80a53d896c38fd7ada8ae1f6 --

[issue34286] lib2to3 tests fail on the 3.7 branch (used to work with 3.7.0)

2018-08-01 Thread Berker Peksag
Berker Peksag added the comment: I'm not able to reproduce this: ./configure make -s -j sudo make install python3.7 -m test test_lib2to3 Run tests sequentially 0:00:00 load avg: 0.86 [1/1] test_lib2to3 == Tests result: SUCCESS == 1 test OK. Total duration: 13 sec 456 ms Tests

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-08-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8112 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34308] shutil.copystat fails in dockered Linux (Debian) on Azure (Windows)

2018-08-01 Thread Chantal Ackermann
New submission from Chantal Ackermann : root:/media/documents# df -h FilesystemSize Used Available Use% Mounted on overlay 29.0G 24.0G 5.0G 83% / tmpfs 1.7G 0 1.7G 0% /dev tmpfs 1.7G 0

[issue32752] no information about accessing typing.Generic type arguments

2018-08-01 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > 3.7 is less convenient and less consistent Taking into account that internal API is something one should never use, I don't think these terms apply here. Anyway, we will provide some helpers for external use in one of the next releases. --

[issue33499] Environment variable to set alternate location for pycache tree

2018-08-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset fc96437db4fa95dff99d43d4500beaf12bad5bff by Victor Stinner in branch 'master': bpo-33499: Fix pymain_init_pycache_prefix() (GH-8596) https://github.com/python/cpython/commit/fc96437db4fa95dff99d43d4500beaf12bad5bff -- nosy: +vstinner

[issue34302] Avoid inefficient way to find start point in deque.index

2018-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: That's ok, I hadn't expected that you'd sign the CLA before being asked to do so :-) Good luck. -- ___ Python tracker ___

[issue34302] Avoid inefficient way to find start point in deque.index

2018-08-01 Thread Seonggi Kim
Seonggi Kim added the comment: Sorry, I'm waiting for permit CLA signing. I will request PR after CLA was signed. -- nosy: +hacksg ___ Python tracker ___

[issue34307] NullHandler init refusing arguments

2018-08-01 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34307] NullHandler init refusing arguments

2018-08-01 Thread Romuald Brunet
Change by Romuald Brunet : -- keywords: +patch pull_requests: +8111 stage: -> patch review ___ Python tracker ___ ___

[issue34307] NullHandler init refusing arguments

2018-08-01 Thread Romuald Brunet
New submission from Romuald Brunet : Context: I'm using a custom Handler that relies on a third-party library that may not be present try: from acme.logging import CustomHandler as BaseHandler except ImportError: import logging.NullHandler as BaseHandler class

[issue34306] minidom: wrong processing of xmlns attributes

2018-08-01 Thread Victor Porton
New submission from Victor Porton : The below script prints http://www.w3.org/2000/xmlns/ aa:aa It should print None aa:aa because xmlns:z is NOT an attribute of xmlns namespace. ~~~ import xml.dom.minidom x = xml.dom.minidom.parseString("") for i in

[issue34302] Avoid inefficient way to find start point in deque.index

2018-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what your proposal is. Do you have a patch that increases the performance of collections.deque in some cases? If so please share that patch, preferably as a pull request on GitHub (see for an

[issue34211] Cygwin build broken due to use of _Type in static declaration in _abc module

2018-08-01 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Linker issues are always tricky... I understand that there is no problem within libpython, so the questions below refer to extension modules. I am asking them from the point of view of somebody writing Python extension modules who is clueless about Cygwin.

[issue34211] Cygwin build broken due to use of _Type in static declaration in _abc module

2018-08-01 Thread Erik Bray
Erik Bray added the comment: > For those who are not very aware of Cygwin issues: what is wrong with > > PyVarObject_HEAD_INIT(_Type, 0); I'm glad you asked, because it actually got me thinking, and since I added a fix (albeit an unsatisfying one) for issue34212, this fix is no longer

[issue25095] test_httpservers hangs since Python 3.5

2018-08-01 Thread William Pickard
William Pickard added the comment: My computer was running BitDefender Total Security 2018 (At the time, currently running the 2019 edition) and MalwareBytes 3 Premium. BitDefender has both a built-in firewall and a web protection module while MalwareBytes has a web protection module.

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-08-01 Thread Kevin Walzer
Kevin Walzer added the comment: Tal, your proposed revisions to the patch work fine. It's harmless to leave the older calls to MacWindowStyle there. New patch attached. -- Added file: https://bugs.python.org/file47726/calltips_w-2.diff ___ Python

[issue34304] clarification on escaping \d in regular expressions

2018-08-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you want to replace %d with literal \d, you need to repeat the backslash 4 times: pattern = re.sub('%d', 'd+', pattern) or use a raw string literal and repeat the backslash 2 times: pattern = re.sub('%d', r'\\d+', pattern) Since the

[issue34304] clarification on escaping \d in regular expressions

2018-08-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The reported behavior is reproducible in master as well as of ea68d83933 but not on 3.6.0. I couldn't bisect to the exact commit between 3.7.0 and 3.6.0 where this change was introduced though. I can also see some deprecation warnings as below

[issue34273] %f is confusingly associated with fixed point format

2018-08-01 Thread Michael Fischer
Michael Fischer added the comment: Thank you for your quick reply. I understand why you chose this description better now. However in C %f behaves exactly the same as in Python (for floating-point numbers) and you will mostly find the description for it along the lines of: '%f' Print a

[issue34303] micro-optimizations in functools.reduce()

2018-08-01 Thread INADA Naoki
Change by INADA Naoki : -- type: enhancement -> performance versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Tal Einat
Tal Einat added the comment: Confirmed on macOS 10.13.5 with the new Python 2.7.15 64-bit from python.org which bundles Tcl/Tk 8.6.8. The same fix works: Removing the grab_set() calls fixes the freezing after closing the about and config dialogs. --

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Tal Einat
Tal Einat added the comment: I can confirm that removing .grab_set() calls fixes this issue on macOS 10.13.5 with Python 3.7.0 from python.org. Searching for those calls in all of IDLE's code lead me to discover additional similar issues, e.g. with the search dialog and the text viewer.

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +8110 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34304] clarification on escaping \d in regular expressions

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

[issue34303] micro-optimizations in functools.reduce()

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

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-08-01 Thread Kamil Gałuszka
Kamil Gałuszka added the comment: This affects all versions from 3.4 up to 3.8-dev. Would be nice if someone could do the review of the supplied patch. Thanks for awesome work on Python! I'm here because it just hit me also and I was for 1 h thinking that I don't know how to use

[issue24564] shutil.copytree fails when copying NFS to NFS

2018-08-01 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: [ https://bugs.python.org/issue24564#msg246278 ] > Adding `EINVAL` to the ignored errnos would fix the problem, but might hide > real failures (I'm not sure about the real failures, but it seems logical). I think this is an acceptable compromise

[issue34305] inspect.getsourcefile and inspect.getcomments do not work with decorated functions

2018-08-01 Thread Eric Wieser
Change by Eric Wieser : -- keywords: +patch pull_requests: +8108 stage: -> patch review ___ Python tracker ___ ___

[issue34305] inspect.getsourcefile and inspect.getcomments do not work with decorated functions

2018-08-01 Thread Eric Wieser
Change by Eric Wieser : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34305] inspect.getsourcefile and inspect.getcomments do not work with decorated functions

2018-08-01 Thread Eric Wieser
New submission from Eric Wieser : Following on from https://bugs.python.org/issue1764286 - inspect.getsourcefile and inspect.getcomments fall afoul of the same problem. -- components: Library (Lib) messages: 322847 nosy: Eric.Wieser priority: normal severity: normal status: open

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-08-01 Thread Tal Einat
Tal Einat added the comment: Perhaps we can use .update_idletasks() rather than .update()? That tends to have less of a performance hit. My macOS setup is currently not working so I can't test this myself. Regarding the "MacWindowStyle" call, IDLE is backported to older versions of Python

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The tkinter doc could use a section on 'OS-tk peculiarities and interactions' ;-). Anyway, thanks again. Some of the 'Windows peculiarities' I noted above, where the test behaved better on Mac, may be due to the absence of calls that should be avoided on