Better HN
topnewbestaskshowjobs
Log inSign up

dfsdfsdsfdsf

3 karma · joined Jul 30, 2008 (18y ago) · 3 submissions

Submissions

comment 17y ago · link · parent

More likely: s = "something < other" s = s.replace("<", "&lt;") Even more likely: import cgi s = cgi.escape(s)

In Python, much string manipulation is done with builtins (especially string methods) and library functions. The latter work especially well when you target a specific domain (such as HTML) and will often be implemented in regexps. Writing one's own regexps are for when you actually need a small custom state machine. Many problems are too small or too large to justify the effort.

comment 17y ago · link · parent

Start here: http://www.realclimate.org/index.php/archives/2007/05/start-...

comment 18y ago · link · parent

Lomborg is a menace:

http://climateprogress.org/2007/09/17/debunking-bjorn-lombor...