[Python-Dev] Re: issues-test-2 spam?

2021-12-25 Thread Skip Montanaro
> Is anyone else also getting multiple subscription notices? > Yup. In an earlier thread (here? discuss.python.org?) I thought it was established that someone was working on something related to Python bug tracking in GitHub. Or something like that. I've just been deleting them. Skip

[Python-Dev] issues-test-2 spam?

2021-12-25 Thread Steven D'Aprano
Apologies if this is the wrong place to raise this (where is the right place?) but over the last four days, I've received ten subscription notices for python/issues-test-2 on Github. Is anyone else also getting multiple subscription notices? -- Steve __

[Python-Dev] Re: Function Prototypes

2021-12-25 Thread Steven D'Aprano
I've done some more thinking more about Serhiy's worry about changing a factory function to a class, and how that would change the meaning of type-hints. Say: def spam(x: Eggs, y:Cheese) -> _Aardvark: # actual factory function implementation # later, we use it as a function prot

[Python-Dev] Re: Function Prototypes

2021-12-25 Thread Steven D'Aprano
On Fri, Dec 24, 2021 at 06:24:03PM -, Jim J. Jewett wrote: > Steven D'Aprano wrote: > > In comparison, Mark's version: > > @Callable > > def IntToIntFunc(a:int)->int: > > pass > > # in the type declaration > > func: IntToIntFunc > > uses 54 characters, plus spaces and newlin

[Python-Dev] Re: Function Prototypes

2021-12-25 Thread Steven D'Aprano
On Fri, Dec 24, 2021 at 11:53:22AM +0200, Serhiy Storchaka wrote: > Some library provide function foo() which returns an instance of private > type _Foo and people start using it as a type hint. If people want to shoot themselves in the foot, is it our job to stop them? Typically the only promis