[Python-ideas] Make localhost an acceptable parameter to ipaddress.IPv4Address address parameter

2021-09-21 Thread Andres Torres
Title is pretty self explanatory. Right the following causes an error: ```py >>> ipaddress.IPv4Address('localhost') Traceback (most recent call last): File "", line 1, in File "C:\ProgramData\Anaconda3\lib\ipaddress.py", line 1252, in __init__ self._ip = self._ip_int_from_string(addr_str)

[Python-ideas] Add timeout parameter to Synchronization Primitives in asyncio

2021-09-19 Thread Andres Torres
It would be very nice if the [Synchronization Primitives](https://docs.python.org/3/library/asyncio-sync.html) had a timeout parameter just like the [analogous classes](https://docs.python.org/3/library/threading.html#condition-objects) do in the threading module. Thank you for your considerat

[Python-ideas] Re: Add user defined __eq__ to itertools.cycle class

2020-12-31 Thread Andres Torres
Link is broken :/ It should be https://github.com/sqlalchemy/sqlalchemy/issues/5810 ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.

[Python-ideas] Re: Add user defined __eq__ to itertools.cycle class

2020-12-31 Thread Andres Torres
Yep, thanks for the explanation! After some more research into this it appears this exact situation is accounted for within the `SQLAlchemy` library (reference: https://github.com/sqlalchemy/sqlalchemy/issues/5810)! Additionally, due to the complications brought up in this thread it seems like it

[Python-ideas] Re: Add asyncSetUpClass and asyncTearDown to IsolatedAsyncioTestCase

2020-12-31 Thread Andres Torres
Would it be possible to amend the code to have them exist at this stage? Please forgive me if this is a silly question as I am not that well acquainted with asynchronous programming. Additionally, in the title there is a typo, it should say Add asyncSetUpClass and asyncTearDown__**Class**__ to

[Python-ideas] Re: Add user defined __eq__ to itertools.cycle class

2020-12-31 Thread Andres Torres
Thank you for reviewing my proposal. First and foremost, let me address the use case for this feature. I have an `SQL` database where I store `itertools.cycle` objects (via pickling) and I use SQLAlchemy to interact with this database. Whenever I "update" the cycler, by calling `next` on the

[Python-ideas] Add user defined __eq__ to itertools.cycle class

2020-12-30 Thread Andres Torres
As the title suggests, I am requesting an user defined __eq__ method for the itertools.cycle class. A suggestion for how equivalency might work is that __eq__ would return True if two cyclers have the same iterable and are at the same location in their cycle and False in any other condition. Than

[Python-ideas] Add asyncSetUpClass and asyncTearDown to IsolatedAsyncioTestCase

2020-12-23 Thread Andres Torres
Title says it all. This might have been an oversight while making this class. If not please let me know why it was not included! Thank you for considering my request! Andres 🙃 ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe sen