Home | History | Annotate | Download | only in python2.7

Lines Matching defs:string

88 The load() method of a Cookie extracts cookies from a string.  In a
98 within a string. Escaped quotation marks, nested semicolons, and other
136 the value to a string, when the values are set dictionary-style.
140 >>> C["string"] = "seven"
143 >>> C["string"].value
146 'Set-Cookie: number=7\r\nSet-Cookie: string=seven'
160 >>> C["string"] = "seven"
163 >>> C["string"].value
166 'Set-Cookie: number="I7\\012."\r\nSet-Cookie: string="S\'seven\'\\012p1\\012."'
177 Python string. String objects are *not* serialized. Similarly,
180 as a string.
184 >>> C["string"] = "seven"
187 >>> C["string"].value
190 'Set-Cookie: number="I7\\012."\r\nSet-Cookie: string=seven'
213 import string
247 _LegalChars = string.ascii_letters + string.digits + "!#$%&'*+-.^_`|~"
316 idmap=_idmap, translate=string.translate):
318 # If the string does not need to be double-quoted,
319 # then just return the string. Otherwise, surround
320 # the string in doublequotes and precede quote (with a \)
341 # We have to assume that we must decode this string.
454 idmap=_idmap, translate=string.translate):
540 r'"(?:[^\\"]|\\.)*"' # Any doublequoted string
544 ""+ _LegalCharsPatt +"*" # Any word or empty string
559 """real_value, coded_value = value_decode(STRING)
596 """Return a string suitable for HTTP."""
616 """Return a string suitable for JavaScript."""
626 """Load cookies from a string (presumably HTTP_COOKIE) or
642 n = len(str) # Length of string
674 calls the builtin str() to convert the value to a string. Values
713 object is a string, then it is quoted. If the object is not a
714 string, however, then SmartCookie will use cPickle to serialize
715 the object into a string representation.