[issue36413] Brief Tour of the Standard Library — Part II example problem

2019-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for the suggestion, but the point of having the input() is that the end user can select their own rename style with arbitrary text and either including or excluding possible data substitutions of their own choice. The photo processing software

[issue36413] Brief Tour of the Standard Library — Part II example problem

2019-03-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue10716] Modernize pydoc to use better HTML and separate CSS

2019-03-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks @aroberge for the patch and your efforts on improving it https://aroberge.blogspot.com/2015/01/scratching-itch-improving-pydoc.html -- ___ Python tracker

[issue10716] Modernize pydoc to use better HTML and separate CSS

2019-03-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : Added file: https://bugs.python.org/file48231/Screen Shot 2019-03-24 at 10.58.33 am.png ___ Python tracker ___

[issue10716] Modernize pydoc to use better HTML and separate CSS

2019-03-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I stumbled upon this issue because I think this is a potential improvement. One of the reasons I don't use it is due to the outdated UI but since it also generates HTML doc for installed packages in a virtual environment I find this to be a useful

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for doing this Inada-san! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36413] Brief Tour of the Standard Library — Part II example problem

2019-03-23 Thread YasirA
New submission from YasirA : In the Template example, there's no placeholder to be substituted with date. I think it should be rewritten along the following lines: >>> import time, os.path >>> photofiles = ['img_1074.jpg', 'img_1076.jpg', 'img_1077.jpg'] >>> class

[issue36412] A possible crash in dictobject.c's new_dict()

2019-03-23 Thread Inada Naoki
Inada Naoki added the comment: Thank you, nice catch! How did you find it? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36412] A possible crash in dictobject.c's new_dict()

2019-03-23 Thread Inada Naoki
Inada Naoki added the comment: New changeset 3d07c1ee1d2d475b74816117981d6ec752c26c23 by Inada Naoki (Zackery Spytz) in branch 'master': bpo-36412: fix a possible crash in dictobject.c's new_dict() (GH-12519) https://github.com/python/cpython/commit/3d07c1ee1d2d475b74816117981d6ec752c26c23

[issue36412] A possible crash in dictobject.c's new_dict()

2019-03-23 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36412] A possible crash in dictobject.c's new_dict()

2019-03-23 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12470 stage: -> patch review ___ Python tracker ___ ___

[issue36412] A possible crash in dictobject.c's new_dict()

2019-03-23 Thread Zackery Spytz
New submission from Zackery Spytz : PyDict_New() calls new_dict() with the "empty_values" array. If the PyObject_GC_New() call in new_dict() fails, new_dict() will call PyMem_FREE() on this array, causing a crash. -- components: Interpreter Core messages: 338711 nosy: ZackerySpytz

[issue25614] Lib/code.py: InteractiveConsole.raw_input writes prompt to stdout

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since there was no additional information provided by the original poster, I'm going to close this. Feel free to reopen if there is a use case. -- nosy: +cheryl.sabella resolution: -> not a bug stage: -> resolved status: open -> closed

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-03-23 Thread PEW's Corner
New submission from PEW's Corner : When a file is opened in binary append+read mode, i.e. open('file', 'a+b'), and a write (i.e. append) operation is performed while the file pointer is not at the end of the file (e.g. after a seek(0)), tell() will subsequently return the wrong value in

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Eryk Sun
Eryk Sun added the comment: Paul, I agree that joining Path(".") and Path("c:a") should yield Path("c:a"). However, I disagree that we should always be able to construct Path("a/b") from components Path("a") and Path("b"). It doesn't apply to Path("./c:a"). There's no way to split it up as

[issue32823] Regression in test -j behavior and time in 3.7.0b1

2019-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for checking on this. 3.7.2 and 3.8.0a2 64 bit installed, as well as respository debug 32 bit 3.8.0a2+, are back to normal, with the quickest tests reporting within a few seconds. I will assume fixed for Zach also, hence closing. --

[issue32823] Regression in test -j behavior and time in 3.7.0b1

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Terry, Do you still see this happening? When I run the tests on Windows 10 with 12 CPUs (using -j0), the tests run quickly with just the last one taking more time. 0:01:42 [418/420] test_socket passed (40 sec 239 ms) -- running: test_multiprocessing_spawn

[issue36397] re.split() incorrectly splitting on zero-width pattern

2019-03-23 Thread Matthew Barnett
Matthew Barnett added the comment: The list alternates between substrings (s, between the splits) and captures (c): ['1', '1', '2', '2', '11'] -s- -c- -s- -c- -s-- You can use slicing to extract the substrings: >>> re.split(r'(?<=(\d))(?!\1)(?=\d)', '12111')[ : : 2] ['1', '2', '111']

