The py2tex package allows you to typeset Python programs with LaTeX. It can be downloaded from this page.
Comments
2004/02/10 18:40 CET (via web):
Congratulations for Py2tex. Some problems with the comments in python however (lines of ####### and underscores in comments,
also french accents like in é or è don't show on the output...) ericringeisen@hotmail.com
2004/02/11 17:43 CET (via web):
The problem with french accents can be solved in the LaTeX wrapper by including the "isolatin1" package:
\documentclass{article}
\usepackage{py2tex}
\usepackage{isolatin1}