[issue44258] Support PEP 515 for Fraction's initialization from string

2021-05-27 Thread Sergey B Kirpichev
New submission from Sergey B Kirpichev : Right now: >>> from fractions import Fraction as F >>> F(1_2_3, 3_2_1) Fraction(41, 107) but >>> F('1_2_3/3_2_1') Traceback (most recent call last): File "", line 1, in File "/home/sk/src/cpython/Lib/fractions.py", line 115, in __new__ raise

[issue44256] _functools._lru_list_elem is exposed unintentionally.

2021-05-27 Thread Inada Naoki
Inada Naoki added the comment: New changeset 28be3191a9db2769ed05e55c6bcbccdd029656dd by Inada Naoki in branch 'main': bpo-44256: Do not expose _functools._list_elem_type (GH-26416) https://github.com/python/cpython/commit/28be3191a9db2769ed05e55c6bcbccdd029656dd --

[issue44256] _functools._lru_list_elem is exposed unintentionally.

2021-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +25013 pull_request: https://github.com/python/cpython/pull/26418 ___ Python tracker

[issue43654] IDLE: Applying settings disables tab completion

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, I think you had the right solution the first time. To me, tab is (should be) a fixed key, and the event added just once, like the other fixed keys. I am quite surprised that it isn't. Please revise or make a new patch to remove it from both

RE: learning python ...

2021-05-27 Thread Avi Gross via Python-list
HomeWork, Nobody is suggesting that you change your attitude because of one obstacle. But what if EVERYBODY here gives you similar feedback that python IS the way it is irrelevant of what other language designers have chosen or you expect? Even if you propose a change that might be nice but it

Re: name for new Enum decorator

2021-05-27 Thread 2QdxY4RzWzUUiLuE
On 2021-05-27 at 20:23:29 -0700, Regarding "name for new Enum decorator," Ethan Furman wrote: > Greetings! > > The Flag type in the enum module has had some improvements, but I find it > necessary to move one of those improvements into a decorator instead, and > I'm having a hard time thinking

[issue44257] typo and verbous grammar in the grammar spec

2021-05-27 Thread ShinWonho
Change by ShinWonho : -- keywords: +patch pull_requests: +25011 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26417 ___ Python tracker ___

[issue44257] typo and verbous grammar in the grammar spec

2021-05-27 Thread ShinWonho
New submission from ShinWonho : In Python Language Reference 10.Full Grammar Specification typo: assigment_expression verbous grammar: expressions and star_expression -- assignee: docs@python components: Documentation messages: 394630 nosy: docs@python, orangebana15 priority: normal

name for new Enum decorator

2021-05-27 Thread Ethan Furman
Greetings! The Flag type in the enum module has had some improvements, but I find it necessary to move one of those improvements into a decorator instead, and I'm having a hard time thinking up a name. What is the behavior? Well, a name in a flag type can be either canonical (it represents

[issue44256] _functools._lru_list_elem is exposed unintentionally.

2021-05-27 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +25010 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26416 ___ Python tracker ___

Re: learning python ...

2021-05-27 Thread Christian Gollwitzer
Am 25.05.21 um 06:08 schrieb hw: On 5/25/21 12:37 AM, Greg Ewing wrote: Python does have references to *objects*. All objects live on the heap and are kept alive as long as there is at least one reference to them. If you rebind a name, and it held the last reference to an object, there is no

Re: learning python ...

2021-05-27 Thread Michael F. Stemper
On 27/05/2021 16.13, Christian Gollwitzer wrote: Am 25.05.21 um 06:08 schrieb hw: On 5/25/21 12:37 AM, Greg Ewing wrote: Python does have references to *objects*. All objects live on the heap and are kept alive as long as there is at least one reference to them. If you rebind a name, and it

[issue44253] tkinter searches for tk.tcl in wrong directory

2021-05-27 Thread Adam Stewart
Adam Stewart added the comment: I think I FINALLY figured out the problem. We were setting `TCLLIBPATH` to `/lib/tk8.6` when it should be `/lib`. With this change, tkinter seems to work for me. Thanks for all of your help! -- ___ Python tracker

[issue44248] copy.deepcopy calls objdect's __deepcopy__ with incorrect argument

2021-05-27 Thread Zachary Ware
Zachary Ware added the comment: Actually, looking into the implementation a bit, I can say there is definitely no bug here. Line 153 basically works out to `y = x.__deepcopy__(memo)`, which is how the `__deepcopy__` method is documented[1] to be called. Calling `copier(x)` instead would

