YAML ain’t Markup Language | Completely Different

April 13th, 2009 § 7 comments § permalink

When some­one says “pick a markup lan­guage,” most peo­ple would imme­di­ately respond with “XML!”, but there’s an alter­na­tive out there. YAML is human-readable, easy to use, and over­all quite fantastic.

This is a reprint of an arti­cle I wrote for Python Mag­a­zine as a Com­pletely Dif­fer­ent col­umn that was pub­lished in the Decem­ber 2008 issue. I have repub­lished this in its orig­i­nal form, bugs and all

» Read the rest of this entry «

SSH Programming with Paramiko | Completely Different

February 5th, 2009 § 20 comments § permalink

OpenSSH is the ubiq­ui­tous method of remote access for secure remote-machine login and file trans­fers. Many peo­ple — sys­tems admin­is­tra­tors, test automa­tion engi­neers, web devel­op­ers and oth­ers have to use and inter­act with it daily. Script­ing SSH access and file trans­fers with Python can be frus­trat­ing — but the Paramiko mod­ule solves that in a pow­er­ful way.

This is a reprint of an arti­cle I wrote for Python Mag­a­zine as a Com­pletely Dif­fer­ent col­umn that was pub­lished in the Octo­ber 2008 issue. I have repub­lished this in its orig­i­nal form, bugs and all

» Read the rest of this entry «

A (brief) introduction to Python-Core development | Completely Different

February 4th, 2009 § 2 comments § permalink

This is a reprint of an arti­cle I wrote for Python Mag­a­zine as a Com­pletely Dif­fer­ent col­umn that was pub­lished in the August 2008 issue.

In the early sum­mer of this year I had the chance to really get started work­ing on/with the core Python source. I had spent some time putting together a Python Enhance­ment Pro­posal (PEP) which was accepted. Now, I just needed to learn the code base, prac­tices and buy a hel­met. Shortly after get­ting the ini­tial patch accepted, I ended up break­ing the build, tests and caused the beta to slip. This arti­cle is an intro­duc­tion to Core devel­op­ment, in which we’ll cover what you need to get started, and where I per­son­ally screwed up.

» Read the rest of this entry «

Get with the program as contextmanager | Completely Different

February 3rd, 2009 § 5 comments § permalink

One of the cooler fea­tures that came with Python 2.5’s release is the ‘with’ state­ment and the con­text man­ager pro­to­col behind it. I could make the argu­ment that these two things alone make the upgrade to Python 2.5 more than com­pelling for those of you trapped in the dark ages of 2.4 or worse: 2.3!

This is a reprint of an arti­cle I wrote for Python Mag­a­zine as a Com­pletely Dif­fer­ent col­umn that was pub­lished in the July 2008 issue. I have repub­lished this in its orig­i­nal form, bugs and all

» Read the rest of this entry «

An Interview With Adam Olsen, Author of Safe Threading | Completely Different

February 2nd, 2009 § 8 comments § permalink

This is a reprint of an arti­cle I wrote for Python Mag­a­zine as a Com­pletely Dif­fer­ent col­umn that was pub­lished in the June 2008 issue.

A world with­out a Global Inter­preter Lock (GIL) — the very thought of it makes some peo­ple very, very happy. At PyCon 2007 Guido openly stated that he would not be against a GIL-less imple­men­ta­tion of Python, pro­vided some­one coughed up the patch itself. Right now, that some­one is Adam Olsen — an ama­teur pro­gram­mer who has been work­ing on a patch to the CPython inter­preter since July of 2007.

It’s PyCon. I’m sup­posed to be lis­ten­ing to a talk, but I’ve fallen down the rab­bit hole of a future with­out a global inter­preter lock. I’m locked in on get­ting a patched ver­sion of the inter­preter up and run­ning on Mac OS/X and the patch author, Adam Olsen, is coach­ing me through changes to some of the deep­est inter­nals of Python itself.
» Read the rest of this entry «

Python Threads and the Global Interpreter Lock

February 1st, 2009 § 22 comments § permalink

There are a plethora of mech­a­nisms and tech­nolo­gies sur­round­ing con­cur­rent pro­gram­ming — Python has sup­port for many of them. In this arti­cle we will explain, exam­ine, and bench­mark Python’s thread­ing sup­port, and dis­cuss the much maligned Global Inter­preter Lock (GIL).

This is a reprint of a fea­tured arti­cle I wrote for Python Mag­a­zine that was pub­lished in the Decem­ber 2007 issue. This arti­cle assisted in inspir­ing me to write PEP 371.

» Read the rest of this entry «

Where Am I?

You are currently browsing the python magazine category at jessenoller.com.