Re: [Tutor] differences between mmap and StringIO

2010-07-08 Thread Christopher King
Well, I would just use the builting function open. I think Nick said in the beggining. Or, I would use the module I created. It's a file object, with the property file_txt. Unlike the other modules which you have to use read and write methods, I made a method which allows you to manulipulate like a

Re: [Tutor] differences between mmap and StringIO

2010-07-07 Thread Nick Raptis
Actually, for simple file operations I'd neither. Standard file usage is described here, if you haven't checked it out, which I'm sure you have http://docs.python.org/library/stdtypes.html#file-objects StringIO is useful as a buffer. That is, you make a file-like object in memory with StringI

[Tutor] differences between mmap and StringIO

2010-07-07 Thread Eduardo Vieira
Hello, I'm getting confused about the usage of those 2 modules. Which should I use one to get/manipulate data from a text file? Regards, Eduardo www.express-sign-supply.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription op