1,069 items tagged “python”
The Python programming language.
2006
The Screening Room #8: IronPython. Screamingly cool demo, with commentary from Jim Hugunin and Jon Udell.
HOWTO: Adding an RSS feed to a Subversion Server. Using post-commit hooks and some Python.
YDN Python Developer Center. Launched today: tips and tutorials on accessing Yahoo! Web services from Python.
The YDN Python Developer Center
I recently had the opportunity to put together the Python Developer Center for the Yahoo! Developer Network. YDN is one of my favourite parts of Yahoo! so I jumped at the chance, and the resulting mini-site is now online (YDN blog post here).
[... 235 words]Exciting stuff in Python 2.5
Python 2.5 alpha 1 is out, and as usual the What’s New in Python 2.5 document provides a pleasant overview of the new features. There are some real treats in there. While I’m hoping that the syntax for conditional expressions will grow on me, I’m looking forward to Partial function application becoming a common Python idiom. Relative imports are going to make Django applications a lot easier to redistribute, and I can’t wait to see all the crazy hacks that result from the introduction of coroutines.
[... 291 words]Backing Up Flickr Photos with Amazon S3. 25 lines of Python.
BitBucket—Experimenting with Amazon S3 Service in Python (via) Nice pythonic API.
2005
Python Creator Guido van Rossum now working at Google. Google are taking dynamic languages really seriously.
Things I learned at EuroOSCON
Last week was the first ever O’Reilly European Open Source Convention, held in the magnificent NH Grand Hotel Krasnapolsky in Amsterdam. It was the first big budget conference I’d been too (previously I’ve stuck to less expensive affairs such as SxSW Interactive and PyCon) but the money seems to have been well spent. The venue was fantastic and there was a great line-up of speakers, keynotes and panels.
[... 878 words][pypy-dev] PyPy released! A full Python implementation written in Python.
Stricter Whitespace Enforcement. Finally! Guido tightens the rules on whitespace.
Five-minute Multimethods in Python. A nice decorator example from Guido.
2004
Python Parsing Tools (via) Ned’s compilation of Python parsing libraries.
Ned Batchelder: A quest for pythonic interfaces. More Ned on interfaces.
Python will assimilate you (via) “From the wind-up school of technology strategizing”
Backporting from Python 2.3 to Python 2.2
We have a home-grown templating system at work, which I intend to dedicate an entry to some time in the future. We originally wrote it in Python 2.2, but upgraded to Python 2.3 a while ago and have since been evolving our code in that environment. Today I found a need to load the most recent version of our templating system on to a small, long neglected application that had been running the original version ever since it had enough features to be usable.
[... 356 words]Python in Mathematics
Python in the Mathematics Curriculum by Kirby Urner is something of a sprawling masterpiece. It really comes in four parts: the first is a history of computer science in education, the second an appraisal of the impact of open source on education and the world at last, the third a dive in to the things that make Python so suitable for enhancing the mathematics curriculum and the fourth a discussion of how computer science and traditional mathematics are likely to play off against each other in the field of high school education.
[... 319 words]PHP 5 Release Candidate 1
I haven’t blogged much about PHP in a while because I’ve been up to my nose in mod_python and loving every minute of it. This news is just too important to miss: PHP 5 Release Candidate 1 has been released, bringing the first production-ready release tantilisingly close. While I doubt PHP 5 will tempt me back it’s definitely an exciting upgrade—my biggest complaint with PHP 4 is the brain-dead object model which defaults to copying whole objects rather than passing references, and this is one of the many things addressed by PHP 5. The new libxml2 powered XML features sound really powerful, and SQLite as an on-board database should be ideal for knocking out small stand-alone applications without needing to set up a mySQL database for them.
[... 173 words]Ned Batchelder: Showing C header structure. Using Python to maked other languages less painful
XML.com: Lightweight XML Search Servers [Jan. 21, 2004] (via) More fun with Python and libxml2
Ned Batchelder: handyxml. Yet another XML object wrapper for Python, this time with full DOM method support included
AppScripting (via) The power of AppleScript with the less verbose syntax of Python
2003
Installing psycopg on Red Hat 9
Adrian Holovaty and I spent some time today figuring out how to get the psycopg Postgres module to install on Red Hat 9. It took a while, but eventually we tweaked the spec file and used it to compile our own RPM. I’ve posted our modified spec file to the psycopg mailing list. More for my own record than anything else, the arcane incantations needed to create the RPM went roughly as follows:
[... 151 words]Donate to the PSF! Support Python as well.
Implementing filesystems in Python
LUFS-Python provides a relatively simple API for implementing new Linux filesystems in pure Python. You install the package, write a class implementing methods for handling filesystem operations such as creating a directory, opening/reading/writing/closing a file, creating symlinks etc and finally mount your new filesystem with some special arguments to the mount command.
[... 371 words]Extracting the length from MP3 files with Python
Ned Batchelder recently wrote about the difficulties involved in extracting the length from an MP3 file. We’re going to need to solve this problem soon at work; luckily, it seems that the answer may lie in the Python bindings for mpgedit, an audio file editing library available for both Windows and Linux.
[... 149 words]Discovering Berkeley DB
I’m working on a project at the moment which involves exporting a whole bunch of data out of an existing system. The system is written in Perl and uses Berkeley DB files for most of its storage.
[... 339 words]Numerical Python. Some day I really ought to get this installed and figure it out
Python Natural Language Toolkit (via) Yet another reason Python at University is a great idea