[Tutor] how to join two different files

wesley chun wescpy at gmail.com
Sat Jul 18 09:57:42 CEST 2009


on a related note, there is a module called fileinput that doesn't do
what you (the OP) need for this particular problem, but it is one to
keep in mind for the future as there may be a situation for which it
is the right tool. it doesn't get a lot of buzz but can come in handy
-- for me, it was in a code golf* contest. :-)

http://docs.python.org/library/fileinput.html

* - on the topic of code golf -- http://codegolf.com -- certainly,
solutions for these contests shouldn't be placed in production, but
they are fun and interesting challenges while exercising your
knowledge of a programming language.

best regards,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
    http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com


More information about the Tutor mailing list