[issue40841] Provide mimetypes.sniff API as stdlib

2020-07-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that both functions for detecting file type, by name and by content, are useful in different circumstances. We have similar more specific detection functions sndhdr and imghdr. But I am not sure whether it should be a part of the mimetypes module o

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

2020-07-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If deque does not fully support the MutableSequence interface, should not it be un-regitered as MutableSequence? Maybe we need other abstract class which would be parent of MutableSequence and deque? -- nosy: +stutzbach ___

[issue36788] Add clamp() function to builtins

2020-07-28 Thread Mark Dickinson
Mark Dickinson added the comment: #41408 was closed as a duplicate of this issue See also the recent discussion on python-ideas at https://mail.python.org/archives/list/python-id...@python.org/thread/KWAOQFSV3YJYQV2Y5JXGXFCXHJ3WFLRS/#KWAOQFSV3YJYQV2Y5JXGXFCXHJ3WFLRS That discussion has peter

[issue41408] Add a `clamp` function to the `math` module

2020-07-28 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: rejected -> duplicate superseder: -> Add clamp() function to builtins ___ Python tracker ___

[issue36788] Add clamp() function to builtins

2020-07-28 Thread Mark Dickinson
Mark Dickinson added the comment: Another python-ideas thread, from 2016: https://mail.python.org/archives/list/python-id...@python.org/thread/EHZAXE4P2VOT3CE4H6SNDPDASW7H2CGS/ -- ___ Python tracker ___

[issue41395] pickle and pickletools cli interface doesn't close input and output file.

2020-07-28 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue41411] Improve and consolidate f-strings docs

2020-07-28 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: Hi Ezio, Would you see this being resolved in part by a HOWTO document? -- nosy: +amaajemyfren ___ Python tracker ___ _

[issue41395] pickle and pickletools cli interface doesn't close input and output file.

2020-07-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue41417] SyntaxError: assignment expression within assert

2020-07-28 Thread Jan Češpivo
New submission from Jan Češpivo : Hi, it should be useful if assignment expression works within assertion. For example (real use-case in tests): assert r := re.match(r"result is (\d+)", tested_text) assert int(r.group(1)) == expected_number I haven't found a mention about assertions in https

[issue41394] Document '_' in interpreter tutorial

2020-07-28 Thread wyz23x2
Change by wyz23x2 : -- pull_requests: +20796 pull_request: https://github.com/python/cpython/pull/21654 ___ Python tracker ___ ___ P

[issue36661] Missing dataclass decorator import in dataclasses module docs

2020-07-28 Thread karl
karl added the comment: This should be closed. The PR has been merged and the doc is now up to date. -- nosy: +karlcow ___ Python tracker ___ _

[issue41417] SyntaxError: assignment expression within assert

2020-07-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't know if this limitation is intentional, but not that you can use an assignment expression when you enclose the expression with parenthesis: >>> assert (a:=1) >>> a 1 >>> -- nosy: +ronaldoussoren ___ Pytho

[issue41417] SyntaxError: assignment expression within assert

2020-07-28 Thread Jan Češpivo
Jan Češpivo added the comment: Hi Ronald, thank you. It works! :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue41417] SyntaxError: assignment expression within assert

2020-07-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35328] Set a environment variable for venv prompt

2020-07-28 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset c82dda1e08c4b74ca24f88d6a549d93108c319cf by Zackery Spytz in branch 'master': bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587) https://github.com/python/cpython/commit/c82dda1e08c4b74ca24f88d6a549d93108c319cf -- __

[issue40236] datetime.datetime.strptime get day error

2020-07-28 Thread karl
karl added the comment: Same on macOS 10.15.6 (19G73) Python 3.8.3 (v3.8.3:6f8c8320e9, May 13 2020, 16:29:34) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> datetime.datetime.strptime("2024-0-3 00:00:00",

[issue41394] Document '_' in interpreter tutorial

2020-07-28 Thread wyz23x2
Change by wyz23x2 : -- pull_requests: -20792 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue41318] Better error message of "Cannot recover from stack overflow."

2020-07-28 Thread Heyi Tang
Change by Heyi Tang : -- keywords: +patch pull_requests: +20798 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21655 ___ Python tracker ___ __

[issue41417] SyntaxError: assignment expression within assert

2020-07-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a duplicate of issue39909. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Assignment expression in assert causes SyntaxError ___ Python tracke

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

2020-07-28 Thread Akuli
Akuli added the comment: I don't think it's very common to write code that needs to work with any MutableSequence but not with any Sequence. I think that's the only situation where missing support for deque.pop(index) is a problem. Maybe deque should be a Sequence but not a MutableSequence.

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

2020-07-28 Thread Steve Dower
Steve Dower added the comment: Assuming it fits, I'm going to update the 3.9+ post-install message to this (assume the HTML renders normally). Any comments? New to Python? Start with the online tutorial and [issue41355] os.link(..., follow_symlinks=False) without linkat(3)
Pablo Galindo Salgado added the comment: > That said, since os.link() hasn't been working as advertised, this change > needs to be accompanied by changing the default value of follow_symlinks to > False. That will retain the status quo behavior for most systems, except in > the rare case tha

