[issue41434] IDLE: Option to warn user on "Run Module" if file is not .py/.pyw

2020-07-28 Thread wyz23x2
Change by wyz23x2 : -- title: IDLE: Warn user on "Run Module" if file is not .py/.pyw -> IDLE: Option to warn user on "Run Module" if file is not .py/.pyw ___ Python tracker _

[issue41434] IDLE: Warn user on "Run Module" if file is not .py/.pyw

2020-07-28 Thread wyz23x2
wyz23x2 added the comment: It should be able to turn on/off this feature. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue41434] IDLE: Warn user on "Run Module" if file is not .py/.pyw

2020-07-28 Thread wyz23x2
New submission from wyz23x2 : It would be great if IDLE shows a note when a non-Python file is attempted to run. -- assignee: terry.reedy components: IDLE messages: 374561 nosy: terry.reedy, wyz23x2 priority: normal severity: normal status: open title: IDLE: Warn user on "Run Module" i

[issue41282] Deprecate and remove distutils

2020-07-28 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- nosy: +hugovk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue41433] Logging libraries BufferingHandler flushed twice at shutdown

2020-07-28 Thread Tatsunosuke Shimada
Tatsunosuke Shimada added the comment: Found related issue. https://bugs.python.org/issue901330 -- ___ Python tracker ___ ___ Pytho

[issue41433] Logging libraries BufferingHandler flushed twice at shutdown

2020-07-28 Thread Tatsunosuke Shimada
New submission from Tatsunosuke Shimada : BufferingHandler I expected function flush of BufferingHandler called once but it is called twice. This is due to that shutdown calls flush before close function which calls flush function inside. (Faced this issue on my custom implementation of flus

[issue31904] Python should support VxWorks RTOS

2020-07-28 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +20820 pull_request: https://github.com/python/cpython/pull/21675 ___ Python tracker ___ _

[issue41431] Optimize dict_merge for copy

2020-07-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue41432] IDLE: Handle bad highlight tab color config

2020-07-28 Thread Terry J. Reedy
New submission from Terry J. Reedy : https://stackoverflow.com/questions/35397377/python-freezes-when-configuring-idle froze IDLE with a custom theme missing 'colours for the blinker and highlighting'. I reported some experiments there. Tracebacks might help, but Proposal 1: check theme bef

[issue41427] howto/descriptor.rst incorrectly mentions method.__class__

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41431] Optimize dict_merge for copy

2020-07-28 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20819 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21674 ___ Python tracker ___ _

[issue41431] Optimize dict_merge for copy

2020-07-28 Thread Inada Naoki
Inada Naoki added the comment: PyDict_Copy() is not used in eval loop or calling functions. So removing clone_combined_dict() is a considerable option. Another option is to use clone_combined_dict() in dict_merge, instead of adding dict_copy2(). Pros: No performance regression. PyDict_Copy(

[issue41428] PEP 604 -- Allow writing union types as X | Y

2020-07-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue41431] Optimize dict_merge for copy

2020-07-28 Thread Inada Naoki
Inada Naoki added the comment: To reduce code size, I am considering to remove clone_combined_dict. I will check how PyDict_Copy() is performance critical. This is microbenchmark result of d.copy() and dict(d). $ ./python -m pyperf timeit --compare-to ./python-master -s 'd=dict.fromkeys(ran

[issue41427] howto/descriptor.rst incorrectly mentions method.__class__

2020-07-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +20818 pull_request: https://github.com/python/cpython/pull/21668 ___ Python tracker ___ __

[issue41427] howto/descriptor.rst incorrectly mentions method.__class__

2020-07-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20817 pull_request: https://github.com/python/cpython/pull/21667 ___ Python tracker _

[issue41430] Document C docstring behavior

2020-07-28 Thread James Corbett
Change by James Corbett : -- keywords: +patch pull_requests: +20816 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21673 ___ Python tracker ___ __

[issue38156] input fucntion raises SystemError after specific input.

2020-07-28 Thread miss-islington
miss-islington added the comment: New changeset 7cfede6859586f77f786bda56af4698ae2245f56 by Miss Islington (bot) in branch '3.8': closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569) https://github.com/python/cpython/commit/7cfede6859586f77f786bda56af4698ae2245f56 --

