Changes between Version 55 and Version 56 of RepyV2API

Changes between Version 55 and Version 56 of RepyV2API

Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.

Changes between Version 55 and Version 56 of RepyV2API

Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.

Changes between Version 55 and Version 56 of RepyV2API

Show
Ignore:
Timestamp:
12/23/09 21:37:00 (10 years ago)
Author:
justinc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RepyV2API

    v55 v56  
    413413 
    414414[[BR]] 
    415 ==== openfile(filename, writeable=False, create=False) ==== 
     415==== openfile(filename, create) ==== 
    416416---- 
    417417 
     
    422422Filenames may only be in the current directory and contain lowercase letters, numbers, the hyphen, underscore, and period character and may not be '.' or '..'.   There is no concept of a directory or a folder in repy.  Filenames must be no more than 30 characters long. 
    423423 
    424 The writeable parameter determines whether the file handle is read-only or capable of both reading and writing. Neither mode truncates the file on open. 
    425  
    426 If create is True, the file is created if it does not exist. 
     424Every file object is capable of both reading and writing.  
     425 
     426If create is True, the file is created if it does not exist.   Neither mode truncates the file on open. 
     427 
    427428 
    428429 * Doc string: 
     
    435436        filename: 
    436437           The file that should be operated on 
    437         writeable: 
    438            The mode: 
    439               False:  Open the file for reading. 
    440               True: Open the file for reading and writing. 
    441  
    442               Note: files are always opened in "binary" mode. 
    443438 
    444439        create: 
     
    448443        TypeError/ValueError if one of the arguments is invalid (this includes e.g. the length being longer than 255 characters) 
    449444 
    450         FileNotFoundError if the file does not exist. 
     445        FileNotFoundError if the file does not exist and create is false. 
     446 
     447        XXXException if the file is already opened.   (This is handled at the system library level) 
    451448 
    452449        An internal error will cause the program to terminate if the file has incorrect permissions or similar errors occur.