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
d291007f
Commit
d291007f
authored
Dec 20, 2016
by
Damien George
Browse files
tests/basics/builtin_dir: Add test for dir() of a type.
parent
49bf7617
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/builtin_dir.py
View file @
d291007f
...
...
@@ -7,6 +7,9 @@ print('__name__' in dir())
import
sys
print
(
'platform'
in
dir
(
sys
))
# dir of type
print
(
'append'
in
dir
(
list
))
class
Foo
:
def
__init__
(
self
):
self
.
x
=
1
...
...
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