This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients eric.araujo, flox, loewis, rhettinger, vajrasky
Date 2013-09-23.07:37:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379921825.09.0.204637855254.issue13404@psf.upfronthosting.co.za>
In-reply-to
Content
> How do you infer the data types for the parameters?

I don't think we can, unless we force them to use function annotation. If they don't use that feature, then we say the signature is not supported.

The problem is getting deeper if we are talking about return value type.

if a == 1:
  return 'spam'
else:
  return 3.14

I therefore embrace the dynamic nature of Python with this patch.
History
Date User Action Args
2013-09-23 07:37:05vajraskysetrecipients: + vajrasky, loewis, rhettinger, eric.araujo, flox
2013-09-23 07:37:05vajraskysetmessageid: <1379921825.09.0.204637855254.issue13404@psf.upfronthosting.co.za>
2013-09-23 07:37:05vajraskylinkissue13404 messages
2013-09-23 07:37:04vajraskycreate