Mercurial > pymonkey
comparison docs/src/pymonkey.txt @ 167:b745c9d8eef9
Added docs for pending exception methods.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 30 Aug 2009 20:13:41 -0700 |
parents | 3fadba042201 |
children | 68d9e1ed19f8 |
comparison
equal
deleted
inserted
replaced
166:2eaae00d5e30 | 167:b745c9d8eef9 |
---|---|
316 | 316 |
317 .. method:: gc() | 317 .. method:: gc() |
318 | 318 |
319 Performs garbage collection on the context's JavaScript runtime. | 319 Performs garbage collection on the context's JavaScript runtime. |
320 | 320 |
321 .. method:: is_exception_pending() | |
322 | |
323 Returns whether an exception is currently being propagated in | |
324 the context. | |
325 | |
326 .. method:: get_pending_exception() | |
327 | |
328 Returns the current exception being propagated in the context. If | |
329 no exception is being propagated, this method returns ``None``. | |
330 | |
331 If you need to disambiguate between whether ``None`` is the | |
332 pending exception or there is no pending exception, use | |
333 :meth:`is_exception_pending()`. | |
334 | |
321 .. method:: set_operation_callback(func) | 335 .. method:: set_operation_callback(func) |
322 | 336 |
323 Sets the operation callback for the context to the given Python | 337 Sets the operation callback for the context to the given Python |
324 callable. The callback can be triggered via | 338 callable. The callback can be triggered via |
325 :meth:`trigger_operation_callback()`. | 339 :meth:`trigger_operation_callback()`. |