[issue38156] input fucntion raises SystemError after specific input.

2020-07-28 Thread miss-islington
miss-islington added the comment: New changeset 22216107f2890e7ee2ab055e4983b76ff9c62169 by Miss Islington (bot) in branch '3.9': closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569) https://github.com/python/cpython/commit/22216107f2890e7ee2ab055e4983b76ff9c62169 --

[issue38156] input fucntion raises SystemError after specific input.

2020-07-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +20814 pull_request: https://github.com/python/cpython/pull/21670 ___ Python tracker _

[issue38156] input fucntion raises SystemError after specific input.

2020-07-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +20815 pull_request: https://github.com/python/cpython/pull/21671 ___ Python tracker ___ __

[issue38156] input fucntion raises SystemError after specific input.

2020-07-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset a74eea238f5baba15797e2e8b570d153bc8690a7 by Benjamin Peterson in branch 'master': closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569) https://github.com/python/cpython/commit/a74eea238f5baba15797e2e8b570d153bc8690a7

[issue41431] Optimize dict_merge for copy

2020-07-28 Thread Inada Naoki
Inada Naoki added the comment: Microbenchmark for commit cf4f61ce50e07f7ccd3aef991647050c8da058f9. # timeit -s 'd=dict.fromkeys(range(8))' -- 'dict(d)' Mean +- std dev: [master] 311 ns +- 2 ns -> [patched] 144 ns +- 1 ns: 2.16x faster (-54%) # timeit -s 'd=dict.fromkeys(range(1000))' -- 'dic

[issue41431] Optimize dict_merge for copy

2020-07-28 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +20813 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21669 ___ Python tracker ___

[issue41431] Optimize dict_merge for copy

2020-07-28 Thread Inada Naoki
New submission from Inada Naoki : Although there are dict.copy() and PyDict_Copy(), dict_merge can be used for copying dict. * d={}; d.update(orig) * d=dict(orig) * d=orig.copy() # orig has many dummy keys. -- components: Interpreter Core messages: 374550 nosy: inada.naoki priority: n

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: If you want to add back the __ne__() method, that would be fine. FWIW, "class A(collections.abc.Set, int)" seems pretty exotic to me. I wouldn't have expected that work out well. -- ___ Python tracker

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg374497 ___ Python tracker ___ ___ Python-bugs-list mail

[issue41427] howto/descriptor.rst incorrectly mentions method.__class__

2020-07-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: howto/descriptor.rst unnecessarily mentions method.__class__ -> howto/descriptor.rst incorrectly mentions method.__class__ ___ Python tracker _

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't feel a need to change anything, my post hit a few seconds after yours :-) That said, "return u ** (-1.0 / alpha)" would be a slight, but nice improvement. It might also be reasonable to document a safe range of alpha values. --

[issue41430] Document C docstring behavior

2020-07-28 Thread James Corbett
New submission from James Corbett : As described in https://stackoverflow.com/questions/25847035/what-are-signature-and-text-signature-used-for-in-python-3-4, https://bugs.python.org/issue20586, and https://stackoverflow.com/questions/50537407/add-a-signature-with-annotations-to-extension-met

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread Tim Peters
Tim Peters added the comment: BTW, if we have to "do something", how about changing return 1.0 / u ** (1.0/alpha) to the mathematically equivalent return (1.0 / u) ** (1.0/alpha) ? Not sure about Linux-y boxes, but on Windows that would raise OverflowError instead of ZeroDivisionError. Whi

[issue41420] Academic Free License v. 2.1 link is not found and is obsolete

2020-07-28 Thread Guido van Rossum
Guido van Rossum added the comment: I also found what looks like a copy of AFL 2.1 on Python's own wiki: https://wiki.python.org/moin/PythonSoftwareFoundationLicenseFaq/AFL-2.1 (Of course, being a wiki, this has the disadvantage of being publicly editable. :-) Yet another option presents it

[issue41420] Academic Free License v. 2.1 link is not found and is obsolete

