Sunrise with a different view
Posted: 2013-12-02T22:50:59+05:30

Yet another Monday, but the day was different. After waking up, I was not in a hurry to take bath and fix my laptop bag, instead took time to keep looking from the window to the outside. After more than 5 years, I was not in a rush to run to the office, instead the office came to my house.

I started the system to login to the IRC for my new job, in the community team of Eucalyptus. After the initial setups were done, I went ahead and started watching few recorded talks.

I am already running Eucalyptus in my home network for a private cloud for some time, where I test Fedora cloud images, and keep doing all random experiments. I will write about them in next few blog posts. Having centos instances also helped to test the Python codes in Python 2.6 series.

My primary job responsibility will be the community, to learn and grow with everyone else, to make sure that people can build the private cloud, they always wanted.


Notes from language summit at PyCon
Posted: 2013-03-14T10:39:15+05:30

Day one of PyCon and I spent the whole day at the language summit. This post contains the notes I took during the day.

Pypy (Armin Rigo)

PyPy works :) 10th anniversary was few days back , 2.0 is coming. More near to c extension modules. Alpha version targeting Python 3.2 will come in. Currently buildbot has around 20 modules fail in the same.

Both python 2.7 and python 3 will be supported. Greenlets or stackless support, it is fast now. Gambit research paid for greenlet support work to fijal.

Code wise rpython is now different, pypy uses rpython as a library. Final goal is to split it out. STM: attempt to remove GIL, it kind of works, it leaks memory now.

Philip (Jython)

Jython 2.7 beta 1 released last month. No python 3 support yet, but the developers really want to work on it. Utilizing Java 7 features is yet to be done.

Ironpython (Jeff Hardy)

2.7 is there for couple of years. Not many contributors. Trying to get whole .NET plugins directly be used in ironpython. It is on github as apache2 license. Developers like to get Python3 support this year.

Nick Coghlan (packaging)

There will be many packaging changes. Just convince him and he will figure the required people for peps. around half dozen projects on packaging standard. The new approach is to evolve the echo system than changing the world. install must die. It should go away, metadata 2.0 can be the future, move installation and metadata move away from

Lot of metadata peps important people to accept them are not python devs. setuptools, distribute, zc.builtout, condor etc they need to approve the metadata standard.

Decouple buildsystem from the tool people choose to install the software. Metadata 2.0 is to clearly differentiate between installer and buildsystem.

Metadata 2.0 will have one post-install hook, there will be sane API. All discussions on metadata is on distutils-sigs, people are frustrated as discussion needs to happen in distutils-sig and also python-dev lists.

Nick wants to change the away PEPs get approval. The PEP on metadata stuff should happen in distutils-sig only.

People in the summit agreed on sub-topic mailing lists as discussion places.

Related peps: 426

Brett Cannon (XML issues)

Lot of problems in XML. People were saying “If you are accepting unsafe data you should check it before using it”. Should be turned on in 2.7 also (the monkeypatching code from Christan) or not was the main discussion. People talked about many use cases which we might break if we turn it by default. Alex reported that Django project is keeping in touch with Christian on XML issues.

Guido van Rossum (tulip)

PEP380 was “yield from”. Incredibly easy and difficult at the same time. We can do better with “yield from”. Start a fresh in the standard library and wanted to have an unified event loop. All in PEP3156. there is a standard interface which everyone can use, one such implementation must be in the stdlib, different library can provide their own implementation.

Trent Nelson (Parallelizing the python interpeter)

Talked about his love for microsoft products and snakebite project details. px branch

Two parts

  • Parallelizing the interpreter
  • true “asyncchronicity”

Work started from late December (full time until mid Feb-ish). Code is in prototype condition. Only works on Vista+ (for now) Aim is to get everything working first and then refactor/review, review support for other platforms etc.

My favorite line from the talk is about telling one good thing about Windows is that it will not change :p

All existing solutions on table are mostly “paradigm shift” but most of the users and Guido does not want a paradigm shift.

Then he talked about project, check the about page for more information.

PEP 436 (The Argument Clinic DSL) Larry Hastings

It is a working prototype. DSL as in comments to the c functions. Mostly people ignored it in python-dev. Stephen’s competing PEP, Nick is now reviewing it 0437. Step 1. Build vanilla python step 2. make the changes step 3. use the vanilla python3 to recreate the .c files from the DSL

Alex Gaynor (CFFI)

Proposal is to include cffi in the stdlib.

Ctypes is bad, complex API.

CFFI will help not segfaulting by using compiler. It uses the compilers to verify the signatures. The scope here is calling C. It is doing verify during level. hash inside verify method. Broken down to compile step to generate cache step, load step to fail if no cache. Runtime to load only

Proposal is not deprecating ctypes. (fijal) while answering to one of Barry’s question.

Too early to put in standard library as Thomas thinks , Nick thinks 3.4 is still an option for it. Standard question on python-dev, I crashed python, did you import ctypes ? come back when you don’t and still crash :D ctypes has lots of overhead in import so it will be hard to slower than ctypes. ply is good be in stdlib (bdfl). Putting things in stdlib and then telling it is implementation details is not good. answering eli.

Go through the unfortunate world, users don’t have c compliers and want to use it. (Ned)

