New issue 2192: greenlet.settrace is missing https://bitbucket.org/pypy/pypy/issues/2192/greenletsettrace-is-missing
kracekumar ramaraju: I am working on gevent based websocket server and trying to find which `greenlet/gevent` is blocking by following this [post](http://www.rfk.id.au/blog/entry/detect-gevent-blocking-with-greenlet-settrace/). Unfortunately `pypy` version of greenlet doesn't have function `settrace` in greenlet` module. ```python krace@Kracekumars-MacBook-Pro ~> (gpypy) python Python 2.7.10 (850edf14b2c75573720f59e95767335fb1affe55, Oct 30 2015, 00:18:22) [PyPy 4.0.0 with GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>> import greenlet >>>> greenlet.settrace Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'settrace' >>>> greenlet <module 'greenlet' from '/usr/local/Cellar/pypy/4.0.0/libexec/lib_pypy/greenlet.pyc'> >>>> ``` Similar one from Python `2.7.10` ```python krace@Kracekumars-MacBook-Pro ~/c/ws_playground> (g2710) python Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import greenlet >>> grenlet.settrace Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'grenlet' is not defined >>> greenlet.settrace <built-in function settrace> >>> ``` _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue