Tools

Python

Lessons from Python

(back to the tools page)

From personal usage

  • debugging
    • python -m pdb mycode.py
      • (Pdb) break 68 set breakpoint at the line 68
      • (Pdb) c continue until the next breakpoint
      • allow to test for the different values interactively
  • supybot-plugin-create : Supybot command to generate a plugin template (basic source and license)

Sysadmin

On going projects

Mostly discontinued for now

Principle

  1. read our current position on the log file (last successful writing in the wiki)
    1. if no current position, create it and start at 0
  2. read the log file from this position to the end of the file
  3. write the content in the wiki
  4. update the current position in the log file to the current end of file
  5. return an explicit value and quit

References

To explore

  • pylint analyzes Python source code looking for bugs and signs of poor quality.

Note

My notes on Tools gather what I know or want to know. Consequently they are not and will never be complete references. For this, official manuals and online communities provide much better answers.

GreenMarinee theme adapted by David Gilbert, powered by PmWiki