2020-07-28 Thread Guido van Rossum
Guido van Rossum added the comment: A few options present themselves: - We could switch to AFL 3.0 (https://opensource.org/licenses/AFL-3.0). This will require some review by our lawyer. - We could link to another copy of AFL 2.1. Honestly the original one seems pretty odd. - We could link

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: The origin of the error was an incorrect update from Python 2 semantics where the class was exposed as an attribute: Python 2.7.17 (v2.7.17:c2f86d86e6, Oct 19 2019, 16:24:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright",

[issue41429] Let fnmatch.filter accept a tuple of patterns

2020-07-28 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +20812 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21666 ___ Python tracker ___ __

[issue41046] unittest: make skipTest a classmethod

2020-07-28 Thread James Corbett
James Corbett added the comment: I was careless in my example, it would need to be `cls.skipTest(reason)`. However, that really doesn't have anything to do with why it should be a `classmethod` instead of an instance method: it's so that you can call `skipTest` from `classmethods`, namely `s

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Good catch. Thanks for the report. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue41429] Let fnmatch.filter accept a tuple of patterns

2020-07-28 Thread Andrés Delfino
New submission from Andrés Delfino : I propose to let fnmatch.filter accept a tuple of patterns as its pat parameter, while still supporting a single string argument (just like str.endswith does). The code to do this manually and efficiently pretty much involves copying filter. -- co

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list m

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: The point of the "u = 1.0 - self.random()" line was to prevent the case where *u* was exactly equal to zero; however, as you noted, raising a very small number to a small can round down to zero. We could wrap the calculation in a try/except to catch the Z

[issue41413] IDLE: exit at input() prompt is not complete

2020-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: More specifically, why the change results the same box twice on Mac but not on Windows. The previous double-save issue, worst on Mac, was #35379. -- nosy: +taleinat ___ Python tracker

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- type: -> behavior versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ __

[issue35379] IDLE's close fails io is set to None on Mac

2020-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: #41413 exposed another double save on Mac issue. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread Tim Peters
Tim Peters added the comment: I'm inclined to ignore this. No actual user has complained about this, and I doubt any ever will: it's got to be rare as hen's teeth to use a parameter outside of, say, [0.1, 10.0], in real life. The division error can't happen for those. For "small" alpha, the

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue41428] PEP 604 -- Allow writing union types as X | Y

2020-07-28 Thread Maggie Moss
New submission from Maggie Moss : https://www.python.org/dev/peps/pep-0604/ -- messages: 374535 nosy: maggiemoss priority: normal pull_requests: 20811 severity: normal status: open title: PEP 604 -- Allow writing union types as X | Y type: behavior versions: Python 3.10 ___

[issue41413] IDLE: exit at input() prompt is not complete

2020-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: IRv, please, please, snip the message you respond to when replying by email instead of with a browser. I am guessing that you or someone installed python as root/admin and you are working as non-root. I will try to figure out why the change results in the

[issue41380] Add snake example to turtledemo

2020-07-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41418] GH-21658: Add snake game to tools/demo!

2020-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a duplicate of the original issue, #41380, except that it proposes to put the new file where it does not belong and will be useless, instead of in turtledemo. -- assignee: -> terry.reedy nosy: +terry.reedy resolution: -> rejected stage: pat

[issue41413] IDLE: exit at input() prompt is not complete

2020-07-28 Thread Irv Kalb
Irv Kalb added the comment: I have tried the test that Terry outlined (from double clicking on the IDLE icon), and I can confirm that I get the exact same results. In the menu bar, I see just the Apple icon and "IDLE". The items in the IDLE menu work (About IDLE and Preferences). At that

[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-07-28 Thread Ned Deily
Ned Deily added the comment: This issue should be fixed for upcoming releases. Nosying Łukasz for consideration of "release blocker" status. -- nosy: +lukasz.langa priority: normal -> critical ___ Python tracker

[issue41405] python 3.9.0b5 test

2020-07-28 Thread Ned Deily
Ned Deily added the comment: As xtreak noted earlier, the test_tk failure is documented in Issue41306. It is a result of changes in Tk 8.6.x itself but the tests need to be fixed to work with older and newer versions of Tk 8.6.x. And the curses issues were originally reported in Issue36630

[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

2020-07-28 Thread Ned Deily
Ned Deily added the comment: I believe this is now just a duplicate of Issue36982. If there is anything not already covered there, let's discuss it there. -- nosy: +ned.deily resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add support for extended

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Yonatan Goldschmidt
Change by Yonatan Goldschmidt : -- keywords: +patch pull_requests: +20810 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21665 ___ Python tracker

[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

2020-07-28 Thread Eric V. Smith
Eric V. Smith added the comment: I think deleting the last sentence is sufficient. -- keywords: +newcomer friendly nosy: +eric.smith ___ Python tracker ___ ___

[issue36982] Add support for extended color functions in ncurses 6.1

2020-07-28 Thread Ned Deily
Ned Deily added the comment: PR 17536 was based on the original PR 13534 and has now gone through a couple of rounds of code review. Other than a missing doc change, everything in PR 13534 is covered (and updated) in PR 17536 so I've closed the original PR. Other than adding the doc change a

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Yonatan Goldschmidt
New submission from Yonatan Goldschmidt : In Doc/howto/descriptor.rst: # Internally, the bound method stores the underlying function, # the bound instance, and the class of the bound instance. >>> d.f.__func__ >>> d.f.__self__ <__main__.D object at 0x1012e1f98> >>>

[issue41380] Add snake example to turtledemo

2020-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From the closed PR: "I'll delete it from turtledemo and it will be at >tools/demo file!" No! turtledemo was in tools/demo in 2.x, where hardly anyone saw it. It was made into an importable module in 3.0. A link was later added to the IDLE help menu. I o

[issue41426] [curses] Grammar mistake in curses.getmouse() docs

2020-07-28 Thread Brett Cannon
New submission from Brett Cannon : https://docs.python.org/3/library/curses.html#curses.getmouse "this method should be call to retrieve" "call" -> "called" -- assignee: docs@python components: Documentation keywords: newcomer friendly messages: 374524 nosy: brett.cannon, docs@python

[issue41303] perf_counter result does not count system sleep time in Mac OS

2020-07-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: macOS 10.12 also has clock_gettime(), which would allow using the generic code path (although the current path must be kept for older versions of macOS). -- ___ Python tracker

[issue41422] C Unpickler memory leak via memo

2020-07-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue41425] [tkinter] "Coupling Widget Variables" example missing code

2020-07-28 Thread Brett Cannon
New submission from Brett Cannon : The example for https://docs.python.org/3.8/library/tkinter.html#coupling-widget-variables is missing: 1. Imports 2. Code to launch the example -- assignee: docs@python components: Documentation keywords: easy messages: 374522 nosy: brett.cannon, do

[issue41422] C Unpickler memory leak via memo

2020-07-28 Thread kale-smoothie
kale-smoothie added the comment: The leak demonstrated in the attachment is, to my understanding, caused by memoizing the closure returned from the `find_class` method that's used to intercept global references. The cycle is then: Unpickler, memo table, closure, Unpickler (via cell reference

[issue41424] [tkinter] Grammatical error in "Packer" docs

2020-07-28 Thread Brett Cannon
New submission from Brett Cannon : "Geometry managers are used to specify the relative positioning of the positioning of widgets within their container". Remove "of the positioning". -- assignee: docs@python components: Documentation keywords: newcomer friendly messages: 374520 nosy:

[issue41422] C Unpickler memory leak via memo

2020-07-28 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +20809 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21664 ___ Python tracker _

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue41423] `multiprocessing.Array` and `multiprocessing.managers.SyncManager.Array` APIs are similar but not the same

2020-07-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41423] `multiprocessing.Array` and `multiprocessing.managers.SyncManager.Array` APIs are similar but not the same

2020-07-28 Thread Ben
Change by Ben : -- nosy: +bjs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman

[issue41423] `multiprocessing.Array` and `multiprocessing.managers.SyncManager.Array` APIs are similar but not the same

2020-07-28 Thread James Thistlewood
New submission from James Thistlewood : I stumbled across this by trying to implement a call to the latter, while reading the docs for the former. I think this is quite confusing and unnecessary that the APIs between these two definitions should differ. The same goes for `multiprocessing.Val

[issue41422] C Unpickler memory leak via memo

2020-07-28 Thread kale-smoothie
New submission from kale-smoothie : I'm not familiar with the workings of GC/pickle, but it looks like the traverse code in the C Unpickler omits a visit to the memo, potentially causing a memory leak? -- components: Library (Lib) files: leak_pickler.py messages: 374518 nosy: kale-smo

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread David MacIver
David MacIver added the comment: I guess on actual inspection of the code (which I should have done before, sorry) it's obvious why this happens: u ** (1.0 / alpha) will round to 0.0 for small values of u, and the smaller alpha is the higher the probability of that happening, in that it happ

[issue41421] Random.paretovariate sometimes raises ZeroDivisionError for small alpha

2020-07-28 Thread David MacIver
New submission from David MacIver : The following code raises a ZeroDivisionError: from random import Random Random(14064741636871487939).paretovariate(0.01) This raises: random.py, line 692, in paretovariate return 1.0 / u ** (1.0/alpha) ZeroDivisionError: float division by zero Tha

[issue36661] Missing dataclass decorator import in dataclasses module docs

2020-07-28 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36661] Missing dataclass decorator import in dataclasses module docs

2020-07-28 Thread Brett Cannon
Brett Cannon added the comment: Thanks for noticing, Karl! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41409] deque.pop(index) is not supported

