Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
asynchat Namespace Reference

Data Structures

class  async_chat
 
class  simple_producer
 
class  fifo
 

Functions

def find_prefix_at_end
 

Function Documentation

def asynchat.find_prefix_at_end (   haystack,
  needle 
)

Definition at line 286 of file asynchat.py.

287 def find_prefix_at_end (haystack, needle):
288  nl = len(needle)
289  result = 0
290  for i in range (1,nl):
291  if haystack[-(nl-i):] == needle[:(nl-i)]:
292  result = nl-i
293  break
294  return result