config root man

Current Path : /usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/test/test_parser.pyo

³ò
h”Rc@s¤ddkZddkZddkZddklZdeifd„ƒYZdeifd„ƒYZdeifd„ƒYZd	„Z	e
d
joe	ƒndS(iÿÿÿÿN(ttest_supporttRoundtripLegalSyntaxTestCasecBseZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„ZRS(cCsz||ƒ}|iƒ}yti|ƒ}Wn/tij
o }|id||fƒnX|i||iƒdƒdS(Nscould not roundtrip %r: %ss!could not re-generate syntax tree(ttotupletparsertsequence2sttParserErrortfailtassertEquals(tselftftstst1tttst2twhy((s,/usr/local/lib/python2.5/test/test_parser.pyt	roundtripscCs|iti|ƒdS(N(RRtexpr(RR
((s,/usr/local/lib/python2.5/test/test_parser.pyt
check_exprscCs|iti|ƒdS(N(RRtsuite(RR
((s,/usr/local/lib/python2.5/test/test_parser.pytcheck_suitescCs­|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id	ƒ|id
ƒ|idƒ|idƒ|id
ƒdS(Nsdef f(): yield 1sdef f(): yieldsdef f(): x += yieldsdef f(): x = yield 1sdef f(): x = y = yield 1sdef f(): x = yieldsdef f(): x = y = yieldsdef f(): 1 + (yield)*2sdef f(): (yield 1)*2sdef f(): return; yield 1sdef f(): yield 1; returns1def f():
    for x in range(30):
        yield x
s)def f():
    if (yield):
        yield x
(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_yield_statements











cCså|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id	ƒ|id
ƒ|idƒ|idƒ|id
ƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id ƒ|id!ƒ|id"ƒ|id#ƒ|id$ƒ|id%ƒdS(&Nsfoo(1)s	[1, 2, 3]s[x**3 for x in range(20)]s"[x**3 for x in range(20) if x % 3]s+[x**3 for x in range(20) if x % 2 if x % 3]slist(x**3 for x in range(20))s&list(x**3 for x in range(20) if x % 3)s/list(x**3 for x in range(20) if x % 2 if x % 3)s
foo(*args)sfoo(*args, **kw)s	foo(**kw)sfoo(key=value)sfoo(key=value, *args)sfoo(key=value, *args, **kw)sfoo(key=value, **kw)sfoo(a, b, c, *args)sfoo(a, b, c, *args, **kw)sfoo(a, b, c, **kw)s	foo + bars	foo - bars	foo * bars	foo / bars
foo // bars	lambda: 0slambda x: 0slambda *y: 0slambda *y, **z: 0s
lambda **z: 0slambda x, y: 0slambda foo=bar: 0s"lambda foo=bar, spaz=nifty+spit: 0slambda foo=bar, **z: 0s#lambda foo=bar, blaz=blat+2, **z: 0s'lambda foo=bar, blaz=blat+2, *y, **z: 0slambda x, *y, **z: 0s(x for x in range(10))sfoo(x for x in range(10))(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_expressions2sJ



































cCsR|idƒ|idƒ|idƒ|idƒ|idƒ|idƒdS(Ntprintsprint 1sprint 1,s
print >>fps
print >>fp, 1sprint >>fp, 1,(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyt
test_printYs




cCs|idƒdS(Nta(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_simple_expressionascCs|idƒ|idƒdS(Nsa = bsa = b = c = d = e(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_simple_assignmentses
cCs |idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id	ƒ|id
ƒ|idƒ|idƒdS(
Nsa += bsa -= bsa *= bsa /= bsa //= bsa %= bsa &= bsa |= bsa ^= bsa <<= bsa >>= bsa **= b(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyt!test_simple_augmented_assignmentsis










cCsû|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id	ƒ|id
ƒ|idƒ|idƒ|id
ƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒdS(Ns
def f(): passsdef f(*args): passsdef f(*args, **kw): passsdef f(**kw): passsdef f(foo=bar): passsdef f(foo=bar, *args): passs!def f(foo=bar, *args, **kw): passsdef f(foo=bar, **kw): passsdef f(a, b): passsdef f(a, b, *args): passsdef f(a, b, *args, **kw): passsdef f(a, b, **kw): passsdef f(a, b, foo=bar): passs!def f(a, b, foo=bar, *args): passs'def f(a, b, foo=bar, *args, **kw): passs def f(a, b, foo=bar, **kw): passs@staticmethod
def f(): passs,@staticmethod
@funcattrs(x, y)
def f(): passs@funcattrs()
def f(): pass(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_function_defsws&

















cCs|idƒdS(Nsclass foo():pass(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_class_defs’scCsá|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id	ƒ|id
ƒ|idƒ|idƒ|id
ƒ|idƒ|idƒ|idƒ|idƒdS(Nsfrom sys.path import *sfrom sys.path import dirnamesfrom sys.path import (dirname)sfrom sys.path import (dirname,)s*from sys.path import dirname as my_dirnames,from sys.path import (dirname as my_dirname)s-from sys.path import (dirname as my_dirname,)s&from sys.path import dirname, basenames(from sys.path import (dirname, basename)s)from sys.path import (dirname, basename,)s4from sys.path import dirname as my_dirname, basenames6from sys.path import (dirname as my_dirname, basename)s7from sys.path import (dirname as my_dirname, basename,)s5from sys.path import dirname, basename as my_basenames7from sys.path import (dirname, basename as my_basename)s8from sys.path import (dirname, basename as my_basename,)sfrom .bogus import x(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_import_from_statement•s.









cCsE|idƒ|idƒ|idƒ|idƒ|idƒdS(Ns
import syssimport sys as systemsimport sys, mathsimport sys as system, mathsimport sys, math as my_math(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_basic_import_statement®s




cCs|idƒdS(Ns"# -*- coding: iso-8859-1 -*-
pass
(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_pep263µscCs|idƒdS(Nsassert alo < ahi and blo < bhi
(R(R((s,/usr/local/lib/python2.5/test/test_parser.pyttest_assert¹s(t__name__t
__module__RRRRRRRRRRRRRR R!(((s,/usr/local/lib/python2.5/test/test_parser.pyRs					'									tIllegalSyntaxTestCasecBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCs?yti|ƒWntij
onX|id|ƒdS(Ns"did not detect invalid tree for %r(RRRR(Rttreetlabel((s,/usr/local/lib/python2.5/test/test_parser.pytcheck_bad_treeÃs
cCs|iddƒdS(Niiis<junk>(iii(R'(R((s,/usr/local/lib/python2.5/test/test_parser.pyt	test_junkËsc$CsLddddd-d.dd/d0fd1dd2d3dddddd4ddddddddd d!d"d#d$d%d5fffffffffffffffffddddd(d6ddddddddd d!d"d#d$d%d7fffffffffffffffffd8ffd9ffffd:d;fff}|i|d,ƒdS(<NiiiiitdefR	iit(it)it:i#itii	i
iitreturni9i$i%i&i'i)i*i+i,i-i.i/i0i1it1ityieldiisdef f():
  return 1
  yield 1(iR)(iR	(iR*(iR+(iR,(iR-(iR-(iR.(iR/(iR0(iR/(iR-(iR-(iR-(iR-(R'(RR%((s,/usr/local/lib/python2.5/test/test_parser.pyttest_illegal_yield_1ÏsfB?	c%Csdddddd4dd5fd6dd7fffd8ffdddd9d:dd;d<fd=dd>d?dddddd@dd d!d"d#d$d%d&d'd(d)d*d+d,dAfffffffffffffffffddddd/dBdd d!d"d#d$d%d&d'd(d)d*d+d,dCfffffffffffffffffdDffdEffffdFdGfff}|i|d3ƒdS(HNiii	i
iitfromit
__future__timportit
generatorsiR-iiR)R	iiR*iR+iR,i#iiiR.i9i$i%i&i'i)i*i+i,i-i.i/i0i1iR/iR0iisdef f():
  return 1
  yield 1(iR2(is
__future__(isimport(iR5(iR-(isdef(iR	(iR*(iR+(iR,(iR-(iR-(isreturn(iR/(isyield(iR/(iR-(iR-(iR-(iR-(R'(RR%((s,/usr/local/lib/python2.5/test/test_parser.pyttest_illegal_yield_2sx		B?	cCs•dddddddd
ddd
dddddddddd fffffffffffffd!ffd"ffd#f}|i|dƒdS($Niii	i
iiRi#s>>i"i#i$i%i'i(i)i*i+i,i-i.i/tfpit,iR-isprint >>fp,(isprint(i#s>>(isfp(iR8(iR-(iR-(R'(RR%((s,/usr/local/lib/python2.5/test/test_parser.pyttest_print_chevron_commaFs&<			cCsÑddddddddd	d
ddd
dddfffffffffffffddddddddd	d
ddd
dddffffffffffffffddf}|i|dƒdS(Nii7i"i#i$i%i'i(i)i*i+i,i-i.i/iRiR8tciR-isa,,c(iR(iR8(iR8(iR:(iR-(iR-(R'(RR%((s,/usr/local/lib/python2.5/test/test_parser.pyttest_a_comma_comma_c]s.<?	cCsòddddddddd	d
ddd
dddddddffffffffffffffddfdddd	d
ddd
ddddddd ffffffffffffffffd!ffd"f}|i|dƒdS(#Niii	i
ii8i#i$i%i&i(i)i*i+i,i-i.i/i0iRii%s$=tbiR-isa $= b(iR(i%s$=(iR<(iR-(iR-(R'(RR%((s,/usr/local/lib/python2.5/test/test_parser.pyttest_illegal_operatorxs:<	B		cCsAddddddffd
ffddf}|i|dƒdS(Niii	i
iitfooiR-ismalformed global ast(iR>(iR-(iR-(iR-(R'(RR%((s,/usr/local/lib/python2.5/test/test_parser.pyttest_malformed_global™s	(
R"R#R'R(R1R6R9R;R=R?(((s,/usr/local/lib/python2.5/test/test_parser.pyR$Ás			7	@			!tCompileTestCasecBs#eZd„Zd„Zd„ZRS(cCs8tidƒ}ti|ƒ}|it|ƒdƒdS(Ns2 + 3i(RRt	compilestRteval(Rtsttcode((s,/usr/local/lib/python2.5/test/test_parser.pyttest_compile_expr©scBsDeidƒ}ei|ƒ}h}||U|i|ddƒdS(Nsx = 2; y = x + 3tyi(RRRAR(RRCRDtglobs((s,/usr/local/lib/python2.5/test/test_parser.pyttest_compile_suite®s
cCs)tidƒ}|itti|ƒdS(Ns	1 = 3 + 4(RRtassertRaisestSyntaxErrorRA(RRC((s,/usr/local/lib/python2.5/test/test_parser.pyttest_compile_errorµs(R"R#RERHRK(((s,/usr/local/lib/python2.5/test/test_parser.pyR@¥s		cCstitttƒdS(N(Rtrun_unittestRR$R@(((s,/usr/local/lib/python2.5/test/test_parser.pyt	test_main¹st__main__(RtostunittestttestRtTestCaseRR$R@RMR"(((s,/usr/local/lib/python2.5/test/test_parser.pys<module>sµä	


Man Man