2020-07-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am convinced by Raymond's argument, it seems that with the current state of the ABC classes and semantics the most pragmatical solution is the status quo. It would be a weird if deque is a Sequence but not a MutableSequence because it can clearly be

[issue41355] os.link(..., follow_symlinks=False) without linkat(3)

2020-07-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue41355] os.link(..., follow_symlinks=False) without linkat(3)

2020-07-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > So, do you think it should just be documented that follow_symlinks is > effectively ignored with os.link() on most platforms that claim to support > it, unless either src_dir_fd or dst_dir_fd is used? At this stage, I am just trying to understand al

[issue41380] Add snake example to turtledemo

2020-07-28 Thread Ehsonjon Gadoev
Ehsonjon Gadoev added the comment: Moved to https://bugs.python.org/issue41418 -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue40841] Provide mimetypes.sniff API as stdlib

2020-07-28 Thread Guido van Rossum
Guido van Rossum added the comment: When the standard says "trust the filename" it is talking to the application, not to the sniffing library. The library should provide the tool for applications to follow the standard, but I don't see a reason why we would have to enforce how applications call

[issue41412] After installation on Windows7, 64bit Python 3.9.0b5 reports "api-ms-win-core-path-l1-1-0.dll" missing and doesn't start

2020-07-28 Thread Steve Dower
Steve Dower added the comment: Leaving this open until we can validate on the next release. I don't have convenient access to old versions of Windows anymore (and don't have time to deal with inconvenient access this week). -- priority: release blocker -> deferred blocker stage: patc

[issue40948] Better identify Windows installer as installer only, not runner

2020-07-28 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue40841] Provide mimetypes.sniff API as stdlib

2020-07-28 Thread Dong-hee Na
Dong-hee Na added the comment: > I think that both functions for detecting file type, by name and by content I think so too, mime sniffing would not be a way to alternate the method based on the file extension. Both APIs should be provided. > should not we add also the code for detecting the

[issue41411] Improve and consolidate f-strings docs

2020-07-28 Thread Guido van Rossum
Guido van Rossum added the comment: Note that there already is something in the tutorial about f-strings (in inputoutput.rst, labeled tut-f-strings), and the intro has a link to their reference manual description in the "see also" section. -- ___ Py

[issue40948] Better identify Windows installer as installer only, not runner

2020-07-28 Thread miss-islington
miss-islington added the comment: New changeset 95cc37f6b8e895a5042e2a10e5d9026429e06342 by Miss Islington (bot) in branch '3.9': bpo-41412 and bpo-40948: Windows installer updates (GH-21656) https://github.com/python/cpython/commit/95cc37f6b8e895a5042e2a10e5d9026429e06342 -- _

[issue41420] Academic Free License v. 2.1 link is not found and is obsolete

2020-07-28 Thread Guido van Rossum
Guido van Rossum added the comment: I've sent an email to our lawyer. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue41412] After installation on Windows7, 64bit Python 3.9.0b5 reports "api-ms-win-core-path-l1-1-0.dll" missing and doesn't start

2020-07-28 Thread miss-islington
miss-islington added the comment: New changeset 95cc37f6b8e895a5042e2a10e5d9026429e06342 by Miss Islington (bot) in branch '3.9': bpo-41412 and bpo-40948: Windows installer updates (GH-21656) https://github.com/python/cpython/commit/95cc37f6b8e895a5042e2a10e5d9026429e06342 -- _

