Anybody familiar with pygments ?

2013-05-08 Thread dabaichi
Hello guys: pygments version: 1.6 python version :3.3.1(64bits, use msi installer install) os:windows 7 (64bits) Hereis my python source code: #!/usr/bin/env python #-*- coding=utf-8 -*- import os import sys from pygments import highlight as html_highlight from pygments.lexers import get_lexer_b

python2 input

2013-05-03 Thread dabaichi
Hello guys: Do you have found that the built-in input() function is dangerous. Here is my code(python 2.x only): a = input("Input anything:") print("go here") If I input: sys.exit(0) print("go here") will not be execute, and the script will exit. --- news://freenews.netfront.net/ - complaints: