Thanks, Alan. Very helpful; tho' I probably need to gigest Steven's
information before I fully digest yours.
On Tuesday 23 August 2011 01:15:52 Alan Gauld wrote:
> So sub-routine comers from the world of assembler programming and was
> adopted by BASIC because BASIC was invented back in the 1960
On 22/08/11 18:38, Lisi wrote:
technical terms. I am still very confused by the terminology. Having been
told that modules, functions and methods are just different names for the
same thing, that commands are really also the same thing and having had them
called yet a fifth thing in order "not
On 23/08/11 00:10, Robert Sjoblom wrote:
Can someone please explain the difference between methods and functions?
I'm sure if you go to Wikipedia you will get the correct computer
science distinctions, however in practical terms and limiting the
discussion to Python:
A function is a piece
> Can someone please explain the difference between methods and functions?
I've heard the explanation "A cow is an animal but an animal is not
necessarily a cow." used to describe the difference between methods
and functions (ie, all methods are functions, but not all functions
are methods). Obviou
On 8/22/11, Prasad, Ramit wrote:
> Steven D'Aprano wrote:
>>(Methods are very similar to functions. At the most basic level, we can
>>pretend that a method is just a function that comes stuck to something
>>else. Don't worry about methods for now.)
>
> Can someone please explain the difference bet
On Mon, Aug 22, 2011 at 3:11 PM, Prasad, Ramit wrote:
> Steven D'Aprano wrote:
> >(Methods are very similar to functions. At the most basic level, we can
> >pretend that a method is just a function that comes stuck to something
> >else. Don't worry about methods for now.)
>
> Can someone please ex
Thanks, Steven, for an extremely helpful email. I _think_ that I have now
grasped it; tho' teh proof of teh pudding is in the eating. :-/
On Monday 22 August 2011 19:55:02 Steven D'Aprano wrote:
> Lisi wrote:
[snip]
> Are you using Windows or Linux or Mac?
Linux Debian 6.
> On my Linux
Well, my understanding is that function are used in procedural programmming
to make the code reusable, and to divide the bigger problem in a serie of
smaller ones.
Methods are used in OOP, and mainly are the actions taht objects can
perform.
Thay have a very similar syntax in python, but the conc
Steven D'Aprano wrote:
>(Methods are very similar to functions. At the most basic level, we can
>pretend that a method is just a function that comes stuck to something
>else. Don't worry about methods for now.)
Can someone please explain the difference between methods and functions?
Thanks,
Ra
>Such tools already exist, although they may not be written in Python. In
>particular, google on "wget" or "curl" for two very well-known
>industrial-strength tools for downloading files from the web (and other
>places). If you just want something that works, I recommend you learn
>how to use t
Lisi wrote:
By "envelope" I meant container, because I was afraid of misusing the correct
technical terms. I am still very confused by the terminology. Having been
told that modules, functions and methods are just different names for the
same thing, that commands are really also the same thi
ok ignore, this works
def date_range(start_date, end_date):
r = (end_date+datetime.timedelta(days=1)-start_date).days
return [start_date+datetime.timedelta(days=i) for i in range(r)]
On Mon, Aug 22, 2011 at 5:27 PM, Norman Khine wrote:
> Hello,
> I have this code http://pastie.org/2411
On Monday 22 August 2011 17:31:41 Alan Gauld wrote:
> Now I'm confused.
Yes, I'm afraid that _I_ was very confused. I am gradually getting the mess
in my head disentangled.
> There can be functions inside a module but not commands, they are
> technically something different and only exist withi
Hello Alan!!
Thank you for tha advice! I'll look at your tutorial, and test the options
you're giving to me.
Thank you
2011/8/22 Alan Gauld
> On 22/08/11 16:21, Susana Iraiis Delgado Rodriguez wrote:
>
> I want to start desingning and developing python interfaces, but I don't
>> know what libra
On Sat, Aug 13, 2011 at 3:58 AM, Steven D'Aprano wrote:
> Michael Scharf wrote:
>>
>> Sent: Friday, August 12, 2011 3:54 PM
>>
>> Hi List,
>>
>> I'm am not quite at the point of needing this, but where would I go to
>> ask a question like "Why is the OpenCalais Python API not returning
>> all fiel
On 22/08/11 16:21, Susana Iraiis Delgado Rodriguez wrote:
I want to start desingning and developing python interfaces, but I don't
know what library or tool can help me to accomplish my goal.
Three are pros and cons to all the different options available.
My personal recommendation is to use
On 22/08/11 14:45, Lisi wrote:
I don't understand what you mean by "modules within it".
The problem may be that I have again failed to understand.
As I understand it, I can, should I wish to do so, write and save a subroutine
that I wish to reuse rather than write the same subroutine out mult
Hello,
I have this code http://pastie.org/2411735 which basically reads a CSV
file, takes the date field and then for each day executes an SQL query
to pull the amount of orders that have been generated.
My issue I have is that on the back-office of the e-commerce package
the total orders for the
Hello List!!
I want to start desingning and developing python interfaces, but I don't
know what library or tool can help me to accomplish my goal. I have
installed the 2.6.6 python interpreter version, my operative system is
Windows XP. The interfaces I want to create will be very simple, just to
On Monday 22 August 2011 15:09:45 Emile van Sebille wrote:
> Actually, sys retains a reference to all imported modules in sys.modules
> and that gives a pretty good idea of where stuff comes from(tm). :)
[snip interesting file]
Thanks, Emile. :-)
Lisi
___
On 8/22/2011 6:45 AM Lisi said...
On Monday 22 August 2011 00:13:37 Steven D'Aprano wrote:
The modules within it must surely be somewhere too. But since I can't
find sys, I obviously can't find the modules. Again, I'd like to look at
them.
I don't understand what you mean by "modules within
On Monday 22 August 2011 00:13:37 Steven D'Aprano wrote:
> > The modules within it must surely be somewhere too. But since I can't
> > find sys, I obviously can't find the modules. Again, I'd like to look at
> > them.
>
> I don't understand what you mean by "modules within it".
The problem may b
Steven D'Aprano wrote:
> D. Guandalino wrote:
>> In this case is there a
>> way to force just one setUp() call?
>
>
> I don't know if this is the best way, but the first way that comes to
> mind is this:
>
>
> class C(TestCase):
> initialised = False
> def setUp(self):
> if
23 matches
Mail list logo