[issue41412] After installation on Windows7, 64bit Python 3.9.0b5 reports "api-ms-win-core-path-l1-1-0.dll" missing and doesn't start

2020-07-28 Thread Steve Dower
Steve Dower added the comment: New changeset 37a06cbe5c17c2aa6ad938339fd42531a8a0bea0 by Steve Dower in branch 'master': bpo-41412 and bpo-40948: Windows installer updates (GH-21656) https://github.com/python/cpython/commit/37a06cbe5c17c2aa6ad938339fd42531a8a0bea0 -- __

[issue40948] Better identify Windows installer as installer only, not runner

2020-07-28 Thread Steve Dower
Steve Dower added the comment: New changeset 37a06cbe5c17c2aa6ad938339fd42531a8a0bea0 by Steve Dower in branch 'master': bpo-41412 and bpo-40948: Windows installer updates (GH-21656) https://github.com/python/cpython/commit/37a06cbe5c17c2aa6ad938339fd42531a8a0bea0 -- __

[issue41412] After installation on Windows7, 64bit Python 3.9.0b5 reports "api-ms-win-core-path-l1-1-0.dll" missing and doesn't start

2020-07-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +20807 pull_request: https://github.com/python/cpython/pull/21661 ___ Python tracker _

[issue41420] Academic Free License v. 2.1 link is not found and is obsolete

2020-07-28 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue40948] Better identify Windows installer as installer only, not runner

2020-07-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +20808 pull_request: https://github.com/python/cpython/pull/21661 ___ Python tracker _

[issue41420] Academic Free License v. 2.1 link is not found and is obsolete

2020-07-28 Thread Dmytro Litvinov
New submission from Dmytro Litvinov : Link to Acamedic Free License v. 2.1(https://www.samurajdata.se/opensource/mirror/licenses/afl-2.1.php) at https://www.python.org/psf/contrib/ is not found. Also, Guido mentioned that version 2.1 seems obsolete and we may need to review that with the lawy

[issue41328] In unittest doc, replace Hudson CI with Travis and Appveyor

2020-07-28 Thread Dmytro Litvinov
Dmytro Litvinov added the comment: Done: https://bugs.python.org/issue41420 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41355] os.link(..., follow_symlinks=False) without linkat(3)

2020-07-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree that the current implementation is wonky. The implementation should use linkat(2) whenever it is available, that's the only portable way to honour the follow_symlinks flag as POSIX says that the behaviour for link(2) with symbolic links is impleme

[issue41328] In unittest doc, replace Hudson CI with Travis and Appveyor

2020-07-28 Thread miss-islington
miss-islington added the comment: New changeset 59cfba326801a1fd809836c16887f53765f9680f by Miss Islington (bot) in branch '3.8': bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653) https://github.com/python/cpython/commit/59cfba326801a1fd809836c16887f53765f9680f

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > if we have a class which inherits from both Set and int This really seems like an invented problem rather than an actual problem. > class A(collections.abc.Set, int): pass Would anyone ever do this and be surprised the sets and ints don't combine perfe

[issue41328] In unittest doc, replace Hudson CI with Travis and Appveyor

2020-07-28 Thread miss-islington
miss-islington added the comment: New changeset e31b8a5cd13ca529e59c1e05d4524ae750a5b5a0 by Miss Islington (bot) in branch '3.9': bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653) https://github.com/python/cpython/commit/e31b8a5cd13ca529e59c1e05d4524ae750a5b5a0

[issue41419] Path.mkdir and os.mkdir don't respect setgid if its parent is g-s

2020-07-28 Thread Christopher Harrison
New submission from Christopher Harrison : The setgid bit is not set when creating a directory, even when explicitly specified in the mode argument, when its containing directory doesn't have its own setgid bit set. When the parent does have the setgid bit, it works as expected. Steps to rep

[issue41328] In unittest doc, replace Hudson CI with Travis and Appveyor

2020-07-28 Thread Guido van Rossum
Guido van Rossum added the comment: Can you file a separate bug report for the license link? We may need to review that with the lawyer, to see if we can use AFL 3.0, since AFL 2.1 seems obsolete. -- ___ Python tracker

  1   2   >