[issue45670] New .mapping attribute is broken for some existing uses of dict views

2021-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hmm, I'm looking through the bidict code a bit more. Rather than saying the dict views are being used in an unsupported way, it is more accurate to say that your intended meaning for the *mapping* attribute differs from the published meaning. Note, the

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-31 Thread miss-islington
miss-islington added the comment: New changeset 14a4fce457033412278ca9a056787db424310dc3 by m-aciek in branch 'main': bpo-45618: Update Sphinx version used to build the documentation to 4.2.0 (GH-29256) https://github.com/python/cpython/commit/14a4fce457033412278ca9a056787db424310dc3

[issue45682] Nicer default logging format

2021-10-31 Thread Vinay Sajip
Vinay Sajip added the comment: > They too could pass a format argument themselves rather then relying on the > default format never changing. Changes to the stdlib shouldn't require changing previously working code (sometimes months or years old) to fix breakage caused by new stdlib

[issue45682] Nicer default logging format

2021-10-31 Thread Olaf van der Spek
Olaf van der Spek added the comment: > Except that people may have used the current basic format in, for example, > unit tests, and that code could break after a change like the one proposed. They too could pass a format argument themselves rather then relying on the default format never

[issue45670] New .mapping attribute is broken for some existing uses of dict views

2021-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, but this isn't bug in Python. The documented and supported API is the MappingView ABC where the _mapping attribute is private. As an optimization, the bidict project has elected to forgo the supported API and instead use a concrete implementation

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-31 Thread Marten Lienen
Marten Lienen added the comment: As suggested, I have extracted the code and tests into a package on PyPI: https://pypi.org/project/cached_method/ With this I will close this issue. "third party" sounds about right as the Resolution setting. @eric.araujo This feature is about caching the

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-31 Thread miss-islington
miss-islington added the comment: New changeset b04b307e0ebad0d9c7cc311fe6018b8d31b2ac8d by Miss Islington (bot) in branch '3.9': bpo-45516: add protocol description to the Traversable documentation (GH-29039) https://github.com/python/cpython/commit/b04b307e0ebad0d9c7cc311fe6018b8d31b2ac8d

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-31 Thread miss-islington
miss-islington added the comment: New changeset 89b1237ffbd2df2721dc4959e3ccb1106f3555b5 by Miss Islington (bot) in branch '3.10': bpo-45516: add protocol description to the Traversable documentation (GH-29039) https://github.com/python/cpython/commit/89b1237ffbd2df2721dc4959e3ccb1106f3555b5

[issue10483] http.server - what is executable on Windows

2021-10-31 Thread Éric Araujo
Éric Araujo added the comment: I don’t know if CGI on windows servers is very relevant nowadays. -- nosy: +eric.araujo versions: -Python 3.2 ___ Python tracker ___

[issue45682] Nicer default logging format

2021-10-31 Thread Vinay Sajip
Vinay Sajip added the comment: > However in the case of logging, an argument could be made that changing the > default would have less impact. Except that people may have used the current basic format in, for example, unit tests, and that code could break after a change like the one

[issue45625] Add support for top-level await

2021-10-31 Thread Éric Araujo
Éric Araujo added the comment: I don’t think that’s possible; it wouldn’t fit with the design of python to have an implicit async loop like that. But I’m no expert here, so you could bring this idea to https://discuss.python.org/c/ideas/6 to see what people think. --

[issue44365] Bad dataclass post-init example

2021-10-31 Thread da2ce7
da2ce7 added the comment: Amazingly, the original example needs a very small change to make it work as expected: @dataclass class Rectangle: height: float width: float @dataclass class Square(Rectangle): side: float height: float = field(init=False) width: float =

[issue45642] Unable to save

2021-10-31 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves ___ Python tracker

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +27611 pull_request: https://github.com/python/cpython/pull/29348 ___ Python tracker ___

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +27612 pull_request: https://github.com/python/cpython/pull/29349 ___ Python tracker ___

[issue45634] [sqlite3] don't combine error checks when adding integer constants

2021-10-31 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks for reviewing, Dong-hee! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45682] Nicer default logging format

2021-10-31 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44365] Bad dataclass post-init example

2021-10-31 Thread da2ce7
da2ce7 added the comment: Upon Self Review, I think that this slightly updated version is a bit more illustrative. -- Added file: https://bugs.python.org/file50415/dataclass_inheritance_v2_test.py ___ Python tracker

[issue2628] ftplib Persistent data connection

2021-10-31 Thread Jonathan Bell
Jonathan Bell added the comment: This issue is 13 years old. The original 2008 patch was used in a production environment against an OpenVMS server identifying itself as MadGoat. That use case involved downloading documents only, and no write permission was available. Therefore the patch

[issue44365] Bad dataclass post-init example

2021-10-31 Thread da2ce7
da2ce7 added the comment: I have made a slightly more comprehensive example. See file attached. Please consider for the updated documentation. -- nosy: +da2ce7 Added file: https://bugs.python.org/file50414/dataclass_inheritance_test.py ___ Python

[issue43633] Improve the textual representation of IPv4-mapped IPv6 addresses

