dett
dett

Reputation: 83

Python. What is the name of this loop

I have some code:

...

reader.loop(0, callback)

...

(from here http://breakingcode.wordpress.com/2010/04/02/using-impacketpcapy-with-python-2-6-on-windows/)

How this "loop" named and where i can read about it or how to break that "loop" (how it works at all).

Thanx.

Upvotes: 1

Views: 137

Answers (1)

sth
sth

Reputation: 229633

loop is not a keyword or other special construct in Python.

reader simply has a member function called loop that takes two parameters. To find out what this loop member function does, check what kind of object reader is and look for loop in that class' documentation.

Upvotes: 6

Related Questions