* The number of live coroutines in a running interpreter: Implicitly
limited by operating system limits until at least 3.11.

DOes the O.S. limit anything on a coroutine?
What for? As far as I know it is a minimal Python-only object, unless you
have each co-routine holding a reference
to a TCP socket - but that has nothing to do with Python's limits itself: a
couroutine by itself is a small Python object
with no external resources referenced - unlike a thread, and code with tens
of thousands of coroutines can run perfectly
without  a single glitch.

Of all limits mentioned in the PEP, this is the one I find no reason to
exist, and that could eventually lead to needles breaking of otherwise
perfectly harmless code.
(The limit on the number of classes also is strange for me, as I've written
in other mails)



On Fri, 6 Dec 2019 at 13:39, Michael <aixto...@felt.demon.nl> wrote:

> On 03/12/2019 17:15, Mark Shannon wrote:
> > Hi Everyone,
> >
> > I am proposing a new PEP, still in draft form, to impose a limit of
> > one million on various aspects of Python programs, such as the lines
> > of code per module.
> >
> > Any thoughts or feedback?
> >
> > The PEP:
> > https://github.com/markshannon/peps/blob/one-million/pep-1000000.rst
> >
> > Cheers,
> > Mark.
>
> Shortened the mail - as I want my comment to be short. There are many
> longish ones, and have not gotten through them all.
>
> One guiding principle I learned from a professor (forgot his name sadly).
>
> A program has exactly - zero (0) of something, one (1) of something, or
> infinite. The moment it gets set to X, the case for X+1 appears.
>
> Since we are not talking about zero, or one - I guess my comment is make
> sure it can be used to infinity.
>
> Regards,
>
> Michael
>
> p.s. If this has already been suggested - my apologies for any noise.
>
>
> _______________________________________________
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/IDACDRYRQDYUB3YZFANONLKZFR6LPOE7/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/ZSTUKNVN5546YHEX75UK5ROOW3LUMYPB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to