Re: [Python-Dev] Format strings, Unicode, and Py2.7: need clarification

2017-05-18 Thread Random832
On Thu, May 18, 2017, at 01:14, Hobson Lane wrote: > Because `.format()` is a method on an instantiated `str` object in e and > so > must return the same type That it *must* return the same type is overstating the matter. Split returns a list (and, rather like %, the list is of unicode or str obje

[Python-Dev] Why doesn't Python's _multiprocessing.SemLock have 'name'?

2017-05-18 Thread Wen Yaobin
Hi, This is not a general Python question but about a specific detail: *Why doesn't Python's _multiprocessing.SemLock have 'name'?* I posted the question on Stack Overflow but so far haven't got any response. The link is here: http://stackoverflow.com/questions/44036757/why-doesnt-pythons-multip

Re: [Python-Dev] Format strings, Unicode, and Py2.7: need clarification

2017-05-18 Thread Hobson Lane
Yea, *must* probably should have been *should (unless indicated by the method name)*. I forgot about the many methods that don't. But the names of these methods, like `split()`, imply the types that they return. Your example reminded me of the convention (outside python core) to name getters and s