Re: Understanding Code

2012-11-16 Thread subhabangalore
On Tuesday, November 13, 2012 4:12:52 PM UTC+5:30, Peter Otten wrote: > subhabangal...@gmail.com wrote: > > > > > Dear Group, > > > To improve my code writing I am trying to read good codes. Now, I have > > > received a code,as given below,(apology for slight indentation errors) the > > > cod

Re: Understanding Code

2012-11-13 Thread Peter Otten
subhabangal...@gmail.com wrote: > Dear Group, > To improve my code writing I am trying to read good codes. Now, I have > received a code,as given below,(apology for slight indentation errors) the > code is running well. Now to comprehend the code, I am looking to > understand it completely. > > c

Understanding Code

2012-11-13 Thread subhabangalore
Dear Group, To improve my code writing I am trying to read good codes. Now, I have received a code,as given below,(apology for slight indentation errors) the code is running well. Now to comprehend the code, I am looking to understand it completely. class Calculate: def __init__(self):

Re: Help understanding code

2005-04-11 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Reading the language tututorial would help you a lot :( === what is the difference between pc and pc()? pc = getToolByName() - returnes a refference to a method Nope. pc is a refference to a method, Nope. pc is not 'a reference to a method', it's a callable object

Re: Help understanding code

2005-04-11 Thread Duncan Booth
Fredrik Lundh wrote: > Dhruva Hein wrote: >>results = pc() >><=== what is the difference between pc and pc()? > > pc refers to an object, pc() calls it. in this case, it looks like pc is > the > portal catalog, and calling the catalog returns the contents. > Unfortunatel

Re: Help understanding code

2005-04-10 Thread elbertlev
Reading the language tututorial would help you a lot :( === what is the difference between pc and pc()? pc = getToolByName() - returnes a refference to a method pc is a refference to a method, pc() is a method invocation. numbers = {"total":len(results),"bytype":{}

Re: Help understanding code

2005-04-10 Thread Fredrik Lundh
Dhruva Hein wrote: > Hi. I am trying to understand a section of code written for Plone and I > am having problems understanding the Python syntax in a few of the > following lines. > > I'd be grateful if someone could help me understand what's happening in > the lines I've marked. I can't see how

Help understanding code

2005-04-10 Thread Dhruva Hein
Hi. I am trying to understand a section of code written for Plone and I am having problems understanding the Python syntax in a few of the following lines. I'd be grateful if someone could help me understand what's happening in the lines I've marked. I can't see how the dictionary is built or h