[issue34086] logging.Handler.handleError regressed in python3

2018-07-31 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Moving the scrollwheel in either direction scrolls down, so I have to use the scrollbar once stuck on the bottom of the file. (The Macbook has no PageUp key.) For me, this is the most obnoxious bug. Tomorrow, I will add prints to the scroll event

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

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you! Adding update worked for calltip_w. Adding update to tooltip and copying tw.lift() # work around bug in Tk 8.5.18+ (issue #24570) from calltip worked for tooltip. (It seems the bug is still present. ;-) I will either patch these files

[issue34304] clarification on escaping \d in regular expressions

2018-07-31 Thread Saba Kauser
New submission from Saba Kauser : Hello, I have a program that works well upto python 3.6 but fails with python 3.7. import re pattern="DBMS_NAME: string(%d) %s" sym = ['\[','\]','\(','\)'] for chr in sym: pattern = re.sub(chr, '\\' + chr, pattern) print(pattern)

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

2018-07-31 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +8107 stage: -> patch review ___ Python tracker ___ ___

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

2018-07-31 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : `PyTuple_SetItem()` can be replaced with macro version and `PyObject_Call()` can be used instead of `PyEval_CallObject()`. Here's benchmark results: $ python -m perf timeit --compare-to ~/tmp/cpython-master-venv/bin/python -s "from functools import

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: > But, seems like one has no public api to reinitialize logging to a like-fresh > state For the use case of testing, you could use a context manager approach as described here in the logging cookbook:

[issue25095] test_httpservers hangs since Python 3.5

2018-07-31 Thread Martin Panter
Martin Panter added the comment: I reproduced the problem on a Windows computer, and now understand why my "Content-Length: 0" suggestion isn't good enough on its own. It does solve the initial deadlock, but there is a further deadlock. The main thread is waiting for the server to shut down

[issue29502] Should PyObject_Call() call the profiler on C functions, use C_TRACE() macro?

2018-07-31 Thread INADA Naoki
INADA Naoki added the comment: FYI, _lsprof uses PyObject_Call() https://github.com/python/cpython/blob/ea68d83933e6de6cabfb115ec1b301947369/Modules/_lsprof.c#L120-L123 If PyObject_Call() trigger profiler, lsprof should avoid recursion. -- ___

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

2018-07-31 Thread Kevin Walzer
Kevin Walzer added the comment: Removing the call "self.grab_set" in configdialog.py (line 87 or so) and help_about.py (line 47 or so) appears to fix the problem with the main window freezing when the modal dialog is destroyed on macOS. "Grab" has never worked properly on Tk on the Mac, but

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

2018-07-31 Thread Kevin Walzer
Kevin Walzer added the comment: With the attached patch, the calltip now displays in the test in calltips_w.py on macOS. As I suspected, a judicious call to "update" forces the event loop to cycle on macOS. It should be harmless on other platforms, but if it causes some sort of performance

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

2018-07-31 Thread Seonggi Kim
Seonggi Kim added the comment: Request PR again : https://bugs.python.org/issue34302 -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2018-07-31 Thread ksg97031
New submission from ksg97031 : Source base : heads/master:b75d7e2435, Aug 1 2018, 10:32:28 $ cat test.py import timeit queue_setup = ''' from collections import deque q = deque() start = 10**5 stop = start + 500 for i in range(0, stop): q.append(i) ''' code = ''' index = q.index(30, 1,

[issue29502] Should PyObject_Call() call the profiler on C functions, use C_TRACE() macro?

2018-07-31 Thread ppperry
ppperry added the comment: issue30990 is related -- nosy: +ppperry ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2018-07-31 Thread Seonggi Kim
Seonggi Kim added the comment: Base commit : Python 3.8.0a0 (heads/master:b75d7e2435, Aug 1 2018, 10:32:28) $ test.py import timeit queue_setup = ''' from collections import deque q = deque() start = 10**5 stop = start + 500 for i in range(0, stop): q.append(i) ''' code = ''' index =

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

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9851227382431a40a138fdff994278d9e7743c74 by Victor Stinner in branch 'master': bpo-34170: Rename _PyCoreConfig.unbuffered_stdip (GH-8594) https://github.com/python/cpython/commit/9851227382431a40a138fdff994278d9e7743c74 --

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

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea68d83933e6de6cabfb115ec1b301947369 by Victor Stinner in branch 'master': bpo-34170: _PyCoreConfig_Read() defaults to argc=0 (GH-8595) https://github.com/python/cpython/commit/ea68d83933e6de6cabfb115ec1b301947369 --

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

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset a4d20b2e5ece2120f129cb4dda951a6c2461e92d by Victor Stinner in branch 'master': bpo-34170: Py_Main() updates config when setting Py_InspectFlag (GH-8593) https://github.com/python/cpython/commit/a4d20b2e5ece2120f129cb4dda951a6c2461e92d

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

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8106 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8105 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8104 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset b75d7e243512afcfb2285e6471262478383e09db by Victor Stinner in branch 'master': bpo-34170: Add _PyCoreConfig._frozen parameter (GH-8591) https://github.com/python/cpython/commit/b75d7e243512afcfb2285e6471262478383e09db --

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

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8103 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34301] Add _PyInterpreterState_Get() helper function

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +8102 stage: -> patch review ___ Python tracker ___ ___