2021-10-31 Thread Oleksandr Pavliuk
Change by Oleksandr Pavliuk : -- keywords: +patch nosy: +opavlyuk nosy_count: 1.0 -> 2.0 pull_requests: +27610 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29345 ___ Python tracker

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-31 Thread miss-islington
miss-islington added the comment: New changeset bc8fd7c9c24eb71217ebdb8a12cf38e9dc4215b2 by Filipe Laíns in branch 'main': bpo-45516: fix Traversable.name documentation (GH-29194) https://github.com/python/cpython/commit/bc8fd7c9c24eb71217ebdb8a12cf38e9dc4215b2 -- nosy:

[issue45677] [doc] improve sqlite3 docs

2021-10-31 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45682] Nicer default logging format

2021-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Generally, we can't change defaults after an API has been published because it immediately affects the output for people who use that default. However in the case of logging, an argument could be made that changing the default would have less impact.

[issue45682] Nicer default logging format

2021-10-31 Thread Olaf van der Spek
New submission from Olaf van der Spek : The default logging format will print something like: WARNING:root:Hello Python! Could it default to something like this instead? 2021-10-31 14:52:36,490 WARNING: Hello Python! logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s')

[issue2628] ftplib Persistent data connection

2021-10-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Hello. I added some initial comments to the PR, but I'm sort of skeptical about this. It must be noted that: 1) very few FTP servers probably support this feature (https://en.wikipedia.org/wiki/File_Transfer_Protocol#Data_transfer_modes) 2) the specs

[issue45681] tkinter breaks on high resolution screen after ctypes SetProcessDPIAware()

2021-10-31 Thread Gabe
New submission from Gabe : In the following code: ```py import tkinter as tk from tkinter import ttk import ctypes ctypes.windll.user32.SetProcessDPIAware() w = tk.Tk() ttk.Checkbutton(w, text = "Checkbox").grid() w.mainloop() ``` The checkbox begins as normal size, but after hovering over

[issue45634] [sqlite3] don't combine error checks when adding integer constants

2021-10-31 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset ed91f959b032951620f32bcd93ff27223699a86a by Erlend Egeberg Aasland in branch '3.10': [3.10] bpo-45634: Don't combine error checks when adding `sqlite3` int constants (GH-29251). (GH-29343)

[issue10483] http.server - what is executable on Windows

2021-10-31 Thread mike mcleod
mike mcleod added the comment: Hi, I would like to help on this issue. Let me know what can be done? -- nosy: +mikecmcleod ___ Python tracker ___

[issue45677] [doc] improve sqlite3 docs

2021-10-31 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: (Nosying Mariatta and Carol from the CPython DWG) -- nosy: +Mariatta, willingc ___ Python tracker ___

[issue45677] [doc] improve sqlite3 docs

2021-10-31 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > What is wrong with addressing the reader as "you"? I remember this was discussed on python-dev last year (?). IIRC, the majority was in favour of changing the documentation to avoid addressing the reader personally. Let us ask the Documentation

[issue45634] [sqlite3] don't combine error checks when adding integer constants

2021-10-31 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27609 pull_request: https://github.com/python/cpython/pull/29343 ___ Python tracker ___

[issue45634] [sqlite3] don't combine error checks when adding integer constants

2021-10-31 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 39b4d5938ce781af41f8c9da72dee46095a78642 by Erlend Egeberg Aasland in branch 'main': bpo-45634: Don't combine error checks when adding `sqlite3` int constants (GH-29251)

[issue45666] Warning: "'swprintf' : format string '%s' requires an argument of type 'unsigned short *', but variadic argument 1 has type 'const char *'"

2021-10-31 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +27608 pull_request: https://github.com/python/cpython/pull/29341 ___ Python tracker ___

[issue45679] typing.Literal[True] is implicitly converted to typing.Literal[1]

2021-10-31 Thread miss-islington
miss-islington added the comment: New changeset 3997f3ce8ab15269fc800062f75411865dbc0d55 by Miss Islington (bot) in branch '3.10': bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) https://github.com/python/cpython/commit/3997f3ce8ab15269fc800062f75411865dbc0d55 --

[issue45679] typing.Literal[True] is implicitly converted to typing.Literal[1]

2021-10-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27607 pull_request: https://github.com/python/cpython/pull/29342 ___ Python tracker ___

[issue45679] typing.Literal[True] is implicitly converted to typing.Literal[1]

2021-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 634984d7dbdd91e0a51a793eed4d870e139ae1e0 by Serhiy Storchaka in branch 'main': bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) https://github.com/python/cpython/commit/634984d7dbdd91e0a51a793eed4d870e139ae1e0 --

[issue45679] typing.Literal[True] is implicitly converted to typing.Literal[1]

2021-10-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27606 pull_request: https://github.com/python/cpython/pull/29340 ___ Python tracker

[issue45666] Warning: "'swprintf' : format string '%s' requires an argument of type 'unsigned short *', but variadic argument 1 has type 'const char *'"

2021-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From the man page: S (Not in C99 or C11, but in SUSv2, SUSv3, and SUSv4.) Synonym for ls. Don't use. -- nosy: +serhiy.storchaka ___ Python tracker

[issue45679] typing.Literal[True] is implicitly converted to typing.Literal[1]

2021-10-31 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +27605 pull_request: https://github.com/python/cpython/pull/29339 ___ Python tracker ___