# More Python Madness

The "==" operator calls "__eq__". The "!=" operator calls "__ne__", NOT "not __eq__". In fact, the two have no relationship at all!

Wednesday, September 27, 2006

# Still Hating Python

$ python
>>> class TestClass:
...   def __init__(self):
...     self.x = "X"
...   def __str__(self):
...     return self.x
...
>>> test = TestClass()
>>> str(test)
'X'
>>> test_list = [TestClass(), TestClass(), TestClass()]
>>> test_list
[<__main__.TestClass instance at 0xb7d1a4ec>,
 <__main__.TestClass instance at 0xb7d1a50c>, 
 <__main__.TestClass instance at 0xb7d1a52c>]
>>> str(test_list)
'[<__main__.TestClass instance at 0xb7d1a4ec>, 
  <__main__.TestClass instance at 0xb7d1a50c>, 
  <__main__.TestClass instance at 0xb7d1a52c>]'
>>> print test_list
[<__main__.TestClass instance at 0xb7d1a4ec>,
 <__main__.TestClass instance at 0xb7d1a50c>, 
 <__main__.TestClass instance at 0xb7d1a52c>]
>>> print test_list[0]
'X'

list.__str__() calls __repr__() on each item, not __str__()???!!!

Wednesday, September 27, 2006

# Avshalom Gur

London Fashion Week Show, 20th September

Photographers at Avshalom Gur's London Fashion Week Show

Avshalom Gur's London Fashion Week Show

Avshalom Gur's London Fashion Week Show

Avshalom Gur's London Fashion Week Show

Avshalom Gur's London Fashion Week Show

Avshalom Gur's London Fashion Week Show

Avshalom Gur's London Fashion Week Show

Avshalom Gur's London Fashion Week Show

Tuesday, September 26, 2006

# Default is the New Configuration

Stages of Windows Mastery:

  1. Everything default, through lack of knowledge.
  2. Skinning applications and option tweaking.
  3. The "power user" with shell extensions.
  4. Replacement shells, registry hacks.
  5. Everything default, state of zen.

Sunday, September 17, 2006

# C Can Be Slow Going

How to send an email in C

Saturday, September 16, 2006

# del.icio.us is Dead

Front page link to THIS??? Probably the worst article on programming languages ever written.

'Most argue that VB.Net is currently more popular than ever and one of the only "must-learns."'. Purrrlease!

Saturday, September 16, 2006

# Python Monstrosity

",".join(list)

not

list.join(",")

Oh no.

Tuesday, September 05, 2006