[Python-de] yield ist nicht wirklich das Problem...
Jens Diemer
python_gmane at jensdiemer.de
Mit Mai 17 17:39:56 CEST 2006
yield und Co. sind doch nicht wirklich das Problem... Das geht ja zu Not
mit den __future__ import...
Probleme gibt es z.B. bei strip([char]):
http://docs.python.org/lib/string-methods.html#l2h-205
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Changed in version 2.2.2: Support for the chars argument.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Wie kann man in Python v2.2.1 das chars-Argument "hinzufügen" ???
Ich hab noch http://cheeseshop.python.org/pypi/python23_support
gefunden... Das kann das aber u.a. auch nicht:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Does not provide:
- generator support. This must be done locally in backported scripts by
adding 'from __future__ import generators' to the start of the script.
- sets (this is done in a separate backported module)
- extended slices, s[i:j:step], e.g. a[::2], a[::-1]
- extensions to dict (i.e. constructor arguments, d.fromkeys, d.pop)
- str.strip(s, chars=None) (but str.strip(s) works fine)
- consistent unicode support for filenames used with file objects
- importing modules from zip files
- any changes in the module library (e.g. shutil.move(src, dest))
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Kann ich es also vergessen???