You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug, or expected behavior.
When executing the example exapp
> knack_test.py hello world
Are you sure you want to perform this operation? (y/n): y
[
"hello",
"world",
{
"isDefault": true
},
null
]
Here the argument myarg is returned and during the processing of the command return. Then, util.todict is used to process it and since the real type of myarg is DefaultInt the int default value of 100 is not printed in the screen but instead the dictionary { "isDefault": true }, which comes from myarg.__dict__
The text was updated successfully, but these errors were encountered:
niander
changed the title
utils.todict process DefaultInt to a dictionary instead of a int
util.todict process DefaultInt to a dictionary instead of a int
Jul 1, 2020
Not sure if this is a bug, or expected behavior.
When executing the example exapp
Here the argument
myarg
is returned and during the processing of the command return. Then,util.todict
is used to process it and since the real type ofmyarg
isDefaultInt
the int default value of100
is not printed in the screen but instead the dictionary{ "isDefault": true }
, which comes frommyarg.__dict__
The text was updated successfully, but these errors were encountered: