Re: Incorrect number of bytes returned by getsockopt(socket.SOL_SOCKET, socket.TCP_INFO, buflen)

2009-12-03 Thread Martien Verbruggen
tried it. Martien -- | Martien Verbruggen | Never hire a poor lawyer. Never buy first.l...@heliotrope.com.au | from a rich salesperson. | -- http://mail.python.org/mailman/listinfo/python-list

Re: Dll in python

2009-10-23 Thread Martien Verbruggen
On Fri, 23 Oct 2009 13:09:10 -0700 (PDT), snonca wrote: > hello > > I would like to know how to create dll in python to implement a > project. NET Are you maybe looking for this: http://pythonnet.sourceforge.net/ Martien -- | Martie

Re: Reverse Iteration Through Integers

2009-10-19 Thread Martien Verbruggen
tion I could find was > http://docs.python.org/dev/3.0/library/functions.html#slice There's also http://docs.python.org/reference/datamodel.html#index-791 Martien -- | Martien Verbruggen | There are only 10 types of people in first.l...@hel

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-04 Thread Martien Verbruggen
On Sun, 4 Oct 2009 13:18:22 -0400, Simon Forman wrote: > On Sun, Oct 4, 2009 at 5:29 AM, Martien Verbruggen > wrote: >> On Sun, 4 Oct 2009 01:17:18 + (UTC), >>        Grant Edwards wrote: >>> On 2009-10-03, ryniek90 wrote: >>> >>>>

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-04 Thread Martien Verbruggen
ally needs to be fast, I generally write it in C anyway :) Martien -- | Martien Verbruggen | Unix is user friendly. It's just first.l...@heliotrope.com.au | selective about its friends. | -- http://mail.python.org/mailman/listinfo/python-list

Re: Open file on remote linux server

2009-10-02 Thread Martien Verbruggen
#x27;, 'r') for l in fh: print l, fh.close() finally: ssh.close() You may need to add some password handling in there (for me my environment takes care of that). Martien -- | Martien Verbruggen | You can't have everything, where would first.l...@heliotrope.com.au | you put it? | -- http://mail.python.org/mailman/listinfo/python-list

Re: Partial directory search question

2009-09-29 Thread Martien Verbruggen
e? Ie, I just want to list _1, _2, _3, _4. I don't know what you mean by "sanest", but this is one way: import glob for f in glob.glob("_*"): print f Martien -- | Martien Verbruggen | You can't

Re: Searching a large dictionary

2009-09-23 Thread Martien Verbruggen
sult': 'ANSW', 'sec': 86}, {'code': 'foo', 'date': '2009-08-01 14:33:55', 'userfield': '252', 'from': '9876662881', 'to': &#x