The best Python language definition for Sublime Text - ever. Includes full support for Unicode, as well as both Python 2 and Python 3 syntax. Check out the Neon Color Scheme for highlighting.
arrays = sorted(filter(
lambda x: not any(y for y in ['NOMON', 'NEW'] if y in x) and
any(y for y in ['-AN', '-P2P'] if y in x),
[x['hostname'].encode().upper() for x in r.json()]))
Matching parenthesis do not highlight properly in PythonImproved, but work just fine with Python.
With the cursor at the end:
Cursor in the middle:
Cursor at the lambda:
PythonImproved does not treat any lines after this statement as though they were parameters to the filter or sorted methods, so it appears to be an aesthetic issue. (Code works fine.)
I have the following (ugly) statement
Matching parenthesis do not highlight properly in PythonImproved, but work just fine with Python.
With the cursor at the end:
Cursor in the middle:
Cursor at the lambda:
PythonImproved does not treat any lines after this statement as though they were parameters to the
filter
orsorted
methods, so it appears to be an aesthetic issue. (Code works fine.)