Can you ping me on the airflow PR for this change? (@graingert)
On Fri, Apr 29, 2022, 7:54 AM Malthe wrote:
> On Fri, 29 Apr 2022 at 06:50, Thomas Grainger wrote:
> > You can use a `__del__` method that warns on collection - like an
> unawaited coroutine
> >
> > A
that are missing from the globals of the module
On Fri, Apr 29, 2022, 7:45 AM Malthe wrote:
> On Fri, 29 Apr 2022 at 06:38, Thomas Grainger wrote:
> > Can you show a run-able example of the successful and unsuccessful usage
> of `with DAG(): ... `?
>
> from airflow import
Can you show a run-able example of the successful and unsuccessful usage of
`with DAG(): ... `?
On Fri, Apr 29, 2022, 6:31 AM Malthe wrote:
> Pablo Galindo Salgado wrote:
> > As it has been mentioned there is no guarantee that your variable will
> even
> > be finalized (or even destroyed) after
I was looking into migrating twisted trac to github, and contacted GitHub
support who told me there's a secret API that doesn't notify subscribers
https://gist.github.com/jonmagic/5282384165e0f86ef105
On Thu, 4 Nov 2021, 19:28 Brett Cannon, wrote:
> What notification? (I fully admit I may not
I have a PR to remove this FAQ entry:
https://github.com/python/cpython/pull/28886
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
Is D1.update(D2) still atomic with this implementation?
https://docs.python.org/3.11/faq/library.html#what-kinds-of-global-value-mutation-are-thread-safe
On Mon, 11 Oct 2021, 17:54 Sam Gross, wrote:
> On Fri, Oct 8, 2021 at 12:04 PM Nathaniel Smith wrote:
>
>> I notice the fb.com address -- is
How about
```
try:
...
exceptgroup E1, E2:
...
``
___
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
I think that's unfortunate, you can still use and format the subset of Python
3.10 syntax with black.
You already do this on python 3.9 for example black doesn't support
parenthesized with
___
Python-Dev mailing list -- python-dev@python.org
To
What about `except case ExceptionGroup[E1 | E2]:`? and use match semantics?
On Sun, 3 Oct 2021, 16:50 Irit Katriel via Python-Dev, <
python-dev@python.org> wrote:
>
> We wonder if people have a view on which of the following is
> clearer/better:
>
> 1. except *E as e: // except *(E1, E2) as e:
I raised an issue about this: https://github.com/pypa/pip/issues/10530
___
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
I don't think the python syntax should be beholden to syntax highlighting
tools, eventually some syntax feature that PEG enables will require every
parser or highlighter to switch to a similar or more powerful parse tool
___
Python-Dev mailing list --
Are projects that ship pre-compiled wheels impacted? Eg twisted-iocpsupport
?
On Sun, 19 Sep 2021, 22:09 Miro Hrončok, wrote:
> On 19. 09. 21 21:34, dw-...@d-woods.co.uk wrote:
> > Are you sure Cython is still broken? It looks like it was fixed back in
> May
I don't think I've seen code like this. It would be incredibly useful to have a
cpython-primer (like mypy-primer and black-primer) that ran as many test suites
as possible from pypi with every cPython commit
___
Python-Dev mailing list --
Would:
```
@dataclass
class Node:
global_node: __class__ | None
```
"Just work" with co_annotations?
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
Larry Hastings wrote:
> On 8/11/21 2:48 AM, Jukka Lehtosalo wrote:
> > On Wed, Aug 11, 2021 at 10:32 AM Thomas Grainger > mailto:tagr...@gmail.com> wrote:
> > Larry Hastings wrote:
> > > On 8/11/21 12:02 AM, Thomas Grainger wrote:
> > > > I think as long
Larry Hastings wrote:
> On 8/11/21 12:02 AM, Thomas Grainger wrote:
> > I think as long as there's a test case for something like
> > @dataclass
> > class Node:
> > global_node: ClassVar[Node | None]
> > left: InitVar[Node | None]
> > right
I think as long as there's a test case for something like
```
@dataclass
class Node:
global_node: ClassVar[Node | None]
left: InitVar[Node | None]
right: InitVar[None | None]
```
the bug https://bugs.python.org/issue33453 and the current implementation
What about using a coroutine of `v = yield (name, scope)` so the caller can
choose how and when names are resolved?
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
Jelle Zijlstra wrote:
> El mar, 10 ago 2021 a las 11:20, Thomas Grainger (tagr...@gmail.com)
> escribió:
> > Although the co_annoations code could intercept the NameError and replace
> > return a ForwardRef object instead of the resolved name
> > I implemented a ve
Although the co_annoations code could intercept the NameError and replace
return a ForwardRef object instead of the resolved name
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
he
> real type once it is defined? Wouldn't that then allow users to write code
> that allows for all use cases under this scenario?
> - Damian (he/him)
> On Tue, Aug 10, 2021 at 1:55 PM Thomas Grainger tagr...@gmail.com wrote:
> > dataclasses need to check for ClassVar
> > _
dataclasses need to check for ClassVar
___
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://docs.microsoft.com/en-us/windows/win32/seccng/cng-portal ?
On Mon, 12 Jul 2021, 23:18 Dan Stromberg, wrote:
>
> On Mon, Jul 12, 2021 at 8:37 AM Steve Dower
> wrote:
>
>> On 7/12/2021 4:11 PM, Dan Stromberg wrote:
>> > It looks like CPython could do better on Windows: SystemRandom
for your usecase I'd write:
def delayed_fstring(*, name: str) -> str:
return "The current name is {name}"
def new_scope() -> None:
for name in ["foo", "bar"]:
print(delayed_fstring(name=name))
for logging I use:
class Msg:
def __init__(self, fn: Callable[[], str]):
https://aiostream.readthedocs.io/en/stable/operators.html#aiostream.stream.enumerate
Is a nice version of an async enumerate. It also handles aclosing
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to
it might be possible to recover the account by contacting
sfnet_...@slashdotmedia.com
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
I opened a new thread here:
https://mail.python.org/archives/list/python-id...@python.org/thread/WQOMBT4Z22EIFB53WN54E52AYS3QBKAV/
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
(Same as for isinstance() and issubclass().)
>
> On Sat, May 8, 2021 at 05:52 Thomas Grainger wrote:
>
>> That's this bit:
>>
>> ```
>> except (A, B):
>>^^
>> ```
>>
>> bpo-43149 currently calls it an "exception group
There's a PR to use "SyntaxError: multiple exception types must be
parenthesized"
https://github.com/python/cpython/pull/25996
On Sat, 8 May 2021, 19:20 Gregory P. Smith, wrote:
>
>
> On Sat, May 8, 2021 at 8:54 AM Thomas Grainger wrote:
>
>> That's this bit:
&
That's this bit:
```
except (A, B):
^^
```
bpo-43149 currently calls it an "exception group", but that conflicts with PEP
654 -- Exception Groups and except*
```
>>> try:
... pass
... except A, B:
... pass
Traceback (most recent call last):
30 matches
Mail list logo