[issue34301] Add _PyInterpreterState_Get() helper function

2018-07-31 Thread STINNER Victor
New submission from STINNER Victor : Add _PyInterpreterState_Get() helper function: IMHO it's more explicit to call _PyInterpreterState_Get() than having to write PyThreadState_GET()->interp or PyThreadState_Get()->interp. -- components: Interpreter Core messages: 322827 nosy:

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 10.13.6 with 3.7.0, 'python3 -m idlelib.configdialog' in bash terminal runs configdialog unittests and brings up a human-verified test (htest) driver box with a ttk scrollbar whose slider does not stick. I has a dead zone beneath or above, but I wonder

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

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: As with the tooltip modules (see #34275, msg322824), the dialog modules all have run-when-main test functions. Unittests are also run, before the human-verified test. python3 -m idlelib.searchbases fails in that the driver-box is not activated (lighted)

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

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8101 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-07-31 Thread Ionut Turturica
Change by Ionut Turturica : -- nosy: +jonozzz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28695] Add SSL_CTX_set_client_cert_engine

2018-07-31 Thread Bryan Hunt
Change by Bryan Hunt : -- nosy: +bryguy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE currently uses tooltips only for calltips describing a function's call signature. Within Lib/idlelib: calltip.py (renamed from calltips.py after the 3.7.0/3.6.6 release) has the logic for when to raise one and its content. calltip_w.py (which I intend

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

2018-07-31 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: For those who are not very aware of Cygwin issues: what is wrong with PyVarObject_HEAD_INIT(_Type, 0); -- nosy: +jdemeyer ___ Python tracker

[issue34299] argparse description formatting

2018-07-31 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: That works. Thanks! I think that this boils down to a documentation issue. The following says that the default behavior is to line-wrap the help messages. At least to me, this doesn't imply that whitespace is getting eaten. RawDescriptionHelpFormatter

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

2018-07-31 Thread Berker Peksag
Change by Berker Peksag : -- assignee: -> berker.peksag stage: -> needs patch type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue34248] dbm errors should contain file names

2018-07-31 Thread Zsolt Cserna
Zsolt Cserna added the comment: Alright, I created a PR for this. We will see if this can be merged to upstream or not. -- ___ Python tracker ___

[issue29400] Add instruction level tracing via sys.settrace

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34113] LLTRACE segv

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: Thanks Constantin Petrisor to fix and thanks Andrew Valencia for the bug report! It was the first time that I see a bug report on LLTRACE on the last 5 years, it seems like almost no one uses it. Likely because you need to compile Python manually (or find a

[issue34248] dbm errors should contain file names

2018-07-31 Thread Zsolt Cserna
Change by Zsolt Cserna : -- pull_requests: +8100 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34113] LLTRACE segv

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ed317f1ca42a43df14282bbc3ccc0b5610432f4 by Victor Stinner (costypetrisor) in branch 'master': bpo-34113: Fix a crash when using LLTRACE is on (GH-8517) https://github.com/python/cpython/commit/8ed317f1ca42a43df14282bbc3ccc0b5610432f4

