All Samples(99) | Call(0) | Derive(0) | Import(99)
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/r/e/reporter-lib-HEAD/packages/pyparsing/examples/pymicko.py reporter-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/p/y/pyparsing-1.5.5/examples/pymicko.py pyparsing(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/s/h/shedskin-HEAD/examples/brainfuck.py shedskin(Download)
# bfi - BrainFuck GNU interpreter, (C) 2002 Philippe Biondi, biondi@cartel-securite.fr
# Modified for ShedSkin, but can be used with Python/Psyco too
from sys import stdin, stdout, argv
def BF_interpreter(prog):
CELL = 255 # Or 65535 default 255
src/a/p/apbs-HEAD/trunk/examples/protein-rna/fit.py apbs(Download)
Nathan Baker, 2003""" import math from sys import stdin, stdout, stderr """ Accepts list of x,y pairs as input. Returns dictionary of resuls """ def fit(data):
src/a/p/apbs-HEAD/examples/protein-rna/fit.py apbs(Download)
Nathan Baker, 2003""" import math from sys import stdin, stdout, stderr """ Accepts list of x,y pairs as input. Returns dictionary of resuls """ def fit(data):
src/p/y/pyscard-HEAD/trunk/pyscard/src/smartcard/Examples/framework/sample_MonitorReaders.py pyscard(Download)
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA """ from sys import stdin, exc_info from time import sleep from smartcard.ReaderMonitoring import ReaderMonitor, ReaderObserver
src/p/y/pyscard-HEAD/pyscard/src/smartcard/Examples/framework/sample_MonitorReaders.py pyscard(Download)
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA """ from sys import stdin, exc_info from time import sleep from smartcard.ReaderMonitoring import ReaderMonitor, ReaderObserver
src/z/e/ZestyParser-0.8.1/examples/testy.py ZestyParser(Download)
from ZestyParser import *
from sys import stdin
T_HELLO = RE('(?i)hello', group=0)
T_SP = RE('\s+', group=0)
T_WORLD = RE('(?i)world', group=0)
T_EXCL = Raw('!')
src/z/e/ZestyParser-0.8.1/examples/sexp-bench.py ZestyParser(Download)
from sexp import parse from sys import stdin from datetime import datetime data = stdin.read() start_time = datetime.now()
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next