[issue44256] _functools._lru_list_elem is exposed unintentionally.

2021-05-27 Thread Inada Naoki
Inada Naoki added the comment: Ref: GH-23405. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44256] _functools._lru_list_elem is exposed unintentionally.

2021-05-27 Thread Inada Naoki
New submission from Inada Naoki : _lru_list_elem is internal data strucuture. It is intended to be used only in _lru_cache_wrapper. Until Python 3.9, it is not exposed. But it is exposed by dd3912 accidentally. -- components: Extension Modules keywords: 3.10regression messages: 394626

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread Anthony Sottile
Anthony Sottile added the comment: > Which types are sneaky and look like built-in types but do not act like them? well for starters, there's the tuple subclass which pretends to be a dict. but it violates substitutability for both `tuple` and `Mapping` so it's not useful in either

[issue43413] tuple subclasses allow arbitrary kwargs

2021-05-27 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> third party stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

Re: Pandas: How does df.apply(lambda work to create a result

2021-05-27 Thread Cameron Simpson
Disclaimer: I haven't actually used pandas. On 26May2021 14:45, Veek M wrote: >t = pd.DataFrame([[4,9],]*3, columns=['a', 'b']) > a b >0 4 9 >1 4 9 >2 4 9 I presume you've printed "t" here. So the above table is str(t). Or possibly repr(t) if you were at the interactive prompt. It is

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: Other recent ssl issues: * bpo-43921 * bpo-44229 * bpo-44237 -- ___ Python tracker ___ ___

Re: Data structure for plotting monotonically expanding data set

2021-05-27 Thread dn via Python-list
On 27/05/2021 21.28, Loris Bennett wrote: > Hi, > > I currently a have around 3 years' worth of files like > > home.20210527 > home.20210526 > home.20210525 > ... > > so around 1000 files, each of which contains information about data > usage in lines

[issue41217] Obsolete note for default asyncio event loop on Windows

2021-05-27 Thread edna
edna added the comment: You guys missed a copy of the same note at a different location here: https://docs.python.org/3/library/asyncio-eventloop.html#running-subprocesses It's still visible in all versions of the documentation for Python >=3.8 and should be fixed as well, as I (e.g.) got

Re: imaplib: is this really so unwieldy?

2021-05-27 Thread boB Stepp
On Thu, May 27, 2021 at 6:22 PM Cameron Simpson wrote: > > On 27May2021 18:42, hw wrote: > >So it seems that IMAP support through python is virtually non-existent. > > This still sureprises me, but I've not tried to use IMAP seriously. I > read email locally, and collect it with POP instead.

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset da9e0cb4dedf818540ad1f06305bb1ca9e568f51 by Miss Islington (bot) in branch '3.10': bpo-42972: Fully implement GC protocol for re types (GH-26368) (GH-26414) https://github.com/python/cpython/commit/da9e0cb4dedf818540ad1f06305bb1ca9e568f51

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: So far, I failed to reproduce the crash on my up-to-date local Windows 10 VM ("Version 21H1 (OS Build 19043.985)"). I built Python in release mode ("PCbuild\build.bat -e -p x64" command). I'm using Visual Studio 2019. test.pythoninfo: Py_DEBUG: No

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread miss-islington
miss-islington added the comment: New changeset 59f9594f9018450101079eb47e06e3c44cfeee36 by Miss Islington (bot) in branch '3.10': [3.10] bpo-44246: Update What's New for importlib.metadata. (GH-26408) (GH-26415)

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Mark Roseman
Mark Roseman added the comment: Let it go. Changing the Python docs to a behaviour that isn't guaranteed by the underlying library is a virtual guarantee that a later version of Tk (or even the way the API it uses behaves on another version of macOS) will have some other (unrelated)

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/26411/checks?check_run_id=2687367477 test.pythoninfo: Py_DEBUG: No (sys.gettotalrefcount() missing) os.cpu_count: 2 os.environ[VS140COMNTOOLS]: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: https://dev.azure.com/Python/cpython/_build/results?buildId=81570=logs=c83831cd-3752-5cc7-2f01-8276919eb334 test.pythoninfo Py_DEBUG: No (sys.gettotalrefcount() missing) platform.architecture: 64bit WindowsPE platform.platform: Windows-10-10.0.17763-SP0

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 28f12c9f4f39d283d823d81e311d863526dfdb54 by Jason R. Coombs in branch 'main': bpo-44246: Update What's New for importlib.metadata. (#26408) https://github.com/python/cpython/commit/28f12c9f4f39d283d823d81e311d863526dfdb54 --

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +25009 pull_request: https://github.com/python/cpython/pull/26415 ___ Python tracker

Re: imaplib: is this really so unwieldy?

2021-05-27 Thread Cameron Simpson
On 27May2021 18:42, hw wrote: >On 5/26/21 12:25 AM, Cameron Simpson wrote: >>On 25May2021 19:21, hw wrote: >>>On 5/25/21 11:38 AM, Cameron Simpson wrote: On 25May2021 10:23, hw wrote: >>You'd be surprised how useful it is to make almost any standalone >>programme a module like this - in the

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: Another error (not the crash): test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth) ... server: new connection from ('127.0.0.1', 51128) client cert is None client did not provide a cert server: connection cipher is now

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: This issue now prevents me to merge https://github.com/python/cpython/pull/26414 backport :-( I'm debugging it on Windows. I tried: vstinner@DESKTOP-DK7VBIL C:\vstinner\python\main>python -u -X dev -m test -u all test_ssl -m test_pha_required_nocert -v -F

