Re: getting quick arp request

2006-09-06 Thread kondal
it by creating a new key in the registry. HKEY_LOCAL_MACHINE - SYSTEM - CurrentControlSet - Services -Tcpip - Parameters Create a DWORD key named "TcpNumConnections" and set the value to 00fe or 16777214. -kondal -- http://mail.python.org/mailman/listinfo/python-list

Re: 22, invalid agument error

2006-09-06 Thread kondal
> > sockobj.bind(('',40007)) > > tried on my N6600 with same error > > try using your phone's IP instead of the empty string '' > > tried sockobj.bind(('127.0.0.1',40007)) and did not get an error In general sockets layer bind with null host makes it pick the address from arp resolution and null

Re: How to get the "longest possible" match with Python's RE module?

2006-09-11 Thread kondal
Licheng Fang wrote: > Basically, the problem is this: > > >>> p = re.compile("do|dolittle") > >>> p.match("dolittle").group() > 'do' > > Python's NFA regexp engine trys only the first option, and happily > rests on that. There's another example: > > >>> p = re.compile("one(self)?(selfsufficient)?")