Bitten by Python

Ouch. I’m really quite fond of Python as a language, but a) every time I swap editors I wind up with differently indented code (even if it’s only visual, and doesn’t annoy the interpreter, it’s disconcerting to me). Yes, I could probably fix that (somewhere between vi on Windows and BBEdit on the Mac :)

More annoyingly, I got bitten by the last line of an if statement being considered by Python to be outdented by one level, and as such not included in the if statement. A classic error in C/C++ if you don’t use block delimiters with a single line statement.

Maybe it’s time to look at Ruby. Or add a pre-processor with block delimiters to Python :)

Share and Enjoy:
  • del.icio.us
  • digg
  • Ma.gnolia
  • NewsVine
  • RawSugar
  • Reddit

Related posts:

  1. Python 2.5 released! For those who care about programming languages, Python 2.5 has...
  2. Transperth ticket machine user interface anomalies So, I find myself buying a family ticket on Transperth,...
  3. Snakes on a laptop Spent the evening at The Moon Café in Northbridge with...
  4. Don’t die with the art inside you! Lets face it, when their time is up nobody’s ever...
  5. BBQ for Adrian For those of you who know him, Adrian Smith is...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply

  • Recent Comments

  • Was it useful? Was it funny? Was it weird? Please tip the author!
  • Tags

    abc apec australia battlestar_galactica Bilby blog blogging canberra censorship colours cookbook csiro Cygnet david_hicks facebook fish flickr food golden_compass google iran kids lateline Life map nasa perth princess_bride Puggle qantas Religion slashdot smartrider snail_mail spam star_trek stephen_conroy sydney transperth uwa uwa_wahoo_songbook western_australia wordpress world_of_warcraft wsc2009
  • Pages

  • Archives

  • Meta