Message300888
Sorry, I fail to see the big difference.
Let's take print as an example:
All non-keyword arguments are converted to strings like str() does and written to the stream, separated by sep and followed by end. Both sep and end must be strings; they can also be None, which means to use the default values. If no objects are given, print() will just write end. The file argument must be an object with a write(string) method; if it is not present or None, sys.stdout will be used.
Is the above so different than writing:
print(*args, file=f, sep=s, end=e)
is equivalent to
f.write(s.join(map(str, args))+e)
? In my head, no. It's just that sometimes we use Python, and sometimes English, to describe the semantics. |
|
Date |
User |
Action |
Args |
2017-08-26 17:32:30 | veky | set | recipients:
+ veky, steven.daprano, r.david.murray, docs@python, gone |
2017-08-26 17:32:30 | veky | set | messageid: <1503768750.47.0.747964716664.issue31283@psf.upfronthosting.co.za> |
2017-08-26 17:32:30 | veky | link | issue31283 messages |
2017-08-26 17:32:30 | veky | create | |
|