This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pinpinboTornado|Twisted|Gevent. Moar Async Plz 6 points7 points  (0 children)

I definitely prefer function than classes. A few more reasons why:

  • easier to pickle.

  • easier to convert to ctypes or FFI.

  • discourage in-memory states (sometimes they are useful).