| OLD | NEW |
| (Empty) |
| 1 | |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
| 3 <html><head><title>Python: module telemetry.core.os_version</title> | |
| 4 <meta charset="utf-8"> | |
| 5 </head><body bgcolor="#f0f0f8"> | |
| 6 | |
| 7 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | |
| 8 <tr bgcolor="#7799ee"> | |
| 9 <td valign=bottom> <br> | |
| 10 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.os_version</strong></big></big
></font></td | |
| 11 ><td align=right valign=bottom | |
| 12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/core/os_version.py">telemetry/core/os_version.py</a></font></td></
tr></table> | |
| 13 <p><tt># Copyright 2014 The Chromium Authors.
All rights reserved.<br> | |
| 14 # Use of this source code is governed by
a BSD-style license that can be<br> | |
| 15 # found in the LICENSE file.</tt></p> | |
| 16 <p> | |
| 17 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
| 18 <tr bgcolor="#ee77aa"> | |
| 19 <td colspan=3 valign=bottom> <br> | |
| 20 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | |
| 21 | |
| 22 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | |
| 23 <td width="100%"><dl> | |
| 24 <dt><font face="helvetica, arial"><a href="__builtin__.html#str">__builtin__.str
</a>(<a href="__builtin__.html#basestring">__builtin__.basestring</a>) | |
| 25 </font></dt><dd> | |
| 26 <dl> | |
| 27 <dt><font face="helvetica, arial"><a href="telemetry.core.os_version.html#OSVers
ion">OSVersion</a> | |
| 28 </font></dt></dl> | |
| 29 </dd> | |
| 30 </dl> | |
| 31 <p> | |
| 32 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
| 33 <tr bgcolor="#ffc8d8"> | |
| 34 <td colspan=3 valign=bottom> <br> | |
| 35 <font color="#000000" face="helvetica, arial"><a name="OSVersion">class <strong>
OSVersion</strong></a>(<a href="__builtin__.html#str">__builtin__.str</a>)</font
></td></tr> | |
| 36 | |
| 37 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | |
| 38 <td colspan=2><tt># pylint: disable=W0212<br> </tt></td></tr> | |
| 39 <tr><td> </td> | |
| 40 <td width="100%"><dl><dt>Method resolution order:</dt> | |
| 41 <dd><a href="telemetry.core.os_version.html#OSVersion">OSVersion</a></dd> | |
| 42 <dd><a href="__builtin__.html#str">__builtin__.str</a></dd> | |
| 43 <dd><a href="__builtin__.html#basestring">__builtin__.basestring</a></dd> | |
| 44 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | |
| 45 </dl> | |
| 46 <hr> | |
| 47 Methods defined here:<br> | |
| 48 <dl><dt><a name="OSVersion-__ge__"><strong>__ge__</strong></a>(self, other)</dt>
</dl> | |
| 49 | |
| 50 <dl><dt><a name="OSVersion-__gt__"><strong>__gt__</strong></a>(self, other)</dt>
</dl> | |
| 51 | |
| 52 <dl><dt><a name="OSVersion-__le__"><strong>__le__</strong></a>(self, other)</dt>
</dl> | |
| 53 | |
| 54 <dl><dt><a name="OSVersion-__lt__"><strong>__lt__</strong></a>(self, other)</dt>
</dl> | |
| 55 | |
| 56 <hr> | |
| 57 Static methods defined here:<br> | |
| 58 <dl><dt><a name="OSVersion-__new__"><strong>__new__</strong></a>(cls, friendly_n
ame, sortable_name, *args, **kwargs)</dt></dl> | |
| 59 | |
| 60 <hr> | |
| 61 Data descriptors defined here:<br> | |
| 62 <dl><dt><strong>__dict__</strong></dt> | |
| 63 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | |
| 64 </dl> | |
| 65 <hr> | |
| 66 Methods inherited from <a href="__builtin__.html#str">__builtin__.str</a>:<br> | |
| 67 <dl><dt><a name="OSVersion-__add__"><strong>__add__</strong></a>(...)</dt><dd><t
t>x.<a href="#OSVersion-__add__">__add__</a>(y) <==> x+y</tt></d
d></dl> | |
| 68 | |
| 69 <dl><dt><a name="OSVersion-__contains__"><strong>__contains__</strong></a>(...)<
/dt><dd><tt>x.<a href="#OSVersion-__contains__">__contains__</a>(y) <==&
gt; y in x</tt></dd></dl> | |
| 70 | |
| 71 <dl><dt><a name="OSVersion-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>
x.<a href="#OSVersion-__eq__">__eq__</a>(y) <==> x==y</tt></dd><
/dl> | |
| 72 | |
| 73 <dl><dt><a name="OSVersion-__format__"><strong>__format__</strong></a>(...)</dt>
<dd><tt>S.<a href="#OSVersion-__format__">__format__</a>(format_spec) ->
string<br> | |
| 74 <br> | |
| 75 Return a formatted version of S as described&
nbsp;by format_spec.</tt></dd></dl> | |
| 76 | |
| 77 <dl><dt><a name="OSVersion-__getattribute__"><strong>__getattribute__</strong></
a>(...)</dt><dd><tt>x.<a href="#OSVersion-__getattribute__">__getattribute__</a>
('name') <==> x.name</tt></dd></dl> | |
| 78 | |
| 79 <dl><dt><a name="OSVersion-__getitem__"><strong>__getitem__</strong></a>(...)</d
t><dd><tt>x.<a href="#OSVersion-__getitem__">__getitem__</a>(y) <==>&
nbsp;x[y]</tt></dd></dl> | |
| 80 | |
| 81 <dl><dt><a name="OSVersion-__getnewargs__"><strong>__getnewargs__</strong></a>(.
..)</dt></dl> | |
| 82 | |
| 83 <dl><dt><a name="OSVersion-__getslice__"><strong>__getslice__</strong></a>(...)<
/dt><dd><tt>x.<a href="#OSVersion-__getslice__">__getslice__</a>(i, j) 
;<==> x[i:j]<br> | |
| 84 <br> | |
| 85 Use of negative indices is not supported.</tt></dd
></dl> | |
| 86 | |
| 87 <dl><dt><a name="OSVersion-__hash__"><strong>__hash__</strong></a>(...)</dt><dd>
<tt>x.<a href="#OSVersion-__hash__">__hash__</a>() <==> hash(x)<
/tt></dd></dl> | |
| 88 | |
| 89 <dl><dt><a name="OSVersion-__len__"><strong>__len__</strong></a>(...)</dt><dd><t
t>x.<a href="#OSVersion-__len__">__len__</a>() <==> len(x)</tt><
/dd></dl> | |
| 90 | |
| 91 <dl><dt><a name="OSVersion-__mod__"><strong>__mod__</strong></a>(...)</dt><dd><t
t>x.<a href="#OSVersion-__mod__">__mod__</a>(y) <==> x%y</tt></d
d></dl> | |
| 92 | |
| 93 <dl><dt><a name="OSVersion-__mul__"><strong>__mul__</strong></a>(...)</dt><dd><t
t>x.<a href="#OSVersion-__mul__">__mul__</a>(n) <==> x*n</tt></d
d></dl> | |
| 94 | |
| 95 <dl><dt><a name="OSVersion-__ne__"><strong>__ne__</strong></a>(...)</dt><dd><tt>
x.<a href="#OSVersion-__ne__">__ne__</a>(y) <==> x!=y</tt></dd><
/dl> | |
| 96 | |
| 97 <dl><dt><a name="OSVersion-__repr__"><strong>__repr__</strong></a>(...)</dt><dd>
<tt>x.<a href="#OSVersion-__repr__">__repr__</a>() <==> repr(x)<
/tt></dd></dl> | |
| 98 | |
| 99 <dl><dt><a name="OSVersion-__rmod__"><strong>__rmod__</strong></a>(...)</dt><dd>
<tt>x.<a href="#OSVersion-__rmod__">__rmod__</a>(y) <==> y%x</tt
></dd></dl> | |
| 100 | |
| 101 <dl><dt><a name="OSVersion-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd>
<tt>x.<a href="#OSVersion-__rmul__">__rmul__</a>(n) <==> n*x</tt
></dd></dl> | |
| 102 | |
| 103 <dl><dt><a name="OSVersion-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt>
<dd><tt>S.<a href="#OSVersion-__sizeof__">__sizeof__</a>() -> size&
nbsp;of S in memory, in bytes</tt></dd></dl> | |
| 104 | |
| 105 <dl><dt><a name="OSVersion-__str__"><strong>__str__</strong></a>(...)</dt><dd><t
t>x.<a href="#OSVersion-__str__">__str__</a>() <==> <a href="__b
uiltin__.html#str">str</a>(x)</tt></dd></dl> | |
| 106 | |
| 107 <dl><dt><a name="OSVersion-capitalize"><strong>capitalize</strong></a>(...)</dt>
<dd><tt>S.<a href="#OSVersion-capitalize">capitalize</a>() -> strin
g<br> | |
| 108 <br> | |
| 109 Return a copy of the string S with only&
nbsp;its first character<br> | |
| 110 capitalized.</tt></dd></dl> | |
| 111 | |
| 112 <dl><dt><a name="OSVersion-center"><strong>center</strong></a>(...)</dt><dd><tt>
S.<a href="#OSVersion-center">center</a>(width[, fillchar]) -> 
;string<br> | |
| 113 <br> | |
| 114 Return S centered in a string of length
width. Padding is<br> | |
| 115 done using the specified fill character (default&n
bsp;is a space)</tt></dd></dl> | |
| 116 | |
| 117 <dl><dt><a name="OSVersion-count"><strong>count</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-count">count</a>(sub[, start[, end]]) ->&n
bsp;int<br> | |
| 118 <br> | |
| 119 Return the number of non-overlapping occurrences o
f substring sub in<br> | |
| 120 string S[start:end]. Optional arguments start and
end are interpreted<br> | |
| 121 as in slice notation.</tt></dd></dl> | |
| 122 | |
| 123 <dl><dt><a name="OSVersion-decode"><strong>decode</strong></a>(...)</dt><dd><tt>
S.<a href="#OSVersion-decode">decode</a>([encoding[,errors]]) -> ob
ject<br> | |
| 124 <br> | |
| 125 Decodes S using the codec registered for enco
ding. encoding defaults<br> | |
| 126 to the default encoding. errors may be given&
nbsp;to set a different error<br> | |
| 127 handling scheme. Default is 'strict' meaning that&
nbsp;encoding errors raise<br> | |
| 128 a UnicodeDecodeError. Other possible values are 'i
gnore' and 'replace'<br> | |
| 129 as well as any other name registered with&nbs
p;codecs.register_error that is<br> | |
| 130 able to handle UnicodeDecodeErrors.</tt></dd></dl> | |
| 131 | |
| 132 <dl><dt><a name="OSVersion-encode"><strong>encode</strong></a>(...)</dt><dd><tt>
S.<a href="#OSVersion-encode">encode</a>([encoding[,errors]]) -> ob
ject<br> | |
| 133 <br> | |
| 134 Encodes S using the codec registered for enco
ding. encoding defaults<br> | |
| 135 to the default encoding. errors may be given&
nbsp;to set a different error<br> | |
| 136 handling scheme. Default is 'strict' meaning that&
nbsp;encoding errors raise<br> | |
| 137 a UnicodeEncodeError. Other possible values are 'i
gnore', 'replace' and<br> | |
| 138 'xmlcharrefreplace' as well as any other name 
;registered with<br> | |
| 139 codecs.register_error that is able to handle Unico
deEncodeErrors.</tt></dd></dl> | |
| 140 | |
| 141 <dl><dt><a name="OSVersion-endswith"><strong>endswith</strong></a>(...)</dt><dd>
<tt>S.<a href="#OSVersion-endswith">endswith</a>(suffix[, start[, end]
]) -> bool<br> | |
| 142 <br> | |
| 143 Return True if S ends with the specified 
;suffix, False otherwise.<br> | |
| 144 With optional start, test S beginning at that
position.<br> | |
| 145 With optional end, stop comparing S at that&n
bsp;position.<br> | |
| 146 suffix can also be a tuple of strings to
try.</tt></dd></dl> | |
| 147 | |
| 148 <dl><dt><a name="OSVersion-expandtabs"><strong>expandtabs</strong></a>(...)</dt>
<dd><tt>S.<a href="#OSVersion-expandtabs">expandtabs</a>([tabsize]) ->&n
bsp;string<br> | |
| 149 <br> | |
| 150 Return a copy of S where all tab charact
ers are expanded using spaces.<br> | |
| 151 If tabsize is not given, a tab size of&n
bsp;8 characters is assumed.</tt></dd></dl> | |
| 152 | |
| 153 <dl><dt><a name="OSVersion-find"><strong>find</strong></a>(...)</dt><dd><tt>S.<a
href="#OSVersion-find">find</a>(sub [,start [,end]]) ->
int<br> | |
| 154 <br> | |
| 155 Return the lowest index in S where substring&
nbsp;sub is found,<br> | |
| 156 such that sub is contained within S[start:end].&nb
sp; Optional<br> | |
| 157 arguments start and end are interpreted as in
slice notation.<br> | |
| 158 <br> | |
| 159 Return -1 on failure.</tt></dd></dl> | |
| 160 | |
| 161 <dl><dt><a name="OSVersion-format"><strong>format</strong></a>(...)</dt><dd><tt>
S.<a href="#OSVersion-format">format</a>(*args, **kwargs) -> s
tring<br> | |
| 162 <br> | |
| 163 Return a formatted version of S, using substi
tutions from args and kwargs.<br> | |
| 164 The substitutions are identified by braces ('{'&nb
sp;and '}').</tt></dd></dl> | |
| 165 | |
| 166 <dl><dt><a name="OSVersion-index"><strong>index</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-index">index</a>(sub [,start [,end]]) ->&n
bsp;int<br> | |
| 167 <br> | |
| 168 Like S.<a href="#OSVersion-find">find</a>() but raise ValueE
rror when the substring is not found.</tt></dd></d
l> | |
| 169 | |
| 170 <dl><dt><a name="OSVersion-isalnum"><strong>isalnum</strong></a>(...)</dt><dd><t
t>S.<a href="#OSVersion-isalnum">isalnum</a>() -> bool<br> | |
| 171 <br> | |
| 172 Return True if all characters in S are a
lphanumeric<br> | |
| 173 and there is at least one character in S
, False otherwise.</tt></dd></dl> | |
| 174 | |
| 175 <dl><dt><a name="OSVersion-isalpha"><strong>isalpha</strong></a>(...)</dt><dd><t
t>S.<a href="#OSVersion-isalpha">isalpha</a>() -> bool<br> | |
| 176 <br> | |
| 177 Return True if all characters in S are a
lphabetic<br> | |
| 178 and there is at least one character in S
, False otherwise.</tt></dd></dl> | |
| 179 | |
| 180 <dl><dt><a name="OSVersion-isdigit"><strong>isdigit</strong></a>(...)</dt><dd><t
t>S.<a href="#OSVersion-isdigit">isdigit</a>() -> bool<br> | |
| 181 <br> | |
| 182 Return True if all characters in S are d
igits<br> | |
| 183 and there is at least one character in S
, False otherwise.</tt></dd></dl> | |
| 184 | |
| 185 <dl><dt><a name="OSVersion-islower"><strong>islower</strong></a>(...)</dt><dd><t
t>S.<a href="#OSVersion-islower">islower</a>() -> bool<br> | |
| 186 <br> | |
| 187 Return True if all cased characters in S 
;are lowercase and there is<br> | |
| 188 at least one cased character in S, False 
;otherwise.</tt></dd></dl> | |
| 189 | |
| 190 <dl><dt><a name="OSVersion-isspace"><strong>isspace</strong></a>(...)</dt><dd><t
t>S.<a href="#OSVersion-isspace">isspace</a>() -> bool<br> | |
| 191 <br> | |
| 192 Return True if all characters in S are w
hitespace<br> | |
| 193 and there is at least one character in S
, False otherwise.</tt></dd></dl> | |
| 194 | |
| 195 <dl><dt><a name="OSVersion-istitle"><strong>istitle</strong></a>(...)</dt><dd><t
t>S.<a href="#OSVersion-istitle">istitle</a>() -> bool<br> | |
| 196 <br> | |
| 197 Return True if S is a titlecased string
and there is at least one<br> | |
| 198 character in S, i.e. uppercase characters may 
;only follow uncased<br> | |
| 199 characters and lowercase characters only cased one
s. Return False<br> | |
| 200 otherwise.</tt></dd></dl> | |
| 201 | |
| 202 <dl><dt><a name="OSVersion-isupper"><strong>isupper</strong></a>(...)</dt><dd><t
t>S.<a href="#OSVersion-isupper">isupper</a>() -> bool<br> | |
| 203 <br> | |
| 204 Return True if all cased characters in S 
;are uppercase and there is<br> | |
| 205 at least one cased character in S, False 
;otherwise.</tt></dd></dl> | |
| 206 | |
| 207 <dl><dt><a name="OSVersion-join"><strong>join</strong></a>(...)</dt><dd><tt>S.<a
href="#OSVersion-join">join</a>(iterable) -> string<br> | |
| 208 <br> | |
| 209 Return a string which is the concatenation of
the strings in the<br> | |
| 210 iterable. The separator between elements is
S.</tt></dd></dl> | |
| 211 | |
| 212 <dl><dt><a name="OSVersion-ljust"><strong>ljust</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-ljust">ljust</a>(width[, fillchar]) -> str
ing<br> | |
| 213 <br> | |
| 214 Return S left-justified in a string of length
width. Padding is<br> | |
| 215 done using the specified fill character (default&n
bsp;is a space).</tt></dd></dl> | |
| 216 | |
| 217 <dl><dt><a name="OSVersion-lower"><strong>lower</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-lower">lower</a>() -> string<br> | |
| 218 <br> | |
| 219 Return a copy of the string S converted
to lowercase.</tt></dd></dl> | |
| 220 | |
| 221 <dl><dt><a name="OSVersion-lstrip"><strong>lstrip</strong></a>(...)</dt><dd><tt>
S.<a href="#OSVersion-lstrip">lstrip</a>([chars]) -> string or
unicode<br> | |
| 222 <br> | |
| 223 Return a copy of the string S with leadi
ng whitespace removed.<br> | |
| 224 If chars is given and not None, remove c
haracters in chars instead.<br> | |
| 225 If chars is unicode, S will be converted 
;to unicode before stripping</tt></dd></dl> | |
| 226 | |
| 227 <dl><dt><a name="OSVersion-partition"><strong>partition</strong></a>(...)</dt><d
d><tt>S.<a href="#OSVersion-partition">partition</a>(sep) -> (head,
sep, tail)<br> | |
| 228 <br> | |
| 229 Search for the separator sep in S, and r
eturn the part before it,<br> | |
| 230 the separator itself, and the part after it.&
nbsp; If the separator is not<br> | |
| 231 found, return S and two empty strings.</tt></dd></
dl> | |
| 232 | |
| 233 <dl><dt><a name="OSVersion-replace"><strong>replace</strong></a>(...)</dt><dd><t
t>S.<a href="#OSVersion-replace">replace</a>(old, new[, count]) -
> string<br> | |
| 234 <br> | |
| 235 Return a copy of string S with all occur
rences of substring<br> | |
| 236 old replaced by new. If the optional ar
gument count is<br> | |
| 237 given, only the first count occurrences are r
eplaced.</tt></dd></dl> | |
| 238 | |
| 239 <dl><dt><a name="OSVersion-rfind"><strong>rfind</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-rfind">rfind</a>(sub [,start [,end]]) ->&n
bsp;int<br> | |
| 240 <br> | |
| 241 Return the highest index in S where substring
sub is found,<br> | |
| 242 such that sub is contained within S[start:end].&nb
sp; Optional<br> | |
| 243 arguments start and end are interpreted as in
slice notation.<br> | |
| 244 <br> | |
| 245 Return -1 on failure.</tt></dd></dl> | |
| 246 | |
| 247 <dl><dt><a name="OSVersion-rindex"><strong>rindex</strong></a>(...)</dt><dd><tt>
S.<a href="#OSVersion-rindex">rindex</a>(sub [,start [,end]]) -&g
t; int<br> | |
| 248 <br> | |
| 249 Like S.<a href="#OSVersion-rfind">rfind</a>() but raise Valu
eError when the substring is not found.</tt></dd><
/dl> | |
| 250 | |
| 251 <dl><dt><a name="OSVersion-rjust"><strong>rjust</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-rjust">rjust</a>(width[, fillchar]) -> str
ing<br> | |
| 252 <br> | |
| 253 Return S right-justified in a string of lengt
h width. Padding is<br> | |
| 254 done using the specified fill character (default&n
bsp;is a space)</tt></dd></dl> | |
| 255 | |
| 256 <dl><dt><a name="OSVersion-rpartition"><strong>rpartition</strong></a>(...)</dt>
<dd><tt>S.<a href="#OSVersion-rpartition">rpartition</a>(sep) -> (h
ead, sep, tail)<br> | |
| 257 <br> | |
| 258 Search for the separator sep in S, starting&n
bsp;at the end of S, and return<br> | |
| 259 the part before it, the separator itself, and
the part after it. If the<br> | |
| 260 separator is not found, return two empty stri
ngs and S.</tt></dd></dl> | |
| 261 | |
| 262 <dl><dt><a name="OSVersion-rsplit"><strong>rsplit</strong></a>(...)</dt><dd><tt>
S.<a href="#OSVersion-rsplit">rsplit</a>([sep [,maxsplit]]) -> 
;list of strings<br> | |
| 263 <br> | |
| 264 Return a list of the words in the string
S, using sep as the<br> | |
| 265 delimiter string, starting at the end of the&
nbsp;string and working<br> | |
| 266 to the front. If maxsplit is given, at&
nbsp;most maxsplit splits are<br> | |
| 267 done. If sep is not specified or is None
, any whitespace string<br> | |
| 268 is a separator.</tt></dd></dl> | |
| 269 | |
| 270 <dl><dt><a name="OSVersion-rstrip"><strong>rstrip</strong></a>(...)</dt><dd><tt>
S.<a href="#OSVersion-rstrip">rstrip</a>([chars]) -> string or
unicode<br> | |
| 271 <br> | |
| 272 Return a copy of the string S with trail
ing whitespace removed.<br> | |
| 273 If chars is given and not None, remove c
haracters in chars instead.<br> | |
| 274 If chars is unicode, S will be converted 
;to unicode before stripping</tt></dd></dl> | |
| 275 | |
| 276 <dl><dt><a name="OSVersion-split"><strong>split</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-split">split</a>([sep [,maxsplit]]) -> lis
t of strings<br> | |
| 277 <br> | |
| 278 Return a list of the words in the string
S, using sep as the<br> | |
| 279 delimiter string. If maxsplit is given, at&n
bsp;most maxsplit<br> | |
| 280 splits are done. If sep is not specified 
;or is None, any<br> | |
| 281 whitespace string is a separator and empty st
rings are removed<br> | |
| 282 from the result.</tt></dd></dl> | |
| 283 | |
| 284 <dl><dt><a name="OSVersion-splitlines"><strong>splitlines</strong></a>(...)</dt>
<dd><tt>S.<a href="#OSVersion-splitlines">splitlines</a>(keepends=False) -&
gt; list of strings<br> | |
| 285 <br> | |
| 286 Return a list of the lines in S, breakin
g at line boundaries.<br> | |
| 287 Line breaks are not included in the resulting
list unless keepends<br> | |
| 288 is given and true.</tt></dd></dl> | |
| 289 | |
| 290 <dl><dt><a name="OSVersion-startswith"><strong>startswith</strong></a>(...)</dt>
<dd><tt>S.<a href="#OSVersion-startswith">startswith</a>(prefix[, start[,&n
bsp;end]]) -> bool<br> | |
| 291 <br> | |
| 292 Return True if S starts with the specified&nb
sp;prefix, False otherwise.<br> | |
| 293 With optional start, test S beginning at that
position.<br> | |
| 294 With optional end, stop comparing S at that&n
bsp;position.<br> | |
| 295 prefix can also be a tuple of strings to
try.</tt></dd></dl> | |
| 296 | |
| 297 <dl><dt><a name="OSVersion-strip"><strong>strip</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-strip">strip</a>([chars]) -> string or&nbs
p;unicode<br> | |
| 298 <br> | |
| 299 Return a copy of the string S with leadi
ng and trailing<br> | |
| 300 whitespace removed.<br> | |
| 301 If chars is given and not None, remove c
haracters in chars instead.<br> | |
| 302 If chars is unicode, S will be converted 
;to unicode before stripping</tt></dd></dl> | |
| 303 | |
| 304 <dl><dt><a name="OSVersion-swapcase"><strong>swapcase</strong></a>(...)</dt><dd>
<tt>S.<a href="#OSVersion-swapcase">swapcase</a>() -> string<br> | |
| 305 <br> | |
| 306 Return a copy of the string S with upper
case characters<br> | |
| 307 converted to lowercase and vice versa.</tt></dd></dl> | |
| 308 | |
| 309 <dl><dt><a name="OSVersion-title"><strong>title</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-title">title</a>() -> string<br> | |
| 310 <br> | |
| 311 Return a titlecased version of S, i.e. words&
nbsp;start with uppercase<br> | |
| 312 characters, all remaining cased characters have lo
wercase.</tt></dd></dl> | |
| 313 | |
| 314 <dl><dt><a name="OSVersion-translate"><strong>translate</strong></a>(...)</dt><d
d><tt>S.<a href="#OSVersion-translate">translate</a>(table [,deletechars])&
nbsp;-> string<br> | |
| 315 <br> | |
| 316 Return a copy of the string S, where all
characters occurring<br> | |
| 317 in the optional argument deletechars are removed,&
nbsp;and the<br> | |
| 318 remaining characters have been mapped through the&
nbsp;given<br> | |
| 319 translation table, which must be a string of&
nbsp;length 256 or None.<br> | |
| 320 If the table argument is None, no translation
is applied and<br> | |
| 321 the operation simply removes the characters in&nbs
p;deletechars.</tt></dd></dl> | |
| 322 | |
| 323 <dl><dt><a name="OSVersion-upper"><strong>upper</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-upper">upper</a>() -> string<br> | |
| 324 <br> | |
| 325 Return a copy of the string S converted
to uppercase.</tt></dd></dl> | |
| 326 | |
| 327 <dl><dt><a name="OSVersion-zfill"><strong>zfill</strong></a>(...)</dt><dd><tt>S.
<a href="#OSVersion-zfill">zfill</a>(width) -> string<br> | |
| 328 <br> | |
| 329 Pad a numeric string S with zeros on the
left, to fill a field<br> | |
| 330 of the specified width. The string S is
never truncated.</tt></dd></dl> | |
| 331 | |
| 332 </td></tr></table></td></tr></table><p> | |
| 333 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
| 334 <tr bgcolor="#55aa55"> | |
| 335 <td colspan=3 valign=bottom> <br> | |
| 336 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></
font></td></tr> | |
| 337 | |
| 338 <tr><td bgcolor="#55aa55"><tt> </tt></td><td>
</td> | |
| 339 <td width="100%"><strong>ELCAPITAN</strong> = 'elcapitan'<br> | |
| 340 <strong>LEOPARD</strong> = 'leopard'<br> | |
| 341 <strong>LION</strong> = 'lion'<br> | |
| 342 <strong>MAVERICKS</strong> = 'mavericks'<br> | |
| 343 <strong>MOUNTAINLION</strong> = 'mountainlion'<br> | |
| 344 <strong>SNOWLEOPARD</strong> = 'snowleopard'<br> | |
| 345 <strong>VISTA</strong> = 'vista'<br> | |
| 346 <strong>WIN7</strong> = 'win7'<br> | |
| 347 <strong>WIN8</strong> = 'win8'<br> | |
| 348 <strong>XP</strong> = 'xp'<br> | |
| 349 <strong>YOSEMITE</strong> = 'yosemite'</td></tr></table> | |
| 350 </body></html> | |
| OLD | NEW |