nitter
Ben Nuttall
@ben_nuttall
18 Jun 2018
Python question: What could the function foo contain which would not raise a SyntaxError when defined, but would when called?
4
1
Daniel Silverstone ๐๐๐๐ยฒ ๐ณ๏ธโ๐๐ฌ๐ง
@dsilverstone
18 Jun 2018
Replying to
@ben_nuttall
raise, exec, import, are three I can think of.
Jun 18, 2018 ยท 11:43 AM UTC
3
Daniel Silverstone ๐๐๐๐ยฒ ๐ณ๏ธโ๐๐ฌ๐ง
@dsilverstone
18 Jun 2018
Replying to
@dsilverstone
@ben_nuttall
Here's another: InvalidArgument=SyntaxError .... raise InvalidArgument
1
Ben Nuttall
@ben_nuttall
18 Jun 2018
Hehe
Ben Nuttall
@ben_nuttall
18 Jun 2018
Replying to
@dsilverstone
Those are the three I thought of!
David JONES
@drjtwit
18 Jun 2018
Replying to
@dsilverstone
@ben_nuttall
it doesn't smell good does it?