Keywords: gildas-python

Next: Developers using the Python Up: Python 3K Previous: References Contents Index

## Standard end-user

As a standard user, you are of course exposed to all the changes implied by Python 3. You can use the `2to3` tool shipped with Python 3 to translate your Python scripts. Note also that some Python 3 syntaxes and behaviors are backward compatible with Python 2.6 and 2.7, you should prefer them when possible.

Regarding the Gildas-Python binding itself, you should consider that:

- the support for Python 2.5 and lower has been removed (this, because Python offers some Python 3 pre-compatibility of our Gildas-Python internal code starting from Python 2.6),
- the default Python strings are now Unicode strings, while Sic characters strings (and their representation as a `SicVariable` in Python) remain ASCII strings (1 byte per character). We tried to deal with this as transparently as possible for you, so that you can still perform the usual actions on the `SicVariable` strings. Unfortunately, this implies many hidden conversions between ASCII and Unicode.