Sep. 4th, 2008

spicy tlc @ 06:06 pm

I can't get in to the Python bug tracker right now (its promised registration email has not arrived), so I post this here in the meantime. (Update: Finally got the email. Bug filed with patch as #3801.)

The code: import cgi; cgi.parse_qsl('a=1&b=2&b=3')

The result in Python 2.5: [('a', '1'), ('b', '2'), ('b', '3')]

The result in Python 2.6b3+ (trunk:66224): {'a': ['1'], 'b': ['2', '3']}

Probably a cut-and-paste bug, cgi.parse_qsl is in fact implemented by calling urlparse.parse_qs.

Guess I should have my code running on the community buildbots after all.
Tags: ,
location: JanRain World HQ
(Leave a comment)

Feb. 9th, 2008

tomato curry [company lunch] @ 02:30 pm

I've been working with Ruby on a semi-regular basis for a while now, and there's something that's still bothering me. Well, to be honest, there are a number of things, but one of them in particular seems like it should be solvable.

Here's the last few frames of a typical Ruby on Rails traceback:

And here are the last few frames of a typical Nevow traceback in Python:

It's not just the web environment either, you can make similar comparisons between ipython and irb.

Is there any help to be had? Or should I tell my office manager to get one of those inflatable punching bags to smash the next time someone sends me one of these stupid crippled ruby tracebacks?

Tags: , , , , , , , ,
(4 comments | Leave a comment)

Jul. 2nd, 2007

blueberry icecream @ 12:13 am

This weekend I finished the first layer of Twisted python-openid integration for relying parties. It's in a darcs repository here, and requires bleeding-edge development version of the openid package from here. There's plenty more work to be done, including figuring out how to keep it maintainable since the only reason it works now is because I got way too friendly with some implementation details of python-openid's methods which are currently marked private, but all that nitty-gritty integration is done for the consumer class, which will hopefully allow people-who-are-not-me to start playing with it if they want to.

I'm rambling because I want to post something about this but I really need to get to sleep now. Goodnight internets.

Tags: , , ,
Current Mood: productive
(2 comments | Leave a comment)

Mar. 21st, 2007

Larry calls it "pizza for real people." @ 01:15 pm

Dear fellow Pythonistas,

Is it wrong of me to still be hating on setuptools?

(Kevin asks the dev list, and goes back for more. obligatory Jyte link.)

Tags: , , , ,
(1 comment | Leave a comment)