/external/python/cpython2/Lib/test/ |
D | test_locale.py | 175 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20)) 178 out=('-4%s200' % self.sep).rjust(10)) 189 out=('4%s200' % self.sep).rjust(10)) 200 self._test_format("%20.f", -42, grouping=0, out='-42'.rjust(20)) 201 self._test_format("%+10.f", -4200, grouping=0, out='-4200'.rjust(10)) 215 out='--> ' + ('4%s200.00' % self.sep).rjust(10)) 218 out='1000.00'.rjust(10)) 221 out=('1%s000.00' % self.sep).rjust(10)) 325 self._test_format("%10d", 4200, grouping=True, out='4 200'.rjust(10))
|
D | test_unicode.py | 1781 check_format(u'123'.rjust(10, u'0'), 1783 check_format(u'123'.rjust(100), 1785 check_format(u'123'.rjust(100, u'0'), 1787 check_format(u'123'.rjust(80, u'0').rjust(100), 1790 check_format(u'123'.rjust(10, u'0'), 1792 check_format(u'123'.rjust(100), 1794 check_format(u'123'.rjust(100, u'0'), 1796 check_format(u'123'.rjust(80, u'0').rjust(100), 1799 check_format(u'123'.rjust(10, u'0'), 1801 check_format(u'123'.rjust(100), [all …]
|
D | test_bigmem.py | 271 s = SUBSTR.rjust(size) 340 s = SUBSTR.rjust(size) 402 s = SUBSTR.rjust(size)
|
D | test_descr.py | 2705 self.assertIs(s.rjust(len(s)).__class__, str) 2706 self.assertEqual(s.rjust(len(s)), base) 2746 self.assertIs(u.rjust(len(u)).__class__, unicode) 2747 self.assertEqual(u.rjust(len(u)), base)
|
D | string_tests.py | 597 self.assertEqual(b'*******abc', bytearray(b'abc').rjust(10, '*'))
|
/external/python/cpython2/Lib/ |
D | dis.py | 84 print repr(i).rjust(4), 93 print repr(oparg).rjust(5), 122 print repr(i).rjust(4), 128 print repr(oparg).rjust(5),
|
D | string.py | 436 def rjust(s, width, *args): function 444 return s.rjust(width, *args)
|
D | UserString.py | 113 def rjust(self, width, *args): member in UserString 114 return self.__class__(self.data.rjust(width, *args))
|
D | stringold.py | 278 def rjust(s, width): function
|
D | pstats.py | 420 substats = '%s %s %s %s' % (substats.rjust(7+2*len(indent)), 438 print >> self.stream, c.rjust(9),
|
D | pdb.py | 816 s = repr(lineno).rjust(3)
|
/external/python/cpython2/Tools/scripts/ |
D | byteyears.py | 56 print repr(int(byteyears)).rjust(8)
|
D | dutree.py | 54 print prefix + repr(tsub).rjust(width) + ' ' + key
|
/external/toolchain-utils/binary_search_tool/ |
D | binary_search_state.py | 419 seconds = str(seconds).rjust(2) 420 minutes = str(minutes).rjust(2) 421 hours = str(hours).rjust(2)
|
D | bisect.py | 78 key_str = str(key).rjust(max_key_len) 91 key_str = str(key).rjust(max_key_len)
|
/external/python/cpython2/Doc/tutorial/ |
D | inputoutput.rst | 74 ... print repr(x).rjust(2), repr(x*x).rjust(3), 76 ... print repr(x*x*x).rjust(4) 106 This example demonstrates the :meth:`str.rjust` method of string
|
/external/python/cpython2/Demo/tkinter/guido/ |
D | ss1.py | 16 def rjust(x, n): function 17 return x.rjust(n) 18 align2action = {LEFT: ljust, CENTER: center, RIGHT: rjust}
|
/external/python/cpython2/Demo/sockets/ |
D | gopher.py | 163 print string.rjust(repr(i+1), 3) + ':', description,
|
/external/python/cpython2/Tools/iobench/ |
D | iobench.py | 276 out.write(bw.rjust(12) + "\n")
|
/external/python/cpython2/Tools/ccbench/ |
D | ccbench.py | 410 _sendto(sock, ("%r#%s\n" % (local_addr, msg)).rjust(packet_size), addr)
|
/external/autotest/site_utils/ |
D | generate_test_report | 563 key_entry = key_entry.rjust(width)
|
/external/brotli/research/ |
D | brotlidump.py | 431 return b.rjust(leftColWidth)+':'+s.ljust(rightColWidth)
|
/external/python/cpython2/Doc/library/ |
D | string.rst | 1022 rjust(s, width[, fillchar])
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 495 s.rjust(width) return s right justified in a string of length width. (1), 1591 ljust/rjust/center Return a copy of string <s> left/right justified/centerd in
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.4.rst | 795 * The string methods :meth:`ljust`, :meth:`rjust`, and :meth:`center` now take
|