Pycon Day 2

State of the Python Universe – Guido van Rossum

Python source repository has been moved from Sourceforge CVS to svn on svn.python.org. Buildbot checks out and builds code after each checkin, keeps code quality high by finding broken code fast. New python.org site goes live next Sunday. 2.5 release around 09/30/06.

What’s new in 2.5:

  • absolute/relative import – applies to modules that are in a package, resolves ambiguities.
  • Conditional expressions – like C ?: operator. Guido’s choice: expr1 if cond else expr2.
  • try/except/finally unification
  • yield inside try in a generator is allowed
  • with statement – Context management, easy syntax for try/finally mutex code
  • Exception enhancements
    • All exceptions will be new-style classes
    • BaseException class which will be the base class of all exceptions
    • Maybe eventually get rid of except: syntax
  • __index__ to convert classes that represent exact ints to a python int. Allows these classes to be used as slice indices.
  • AST-based compiler – new bytecode compiler integrated into HEAD
  • ssize_t – Strings greater than 2Gb work on 64-bit platforms.
  • python -m
    . – runs package.module as __main__
  • Lots of new stuff in 2.5 standard library
  • defaultdict – {key:[]}, map one key to many values

wxPython BOF session

About 50 people showed up. Cool!

Internationalization in Chandler

i18n goes beyond string translation. Python doesn’t have internationalization built in. Used SWIG to wrap icu. All text data in unicode. All buttons, exceptions, etc. go through translation manager.

Eggs

This talk was packed. It was in one of the smaller rooms, and about half the conference showed up for it. Because of the general craziness in the room, I wasn’t really able to follow this talk.
Lightning talk notes

MerchantCircle.com:

  • Tsearch2 – Postgress full text search
  • Routes – URL mapping

execnet

  • Cool, but it’ll definitely make the security guys cringe.

Pycon Day 1

I’m surprised at the number of people here. I’m not surprised at all at the number of Macs.
Keynote – Alexander Limi & Alan Runyan from Plone
Talked about three organizations that are using Plone, and about the “software middle class” that python is creating. Plone is good for multilingual sites. Showed a “very scientific” graph of the amount of time it takes to set up Plone vs. other CMSs. One Plone developer is a prince. With a castle. Plone is an idea more than a piece of software. Having a good out-of-the-box experience is key to getting the software middle class.

Python for S60 – Matt Croydon

Project started at Nokia, released as open source. Can get things done in >100 lines of code. Lots of libs, apis available. Some really polished apps available.

Python in the Enterprise – David Stanek and Mike Pirnat from American Greetings

“Python doesn’t scale” is a common claim, AG thinks it scales fine. 760,000 lines of code, 90M page views/day, 1.7Gb/s sustained at peak times. “Scales as well as you can design”

The State of Dabo – Ed Leafe

Dabo is a desktop application framework, created by two former Microsoft users who didn’t like the way Microsoft developement platforms were heading. 3-tier application framework. DB layer is easy, UI is complicated. Chose wx because it was the best looking, mature, and stable. dabo.ui is a GUI api that is glued to wx. Dabo.ui is more pythonic than wx. Targetting the VisualC++/VisualBasic market. Assumes that you have a database, and want to write applications to use that database. Uses ReportLab to generate reports.

History and Origins of Python – Guido

Cool, but I didn’t take notes 🙁

Django – Adrian Holovaty

Django was developed at World Online – newspaper online department in Lawrence, KS. Used there for very in-depth local content. Deeply cross-linked sites. One slide said just “Pictures of drunk sorority girls” 🙂 Goals: 1. Develop sites fast. 2. Content and structure can be changed quickly and easily.

The Stack: URL Dispatcher;Database wrapper;Template system;Admin framework;Pain relievers.
Steps:

1. Design URLs. URLs are decoupled from business logic

2. Use admin tool to add content

3. Create views = methods that respond to requests and return an HttpResponse

TurboGears – Mark Ramm

CherryPy – Maps requests to python methods

Kid – Templating

Mochikit – JavaScript library

SQLObject – Object-Relational mapper based on the Active Record Pattern (note-look that pattern up)

At this point, I got tired and stopped taking notes.

PyCon

I leave for PyCon in about 2 hours. Our presentation is on Sunday, the last day of the conference. I’ll post updates here throughout the weekend.

Sci-fi test

Apparently I would fit in well with the crews of my two favorite sci-fi shows.

You scored as Serenity (Firefly). You like to live your own way and don’t enjoy when anyone but a friend tries to tell you should do different. Now if only the Reavers would quit trying to skin you.

Serenity (Firefly)
94%
FBI’s X-Files Division (The X-Files)
88%
Millennium Falcon (Star Wars)
75%
Nebuchadnezzar (The Matrix)
69%
SG-1 (Stargate)
69%
Deep Space Nine (Star Trek)
63%
Galactica (Battlestar: Galactica)
63%
Moya (Farscape)
56%
Babylon 5 (Babylon 5)
50%
Andromeda Ascendant (Andromeda)
31%
Enterprise D (Star Trek)
31%
Bebop (Cowboy Bebop)
25%

Your Ultimate Sci-Fi Profile II: which sci-fi crew would you best fit in? (pics)
created with QuizFarm.com

Validation

Now that I’ve fixed a problem in the page headers, all of the static pages on atomicllama.com should be valid xhtml. Turns out that while it’s OK to nest an < a > tag inside an < h1 > tag, the reverse is not valid. There’s still a couple of problems with the blog themes to fix.

gmail + spam

I’ve had my gmail account for about a year and a half now, and for the first time ever spam messages have been getting through gmail’s spam filter to my inbox. I’ve been seeing ~1 to 3 spams per day in my inbox for the past week or so. The excellent spam filter is one of my favorite gmail features, so here’s hoping google can update it to deal with whatever new techniques the spammers are using.

Also on the subject of gmail, take a look at the “web clips” area at the top of the spam folder. It displays nothing but spam recipes. 🙂

The mountains

The banner image at the top of the page was taken by Jason on top of the mountain at Arapahoe Basin. It’s actually just a small piece of the background of a picture of me. It’s kind of hazy-looking, but I think that’s cool.

Another day, another test post

I actually got the house blog up last night, and found a theme I really like for it. I’m testing out a theme called plain vanilla for this blog, since I might actually start putting some real content here. I’m going to need to modify the theme quite a little though, I don’t like the fact the all of the headlines are the same size as the rest of the text.