|
|
|
|
|
by kstrauser
324 days ago
|
|
Not directly, it wasn’t: >>> open('foo') * 3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for *: '_io.TextIOWrapper' and 'int'
You have to go to some length to get Python to mix types so badly. |
|