2012-07-05

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


Huzzah!

37 comments:

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.
http://www.anaks-namestaj.com/

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.
http://www.goldyvpn.com/vpn-for-rai-tv/

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.

Unknown said...

I’m working as an academic consultant at Global Assignment Help Australia. I have been providing assignment help to Aussie scholars for more than 5 years. I hold exceptional writing skills and assist the scholars in assignment writing tasks.

John Noels said...

We, at Instant Assignment Help, offer the best Assignment writing service UK to the college students who wish to score top grades in their academic career. Our team of subject-oriented and highly qualified writers promises to deliver well-written and thoroughly researched assignments at affordable prices within the prescribed deadlines. If you want to receive an original document according to your university guidelines, then take our assignment writers help right away!

Adam Jackson said...

Adam Jackson has been associated with Assignment Prime for a long period now. He is popular among students for providing them with the best assignment help in australia. He takes a keen interest in writing for his academic blog as well. Over the time, he has received accolades and appraisals for his teaching techniques.

Evelyn Williams said...

Online Dissertation Writing is a UK-based academic writing service provider known for the competency of its dissertation writing team. Other than dissertation, we also provide writing assistance for essays, term papers, reports, research papers, theses, book reviews and other custom papers. We have diligent student support team that is available 24*7 hours for the convenience of our customers. We believe in providing only the high-quality content with consistency, so that we can achieve our 100% satisfaction objective.

Unknown said...

Assignment Desk provides online assignment help & writing services from professional UK writers at affordable prices. This helps the students to submit their assignments within deadlines and score the best grades in it.

Keira Tayor said...
This comment has been removed by the author.
Harry Jones said...

Australian online essay writer know how plagiarism can affect the academic paper. Therefore, whenever they write your essay, it is guaranteed that none of the content is copied from anywhere. Coursework writing is an integral part of any students academic life. But, getting it perfect can be a struggle.

Online Assignment Help said...

How to write a dissertation proposal? The requirements for preparing this proposal may vary depending on the academic level you're in. Now here’s a brief discussion on how to write a dissertation proposal that helps you in the process.

Liam said...

Many students face the problem of stress in college. Whether it is because of social anxiety, or not being able to clear exam etc. Most of the times, students get stressed due to their piled up assignments. If it is with you also then you might seek for Online Assignment Help.

Robert Smith said...

Nice blog! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also... dissertation writing help

ammie jackson said...

A poorly constructed dissertation proposition or hypothesis makes it hard for you to explain your dissertation paper to target audience; to make them understand what you aim to achieve through your research. This is why we have thought of setting guidelines for dissertation hypothesis writing UK to ease your dissertation journey a little. Here you will learn various types of dissertation, how to create a relevant and effective dissertation writing and lastly dissertation hypothesis help examples for reference.

Jennifer Brown said...

I would like to thanks for sharing high value and informative article with us. And I hope you'll share more idea's and keep writing more like this one. perdisco

ammie jackson said...

The experts of our pricing strategy assignment writing services are always engaged in market research and thus, they are well aware of market dynamic. Hence, our experts are quite able to make your pricing strategy assignments as per the accurate market value. The rationality of product pricing depends on the optimization of net revenue that is generated from the sales of products. It is also affected by prevalent market condition and force. The students need deep knowledge regarding market concept for setting price of products. Determination of accurate production cost needs lots of calculation.

Lillian said...

Avail the Assignment Help services in Australia by top rated experts at cheapest prices at Myassignmenthelp.com. MyAssignmenthelp most trusted online assignment writing company provides the assignment writing help service for students in Australia of all levels, starting from high school till Ph.D. Our professional academic assignment helper prepares custom written assignment exclusively for you to achieve A+ grade.

Online Assignmet Help said...

Excellent information on your Article, thank you for taking the time to share with us such a nice article. Amazing insight you have on this, it's nice to find a website that details so much information about different artists.
visit now:- assignment help

Unknown said...

A ghostwriter should keep in mind that he or she should not put any biased opinion in any of the write up. They need to understand that any kind of personal opinion is not allowed in content unless it is mentioned to do so.

Robert Smith said...

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also... tuition assignments

Thesis Help said...

Although you provide an overall conclusion to your thesis help, try to give specific conclusion to each chapter. The reason behind this is, as a thesis is a longer piece of writing, it becomes quite crucial to remind the readers of what you have done and why you have done before moving on to the next phase.

katey hopes said...

Thanks for the post keep on sharing new things if a student need harvard style referencing generator then visit Myassignmenthelp

Tim Harry said...

All you need is to ask us "please, write my assignment for me," give us some more details, and our team will do all work for you!

Joshua dollar said...


Nice blog. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated...
Custom Paper writing services

Tim Harry said...

Here are a few of the common problems students face when it comes to their academic tasks and seek English assignment help online.

Ameelia Brown said...

Thanks for sharing the information. for more useful InformationGE Healthcare: Innovating For Emerging Markets

Tim Harry said...

We will always be by your side whenever you decide to buy dissertations online. If you need expert advice, our experts will be of great help on that matter.

Zara Williams said...

This is really nice post. Keep Sharing the post like this. Thanks

How to write an essay

Ireland Assignment Help said...

Ireland Assignment Help provides the Assignment Help ireland services writing help to the students of various universities at a low price. Our highly-experienced writers are available 24x7 for guiding the students for any academic help.