Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
5473f743
Commit
5473f743
authored
Jun 08, 2014
by
Paul Sokolovsky
Browse files
objtype: Enable __lt__ method support for instances.
parent
b9b9354e
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/objtype.c
View file @
5473f743
...
...
@@ -336,9 +336,9 @@ STATIC const qstr binary_op_method_name[] = {
MP_BINARY_OP_INPLACE_FLOOR_DIVIDE,
MP_BINARY_OP_INPLACE_TRUE_DIVIDE,
MP_BINARY_OP_INPLACE_MODULO,
MP_BINARY_OP_INPLACE_POWER,
MP_BINARY_OP_LESS,
MP_BINARY_OP_MORE,
MP_BINARY_OP_INPLACE_POWER,
*/
[
MP_BINARY_OP_LESS
]
=
MP_QSTR___lt__
,
/*
MP_BINARY_OP_MORE,
MP_BINARY_OP_EQUAL,
MP_BINARY_OP_LESS_EQUAL,
MP_BINARY_OP_MORE_EQUAL,
...
...
py/qstrdefs.h
View file @
5473f743
...
...
@@ -60,6 +60,7 @@ Q(__str__)
Q
(
__getattr__
)
Q
(
__del__
)
Q
(
__call__
)
Q
(
__lt__
)
Q
(
micropython
)
Q
(
bytecode
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment