Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Return a unique sequence number (incremented on each call).
  

        def uniqueID():
  """Return a unique sequence number (incremented on each call).
  """
  global _seq
  _seq_lock.acquire()
  seqno = _seq = _seq + 1
  _seq_lock.release()
  return seqno
        


src/p/y/pymilter-1.0/sample.py   pymilter(Download)
    self.fp = None
    self.bodysize = 0
    self.id = Milter.uniqueID()
 
  # multiple messages can be received on a single connection

src/p/g/pgpmilter-HEAD/pgpmilter.py   pgpmilter(Download)
  def __init__(self):  # A new instance with each new connection.
    self.id = Milter.uniqueID()  # Integer incremented with each call.
    self.mailbody = None
 
  @Milter.noreply

src/p/y/pymilter-1.0/milter-template.py   pymilter(Download)
  def __init__(self):  # A new instance with each new connection.
    self.id = Milter.uniqueID()  # Integer incremented with each call.
 
  # each connection runs in its own thread and has its own myMilter
  # instance.  Python code must be thread safe.  This is trivial if only stuff

src/m/i/milter-0.8.18/spfmilter.py   milter(Download)
  def __init__(self):
    self.mailfrom = None
    self.id = Milter.uniqueID()
    # we don't want config used to change during a connection
    self.conf = config

src/m/i/milter-0.8.18/dkim-milter.py   milter(Download)
  def __init__(self):
    self.mailfrom = None
    self.id = Milter.uniqueID()
    # we don't want config used to change during a connection
    self.conf = config

src/m/i/milter-0.8.18/bms.py   milter(Download)
    self.pristine_headers = None
    self.bodysize = 0
    self.id = Milter.uniqueID()
 
  # delrcpt can only be called from eom().  This accumulates recipient

src/d/s/dspam-milter-0.3.3/dspam/milter.py   dspam-milter(Download)
 
        """
        self.id = Milter.uniqueID()
        self.message = ''
        self.recipients = []