#NEWLINE# def __init__( self , name , serialiser = ( _unserialised , _unserialised ) , message_size = 0 , timeout_ms = ( - 1 ) , * args , **kwargs ) : #NEWLINE# #INDENT# 'Set up a mailslot of the given name, which must be valid according to\n        the Microsoft docs.\n\n        :param serialiser: a pair of callable which will be used to\n                                             encode & decode data respectively. Typical\n                                             serialisers would be (marshal.dumps, marshal.loads).\n        :type serialiser: a pair of callables each taking one param and returning bytes\n        :param message_size: the maximum size of a message to this mailslot,\n                                                 up to the system-defined maximum of about 400 bytes\n                                                 if passing between computers.\n        :param timeout_ms: how many milliseconds to wait when reading from\n                                             this mailslot\n        ' #NEWLINE# core . _WinSysObject . __init__ ( self , * args , ** kwargs ) #NEWLINE# self . name = name #NEWLINE# self . serialiser = serialiser #NEWLINE# self . message_size = message_size #NEWLINE# self . timeout_ms = timeout_ms #NEWLINE# self . _hRead = self . _hWrite = None #NEWLINE# if ( not name . startswith ( '\\\\.' ) ) : #NEWLINE# #INDENT# self . _hWrite = self . _write_handle ( ) #NEWLINE# if ( ( self . message_size != 0 ) and ( self . message_size > self . MAX_MESSAGE_SIZE ) ) : #NEWLINE# #INDENT# warnings . warn ( ( 'You have specified a message size of %d for a remote mailslot.Messages over %d in size will probably fail' % ( self . message_size , self . MAX_MESSAGE_SIZE ) ) )