[issue36397] re.split() incorrectly splitting on zero-width pattern

2019-03-23 Thread Elias Tarhini
Elias Tarhini added the comment: Thank you. Was too zeroed-in on the idea that it was from the zero-width pattern, and I forgot to consider the group. Looks like `re.sub(pattern, 'some-delim', s).split('some-delim')` is a way to do this if it's not possible to use a non-capturing group

[issue10716] Modernize pydoc to use better HTML and separate CSS

2019-03-23 Thread Andre Roberge
Andre Roberge added the comment: On Sat, Mar 23, 2019 at 6:27 PM Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > I've found the HTML to be useful (-w mode, not running a server) for > generating quick documentation (much lighter weight commitment than using > sphinx).

[issue36405] Use dict unpacking in idlelib

2019-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Also, __builtins__ is only a module, with a __dict__, in __main__. -- stage: patch review -> commit review ___ Python tracker ___

[issue36405] Use dict unpacking in idlelib

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +12469 stage: commit review -> patch review ___ Python tracker ___ ___

[issue36407] xml.dom.minidom wrong indentation writing for CDATA section

2019-03-23 Thread Stefan Behnel
Stefan Behnel added the comment: Yes, this case is incorrect. Pretty printing should not change character content inside of a simple tag. The PR looks good to me. -- versions: +Python 3.8 ___ Python tracker

[issue10716] Modernize pydoc to use better HTML and separate CSS

2019-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've found the HTML to be useful (-w mode, not running a server) for generating quick documentation (much lighter weight commitment than using sphinx). I show this in my intro classes and the engineers are usually impressed with it. This is really easy

[issue36410] Proposal to make strip/lstrip/rstrip more explicit

2019-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Generally, we don't make changes that would break existing code relying on the documented and tested behavior. If you would like to propose a new method, the python-ideas mailing list would be a good place to start. >>> s[len('mailto:'):] if

[issue36410] Proposal to make strip/lstrip/rstrip more explicit

2019-03-23 Thread Alex Grigoryev
Alex Grigoryev added the comment: https://docs.python.org/2/library/string.html#string.lstrip

[issue36410] Proposal to make strip/lstrip/rstrip more explicit

2019-03-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3.8/library/stdtypes.html?highlight=lstrip#str.lstrip > Return a copy of the string with leading characters removed. The chars > argument is a string specifying the set of characters to be removed. If > omitted or None, the

[issue11644] Cross-link 2to3 documentation, what’s new and pyporting howto

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks, Eric! -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue21450] [Issue 13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE nosy: +terry.reedy ___ Python tracker ___ ___

[issue21477] Idle: improve idle_test.htest

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21695] Idle 3.4.1-: closing Find in Files while in progress closes Idle

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36410] Proposal to make strip/lstrip/rstrip more explicit

2019-03-23 Thread Alex Grigoryev
New submission from Alex Grigoryev : These methods have confusing implicit behavior. I propose to make it explicit, either strip the exact sequence or chars or leave the string as is. In [1]: 'mailto:ma...@gmail.com'.lstrip('mailto') Out[1]: ':ma...@gmail.com' In [2]:

[issue16177] Typing left parenthesis in IDLE causes intermittent Cocoa Tk crash on OS X

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE, macOS nosy: +ronaldoussoren, terry.reedy ___ Python tracker ___

[issue21982] Idle configDialog: fix regression and add minimal unittest

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27262] IDLE: move Aqua context menu code to maxosx

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24951] Idle test_configdialog fails on Fedora 23, 3.6

2019-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2019-03-23 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that this is not a useful check. -- nosy: +eric.smith ___ Python tracker ___ ___

[issue11644] Cross-link 2to3 documentation, what’s new and pyporting howto

2019-03-23 Thread Eric V. Smith
Eric V. Smith added the comment: I agree we should close this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11644] Cross-link 2to3 documentation, what’s new and pyporting howto

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since the HOWTO for Porting from 2 to 3 was created in February 2011, there have been many updates over time to improve that document. It seems to me that it is thorough in its explanation, including the suggestion of upgrading to 2.7 before converting to

[issue35449] documenting objects

2019-03-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10716] Modernize pydoc to use better HTML and separate CSS

2019-03-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: On linux, grep does depth first, so searching for 'idle' from Lib.idlelib returns: --- cut --- help.py history.py idle.py all of idle_test/ __init__.py iomenu.py --- cut --- Although, within idle_test, the files aren't in alphabetical order. Also, as you

[issue36401] Readonly properties should be marked as such in help()