[issue11176] [doc] give more meaningful argument names in argparse documentation

2021-05-27 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Can you give the original authors some credit too on the PR, if you built on their work, please? We usually do it by putting co-author: in the PR comment. -- nosy: +nanjekyejoannah ___ Python tracker

[issue23937] IDLE: revise window size, placement startup options

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I changed the title, I intended to broaden the issue beyond 'start maximized'. Even for that, there are two possibilities. 1. Configure option (default as now). 2. Save 'current' position, which helps non-maximizers also. So I am inclined to the

Re: Problem with pip installation

2021-05-27 Thread Mats Wichmann
On 5/27/21 1:08 PM, Dennis Lee Bieber wrote: On Thu, 27 May 2021 09:22:09 +0300, ? ??? declaimed the following: Good morning. I have o Windows 10 system and i can install pip. I try to follow the instruction that i find on internet but the did not work. Also itry to write the

[issue44255] strptime and week numbers without week days

2021-05-27 Thread Jaap van der Velde
New submission from Jaap van der Velde : When running: ``` datetime.strptime('2013 23', '%Y %W') ``` The result is `datetime.datetime(2013, 1, 1, 0, 0)`. When running: ``` datetime.strptime('2013 23 1', '%Y %W %w') ``` The result is `datetime.datetime(2013, 6, 10, 0, 0)`. It seems that `%W` is

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +25008 pull_request: https://github.com/python/cpython/pull/26414 ___ Python tracker ___

[issue31790] double free or corruption (while using smem)

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: pydev core has not touched 2.7 in a year. Anyone else maintaining 2.7 has had a chance to grab 2.7 issues. So all 2.7 issues should be closed unless obviously relevant to current issues (and even then have 2.7 removed). I agree that the later does not

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset d1c732912e20e89815aca2d986442d349e82e31f by Miss Islington (bot) in branch '3.10': bpo-42972: Fully support GC protocol for _operator heap types (GH-26371) (GH-26413)

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ugh, should we make this a release blocker? -- ___ Python tracker ___ ___

[issue26503] argparse with required field , not having new line separator in -help dispaly

2021-05-27 Thread Irit Katriel
Irit Katriel added the comment: issue11874 has been fixed and its PR has a unit test that seems similar to the case reported here (test_help_with_metavar). If you are still seeing this issue on 3.9 or higher, please create a new issue and include a code snippet that reproduces the problem.

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: > Is this happening on the current 3.10 or just with a specific PR? The test_httplib crash occured on https://github.com/python/cpython/pull/26411 PR which is unrelated to ssl. -- ___ Python tracker

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is this happening on the current 3.10 or just with a specific PR? -- nosy: +pablogsal ___ Python tracker ___

[issue31790] double free or corruption (while using smem)