Mathias Klose

3.3.0 is first to cross build for different architectures. backported to 2.7. Changes were in configure stuff, extensions to the stdlib.

get rid of access to sys modules, replaces sys.platform to host.platform, get the information from sysconfig.

Difficult to do cross builds, people tend to break things. make cross test, for particular build slaves, not to run make test but only cross

Robert Collins

Working on various tests suites. shift our norms on test, less comfortable.

Barry Warsaw

keep it simple or support every usecase you can think of. – different dimensions Derived from int or act like an int in all cases. PEP 435

We will give you couple of simple things and then build complex things using meta classes. (Guido) pointed that out and One enum in stdlib, may be a BDFL.ENUM :D

Large chunks will benefit from it.

Larry informed at the very end that Kenneth is ok to have requests in stdlib. New implementation on the same API on top of tulip (Guido) as everyone agreed that requests is awesome API but needs reimplementation.

At the end Nick also suggested to have a legacy index in the docs which can clearly tell readers that don’t use this in the new code.


Python powered :)
Posted: 2012-12-18T20:49:05+05:30

Today I moved my site to a Nikola generated static one from Wordpress. Being able to write the blog posts in reStructuredText format is always super easy compared to HTML.

This also has Disqus based comment support. upstream is very supportive and got many of my queries resolved.

I still need to import many old posts in this one, but that will take time. Nikola has a wordpress importer plugin, I am yet to check that. For my move I wrote one python script which got all my posts from wordpress and fixes the html links inside, added the categories as they were in previous one.

RSS feed


Last day for KDE Randa fund raiser
Posted: 2012-09-21T15:08:16+05:30

Please donate to the Randa meeting.

Click here to lend your support to: KDE Randa Meetings and make a donation at !


Darkserver in production
Posted: 2012-03-23T11:47:49+05:30

In the last few days we managed to get Darkserver live in production. Thanks to Nirik and Dgilmore, without their help it was not possible.

This service is providing the API(s) based on which other developers can write tools to query details of build-ids. We Have build-id in every ELF we build from Fedora 8, but there was no good way to query them. More details on why we need the service can be found at the wiki page.

For now it is handling only primary architecture builds. Within last 4 days we have around 118k build-id(s) in the database.

I am working on a small command line client for the same, called darkclient. Hope to have the first release out in next week. API details can be found at the home page of the service.


Michael Foord's python-mock for testing
Posted: 2012-03-22T17:37:57+05:30

The project page is here.

Why you need it ? Say you are writing unittests for your favourite application  and in some function you are using xmlrpclib module to interact with a web-application. Now for testing you can easily mock that interaction out, which will help to run your code in fast and easy way. Mocking database calls can be another example.


import unittest
import xmlrpclib
from mock import patch

class TestFoo(unittest.TestCase):
    A simple test
    def test_first(self, mock_xmlrpc):
        m = mock_xmlrpc.return_value
        m.multiply.return_value = 6
        server = xmlrpclib.Server("")
        res = server.multiply(2, 3)
        self.assertEqual(res, 6)

if __name__ == '__main__':

In Fedora you can just yum install python-mock.


2 days of Fedora and python workshops in Durgapur
Posted: 2012-03-05T10:01:05+05:30

With help from local dgplug members we had 2 days of workshops on February 17th and 18th.

The idea was to introduce Fedora to the new students and various tools which they can use to develop their skills. This time we tried to get only interested students into the workshops.

Day1: We started around 11am in the seminar hall, had around 45 students attending the first talk on FOSS in general and then about Fedora. Existing contributors like Sayan, Biraj also talked about their experience, how they started their journey. After lunch break we started python workshop, we had to introduce the terminal and various commands to them before I started talking about python. Most of them were being able to catch up and solve the small problems I gave. We closed for the day around 5:30pm. I stayed back in the Boy’s Hostel and had chats about various projects students are working on.

Day2: Though we started a bit early but we had almost every participant from previous day. First workshop of the day was on Vi. In the second half we again started with python but going into more details. Showing them how they can start working on a project, how to do their lab assignments using existing tools in Fedora. These students can see their seniors who already started contributing to various projects. I hope some of them will follow the path.



I am going to FUDCON Pune
Posted: 2011-10-31T10:59:36+05:30



Colour colour everywhere :)
Posted: 2011-03-21T13:50:23+05:30

It was time for Holi once again :)

Was in the action with my new 24-70. Found people totally drowned in colour



Little kids enjoying as much as they can


Among all the chaos and fun and colours, still found people alone while trying to dry up.


Many smiling faces also.



People dancing with all crazy styles.



One can find the whole set here.


How to use lekhonee-gnome for multiple blogs with the same wordpress account ?
Posted: 2010-06-11T15:23:06+05:30

I was looking into this feature request yesterday, good news is lekhonee-gnome already supports this. Lets say your wordpress username is foobar.

So, in the accounts in Preferences window you add the first account with your username and password and Wordpress as service. 

Then add another account with same username and password but service as other and type the full url of your 2nd blog following /xmlrpc.php (example: 

Now you can access both the blogs from lekhonee-gnome


Contents © 2004-2014 Kushal Das - Powered by Shonku