/
valemobil
/
python-future
Обзор
Документация
Войти
/
valemobil
/
python-future
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.12.3
docs/conversion_limitations.rst
34 строки
1 KB
Ed Schofield
More doc updates and improvements
06 май 2014, 06:20
06 май 2014, 06:20
1806ca7
Код
Авторство
О чём код?
How well do ``futurize`` and ``pasteurize`` work? ------------------------------------------------- They are still incomplete and make some mistakes, like 2to3, on which they are based. Nevertheless, ``futurize`` and ``pasteurize`` are useful to automate much of the work of porting, particularly the boring repetitive text substitutions. They also help to flag which parts of the code require attention. Please report bugs on `GitHub <https://github.com/PythonCharmers/python-future/>`_. Contributions to the ``lib2to3``-based fixers for ``futurize`` and ``pasteurize`` are particularly welcome! Please see :ref:`contributing`. .. _futurize-limitations Known limitations ----------------- ``futurize`` doesn't currently make this change automatically:: 1. Strings containing ``\U`` produce a ``SyntaxError`` on Python 3. An example is:: s = 'C:\Users'. Python 2 expands this to ``s = 'C:\\Users'``, but Python 3 requires a raw prefix (``r'...'``). This also applies to multi-line strings (including multi-line docstrings). Also see the tests in ``future/tests/test_futurize.py`` marked ``@expectedFailure`` or ``@skip`` for known limitations.