At Europython I learned...

Today I learned something magical that has transformed all my twisted
program examples:

from __future__ import print_function

Whee! This means that you can quickly and easily do
d.addCallback(print) without any pain. You can even do
d.addCallback(print, 'somedata', 1, 'etc').

>>> d = defer.succeed(None)
>>> d.addCallback(print, 'somedata', 1, 'etc')
None somedata 1 etc



Cory said...

Oh shit son, that is great. Thanks for the tip.

Anonymous said...

thanks a lot!!!!
great great
the end of my stupid function "printit"
it seem's that print "toto" still work also.
that's the best day of my life

wordpress plugins said...

Divine Developer specializes in personalized WordPress consulting services. Featured services include custom plugins and themes coding, PSD to WordPress services, migration to wordpress and upgrades.

kancelarijske stolice said...

ANAKS is a company specializing in the sale of office furniture and furnishing office space. Like the company name says (ANAKS is the ancient Greek word for the best, leading, ruler), we strive to provide our customers with the best service, the best selection and the best quality. Our product range includes furniture and chairs for your business well-known manufacturers.

rent a car beograd said...

Really loved reading your blog. Thanks for sharing this!

GoldyVPN said...

Once you unblock rai tv you will experience high speed so you can easily test your gaming skills. You will be able to use vpn for rai tv from anywhere in the world.

Willie Ames said...

i live in australia but i can watch rai tv using australian vpn.

James R. Douglas said...

wonderful post

Micheal E. Wilson said...

You are continuing your essay writing service. You need to more tips. Find more tips you can follow this site. http://tjmun.info/best-gadgets-for-assignment-writing

zubair hussain said...

Willie Ames thanks for sharing,
I am using VPN to access American Netflix in Australia.

Unknown said...

Professional and user- friendly services are available for assignment help melbourne. It is known for providing the students expert assistance related to almost every subject.