[Python-ideas] Re: Please update shutil.py copyfileobj to include code mentioned in below issues

2023-06-08 Thread Jim Schwartz
Ok, Thanks. I didn't know this wasn't the place to go for help. I'll post there. I don't care if this is not done. I just thought it might help others down the road like it helped me. Also, the reason I posted this to this email list was as follows. This is the text that shows up when I

[Python-ideas] Fwd: Explicit encapsulation is better than implicit hardcoding?

2023-06-08 Thread Dom Grigonis
I stand corrected.! I have very little experience with asyncio. I ended up postponing it’s learning one of the reasons being this query. (Another - extra keywords). Still, the query is more concerned with module level interfaces. That includes module level initialisations as well as interface

[Python-ideas] Re: Explicit encapsulation is better than implicit hardcoding?

2023-06-08 Thread Joao S. O. Bueno
"it's a bit more challenging to obtain a separate asyncio loop." Just call `asyncio.new_event_loop` and you can have as many event loops in the same thread as you want. On Thu, Jun 8, 2023 at 10:58 AM Dom Grigonis wrote: > Hey there! I'm curious to know what this group thinks about the

[Python-ideas] Re: Please update shutil.py copyfileobj to include code mentioned in below issues

2023-06-08 Thread Eryk Sun
On 6/8/23, jsch...@sbcglobal.net wrote: > I opened two issues regarding copyfileobj that were not bugs, but a fix that > was involved helped me figure out I needed a new external drive, since it > displayed the error number from the copyfileobj function. I'd like a > modified version of this

[Python-ideas] Fwd: Undefined type

2023-06-08 Thread Dom Grigonis
Thank you all for links. Much appreciated. > Begin forwarded message: > > From: Michael Foord > Subject: Re: [Python-ideas] Re: Undefined type > Date: 8 June 2023 at 17:41:46 EEST > To: david.me...@gmail.com > Cc: Dom Grigonis , python-ideas@python.org > > There's an implementation of a

[Python-ideas] Re: Undefined type

2023-06-08 Thread Michael Foord
There's an implementation of a sentinel object in unittest.mock : >>> from unittest.mock import sentinel >>> sentinel.THING sentinel.THING On Thu, 8 Jun 2023 at 15:20, David Mertz, Ph.D. wrote: > https://peps.python.org/pep-0661/ > > On Thu, Jun 8, 2023 at 9:58 AM Dom Grigonis > wrote: > >>

[Python-ideas] Re: Undefined type

2023-06-08 Thread David Mertz, Ph.D.
https://peps.python.org/pep-0661/ On Thu, Jun 8, 2023 at 9:58 AM Dom Grigonis wrote: > This has been bugging me for a long time. It seems that python doesn’t > have a convention for “Undefined” type. > > When I started using python I naturally used None for it (as advised). > > However, the

[Python-ideas] Please update shutil.py copyfileobj to include code mentioned in below issues

2023-06-08 Thread jschwar
I opened two issues regarding copyfileobj that were not bugs, but a fix that was involved helped me figure out I needed a new external drive, since it displayed the error number from the copyfileobj function. I'd like a modified version of this code implemented permanently in shutil.py so

[Python-ideas] Undefined type

2023-06-08 Thread Dom Grigonis
This has been bugging me for a long time. It seems that python doesn’t have a convention for “Undefined” type. When I started using python I naturally used None for it (as advised). However, the more I work with python, the more I find that None is a meaningful type. And it is a type that is

[Python-ideas] Explicit encapsulation is better than implicit hardcoding?

2023-06-08 Thread Dom Grigonis
Hey there! I'm curious to know what this group thinks about the implicit design of many Python libraries, both core and open source. What I mean by "implicit design" is when an interface of library is established and initialised at module’s level rather than explicitly encapsulated in classes.