Re: Learning Python

2011-08-24 Thread Johnny Venter
http://greenteapress.com/thinkpython/ On Aug 23, 2011, at 10:46 PM, User wrote: Hello all, Does anyone have any good resources for learning Python? I know basic Java and basic Python (loops, data types, if-then statements, etc), but I want to delve into Python further. If anyone knows of

Re: Python Windows Extensions for Mac

2011-08-20 Thread Johnny Venter
Thank you all for the replies. I would like to query various Windows' objects and resources from Mac and/or Linux such as Active Directory users, network shares, group members, etc... What module or methods can I use with python to accomplish this? I found dcerpc might be the way to go. On

Re: Python Windows Extensions for Mac

2011-08-20 Thread Johnny Venter
20, 2011, at 7:57 PM, Chris Angelico ros...@gmail.com wrote: On Sun, Aug 21, 2011 at 12:51 AM, Johnny Venter johnny.ven...@zoho.com wrote: Thank you all for the replies. I would like to query various Windows' objects and resources from Mac and/or Linux such as Active Directory users

Fwd: Sockets: Receiving C Struct

2011-08-05 Thread Johnny Venter
I was not sure if this message was sent before my membership was accepted. Please disregard if it's a duplicate. Thanks Begin forwarded message: From: Johnny Venter johnny.ven...@zoho.com Date: August 5, 2011 8:15:53 AM EDT To: python-list@python.org Subject: Sockets: Receiving C Struct

Sockets: Receiving C Struct

2011-08-05 Thread Johnny Venter
New to python and would like to test network/sockets with it. I am having a problem where I have setup the following: import socket, sys, struct HOST = '1.1.1.1' PORT = 153 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) data = struct.unpack('!I',s.recv(4))[0]