3 ms·
Yeah this is a nice advantage of Javascript over Python: send() is equivalent to send(undefined) which is equivalent to next(). This equivalence is true in Py
by kilovoltaire 14y ago
Yeah this is a nice advantage of Javascript over Python:
send() is equivalent to send(undefined) which is equivalent to next().
This equivalence is true in Python as well, but you have to explicitly call send(None) which is annoying.