2019-03-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12468 stage: -> patch review ___ Python tracker ___ ___

[issue36129] io documentation unclear about flush() and close() semantics for wrapped streams

2019-03-23 Thread Gregory Szorc
Gregory Szorc added the comment: It's also worth noting that if the wrapped stream close() cascading behavior should be configurable, then many additional types in the standard library need a constructor argument to control this behavior. e.g. io.TextIOWrapper, io.BufferedReader,

[issue13828] Further improve casefold documentation

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Assigning to @Mariatta for the sprints. -- assignee: docs@python -> Mariatta nosy: +Mariatta, cheryl.sabella stage: -> needs patch versions: +Python 3.7, Python 3.8 -Python 3.3 ___ Python tracker

[issue32217] freeze.py fails to work.

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you @Decorater for the report and PR. -- ___ Python tracker ___ ___ Python-bugs-list

[issue32217] freeze.py fails to work.

2019-03-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker ___

[issue32217] freeze.py fails to work.

2019-03-23 Thread miss-islington
miss-islington added the comment: New changeset d93de028e84c762d7e30b0b93d149b66c85d421f by Miss Islington (bot) in branch '3.7': bpo-32217: Correct usage of ABI tags in freeze. (GH-4719) https://github.com/python/cpython/commit/d93de028e84c762d7e30b0b93d149b66c85d421f -- nosy:

[issue36129] io documentation unclear about flush() and close() semantics for wrapped streams

2019-03-23 Thread Gregory Szorc
Gregory Szorc added the comment: Thank you for the detailed reply, Josh. I generally agree with what you are saying. However, I have some follow-ups. In your answer to #2, you seem to distinguish between an "fd" (implying POSIX file descriptor) and "Python layers" (implying a file object).

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Maor Kleinberger
Maor Kleinberger added the comment: Alright, documentation is always good :) I'll be glad to add some, but could you please point me to the place in the code where you think it should go? (or just comment on the PR) -- ___ Python tracker

[issue32217] freeze.py fails to work.

2019-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +12467 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32217] freeze.py fails to work.

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset a7987e71939fa631296f83861fb376361ddd59ee by Cheryl Sabella (AraHaan) in branch 'master': bpo-32217: Correct usage of ABI tags in freeze. (GH-4719) https://github.com/python/cpython/commit/a7987e71939fa631296f83861fb376361ddd59ee --

[issue36409] plistlib old API should be removed

2019-03-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +macOS nosy: +ned.deily, ronaldoussoren, serhiy.storchaka ___ Python tracker ___

[issue36409] plistlib old API should be removed

2019-03-23 Thread Jon Janzen
Change by Jon Janzen : -- keywords: +patch pull_requests: +12466 stage: -> patch review ___ Python tracker ___ ___

[issue36409] plistlib old API should be removed

2019-03-23 Thread Jon Janzen
New submission from Jon Janzen : Per the documentation and in-line code warnings, the old API for plistlib was deprecated in version 3.4. My understanding is that deprecated functionality is to be removed in the next major version, so this code is long overdue for removal. --

[issue36407] xml.dom.minidom wrong indentation writing for CDATA section

2019-03-23 Thread Vladimir Surjaninov
Change by Vladimir Surjaninov : -- keywords: +patch pull_requests: +12465 stage: -> patch review ___ Python tracker ___ ___

[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

2019-03-23 Thread J.E.McCormack
New submission from J.E.McCormack : I am measuring multi-process GUI performance (Tkinter 8.6, Python 3.7) for drawing lines, circles, text boxes, etc. In a fairly typical experiment on a i7-6700HQ, 4-core (8 thread), on Windows 10 I measure 25.5k objects/sec for one process running alone,

[issue36407] xml.dom.minidom wrong indentation writing for CDATA section

2019-03-23 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue36407] xml.dom.minidom wrong indentation writing for CDATA section

2019-03-23 Thread Vladimir Surjaninov
New submission from Vladimir Surjaninov : If we are writing xml with CDATA section and leaving non-empty indentation and new-line parameters, a parent node of the section will contain useless indentation, that will be parsed as a text. Example: >>>doc = minidom.Document() >>>root =

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Paul Moore
Paul Moore added the comment: > does that require me to make any changes in order to make progress with my PR? I'm not going to block this PR. I'd prefer it if we at least documented the agreed behaviour, so that in future people don't come along and say the new behaviour is wrong, but again

[issue36406] doctest.testmod(empty_package) raises TypeError in 3.7 (and no errors in 3.6)

2019-03-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: So this was backported to 3.6 too with but caused similar issues reported in issue32872 to be reverted back. -- ___ Python tracker

