/external/python/cpython2/Lib/compiler/ |
D | ast.py | 51 return "Expression(%s)" % (repr(self.node)) 66 return "Add((%s, %s))" % (repr(self.left), repr(self.right)) 82 return "And(%s)" % (repr(self.nodes),) 98 return "AssAttr(%s, %s, %s)" % (repr(self.expr), repr(self.attrname), repr(self.flags)) 114 return "AssList(%s)" % (repr(self.nodes),) 129 return "AssName(%s, %s)" % (repr(self.name), repr(self.flags)) 145 return "AssTuple(%s)" % (repr(self.nodes),) 167 return "Assert(%s, %s)" % (repr(self.test), repr(self.fail)) 188 return "Assign(%s, %s)" % (repr(self.nodes), repr(self.expr)) 204 return "AugAssign(%s, %s, %s)" % (repr(self.node), repr(self.op), repr(self.expr)) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_repr.py | 12 from repr import repr as r # Don't shadow builtin repr 13 from repr import Repr 30 expected = repr(s)[:13] + "..." + repr(s)[-14:] 33 eq(r("\"'"), repr("\"'")) 35 expected = repr(s)[:13] + "..." + repr(s)[-14:] 47 expected = repr(t3)[:-2] + "...)" 48 eq(r2.repr(t3), expected) 105 eq(r(123), repr(123)) 106 eq(r(123L), repr(123L)) 107 eq(r(1.0/3), repr(1.0/3)) [all …]
|
D | test_univnewlines2k.py | 53 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 59 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 69 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 110 self.assertEqual(repr(fp.newlines), repr(None)) 113 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
|
/external/python/cpython3/Lib/test/ |
D | test_reprlib.py | 14 from reprlib import repr as r # Don't shadow builtin repr 33 expected = repr(s)[:13] + "..." + repr(s)[-14:] 36 eq(r("\"'"), repr("\"'")) 38 expected = repr(s)[:13] + "..." + repr(s)[-14:] 50 expected = repr(t3)[:-2] + "...)" 51 eq(r2.repr(t3), expected) 122 eq(r(123), repr(123)) 123 eq(r(123), repr(123)) 124 eq(r(1.0/3), repr(1.0/3)) 127 expected = repr(n)[:18] + "..." + repr(n)[-19:] [all …]
|
D | test_module.py | 28 self.fail("__name__ = %s" % repr(s)) 183 self.assertEqual(repr(m), "<module '?'>") 187 self.assertEqual(repr(m), "<module 'foo'>") 192 self.assertEqual(repr(m), "<module 'foo' from '/tmp/foo.py'>") 198 self.assertEqual(repr(m), "<module '?' from '/tmp/foo.py'>") 203 self.assertEqual(repr(m), "<module 'foo'>") 210 loader_repr = repr(BareLoader) 212 repr(m), "<module '?' ({})>".format(loader_repr)) 222 loader_repr = repr(FullLoader) 224 repr(m), "<module '?' ({})>".format(loader_repr)) [all …]
|
D | test_univnewlines.py | 62 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 68 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 78 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE)) 109 self.assertEqual(repr(fp.newlines), repr(None)) 112 self.assertEqual(repr(fp.newlines), repr(self.NEWLINE))
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | TwineTest.cpp | 20 std::string repr(const Twine &Value) { in repr() function 60 repr(Twine("hi").concat(Twine::createNull()))); in TEST() 62 repr(Twine::createNull().concat(Twine("hi")))); in TEST() 66 repr(Twine("hi").concat(Twine()))); in TEST() 68 repr(Twine().concat(Twine("hi")))); in TEST() 70 repr(Twine().concat(Twine(SmallString<5>("hi"))))); in TEST() 72 repr(Twine(formatv("howdy")).concat(Twine()))); in TEST() 74 repr(Twine().concat(Twine(formatv("howdy"))))); in TEST() 76 repr(Twine(SmallString<7>("hey")).concat(Twine("there")))); in TEST() 80 repr(Twine("a").concat(Twine("b")))); in TEST() [all …]
|
/external/python/cpython2/Modules/ |
D | cgen.py | 238 print 'arg' + repr(i+1) + ket, 255 database[n-1] = b_type, 'i', a_factor, repr(i) 287 print repr(n_in_args) + ',', 288 print repr(in_pos[j]) + ',', 291 print '&arg' + repr(i+1) + '))' 294 print '\targ' + repr(i+1), 295 print '= arg' + repr(i+1), 300 print '\tif ((arg' + repr(i+1), '=', 311 print repr(n_in_args) + ',', 312 print repr(in_pos[i]) + ',', [all …]
|
/external/llvm/unittests/ADT/ |
D | TwineTest.cpp | 18 std::string repr(const Twine &Value) { in repr() function 57 repr(Twine("hi").concat(Twine::createNull()))); in TEST() 59 repr(Twine::createNull().concat(Twine("hi")))); in TEST() 63 repr(Twine("hi").concat(Twine()))); in TEST() 65 repr(Twine().concat(Twine("hi")))); in TEST() 67 repr(Twine().concat(Twine(SmallString<5>("hi"))))); in TEST() 69 repr(Twine(SmallString<7>("hey")).concat(Twine("there")))); in TEST() 73 repr(Twine("a").concat(Twine("b")))); in TEST() 77 repr(Twine("a").concat(Twine("b")).concat(Twine("c")))); in TEST() 79 repr(Twine("a").concat(Twine("b").concat(Twine("c"))))); in TEST() [all …]
|
/external/fonttools/Tests/pens/ |
D | pointPen_test.py | 103 self.assertEqual("10 10 moveto 10 20 lineto endpath", repr(pen)) 113 self.assertEqual("10 10 moveto 10 20 lineto 20 20 lineto closepath", repr(pen)) 124 self.assertEqual("10 10 moveto 10 20 20 20 20 40 curveto closepath", repr(pen)) 135 self.assertEqual("10 10 moveto 10 40 40 40 10 40 qcurveto closepath", repr(pen)) 145 self.assertEqual("10 10 10 40 40 40 None qcurveto closepath", repr(pen)) 158 repr(tpen)) 169 repr(tpen)) 181 repr(tpen)) 191 "segmentType='curve') endPath()", repr(tpen)) 202 repr(tpen)) [all …]
|
D | basePen_test.py | 51 self.assertEqual("0.5 -4.3 moveto", repr(pen)) 58 self.assertEqual("4 5 moveto 7 8 lineto", repr(pen)) 70 self.assertEqual("0.0 0.0 moveto 1.0 1.1 lineto", repr(pen)) 78 repr(pen)) 87 "2.5 2.6 3.0 3.1 4.0 4.1 curveto", repr(pen)) 99 self.assertEqual("0.0 0.0 moveto 77.7 99.9 lineto", repr(pen)) 107 repr(pen)) 118 "17.0 -13.0 16.0 -16.0 12.0 -12.0 curveto", repr(pen)) 125 self.assertEqual("3 4 lineto closepath", repr(pen)) 132 self.assertEqual("3 4 lineto endpath", repr(pen)) [all …]
|
/external/python/cpython2/Tools/scripts/ |
D | checkpyc.py | 20 print 'Using MAGIC word', repr(MAGIC) 25 print 'Cannot list directory', repr(dirname) 28 print 'Checking ', repr(dirname), '...' 36 print 'Cannot stat', repr(name) 39 print 'Check', repr(name), '...' 44 print 'Cannot open', repr(name_c) 51 print repr(name_c) 55 print 'Bad ".pyc" file', repr(name_c) 58 print repr(name_c)
|
/external/python/cpython3/Tools/scripts/ |
D | checkpyc.py | 23 print('Using MAGIC word', repr(MAGIC)) 28 print('Cannot list directory', repr(dirname)) 31 print('Checking ', repr(dirname), '...') 38 print('Cannot stat', repr(name)) 41 print('Check', repr(name), '...') 48 print('Cannot open', repr(name_c)) 52 print(repr(name_c)) 56 print('Bad ".pyc" file', repr(name_c)) 59 print(repr(name_c))
|
/external/python/cpython2/Doc/library/ |
D | repr.rst | 1 :mod:`repr` --- Alternate :func:`repr` implementation 4 .. module:: repr 5 :synopsis: Alternate repr() implementation with size limits. 10 The :mod:`repr` module has been renamed to :mod:`reprlib` in Python 3. The 14 **Source code:** :source:`Lib/repr.py` 18 The :mod:`repr` module provides a means for producing object representations 28 similar to the built-in :ref:`repr() <func-repr>`; size limits for different 35 This is an instance of :class:`Repr` which is used to provide the :func:`.repr` 37 the size limits used by :func:`.repr` and the Python debugger. 40 .. function:: repr(obj) [all …]
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | atomic_gcc_sync.h | 87 type volatile repr; \ 96 type result = a->repr; \ 109 a->repr = val; \ 123 type old = a->repr; \ 124 if (__sync_bool_compare_and_swap(&a->repr, old, val)) { \ 134 type prev = __sync_val_compare_and_swap(&a->repr, *expected, \ 147 type prev = __sync_val_compare_and_swap(&a->repr, *expected, \ 164 return __sync_fetch_and_add(&a->repr, val); \ 170 return __sync_fetch_and_sub(&a->repr, val); \ 176 return __sync_fetch_and_and(&a->repr, val); \ [all …]
|
D | atomic_gcc_atomic.h | 42 type repr; \ 49 __atomic_load(&a->repr, &result, atomic_enum_to_builtin(mo)); \ 56 __atomic_store(&a->repr, &val, atomic_enum_to_builtin(mo)); \ 63 __atomic_exchange(&a->repr, &val, &result, \ 72 return __atomic_compare_exchange(&a->repr, expected, &desired, \ 81 return __atomic_compare_exchange(&a->repr, expected, &desired, \ 95 return __atomic_fetch_add(&a->repr, val, \ 102 return __atomic_fetch_sub(&a->repr, val, \ 109 return __atomic_fetch_and(&a->repr, val, \ 116 return __atomic_fetch_or(&a->repr, val, \ [all …]
|
/external/swiftshader/third_party/LLVM/unittests/ADT/ |
D | TwineTest.cpp | 18 std::string repr(const Twine &Value) { in repr() function 56 repr(Twine("hi").concat(Twine::createNull()))); in TEST() 58 repr(Twine::createNull().concat(Twine("hi")))); in TEST() 62 repr(Twine("hi").concat(Twine()))); in TEST() 64 repr(Twine().concat(Twine("hi")))); in TEST() 68 repr(Twine("a").concat(Twine("b")))); in TEST() 72 repr(Twine("a").concat(Twine("b")).concat(Twine("c")))); in TEST() 74 repr(Twine("a").concat(Twine("b").concat(Twine("c"))))); in TEST()
|
/external/libxml2/python/tests/ |
D | outbuf.py | 38 print(' got: %s' % repr(f.getvalue())) 39 print('expected: %s' % repr(expected)) 62 print(' got: %s' % repr(f.getvalue())) 63 print('expected: %s' % repr(expected[i])) 83 print(' got: %s' % repr(f.getvalue())) 84 print('expected: %s' % repr(expected)) 91 print(' got: %s' % repr(f.getvalue())) 92 print('expected: %s' % repr(expected))
|
/external/antlr/runtime/Python/tests/ |
D | t012lexerXML.py | 72 assert exc.unexpectedType == '>', repr(exc.unexpectedType) 73 assert exc.charPositionInLine == 11, repr(exc.charPositionInLine) 74 assert exc.line == 2, repr(exc.line) 96 assert exc.unexpectedType == 't', repr(exc.unexpectedType) 97 assert exc.charPositionInLine == 2, repr(exc.charPositionInLine) 98 assert exc.line == 1, repr(exc.line) 120 assert exc.unexpectedType == 'a', repr(exc.unexpectedType) 121 assert exc.charPositionInLine == 11, repr(exc.charPositionInLine) 122 assert exc.line == 2, repr(exc.line)
|
/external/python/cpython2/Demo/pdist/ |
D | cmptree.py | 4 from repr import repr 52 print "PWD =", repr(os.getcwd()) 67 print repr(name), "only remote" 73 print repr(name), 89 print repr(name), "only locally", 102 print "Common subdirectory", repr(name) 105 print "Remote subdirectory", repr(name), "not found locally" 108 repr(name) 116 repr(name) 121 print "Local subdirectory", repr(name), "not found remotely" [all …]
|
D | server.py | 7 from repr import repr 48 if self._verbose: print "Accepted connection from %s" % repr(address) 50 print "*** Connection from %s refused" % repr(address) 75 if self._verbose > 1: print "Got request: %s" % repr(request) 81 raise NameError, "illegal method name %s" % repr(methodname) 90 if self._verbose > 1: print "Send reply: %s" % repr(reply) 100 raise NameError, "unrecognized special method name %s" % repr(methodname) 137 print "Invalid response syntax", repr(response) 141 print "Invalid response value", repr(response)
|
/external/python/cpython2/Demo/classes/ |
D | Dbm.py | 16 t = repr(key) + ': ' + repr(self[key]) 25 return eval(self.db[repr(key)]) 28 self.db[repr(key)] = repr(value) 31 del self.db[repr(key)] 40 return self.db.has_key(repr(key))
|
/external/python/cpython2/Lib/ |
D | copy.py | 410 import repr 411 print map(repr.repr, l) 412 print map(repr.repr, l1) 413 print map(repr.repr, l2) 414 print map(repr.repr, l3) 416 import repr 417 print map(repr.repr, l) 418 print map(repr.repr, l1) 419 print map(repr.repr, l2) 420 print map(repr.repr, l3)
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ruby/ |
D | RubyTest.java | 60 Representer repr = new Representer(); in testEmitWithTags() local 61 repr.addClassTag(TestObject.class, new Tag("!ruby/object:Test::Module::Object")); in testEmitWithTags() 62 repr.addClassTag(Sub1.class, new Tag("!ruby/object:Test::Module::Sub1")); in testEmitWithTags() 63 repr.addClassTag(Sub2.class, new Tag("!ruby/object:Test::Module::Sub2")); in testEmitWithTags() 64 Yaml yaml2 = new Yaml(repr, options); in testEmitWithTags() 84 Representer repr = new Representer(); in testEmitWithTags2WithoutTagForParentJavabean() local 85 repr.addClassTag(Sub1.class, new Tag("!ruby/object:Test::Module::Sub1")); in testEmitWithTags2WithoutTagForParentJavabean() 86 repr.addClassTag(Sub2.class, new Tag("!ruby/object:Test::Module::Sub2")); in testEmitWithTags2WithoutTagForParentJavabean() 87 Yaml yaml2 = new Yaml(repr, options); in testEmitWithTags2WithoutTagForParentJavabean()
|
/external/freetype/src/tools/ |
D | cordic.py | 11 print "table of arctan( 1/2^n ) for PI = " + repr(units/65536.0) + " units" 23 sys.stdout.write( comma + repr( int(angle2) ) ) 29 print "shrink factor = " + repr( shrink ) 30 print "shrink factor 2 = " + repr( int( shrink * (2**32) ) ) 31 print "expansion factor = " + repr( 1/shrink )
|