Coding style is not clearly defined. Please ask authors directly :-)

Perhaps also consider PEP 8.

But this document should give a first help to understand coding style.

Points to choose a solution

  • Prefer elegant but slow solution instead of ugly but fast solution
  • If elegant solution is 5% slower, find another elegant solution :-D

Principles

  • Hachoir splits a file in fields
  • Hachoir doesn't create new field (with virtual address/virtual size)
  • Hachoir may transform a field value to make it easy to edit/display

Naming convention

  • Function name: functionName
  • Method name: methodName
  • Class name: ClassName
  • Variable name: variable_name
  • Constant name: CONSTANT_NAME