Re: Strong typing implementation for Python

2015-10-12 Thread John Michael Lafayette
son god dammit. On Oct 11, 2015 3:45 PM, "Matt Wheeler" <m...@funkyhat.org> wrote: > On 9 October 2015 at 17:26, John Michael Lafayette > <johnmichaelreed...@gmail.com> wrote: > > I would like Python to have a strong typing feature that can co-exist > with &

Re: Strong typing implementation for Python

2015-10-12 Thread John Michael Lafayette
No. Python now has static type checking and IDE auto-complete support. All you have to do is put the type name in the function declaration. On Oct 11, 2015 3:45 PM, "Matt Wheeler" <m...@funkyhat.org> wrote: > On 9 October 2015 at 17:26, John Michael Lafayette > <joh

[issue25374] Deficiencies in type hint usage in Python standard libraries

2015-10-10 Thread John Michael Lafayette
New submission from John Michael Lafayette: I love the new type hint feature in Jetbrains IDE (PEP 0484). Now when my user defined methods return a value, I can press (Crtl+space) and see the type of that value and all its methods. Also, when I pass the wrong type in, I get a warning. Oddly

[issue25350] Stronger type enforcement (feature request)

2015-10-09 Thread John Michael Lafayette
New submission from John Michael Lafayette: With a lot of languages, I can tell that the type I am getting is an instance of the declared type I'm assigning it to. Example: Cat c = Factory.make("cat" Animal d = Factory.make("dog") Python: val c = Factory.

Strong typing implementation for Python

2015-10-09 Thread John Michael Lafayette
I would like Python to have a strong typing feature that can co-exist with the current dynamic typing system. Currently Python is like this: var animal = Factory.make("dog") #okay var dog = Factory.make("dog") #okay -- https://mail.python.org/mailman/listinfo/python-list

Strong typing implementation for Python

2015-10-09 Thread John Michael Lafayette
I would like Python to have a strong typing feature that can co-exist with the current dynamic typing system. Currently Python is like this: var animal = Factory.make("dog") # okay. var dog = Factory.make("dog") # okay. var cat = Factory.make("dog")# are you sure? I