[Python-Dev] PEP 484: difference between tuple and ()
Jean-Patrick Francoia
jeanpatrick.francoia at gmail.com
Wed Nov 8 17:01:42 EST 2017
More information about the Python-Dev mailing list
Wed Nov 8 17:01:42 EST 2017
- Previous message (by thread): [Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API
- Next message (by thread): [Python-Dev] PEP 484: difference between tuple and ()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is my first post on this list, so please don't kill me if I ask it in the wrong place, or if the question is stupid. I asked this question on Stack Overflow already: https://stackoverflow.com/questions/47163048/python-annotations-difference-between-tuple-and In very short, which form is correct ? |deffunc()->Tuple[int,int] ||| || But this requires to import the typing module. Or this (doesn't crash): |deffunc()->(int,int): | || || -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20171108/e5ce881f/attachment.html>
- Previous message (by thread): [Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API
- Next message (by thread): [Python-Dev] PEP 484: difference between tuple and ()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list