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
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
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):
[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
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
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":{}
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
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