[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: >> Is it really important to accept integral float? > Possibly not, but acceptance of integral floats is deliberate, by-design, > tested behaviour, so it at least deserves a deprecation period if we're going > to get rid of it. Ok. Let's keep it in that

[issue34113] LLTRACE segv

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: By the way, see also bpo-25571. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list

[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2018-07-31 Thread Piotr Dobrogost
Change by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34248] dbm errors should contain file names

2018-07-31 Thread sds
sds added the comment: thanks for the patch. alas, I do not build python myself, so I cannot try it. -- ___ Python tracker ___ ___

[issue34248] dbm errors should contain file names

2018-07-31 Thread Zsolt Cserna
Zsolt Cserna added the comment: I've made a patch which works for me. >>> dbm.gnu.open("/tmp/z") Traceback (most recent call last): File "", line 1, in _gdbm.error: [Errno 2] No such file or directory: '/tmp/z' >>> Could you please give it a try? -- keywords: +patch

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-31 Thread Mark Dickinson
Mark Dickinson added the comment: For the record, let me register my objection here. I'm not convinced by adding math.dist, and am surprised that this was committed. Almost all the discussion in this issue was about adding multi-argument hypot, which seems like an obviously useful building

[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-31 Thread Mark Dickinson
Mark Dickinson added the comment: [Victor] > Is it really important to accept integral float? Possibly not, but acceptance of integral floats is deliberate, by-design, tested behaviour, so it at least deserves a deprecation period if we're going to get rid of it. (I'm -0.0 on such a

[issue34300] gcc 7.3 causes a warning when compiling getpath.c in python 2.7

2018-07-31 Thread tzickel
tzickel added the comment: Changing Py_FatalError prototype to add: __attribute__((noreturn)) also stops the warning. -- ___ Python tracker ___

[issue34299] argparse description formatting

2018-07-31 Thread Zsolt Cserna
Zsolt Cserna added the comment: You would need to use the RawTextHelpFormatter as format_class for the constructor. In this case, argparse will apply no re-wrapping of the description. import argparse parser = argparse.ArgumentParser(description="""foo bar baz""",

[issue29502] Should PyObject_Call() call the profiler on C functions, use C_TRACE() macro?

2018-07-31 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I always assumed that enabling profiling only from the Python bytecode interpreter was a deliberate choice. -- nosy: +jdemeyer ___ Python tracker

[issue34300] gcc 7.3 causes a warning when compiling getpath.c in python 2.7

2018-07-31 Thread tzickel
New submission from tzickel : When compiling on ubuntu 18.04 the 2.7 branch, I get this warning: gcc -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -DPYTHONPATH='":plat-linux2:lib-tk:lib-old"' \

[issue34299] argparse description formatting

2018-07-31 Thread Phillip M. Feldman
New submission from Phillip M. Feldman : With `argparse`, I'm providing a triple-quoted string via the `description` argument of the constructor. When I invoke the script with the -h or --help argument, all formatting in the triple-quoted string is lost, i.e., all paragraphs are run

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

2018-07-31 Thread Brett Cannon
Brett Cannon added the comment: Could be related to https://bugs.python.org/issue21446 . -- nosy: +berker.peksag ___ Python tracker ___

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Thomas Waldmann
Thomas Waldmann added the comment: I agree that we should not dig that deep into logging internals and clear that dict from borg code. But, seems like one has no public api to reinitialize logging to a like-fresh state, right? So maybe THAT is the real problem. Add some .reset() method to

[issue34007] test_gdb fails in s390x SLES buildbots

2018-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New failure on s390x SLES 3.7: https://buildbot.python.org/all/#/builders/122/builds/540 -- ___ Python tracker ___

[issue34203] documentation: recommend Python 3 over 2 in faq

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

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

2018-07-31 Thread Raymond Hettinger
New submission from Raymond Hettinger : Please run some timings to show whether the improvement is significant. Also, please sign a CLA. -- components: +Library (Lib) -Extension Modules nosy: +rhettinger versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

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

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- keywords: +patch pull_requests: +8098 stage: -> patch review ___ Python tracker ___ ___

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

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- components: Extension Modules nosy: hacksg priority: normal severity: normal status: open title: Avoid inefficient way to find start point in deque.index type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

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

2018-07-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: OP closed the PR. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue34297] Windows py.exe launcher fail to handle quote correctly

2018-07-31 Thread Francois Godin
Change by Francois Godin : -- type: -> behavior versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue34297] Windows py.exe launcher fail to handle quote correctly

2018-07-31 Thread Francois Godin
New submission from Francois Godin : Using double quote around the version argument will cause a failure. Ex (failure): "py.exe" "-3" "test.py" => run_child: about to run '3" "...\python.exe" "test.py"' => ...\python.exe: can't open file '3 test.py': [Errno 22] Invalid argument Removing the

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

2018-07-31 Thread Raymond Hettinger
New submission from Raymond Hettinger : Can you run some timings to show the difference. Also, you need to sign a CLA. -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker

[issue34296] Speed up python startup by pre-warming the vm

2018-07-31 Thread Cyker Way
New submission from Cyker Way : I'm currently writing some shell tools with python3. While python can definitely do the job succinctly, there is one problem which made me feel I might have to switch to other languages or even pure bash scripts: python startup time. Shell tools are used very

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

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- components: +Extension Modules -ctypes ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- keywords: +patch pull_requests: +8097 stage: -> patch review ___ Python tracker ___ ___

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

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- components: ctypes nosy: hacksg priority: normal severity: normal status: open title: Avoid inefficient way to find start point in deque.index type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

[issue34294] re.finditer and lookahead bug

2018-07-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: ➜ cpython git:(70d56fb525) ✗ ./python.exe Python 3.7.0a2+ (tags/v3.7.0a2-341-g70d56fb525:70d56fb525, Jul 31 2018, 21:58:10) [Clang 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> ➜

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In case of int() the name of it's first argument was documented, in both the module documentation, and in interactive help. But the documented name of the first blake2b() argument was "data", and it never worked. Since help() was not worked for blake2b,

[issue34294] re.finditer and lookahead bug

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

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Okay, I did some code search on GitHub for `logging.Logger.manager.loggerDict.clear()` (https://github.com/search?q=logging.Logger.manager.loggerDict.clear%28%29=Code) and there was some code in the test_logging where it was used in tearDown and

[issue34232] Python3.7.0 exe installers (32 and 64 bit) failing on Windows7

2018-07-31 Thread Wolfgang Maier
Wolfgang Maier added the comment: Oh, sorry, I didn't realize there was another file and it seems I did not keep it so I just ran the installer again to reproduce. Attached is the new pair of log files. -- Added file: https://bugs.python.org/file47722/Python 3.7.0

[issue34232] Python3.7.0 exe installers (32 and 64 bit) failing on Windows7

2018-07-31 Thread Wolfgang Maier
Change by Wolfgang Maier : Added file: https://bugs.python.org/file47723/Python 3.7.0 (64-bit)_20180731180657.log ___ Python tracker ___

[issue32947] Support OpenSSL 1.1.1

2018-07-31 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Yes test_poplib and test_ftplib on fedora rawhide when run against openssl 1.1.1 pre8. Haven't tried the pr7, but assuming that the tests were fine before here is the list of changes between pre7 and pre8:

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-31 Thread Chris Angelico
Chris Angelico added the comment: BTW, sorry for sounding a bit snippy in my comment. Jonathan, in future, rather than dropping someone an email, it'd be more normal to just ping the person on the issue itself. -- ___ Python tracker

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-31 Thread Emily Morehouse
Emily Morehouse added the comment: This issue was brought to my attention -- I'm helping build the PEP 572 implementation. I'll make sure the docs get updated (and Jonathan, I didn't actually know that assignment expressions were mentioned in the FAQ, so this was still helpful!) --

[issue29036] logging module: Add `full_module_name` to LogRecord details

2018-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: If you use the recommended approach of using logger = logging.getLogger(__name__), then the logger's name (the name field in the LogRecord) will be the full module path. -- ___ Python tracker

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: Well, loggerDict is an internal implementation detail which shouldn't be directly called by the code in borgbackup. Hence I'm not sure you can call it a bug. When messing around with internals of objects, caveats apply. Note that loggerDict isn't mentioned in

[issue34244] Add support of check logger

2018-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: What is your use case? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-07-31 Thread Jens Troeger
Jens Troeger added the comment: > Well, posting on a closed issue is generally not the best way :) Fair enough ;) > The multiple carriage returns is a bug, and there is an open issue for it, > though I'm not finding it at the moment. Oh good, yes that should be fixed! My current

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: Merged. Thank you, hope that you'll keep contributing! :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 6f16ffc1879fc934eba297b3e81bd940e32a7e03 by Yury Selivanov (Miss Islington (bot)) in branch '3.6': [3.6] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532) (GH-8587)

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 172a81e42bc30da1bd4027db9cd3b6172469f7fe by Yury Selivanov (Miss Islington (bot)) in branch '3.7': [3.7] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532) (GH-8586)

[issue34035] Several AttributeError in zipfile seek() methods

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: Note: the seek() method has been added by bpo-22908 (commit 066df4fd454d6ff9be66e80b2a65995b10af174f), and Python 3.6 is not affected. -- nosy: +vstinner ___ Python tracker

[issue34125] Profiling depends on whether **kwargs is given

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: I opened a wider discussion: bpo-29502. The discussion didn't go anywhere yet. -- nosy: +vstinner ___ Python tracker ___

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

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: > I would prefer shorter and totally different from the normal output in case > of no tests ran. That's basically the whole purpose of the issue, yep ;-) -- ___ Python tracker

[issue24809] Add getprotobynumber to socket module

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: I concur with Yury that there is not enough users and use cases needing this feature, so it doesn't deserve to pay the maintenance burden in the standard library. Start with a project on PyPI. -- resolution: -> rejected stage: -> resolved status:

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: I have no opinion on the change in the master branch, but I agree with Christian that the 3.7 change should be reverted since it breaks the backward compatibility. Serhiy modified int() in Python 3.7 to convert its first parameter to positional only

[issue27494] 2to3 parser failure caused by a comma after a generator expression

2018-07-31 Thread Jakub Stasiak
Jakub Stasiak added the comment: I appreciate the example, but I'd claim that's a "missing fixer" issue, not a "parser accepts too much" issue. Considering the syntax wasn't ambiguous (I think) and had been accepted before 3.7 I'll remain not totally convinced here. --

[issue34291] UnboundLocalError raised on call to global

2018-07-31 Thread Tim Peters
Tim Peters added the comment: Yes, the assignment does "hide the global definition of g". But this determination is made at compile time, not at run time: an assignment to `g` _anywhere_ inside `f()` makes _every_ appearance of `g` within `f()` local to `f`. -- nosy: +tim.peters

[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2018-07-31 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just learned of this issue. Rather than adding has_netloc, etc. attributes, why not use None to distinguish missing values as is preferred above, but add a new boolean keyword argument to urlparse(), etc. to get the new behavior (e.g. "allow_none" to

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +8096 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +8095 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 944451cd8d3e897138f4b43569de13cd081ee251 by Yury Selivanov (MartinAltmayer) in branch 'master': bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532)

[issue34274] Python launcher behavior with "#!/usr/bin/env python" shebang

2018-07-31 Thread Eryk Sun
Eryk Sun added the comment: See the discussion in issue 28686 regarding the use of version detection and/or versioned executable names with env shebangs. I think the launcher should at least support searching PATH for pythonX.exe and pythonX.Y.exe, so users can at least manually copy or

[issue1764286] inspect.getsource does not work with decorated functions

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: > Should `getsourcefile` be changed to match? I'd say yes. There's no point in getsourcefile returning the file location of the topmost decorator. Feel free to open a new issue and submit a PR to fix this! --

[issue34293] DOC: Makefile inherits a Sphinx 1.5 bug regarding PAPER envvar

2018-07-31 Thread jfbu
jfbu added the comment: https://github.com/python/cpython/pull/8585 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34293] DOC: Makefile inherits a Sphinx 1.5 bug regarding PAPER envvar

2018-07-31 Thread jfbu
Change by jfbu : -- keywords: +patch pull_requests: +8094 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34294] re.finditer and lookahead bug

2018-07-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-07-31 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi David, What is the related issue with the new lines? > On 31 Jul 2018, at 15:18, R. David Murray wrote: > > > R. David Murray added the comment: > > Well, posting on a closed issue is generally not the best way :) > > The current behavior with

  1   2   >