[issue12790] doctest.testmod does not run tests in functools.partial functions

2019-03-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: functools.partial returns a partial object and detecting partials is not handled inside the finder when given a module. Perhaps partials could be handled as a special case to detect tests in them? diff --git a/Lib/doctest.py b/Lib/doctest.py index

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Maor Kleinberger
Maor Kleinberger added the comment: > OK, sure. My point is that "relative path to the current directory on the drive with the specified letter" isn't a concept that matches how "relative paths" are typically interpreted (most code interprets "relative" as "relative to the CWD", and doesn't

[issue36342] test_venv failure when executed by test_multiprocessing and the platform lacks a functional sem_open()

2019-03-23 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +12464 stage: -> patch review ___ Python tracker ___ ___

[issue36406] doctest.testmod(empty_package) raises TypeError in 3.7 (and no errors in 3.6)

2019-03-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This might be due to changes introduced in a23d30f64bd9c5655cfae7f359d4279c47f6cab3 where __file__ is set to None. Hence the below returns None but before the commit this used to return an AttributeError and print "missing" . This was not handled

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Paul Moore
Paul Moore added the comment: > > [Note there is no absolute() method - I assume you mean resolve()] > Of course there is an absolute() method, I'm not sure what you are saying... Huh, weird. It's not in https://docs.python.org/3.7/library/pathlib.html But you're right, it does exist... > >

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2019-03-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2019-03-23 Thread miss-islington
miss-islington added the comment: New changeset 5ab665005b7f8a21c133208f140389e3bb1a3294 by Miss Islington (bot) in branch '3.7': bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203) https://github.com/python/cpython/commit/5ab665005b7f8a21c133208f140389e3bb1a3294 --

[issue36322] Argument typo in dbm.ndbm.open

2019-03-23 Thread Marco Rougeth
Marco Rougeth added the comment: Hi Terry, thanks for reviewing this and sorry for not being clear enough. About dbm.gnu.open: The docs indeed uses “flag”, in singular form, but it’s wrong because 1) the argument accepts, for some cases, 2 flags and, 2) the source code uses “flags” in

[issue36381] Deprecate "#" argument format without PY_SSIZE_T_CLEAN

2019-03-23 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2019-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +12463 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36381] Deprecate "#" argument format without PY_SSIZE_T_CLEAN

2019-03-23 Thread Inada Naoki
Inada Naoki added the comment: New changeset d3c72a223a5f771f964fc34557c55eb5bfa0f5a0 by Inada Naoki in branch 'master': bpo-36381: warn when no PY_SSIZE_T_CLEAN defined (GH-12473) https://github.com/python/cpython/commit/d3c72a223a5f771f964fc34557c55eb5bfa0f5a0 --

[issue36342] test_venv failure when executed by test_multiprocessing and the platform lacks a functional sem_open()

2019-03-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: Removing the bpo-35978 dependency as changeset 8bba81fd55873148c65b7d0e6a6effbd63048c76 that fixes bpo-35978 only skips test_multiprocessing when test_venv is run from a venv. -- dependencies: -test_venv fails in Travis with GCC

[issue36406] doctest.testmod(empty_package) raises TypeError in 3.7 (and no errors in 3.6)

2019-03-23 Thread Dutcho
New submission from Dutcho : In recent Python, a directory without __init__.py is also a package, and hence can be imported. When this directory/package is empty, and a doctest.testmod() is executed, the behaviour changed from 3.6 to 3.7, which I didn't find in the "what's new"

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Maor Kleinberger
Maor Kleinberger added the comment: > (Note: I consider all of these to be *extremely* obscure corner cases) One bug was enough for me :) > [Note there is no absolute() method - I assume you mean resolve()] Of course there is an absolute() method, I'm not sure what you are saying... > it

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2019-03-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset d60f658fc0278f3fcdadec8ddcab35b8ae03e1d1 by Cheryl Sabella in branch 'master': bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203) https://github.com/python/cpython/commit/d60f658fc0278f3fcdadec8ddcab35b8ae03e1d1 --

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Paul Moore
Paul Moore added the comment: (Note: I consider all of these to be *extremely* obscure corner cases) > 1. WindowsPath('C:a').absolute() should return WindowsPath('C:\\d\\a') but > returns WindowsPath('C:a'). > This is caused by flawed logic in the parse_parts method of the _Flavour > class.

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-23 Thread STINNER Victor
STINNER Victor added the comment: Maybe others prefer to do both changes at once. I don't know. -- ___ Python tracker ___ ___

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-23 Thread STINNER Victor
STINNER Victor added the comment: I would remove to move the script into the doc in 1 PR and just modify Makefile in the other one. So the Makefile can be updated first. -- ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6d5ee973f0600a3a9444f569dcf0dd346bfa2a11 by Victor Stinner in branch 'master': bpo-36301: Add _PyRuntimeState.preconfig (GH-12506) https://github.com/python/cpython/commit/6d5ee973f0600a3a9444f569dcf0dd346bfa2a11 --