[issue40236] datetime.datetime.strptime get day error

karl added the comment: Also this. >>> import datetime >>> d0 = datetime.datetime.strptime("2024-0-3 00:00:00", "%Y-%W-%w %H:%M:%S") >>> d0.strftime("%Y-%W-%w %H:%M:%S") '2024-01-3 00:00:00' >>> d1 = datetime.datetime.strptime("2024-1-3 00:00:00", "%Y-%W-%w %H:%M:%S") >>> d1.strftime("%Y-%W-%w

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

Steve Dower added the comment: Added a screenshot, after tweaking the spacing just a little. -- Added file: https://bugs.python.org/file49343/postinstall.png ___ Python tracker __

[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

Change by Steve Dower : -- keywords: +patch pull_requests: +20799 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21656 ___ Python tracker ___

[issue40947] Replace PLATLIBDIR macro with config->platlibdir

Change by Steve Dower : -- pull_requests: -20800 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue40947] Replace PLATLIBDIR macro with config->platlibdir

Change by Steve Dower : -- nosy: +steve.dower nosy_count: 2.0 -> 3.0 pull_requests: +20800 pull_request: https://github.com/python/cpython/pull/21656 ___ Python tracker ___ ___

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

Change by Steve Dower : -- keywords: +patch pull_requests: +20801 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21656 ___ Python tracker _

[issue40947] Replace PLATLIBDIR macro with config->platlibdir

Change by Steve Dower : -- nosy: -steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

Eryk Sun added the comment: > Isn't that a backwards-incompatible change? 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? I'd rather it was fix

[issue41394] Document '_' in interpreter tutorial

Change by wyz23x2 : -- pull_requests: +20802 pull_request: https://github.com/python/cpython/pull/21657 ___ Python tracker ___ ___ P

[issue41411] Improve and consolidate f-strings docs

Ezio Melotti added the comment: HOWTOs are generally used to explain how to accomplish a certain task, so I'm not sure if they are a good fit for this situation. In the list of proposed solutions in my first message, 1-3 should be quite easy to implement. This leaves us with 4-5. To summari

[issue41394] Document '_' in interpreter tutorial

Change by wyz23x2 : -- pull_requests: -20790 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

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

Mats Wichmann added the comment: I still think there ought to be some pointer to https://docs.python.org/3/using/windows.html in there. -- ___ Python tracker ___

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

Steve Dower added the comment: I changed the middle paragraph to this: See what's new in this release, or find more info about using Python

[issue41418] Add snake game to tools/demo!

New submission from Ehsonjon Gadoev : Its simple snake game for beginners! It based on simple algorithm! If you know! And it must be on python/cpython repo! Cause, I made python (snake) game with Python Programming Language xD (maybe not funny)! We love python as much as you do! Yea! ---

[issue41418] Add snake game to tools/demo!

Change by Ehsonjon Gadoev : -- keywords: +patch pull_requests: +20803 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21658 ___ Python tracker ___

[issue41418] Add snake game to tools/demo!

Change by Ehsonjon Gadoev : -- hgrepos: +390 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

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

Change by Ehsonjon Gadoev : -- title: Add snake game to tools/demo! -> GH-21658: Add snake game to tools/demo! ___ Python tracker ___ __

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

Raymond Hettinger added the comment: > If deque does not fully support the MutableSequence interface, > should not it be un-regitered as MutableSequence? You could unregister it, but for such a minor variance, it isn't worth it. We're not unregistering sets and frozenset from Set even though

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

miss-islington added the comment: New changeset 5e3826785dcc64f8e1a8a7bde11b88fbb40943be by Dmytro Litvinov in branch 'master': bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653) https://github.com/python/cpython/commit/5e3826785dcc64f8e1a8a7bde11b88fbb40943be --

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

Change by miss-islington : -- pull_requests: +20806 pull_request: https://github.com/python/cpython/pull/21660 ___ Python tracker ___ __

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

Change by miss-islington : -- pull_requests: +20805 pull_request: https://github.com/python/cpython/pull/21659 ___ Python tracker ___ __

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

Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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 _

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

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

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

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

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

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

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 -- _

[issue41411] Improve and consolidate f-strings docs

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

[issue40841] Provide mimetypes.sniff API as stdlib

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

[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

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

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

[issue40841] Provide mimetypes.sniff API as stdlib

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

[issue41380] Add snake example to turtledemo

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

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

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

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

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

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

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

[issue36661] Missing dataclass decorator import in dataclasses module docs

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

[issue36661] Missing dataclass decorator import in dataclasses module docs

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

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

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

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

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

[issue41422] C Unpickler memory leak via memo

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

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

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

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

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

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

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

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

[issue41422] C Unpickler memory leak via memo

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 _

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

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

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

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

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

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

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

[issue41422] C Unpickler memory leak via memo

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

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

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

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

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

[issue41380] Add snake example to turtledemo

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

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

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

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

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

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

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

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

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

[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

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

[issue41405] python 3.9.0b5 test

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

[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

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

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

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

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

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

[issue41380] Add snake example to turtledemo

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

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

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

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

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 ___

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

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

  1   2   >