[Tutor] Fwd: Need help on Python API programmig

2013-11-16 Thread Amit Saha
Hi John, Perhaps your answer was directed towards Sourav. CCing tutor. -- Forwarded message -- From: John Steedman Date: Sun, Nov 17, 2013 at 6:26 AM Subject: Re: [Tutor] Need help on Python API programmig To: Amit Saha Hi Amit, I've been using Django Rest Framework for d

Re: [Tutor] basic function concept

2013-11-16 Thread Alex Kleider
On 2013-11-16 13:20, Byron Ruffin wrote: def main(x, y, z):     print (x, y, z) def funct():     x = 1     y = 2     z = 3     return x, y, z main() Can someone tell me why main is not being given any arguments? Because you didn't give it any. Try main(funct()) instead. ___

Re: [Tutor] Class attribute error

2013-11-16 Thread Alan Gauld
On 16/11/13 17:13, reutest wrote: class myclass(): def test(self): print "print this line" if __name__ == '__main__': myclass.run() If you have a question it helps if you ask it rather than have us guess. In this case I'm guessin

Re: [Tutor] basic function concept

2013-11-16 Thread Alan Gauld
On 16/11/13 21:20, Byron Ruffin wrote: def main(x, y, z): print (x, y, z) def funct(): x = 1 y = 2 z = 3 return x, y, z main() Can someone tell me why main is not being given any arguments? Because somebody made a mistake. I don't know if this is your code or som

Re: [Tutor] Class attribute error

2013-11-16 Thread Dominik George
On Sat, Nov 16, 2013 at 09:13:13AM -0800, reutest wrote: > class myclass(): > > def test(self): > print "print this line" > > > if __name__ == '__main__': > myclass.run() Is that a question? If I were to guess, I'd say you sho

Re: [Tutor] basic function concept

2013-11-16 Thread Dominik George
> main() > > Can someone tell me why main is not being given any arguments? Because you didn't write any there. -nik -- Wer den Grünkohl nicht ehrt, ist der Mettwurst nicht wert! PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17 FD26 B79A 3C16 A0C4 F296 signature.asc Description: Digital signature

[Tutor] basic function concept

2013-11-16 Thread Byron Ruffin
def main(x, y, z): print (x, y, z) def funct(): x = 1 y = 2 z = 3 return x, y, z main() Can someone tell me why main is not being given any arguments? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

[Tutor] Class attribute error

2013-11-16 Thread reutest
class myclass(): def test(self): print "print this line" if __name__ == '__main__': myclass.run() -- View this message in context: http://python.6.x6.nabble.com/Class-attribute-error-tp5039199.html Sent from the Pyth

Re: [Tutor] Tutor Digest, Vol 117, Issue 25

2013-11-16 Thread Alan Gauld
On 16/11/13 11:02, Vlad Olariu wrote: is this active? If you mean the mailing list then yes, but not massively busy and there is an archive of posts that you can search/review. If you mean did this mail get here then again yes but via the moderator queue so a little later than most. Otherwise

Re: [Tutor] Is this list active?

2013-11-16 Thread Walter Prins
Hi, On 16 November 2013 11:02, Vlad Olariu wrote: > is this active? > > Yes. (Please don't reply to digest posts without at least trimming it and adjusting the subject as appropriate.) Walter ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] Tutor Digest, Vol 117, Issue 25

2013-11-16 Thread Vlad Olariu
rates unique ID""" > > > global id > > > id = (fullName) + 1 > > > personID = str (id) + fullName > > > return personID > > > > > > def main (): > > > getU

Re: [Tutor] Need help on Python API programmig

2013-11-16 Thread Amit Saha
Hi Sourav, Please use "Reply all" when you reply an email so that everyone else also gets your messages and your chances of getting better help increases. On Sat, Nov 16, 2013 at 3:35 PM, Sourav Biswas wrote: > Hi Amit, > > Yes I know, the question is not quite good. Currently I am trying to le

Re: [Tutor] Removing Unnecessary Indentation and other problems

2013-11-16 Thread ALAN GAULD
Including tutor list.  Please use ReplyAll when responding to the list.   Sorry about that. I am new to this so I didnt know I have to be very specific towards every detailIt depends on what you are asking, but in this case different downloads include different packages  so we need to know which