-- -*- M2-comint -*- hash: 18319660086574342054

i1 : math = PythonContext "from math import *"

o1 = math

o1 : PythonContext

i2 : math "x = sin(3.4)"

i3 : listSymbols math

o3 = symbol        class                       value
     ------        -----                       -----                                                  
     __builtins__  dict                        {'__name__': 'builtins', '__doc__': "Built-in function.
                                               All Rights Reserved.                                  .
                                                                                                     .
                                               .......................................................
     acos          builtin_function_or_method  <built-in function acos>                               
     acosh         builtin_function_or_method  <built-in function acosh>                              
     asin          builtin_function_or_method  <built-in function asin>                               
     asinh         builtin_function_or_method  <built-in function asinh>                              
     atan          builtin_function_or_method  <built-in function atan>                               
     atan2         builtin_function_or_method  <built-in function atan2>                              
     atanh         builtin_function_or_method  <built-in function atanh>                              
     cbrt          builtin_function_or_method  <built-in function cbrt>                               
     ceil          builtin_function_or_method  <built-in function ceil>                               
     copysign      builtin_function_or_method  <built-in function copysign>                           
     cos           builtin_function_or_method  <built-in function cos>                                
     cosh          builtin_function_or_method  <built-in function cosh>                               
     degrees       builtin_function_or_method  <built-in function degrees>                            
     dist          builtin_function_or_method  <built-in function dist>                               
     erf           builtin_function_or_method  <built-in function erf>                                
     erfc          builtin_function_or_method  <built-in function erfc>                               
     exp           builtin_function_or_method  <built-in function exp>                                
     exp2          builtin_function_or_method  <built-in function exp2>                               
     expm1         builtin_function_or_method  <built-in function expm1>                              
     fabs          builtin_function_or_method  <built-in function fabs>                               
     factorial     builtin_function_or_method  <built-in function factorial>                          
     floor         builtin_function_or_method  <built-in function floor>                              
     fma           builtin_function_or_method  <built-in function fma>                                
     fmod          builtin_function_or_method  <built-in function fmod>                               
     frexp         builtin_function_or_method  <built-in function frexp>                              
     fsum          builtin_function_or_method  <built-in function fsum>                               
     gamma         builtin_function_or_method  <built-in function gamma>                              
     gcd           builtin_function_or_method  <built-in function gcd>                                
     hypot         builtin_function_or_method  <built-in function hypot>                              
     isclose       builtin_function_or_method  <built-in function isclose>                            
     isfinite      builtin_function_or_method  <built-in function isfinite>                           
     isinf         builtin_function_or_method  <built-in function isinf>                              
     isnan         builtin_function_or_method  <built-in function isnan>                              
     isqrt         builtin_function_or_method  <built-in function isqrt>                              
     lcm           builtin_function_or_method  <built-in function lcm>                                
     ldexp         builtin_function_or_method  <built-in function ldexp>                              
     lgamma        builtin_function_or_method  <built-in function lgamma>                             
     log           builtin_function_or_method  <built-in function log>                                
     log1p         builtin_function_or_method  <built-in function log1p>                              
     log10         builtin_function_or_method  <built-in function log10>                              
     log2          builtin_function_or_method  <built-in function log2>                               
     modf          builtin_function_or_method  <built-in function modf>                               
     pow           builtin_function_or_method  <built-in function pow>                                
     radians       builtin_function_or_method  <built-in function radians>                            
     remainder     builtin_function_or_method  <built-in function remainder>                          
     sin           builtin_function_or_method  <built-in function sin>                                
     sinh          builtin_function_or_method  <built-in function sinh>                               
     sqrt          builtin_function_or_method  <built-in function sqrt>                               
     tan           builtin_function_or_method  <built-in function tan>                                
     tanh          builtin_function_or_method  <built-in function tanh>                               
     sumprod       builtin_function_or_method  <built-in function sumprod>                            
     trunc         builtin_function_or_method  <built-in function trunc>                              
     prod          builtin_function_or_method  <built-in function prod>                               
     perm          builtin_function_or_method  <built-in function perm>                               
     comb          builtin_function_or_method  <built-in function comb>                               
     nextafter     builtin_function_or_method  <built-in function nextafter>                          
     ulp           builtin_function_or_method  <built-in function ulp>                                
     pi            float                       3.141592653589793                                      
     e             float                       2.718281828459045                                      
     tau           float                       6.283185307179586                                      
     inf           float                       inf                                                    
     nan           float                       nan                                                    
     x             float                       -0.2555411020268312                                    

i4 : y = toPython hashTable{"foo" => 1, "bar" => 2}

o4 = {'foo': 1, 'bar': 2}

o4 : PythonObject of class dict

i5 : listSymbols y

o5 = symbol  class  value
     ------  -----  -----
     foo     int    1    
     bar     int    2    

i6 : 
