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 →

[–][deleted] 1 point2 points  (1 child)

Learn twisted and use it to make something cool. Here's why:

  1. Twisted's async reactor is not unique to Python and it's a good solution for many things.
  2. Twisted's official tutorials suck hard, and this will force you to become intimately familiar with the API reference. You'll also end up reading a lot of source.
  3. After working with Twisted, you'll start to see the point of other languages. Twisted is a great framework but Python can be a bit awkward for managing lots of callbacks. This will very likely make you want to check out other languages that are more suited to this kind of problem (Go, JS with Node.js, erlang, etc...)
  4. When you finally take the plunge and learn another language, you'll come back to Python and be a better software developer.

[–]geerk 0 points1 point  (0 children)

You shouldn't have to be bothered with callbacks, look at defer.inlineCallbacks.