2021-05-27 Thread Irit Katriel
Irit Katriel added the comment: Terry, this is a 2.7 memory management issue with not a log to go by. Would you agree that there is no chance we can do anything about this? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset e90e0422182f4ca7faefd19c629f84aebb34e2ee by Erlend Egeberg Aasland in branch 'main': bpo-43916: Use test.support.check_disallow_instantiation() in test_tcl (GH-26412)

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +25007 pull_request: https://github.com/python/cpython/pull/26413 ___ Python tracker ___

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset f4b70c22c8e37dd7a06702e30b121a6651683421 by Erlend Egeberg Aasland in branch 'main': bpo-42972: Fully support GC protocol for _operator heap types (GH-26371) https://github.com/python/cpython/commit/f4b70c22c8e37dd7a06702e30b121a6651683421

[issue21633] Argparse does not propagate HelpFormatter class to subparsers

2021-05-27 Thread Irit Katriel
Irit Katriel added the comment: What Paul explained is also covered in the documentation here: https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_subparsers -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open -> closed

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
Change by STINNER Victor : -- title: test_ssl: test_pha_required_nocert() crashs randomly with "Windows fatal exception: access violation" on Windows -> test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

[issue44252] test_ssl: test_pha_required_nocert() crashs randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: I forgot the link: https://github.com/python/cpython/pull/26411/checks?check_run_id=2687367477 Oh right, Erlend already reported exactly the same crash :-) -- ___ Python tracker

[issue44252] test_ssl: test_pha_required_nocert() crashs randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: Crash also seen on test_httplib: (...) test_attributes (test.test_httplib.HTTPSTest) ... ok test_host_port (test.test_httplib.HTTPSTest) ... ok Windows fatal exception: access violation Current thread 0x11ec (most recent call first): File

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: #44254 is a followup to change turtledemo unpressed button colors to something on white. -- ___ Python tracker ___

[issue44254] Change turtledemo button colors

