[Python-Dev] PEP 278 - finished? (original) (raw)
Gordon McMillan gmcm@hypernet.com
Thu, 11 Apr 2002 18:04:28 -0400
- Previous message: [Python-Dev] PEP 278 - finished?
- Next message: [Python-Dev] PEP 278 - finished?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 11 Apr 2002 at 16:56, Gustavo Niemeyer wrote:
> How can you reliably update a file if there's no > obvious mapping between file position and character > position?
If you're updating a text file, the relation is probably about line position, not file position.
That's in the logical file. In the physical file, there may be 1 or 2 character line endings. Mixed. So knowing I want line 7 doesn't help me seek to it on disk.
No Windows programmer ever uses "+" without "b" without regret ;-(.
-- Gordon http://www.mcmillan-inc.com/
- Previous message: [Python-Dev] PEP 278 - finished?
- Next message: [Python-Dev] PEP 278 - finished?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]