osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The trailing comma bites! You have a new tuple.


Just venting :-(

I've just wasted a surprising amount of time on a simple mistake.

Former code:

  task = IngestTask(...,
      logical_dirpath=join(source_dir, subdir, rpath),
      ...)

During a reworking it became this:

  logical_dirpath = join(
      source_dir,
      subdir,
      rpath
  ),
  task = IngestTask(...,
      logical_dirpath=logical_dirpath,
      ...)

Typing badness ensues. In a subsequent function call far far away.

Grumble,
Cameron Simpson <cs at cskk.id.au>