2021-05-27 Thread Terry J. Reedy
New submission from Terry J. Reedy : [Following up on #44243.] tk/tkinter-based turtledemo buttons are currently white on something. On Mac, configured foreground button colors are honored (while the button is unpressed), while background colors are ignored. Given that the unpressed

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: "The configure and cget subcommands can still manipulate the values, but do not cause any variation to the look of the widget." is wrong. Setting the foreground color *does* change the unpressed foreground color, so that 'white' becomes 'white on white'.

[issue44253] tkinter searches for tk.tcl in wrong directory

2021-05-27 Thread Adam Stewart
Adam Stewart added the comment: Thanks, in that case it sounds like the problem is that Spack installs tcl and tk to separate directories, but since tk depends on tcl and not the other way around, tcl has no way of knowing where tk is installed. I'll see if I can convince the other Spack

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I can't contribute to that discussion, as it is on the committers ml, but I'll keep an eye on it. I'll refrain from further development on this issue until there's a consensus amongst the core devs. -- ___

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-27 Thread Ethan Furman
Ethan Furman added the comment: I'm very much of the practicality beats purity philosophy, so I want to support the OP's flag without making them jump through hoops. On the flip side, I also appreciate that there are folks that want the extra security... So here's my plan: remove the

[issue43964] ctypes CDLL search path issue on MacOS

2021-05-27 Thread Victor Lazzarini
Victor Lazzarini added the comment: I have looked at this closely and it appears Python 3.6.5 has a search path for libraries and frameworks that is missing in the newer versions (3.7 onwards). I can load libraries from /usr/local/lib and ~/lib without any difficulties in 3.6.5, just by

[issue43964] ctypes CDLL search path issue on MacOS

2021-05-27 Thread Victor Lazzarini
Change by Victor Lazzarini : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The completion freeze fix is easily backported to non-Windows installations. 1. Run IDLE 2. File => Open Module, enter 'idlelib.autocomplete_w', OK. 3. Goto line 247 (3.9) or 250 (3.10) with "acw.update". 4. Add # in from of above to disable it. 5. Save and

[issue44253] tkinter searches for tk.tcl in wrong directory

2021-05-27 Thread Ned Deily
Ned Deily added the comment: The message is coming from Tcl/Tk; tkinter is just passing it along and is otherwise not involved AFAIK. You don't need to use framework builds for Tcl or Tk on macOS but you should follow the recommendation of how to do a Unix build of Tcl and Tk as far as

Re: learning python ...

2021-05-27 Thread Peter J. Holzer
On 2021-05-27 20:59:47 +0200, hw wrote: > On 5/25/21 3:09 PM, Greg Ewing wrote: > > On 25/05/21 5:56 pm, Avi Gross wrote: > > > Var = read in something from a file and make some structure like a > > > data.frame > > > Var = remove some columns from the above thing pointed to by Var > > > Var =

Re: imaplib: is this really so unwieldy?

2021-05-27 Thread hw
On 5/25/21 3:55 PM, Grant Edwards wrote: On 2021-05-25, hw wrote: I'm about to do stuff with emails on an IMAP server and wrote a program using imaplib My recollection of using imaplib a few years ago is that yes, it is unweildy, oddly low-level, and rather un-Pythonic (excuse my

[issue23937] IDLE: revise window size, placement startup options

2021-05-27 Thread Tal Einat
Tal Einat added the comment: In terms of its interface, IDLE is more like a REPL + text editor than what is commonly thought of as programming IDEs (Visual Studio, PyCharm/IDEA, Matlab, JupyterLab etc.) Terminals and text editors almost universally do not launch maximized by default.

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Although it feels the topic has shifted from the original concern (an unintentional incompatibility) to the broader topic of the API change to entry_points generally, I'm happy to address your comments: > - I don't think they were discussed thoroughly, and

Re: learning python ...

2021-05-27 Thread hw
On 5/25/21 3:09 PM, Greg Ewing wrote: On 25/05/21 5:56 pm, Avi Gross wrote: Var = read in something from a file and make some structure like a data.frame Var = remove some columns from the above thing pointed to by Var Var = make some new calculated columns ditto Var = remove some rows ... Var

[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat
Tal Einat added the comment: See a second PR for the originally reported bug, GH-26404. -- ___ Python tracker ___ ___

Re: imaplib: is this really so unwieldy?

2021-05-27 Thread Michael Torrie
On 5/27/21 10:42 AM, hw wrote: > What do you do with it when importing it? Do you somehow design your > programs as modules in some way that makes them usable as some kind of > library funktion? Yes, precisely. Typically I break up my python projects into logical modules, which are each kind

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Tal Einat
Tal Einat added the comment: It appears that this behavior is the intended behavior of Tk on macOS. Given that tkinter is meant to be a relatively straightforward wrapping of Tcl/Tk, it seems to me that we too should consider this not to be a bug, and resolve this issue as "won't fix".

[issue44243] tkinter button colors on Mac

2021-05-27 Thread Tal Einat
Tal Einat added the comment: The Tcl/Tk devs have closed the issue I opened on their issue tracker as "not a bug", with the following comment: "Because Tk on the Mac uses API's to draw buttons, some configuration options are set by the OS and not by Tk. This is documented in the button man

[issue44253] tkinter searches for tk.tcl in wrong directory

2021-05-27 Thread Adam Stewart
New submission from Adam Stewart : I'm trying to install Python with tkinter support using the Spack package manager. Spack adds the following flags to configure during install: ```

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please, check also the discusion happening here: https://mail.python.org/archives/list/python-committ...@python.org/thread/FHFI7QKWNHAVWVFTCHJGTYD3ZFVEUXDD/ -- ___ Python tracker

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-05-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please, check also the discusion happening here: https://mail.python.org/archives/list/python-committ...@python.org/thread/FHFI7QKWNHAVWVFTCHJGTYD3ZFVEUXDD/ -- ___ Python tracker

Re: learning python ...

2021-05-27 Thread hw
When the idea is to learn something, it's not exactly helpful to abandon that idea when encountering the first obstacle or when someone tells you you don't like it as much as they do ... On 5/25/21 7:56 AM, Avi Gross via Python-list wrote: I have studied many programming languages and am

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-05-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25006 pull_request: https://github.com/python/cpython/pull/26412 ___ Python tracker ___

Re: imaplib: is this really so unwieldy?

2021-05-27 Thread Chris Angelico
On Fri, May 28, 2021 at 4:04 AM Peter J. Holzer wrote: > > On 2021-05-26 08:34:28 +1000, Chris Angelico wrote: > > Yes, any given string has a single width, which makes indexing fast. > > The memory cost you're describing can happen, but apart from a BOM > > widening an otherwise-ASCII string to

Re: imaplib: is this really so unwieldy?

2021-05-27 Thread Peter J. Holzer
On 2021-05-26 08:34:28 +1000, Chris Angelico wrote: > Yes, any given string has a single width, which makes indexing fast. > The memory cost you're describing can happen, but apart from a BOM > widening an otherwise-ASCII string to 16-bit, there aren't many cases > where you'll get a single wide

[issue44252] test_ssl: test_pha_required_nocert() crashs randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: GH 26411, run id 2687367477 also failed with an access violation: https://github.com/python/cpython/pull/26411/checks?check_run_id=2687367477 Not in test_pha_required_nocert, but test_local_bad_hostname. May be related. --

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-27 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2021-05-27 Thread Irit Katriel
Irit Katriel added the comment: This was added to the documentation under issue39797. -- nosy: +iritkatriel resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43988] Add test.support.check_disallow_instantiation()

2021-05-27 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Lib/test/test_tcl.py might use it [...] Absolutely. > Serhiy suggested to write an unit test for curses.ncurses_version: > https://bugs.python.org/issue43916#msg391936 > > This work can be done in bpo-43916. All right. --

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: I merged your PR and backported it to add a NEWS entry, thanks. -- ___ Python tracker ___ ___

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 427232f9d221d54870fa3e89bd1dac55cf42243f by Miss Islington (bot) in branch '3.9': bpo-43667: Add news fragment for Solaris changes (GH-26405) (GH-26410) https://github.com/python/cpython/commit/427232f9d221d54870fa3e89bd1dac55cf42243f

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0574b0686d76e6f9199f800b5f32bd56eaff3c77 by Miss Islington (bot) in branch '3.10': bpo-43667: Add news fragment for Solaris changes (GH-26405) (GH-26409) https://github.com/python/cpython/commit/0574b0686d76e6f9199f800b5f32bd56eaff3c77

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset fba42d11880f444bb94d9891e3949f082a57b9a9 by Erlend Egeberg Aasland in branch 'main': bpo-42972: Fully implement GC protocol for re types (GH-26368) https://github.com/python/cpython/commit/fba42d11880f444bb94d9891e3949f082a57b9a9 --

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +25005 pull_request: https://github.com/python/cpython/pull/26411 ___ Python tracker ___

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: > GH-26399 is failing with an access violation on Windows. It's failing in one > of the flaky tests. I wonder if the segfault is related to flaky tests > somehow... I created bpo-44252 to track this crash, it might be unrelated to commit

[issue44252] test_ssl: test_pha_required_nocert() crashs randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +erlendaasland priority: normal -> ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44252] test_ssl: test_pha_required_nocert() crashs randomly with "Windows fatal exception: access violation" on Windows

