v0.17.0a1 - API Overhaul
Pre-release
Pre-release
API: Breaking changes (#426)
-
Finding objects / relations
-
0.16 and below:
session._windows(),session.list_windows(), etc.0.17 and after:
session.windows -
0.16 and below:
session.find_where({'window_name': my_window})0.17 and after:
session.windows.get(window_name=my_window, default=None)-
If not found and not
default, raisesObjectDoesNotExist -
If multiple objects found, raises
MultipleObjectsReturned
-
-
0.16 and below:
session.where({'window_name': my_window})0.17 and after:
session.windows.filter(window_name=my_window)
-
-
Accessing attributes
-
0.16 and below:
window['id']0.17 and after:
window.id -
0.16 and below:
window.get('id')0.17 and after:
window.id -
0.16 and below:
window.get('id', None)0.17 and after:
getattr(window, 'id', None)
-
Full Changelog: v0.17.0a0...v0.17.0a1