Python3 - encoding issues
benjamin at python.org
Sun Nov 29 04:43:21 CET 2009
DreiJane <joost <at> h-labahn.de> writes:
> Ohhh - that's nice. But no words of that in the library reference
That's because it's here:
> Still this fails:
> >>> a = (1,2,3,4)
> >>> print(a.startswith((1,2)))
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> AttributeError: 'tuple' object has no attribute 'startswith'
> Still methods of this kind would have a better place in the sequence
You are welcome to bring this idea to the python-ideas list, just know that it
has a small chance of being accepted.
More information about the Python-list