All Samples(605) | Call(20) | Derive(0) | Import(585)
file(name[, mode[, buffering]]) -> file object Open a file. The mode can be 'r', 'w' or 'a' for reading (default), writing or appending. The file will be created if it doesn't exist when opened for writing or appending; it will be truncated when opened for writing. Add a 'b' to the mode for binary files. Add a '+' to the mode to allow simultaneous reading and writing. If the buffering argument is given, 0 means unbuffered, 1 means line buffered, and larger numbers specify the buffer size. The preferred way to open a file is with the builtin open() function. Add a 'U' to mode to open the file for input with universal newline support. Any line ending in the input file will be seen as a '\n' in Python. Also, a file so opened gains the attribute 'newlines'; the value for this attribute is one of None (no newline read yet), '\r', '\n', '\r\n' or a tuple containing all the newline types seen. 'U' cannot be combined with 'w' or '+' mode.
src/b/a/badger-lib-HEAD/packages/pyparsing/examples/pymicko.py badger-lib(Download)
# A copy of the GNU General Public License can be found at <http://www.gnu.org/licenses/>. from pyparsing import * from sys import stdin, stdout, stderr, argv, exit #defines debug level # 0 - no debug
src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/raytracer/stitch_tasks.py quickflash(Download)
def main() :
from sys import argv, exit, stdout, stderr
argc = len(argv)
min_args = int(4)
src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/raytracer/build_tasklist.py quickflash(Download)
def main() :
from sys import argv, exit, stderr, stdout
argc = len(argv)
min_args = int(4)
src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/raytracer/reformat_idl_frame.py quickflash(Download)
pass
from sys import argv, exit, stdout, stderr
def main() :
src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/particle_extract/particle_worker.py quickflash(Download)
if (__name__ == "__main__") :
from sys import argv, exit, stdout, stderr
argc = len(argv)
src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/omega_analysis/generate_webpage.py quickflash(Download)
#!/usr/bin/env python from sys import argv, exit, stdout, stderr from os import path import metadata_reader
src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/flame_slicer/generate_webpage.py quickflash(Download)
#!/usr/bin/env python from sys import argv, exit, stdout, stderr from os import path import metadata_reader
src/q/u/quickflash-HEAD/trunk/examples/flame_struct/collection_metadata.py quickflash(Download)
def __read_metadata(self, metadata_file) :
from sys import stderr
## To be called by Metadata.reset()
f = open(metadata_file, "r")
if (__name__ == "__main__") :
from sys import argv, exit, stdout, stderr
from os import path
argc = len(argv)
src/q/u/quickflash-HEAD/rtflame/examples/flame_struct/collection_metadata.py quickflash(Download)
def __read_metadata(self, metadata_file) :
from sys import stderr
## To be called by Metadata.reset()
f = open(metadata_file, "r")
if (__name__ == "__main__") :
from sys import argv, exit, stdout, stderr
from os import path
argc = len(argv)
src/q/u/quickflash-HEAD/netcdf/examples/flame_struct/collection_metadata.py quickflash(Download)
def __read_metadata(self, metadata_file) :
from sys import stderr
## To be called by Metadata.reset()
f = open(metadata_file, "r")
if (__name__ == "__main__") :
from sys import argv, exit, stdout, stderr
from os import path
argc = len(argv)
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next