2021-05-27 Thread STINNER Victor
New submission from STINNER Victor : Christian Heimes reported a crash in bpo-42972: https://bugs.python.org/issue42972#msg394520 --- GH-26399 is failing with an access violation on Windows. It's failing in one of the flaky tests. I wonder if the segfault is related to flaky tests somehow...

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25003 pull_request: https://github.com/python/cpython/pull/26409 ___ Python tracker

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +25004 pull_request: https://github.com/python/cpython/pull/26410 ___ Python tracker ___

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 164a4f46d1606e21d82babc010e397a9116e6730 by Jakub KulĂ­k in branch 'main': bpo-43667: Add news fragment for Solaris changes (GH-26405) https://github.com/python/cpython/commit/164a4f46d1606e21d82babc010e397a9116e6730 --

[issue43988] Add test.support.check_disallow_instantiation()

2021-05-27 Thread STINNER Victor
Change by STINNER Victor : -- title: Add test.support.assert_dissallow_instantiation -> Add test.support.check_disallow_instantiation() versions: +Python 3.11 ___ Python tracker

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: Erlend added test.support.check_disallow_instantiation() function in bpo-43988 to write tests for immutable types. -- ___ Python tracker

[issue43988] Add test.support.assert_dissallow_instantiation

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: > I believe we can close this now, Victor. Please reopen if you disagree :) I validated that all tests named "test(...)disallow(...)inst(...)" are now using support.check_disallow_instantiation(). Lib/test/test_tcl.py might use it in:

Re: Data structure for plotting monotonically expanding data set

2021-05-27 Thread Peter J. Holzer
On 2021-05-27 11:28:11 +0200, Loris Bennett wrote: > I currently a have around 3 years' worth of files like > > home.20210527 > home.20210526 > home.20210525 > ... > > so around 1000 files, each of which contains information about data > usage in lines like

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2021-05-27 Thread STINNER Victor
STINNER Victor added the comment: Alexei S: "how we can fix this small problem in next releases of test_embed test_tabnanny? other tests didn't fail" Any for any bug, someone has to investigate why "test_embed and test_tabnanny fails if the current directory is non-ASCII", and then someone

  1   2   >