[issue35528] [DOC] [LaTeX] Sphinx 2.0 uses GNU FreeFont as default for xelatex

2019-03-23 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-23 Thread Maor Kleinberger
Maor Kleinberger added the comment: Update after editing my PR - the bugs are: 1. WindowsPath('C:a').absolute() should return WindowsPath('C:\\d\\a') but returns WindowsPath('C:a'). This is caused by flawed logic in the parse_parts method of the _Flavour class. 2.

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-23 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @vstinner I propose two PRs. The first one will remove the Tools/scripts/serve.py file and update the Makefile. The second and independent PR just add a new example in the documentation of wsgiref, the example is based on Tools/scripts/serve.py

[issue36405] Use dict unpacking in idlelib

2019-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: You mean that the patch will execute the code in imported module where the two are not even equal. So I will revert the '__main__' changes. I found two differences in completion behavior with the patch. One is a failure that should work, another is a

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-23 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +12462 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2019-03-23 Thread Géry
Change by Géry : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2019-03-23 Thread Géry
Géry added the comment: > A bit late for that now Okay, so disabled is a private attribute so it should never be used anyway. And as it not documented anywhere in the official Python documentation, I think the current situation is fine. Thank you for the explanation, I am closing this issue

[issue36286] Random failure in test_idle

2019-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36405] Use dict unpacking in idlelib

2019-03-23 Thread miss-islington
miss-islington added the comment: New changeset 00986ec5530f004fca2c2675a822c73f06283bdf by Miss Islington (bot) in branch '3.7': bpo-36405: Use dict unpacking in idlelib (GH-12507) https://github.com/python/cpython/commit/00986ec5530f004fca2c2675a822c73f06283bdf -- nosy:

[issue36286] Random failure in test_idle

2019-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I found that clicking on the font sample was usually enough to cause a failure and restart. Should we close this? -- ___ Python tracker

[issue36405] Use dict unpacking in idlelib

2019-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is true only in the main script or REPL. But you executed that code in imported modules. -- ___ Python tracker ___

[issue36405] Use dict unpacking in idlelib

2019-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I hit merge before seeing your post here. I based the globals change on >>> import __main__ >>> __main__.__dict__ is globals() True -- ___ Python tracker

[issue33319] `subprocess.run` documentation doesn't tell is using `stdout=PIPE` safe

2019-03-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue36405] Use dict unpacking in idlelib

2019-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +12461 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36405] Use dict unpacking in idlelib

2019-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2b75155590eb42d25e474b776ee9fdcc4b3dc840 by Terry Jan Reedy in branch 'master': bpo-36405: Use dict unpacking in idlelib (#12507) https://github.com/python/cpython/commit/2b75155590eb42d25e474b776ee9fdcc4b3dc840 --

[issue33319] `subprocess.run` documentation doesn't tell is using `stdout=PIPE` safe

2019-03-23 Thread miss-islington
miss-islington added the comment: New changeset 9cdac5ced68f1d6ef5e1eee7552bb200b46adc23 by Miss Islington (bot) in branch '3.7': bpo-33319: Clarify subprocess call docs. (GH-12508) https://github.com/python/cpython/commit/9cdac5ced68f1d6ef5e1eee7552bb200b46adc23 -- nosy:

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2019-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Commit as-is. I will consider the Path.glob findfiles while working on #36323. Like walk, it yields in breadth first order. Unlike walk, it requires relative paths (which #37323 may need anyway) and needs code to deal with that. I like the breadth first

[issue33319] `subprocess.run` documentation doesn't tell is using `stdout=PIPE` safe

2019-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +12460 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33319] `subprocess.run` documentation doesn't tell is using `stdout=PIPE` safe

2019-03-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 7a2e84c3488cfd6c108c6b41ff040825f1757566 by Gregory P. Smith in branch 'master': bpo-33319: Clarify subprocess call docs. (GH-12508) https://github.com/python/cpython/commit/7a2e84c3488cfd6c108c6b41ff040825f1757566 --

[issue36354] Use CreateProcessW for Python 2.7 on Windows.

2019-03-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: 2.7 was closed to new features eons ago. While subprocess32 backport might be a plausible home for this, I really can't handle doing anything significant for Windows within the confines of that project (it already makes me nervous that anyone is using

  1   2   >