| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #### Operator
- | + | - | * | / | == | > | < | >= | <= | % | ** | // | != | & | >> | << | and | or | not | in | += | -= | *= | /= |
- |---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- |√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|√|
- #### Control flow
- | Syntax | State |
- | --- | --- |
- | if | √ |
- | while | √ |
- | for in [list] | √ |
- | for in range(a, b) | √ |
- | for in [dict] | √ |
- | if elif else | √ |
- | for break/continue | √ |
- | while break/continue | √ |
- #### Module
- | Syntax | Python Module | C Module |
- | --- | --- | --- |
- | import [module] | √ | √ |
- | import [module] as | √ | - |
- | from [module] import [class/function>]| √ | - |
- | from [module] import [class/function>] as | √ | - |
- | from [module] import * | - | PikaObj Module Only |
- #### List/Dict
- | Syntax | State |
- | --- | --- |
- | l = list() | √ |
- | l = [a, b, c] | √ |
- | d = dict() | √ |
- | d = {'a':x, 'b':y, 'c':z} | √ |
- #### Exception
- | Syntax | State |
- | --- | --- |
- |try:| √ |
- |except:| √ |
- |except [Exception]:| - |
- |except [Exception] as [err]: | - |
- |except: ... else:| - |
- |raise:| √ |
- |raise [Exception]:| - |
- |finally:| - |
- #### Slice
- | Syntax | str | bytes | list |
- | --- | --- | --- | --- |
- | test[i] | √ | √ | √ |
- | test[a : b] | √ | √ | √ |
- | test[a :] | √ | √ | √ |
- #### Other keywords/Syntax
- | yield | is | comprehensions |
- | --- | --- | --- |
- | - | √ | - |
|