Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

python help

Name: lol 2009-02-27 0:32

data = inFile.readlines()

when i do that it returns the lines as strings including the "\n"
i however need those to gtfo, how do i do this?

Name: Anonymous 2009-02-27 6:46

>>1
data = itertools.map(string.rstrip, inFile.readlines())

>>2
Slow as FUCK

>>3
Shit.

>>4
Not elegant

>>5
I chomp'd you're mother.

>>6
Perfect.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List