A question I have...
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Fri Oct 29 22:05:37 EDT 2010
In message <mailman.168.1287872943.2218.python-list at python.org>, geremy
condra wrote:
> ... dividing strings by a number doesn't make sense.
The logical meaning would be the opposite of multiplying strings by a
number:
>>> "abc" * 3
'abcabcabc'
>>> "abcabcabc" // 3
'abc'
>>> "abcabcabc" // "abc"
3
>>> "abcabcabd" // 3
(at this point I would accept a ValueError)
More information about the Python-list
mailing list