In article <-8sdnvrxgqie25jnnz2dnuvz7qkdn...@bt.com>, Lipska the Kat <lip...@lipskathekat.com> wrote:
> I'm not used to using variables without declaring their type If you truly wanted to recreate this type-bondage style of programming in Python, it's easy enough to do. Where you would write in C++: // Type matching will get checked at compile-time void my_function(MassivelyParallelFrobinator& mpf, OtherThing& ot) { blah, blah, blah } you could write in Python: # Type matching will get checked at run-time def my_function(mpf, ot): assert isinstance(mpf, MassivelyParallelFrobinator) assert isinstance(ot, OtherThing) but that's just not the way people write code in Python. -- http://mail.python.org/mailman/listinfo/python-list