PythonMonkey   v0.8.2 (dev)
Loading...
Searching...
No Matches
wtfpm.WTF Class Reference

Public Member Functions

 __enter__ (self)
 
 __exit__ (self, errType, errValue, traceback)
 

Detailed Description

WTFPythonMonkey to use as a Python context manager (`with`-statement)

Usage:
  ```py
  from pythonmonkey.lib.wtfpm import WTF

  with WTF():
    # the main entry point for the program utilizes PythonMonkey event-loop
    asyncio.run(pythonmonkey_main())
  ```

Member Function Documentation

◆ __enter__()

wtfpm.WTF.__enter__ (   self)

◆ __exit__()

wtfpm.WTF.__exit__ (   self,
  errType,
  errValue,
  traceback 
)

The documentation for this class was generated from the following file: