original_docstring: Return a random string usable as a multipart boundary.
      The method used is so that it is *very* unlikely that the same
      string of characters will every occur again in the Universe,
      so the caller needn't check the data it is packing for the
      occurrence of the boundary.
  
      The boundary contains dots so you have to quote it in the header.
docstring: Return a random string usable as a multipart boundary.
  The method used is so that it is *very* unlikely that the same
  string of characters will every occur again in the Universe,
  so the caller needn't check the data it is packing for the
  occurrence of the boundary.
  
  The boundary contains dots so you have to quote it in the header.
docstring_tokens: Return a random string usable as a multipart boundary . The method used is so that it is * very * unlikely that the same string of characters will every occur again in the Universe so the caller needn ' t check the data it is packing for the occurrence of the boundary . The boundary contains dots so you have to quote it in the header .
code: def choose_boundary():
      """Return a random string usable as a multipart boundary.
      The method used is so that it is *very* unlikely that the same
      string of characters will every occur again in the Universe,
      so the caller needn't check the data it is packing for the
      occurrence of the boundary.
  
      The boundary contains dots so you have to quote it in the header."""
  
      global _prefix
      import time
      import random
      if _prefix is None:
          import socket
          import os
          hostid = socket.gethostbyname(socket.gethostname())
          try:
              uid = `os.getuid()`
          except:
              uid = '1'
          try:
              pid = `os.getpid()`
          except:
              pid = '1'
          _prefix = hostid + '.' + uid + '.' + pid
      timestamp = '%.3f' % time.time()
      seed = `random.randint(0, 32767)`
      return _prefix + '.' + timestamp + '.' + seed
code_tokens: def choose_boundary ( ) : global _prefix import time import random if _prefix is None : import socket import os hostid = socket . gethostbyname ( socket . gethostname ( ) ) try : uid = `os.getuid()` except : uid = '1' try : pid = `os.getpid()` except : pid = '1' _prefix = hostid + '.' + uid + '.' + pid timestamp = '%.3f' % time . time ( ) seed = `random.randint(0, 32767)` return _prefix + '.' + timestamp + '.' + seed
short_docstring: Return a random string usable as a multipart boundary.
short_docstring_tokens: Return a random string usable as a multipart boundary .
comment: """Return a random string usable as a multipart boundary.
      The method used is so that it is *very* unlikely that the same
      string of characters will every occur again in the Universe,
      so the caller needn't check the data it is packing for the
      occurrence of the boundary.
  
      The boundary contains dots so you have to quote it in the header."""