Skip to content

Commit 636dab5

Browse files
committed
Add a few more dunders
Clean up comments
1 parent fbd25d5 commit 636dab5

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

wx/py/introspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def getAttributeNames(obj, includeMagic=1, includeSingle=1,
4040
# Add some attributes that don't always get picked up.
4141
special_attrs = ['__bases__', '__class__', '__dict__', '__name__',
4242
'__closure__', '__code__', '__defaults__',
43-
'__globals__',
43+
'__kwdefaults__', '__globals__', '__qualname__',
4444
'__builtins__', # Added to method attributes in 3.10
4545
'__get__', # Not found in `dir(method)` in 3.11
4646
]

wx/py/tests/test_introspect.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ def setUp(self):
449449
'__invert__',
450450
'__itemsize__',
451451
'__iter__',
452+
'__kwdefaults__',
452453
'__le__',
453454
'__len__',
454455
'__long__',
@@ -468,6 +469,7 @@ def setUp(self):
468469
'__path__',
469470
'__pos__',
470471
'__pow__',
472+
'__qualname__',
471473
'__radd__',
472474
'__rand__',
473475
'__rdiv__',
@@ -527,18 +529,8 @@ def setUp(self):
527529
'fileno',
528530
'find',
529531
'flush',
530-
# 'func_closure',
531-
# 'func_code',
532-
# 'func_defaults',
533-
# 'func_dict',
534-
# 'func_doc',
535-
# 'func_globals',
536-
# 'func_name',
537532
'get',
538533
'has_key',
539-
# 'im_class',
540-
# 'im_func',
541-
# 'im_self',
542534
'imag',
543535
'index',
544536
'insert',

0 commit comments

Comments
 (0)