Line 17: |
Line 17: |
| : Target: Should be compatible with both Python 2 and Python 3, to support the large number of activities currently in Python 2 | | : Target: Should be compatible with both Python 2 and Python 3, to support the large number of activities currently in Python 2 |
| : WIP: https://github.com/Pro-Panda/sugar-toolkit-gtk3/tree/python3-port | | : WIP: https://github.com/Pro-Panda/sugar-toolkit-gtk3/tree/python3-port |
− | : Status: Mostly complete; what remains is an entire project in itself of [https://github.com/orgs/sugarlabs/projects/4 porting the Telepathy Bindings] | + | : Status: Mostly Complete; what remains is an entire project in itself of [https://github.com/orgs/sugarlabs/projects/4 porting the Telepathy Bindings]. |
| + | Note: To test the toolkit without porting the telepathy bindings, please use the Python 3 bindings (note for release), https://github.com/pro-panda/telepathy3 |
| | | |
| ;Sugar-Datastore | | ;Sugar-Datastore |
Line 112: |
Line 113: |
| There are several ways of contributing to the project | | There are several ways of contributing to the project |
| ; Port Telepathy bindings | | ; Port Telepathy bindings |
− | : Telepathy does not have python 2 bindings and needs to be ported to its PyGObject bindings as a prerequisite for porting to Python 3 | + | : Telepathy does not have python 3 bindings and needs to be ported to its PyGObject bindings as a prerequisite for porting to Python 3 |
| : See https://github.com/orgs/sugarlabs/projects/4 | | : See https://github.com/orgs/sugarlabs/projects/4 |
| | | |
Line 131: |
Line 132: |
| | | |
| == Notes == | | == Notes == |
− | * httplib.HTTP is not available in Python 2; use http.client.HTTPConnection instead | + | * httplib.HTTP is not available in Python 3; use http.client.HTTPConnection instead |
| * cmp function does not exist in Python 3, use the cmp_to_key function; see https://docs.python.org/3/howto/sorting.html#sortinghowto | | * cmp function does not exist in Python 3, use the cmp_to_key function; see https://docs.python.org/3/howto/sorting.html#sortinghowto |
| * list.sort function requires named parameters in Python 3 | | * list.sort function requires named parameters in Python 3 |