Re: IDLE won't run after installing Python 3.3 in Windows

2014-02-20 Thread flebber
Well firstly being windows I assume that you did a restart after install. Python.org python doesn't come with the windows extensions which can be installed separately. On windows I use winpython is totally portable and can be installed as system version includes all extensions as well as Numpy

Re: Can global variable be passed into Python function?

2014-02-20 Thread Peter Otten
Sam wrote: > I need to pass a global variable into a python function. However, the > global variable does not seem to be assigned after the function ends. Is > it because parameters are not passed by reference? How can I get function > parameters to be passed by reference in Python? If the variab

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Marko Rauhamaa
Steven D'Aprano : > On Thu, 20 Feb 2014 12:22:29 +0200, Marko Rauhamaa wrote: >> I'm looking forward to the day when every application can add its own >> keywords as is customary in Lisp. > > And what a wonderful day that will be! Reading any piece of code you > didn't write yourself -- or wrote a

Re: Remove comma from tuples in python.

2014-02-20 Thread Bernd Nawothnig
On 2014-02-21, Mircescu Andrei wrote: > vineri, 21 februarie 2014, 08:49:01 UTC+2, Jaydeep Patil a scris: >> I am getting below tuple from excel. >> >> How should i remove extra commas in each tuple to make it easy for >> operations. >> >> >> >> tuples is: >> >> seriesxlist1 = ((0.0), (0.01),

Re: Can global variable be passed into Python function?

2014-02-20 Thread dieter
Sam writes: > I need to pass a global variable into a python function. Python does not really have the concept "variable". What appears to be a variable is in fact only the binding of an object to a name. If you assign something to a variable, all you do is binding a different object to the nam

Re: Remove comma from tuples in python.

2014-02-20 Thread Stephane Wirtel
This is just a tuple of integers and not a tuple of tuples of integers, the parentheses around the number is just there for the evaluation. > On 21 févr. 2014, at 08:02 AM, Mircescu Andrei > wrote: > > vineri, 21 februarie 2014, 08:49:01 UTC+2, Jaydeep Patil a scris: >> I am getting below tu

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Fri, Feb 21, 2014 at 5:59 PM, Steven D'Aprano wrote: > Then I can write code like: > > for for in in: > while while: > if if: > raise raise > > which will go a long way to ensuring that my code is an hostile and > unreadable as possible. REXX allows that. Most people wo

Looking for an open-source: Task, feature and issue tracker

2014-02-20 Thread Alec Taylor
Dear Python list, Do you know of any open-source task, feature and issue trackers which are built with Python? Preferably with: - git integration ("commits <> and <> solve issue/task <>"; "issue is assigned to repo <>") - prioritisation of tasks, features and issues - ability to show dependencies

Re: Remove comma from tuples in python.

2014-02-20 Thread Mircescu Andrei
vineri, 21 februarie 2014, 08:49:01 UTC+2, Jaydeep Patil a scris: > I am getting below tuple from excel. > > How should i remove extra commas in each tuple to make it easy for operations. > > > > tuples is: > > seriesxlist1 = ((0.0), (0.01), (0.02), (0.03), (0.04), (0.05), (0.06), > (0.07), (

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Fri, Feb 21, 2014 at 5:51 PM, Steven D'Aprano wrote: > On Thu, 20 Feb 2014 20:39:10 +1100, Chris Angelico wrote: > >> In working on a proposal that might result in the creation of a new >> keyword, I needed to ascertain what names were used extensively in >> existing Python code. > > I would lo

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Steven D'Aprano
On Thu, 20 Feb 2014 12:22:29 +0200, Marko Rauhamaa wrote: > Chris Angelico : > >> In working on a proposal that might result in the creation of a new >> keyword, > > I'm looking forward to the day when every application can add its own > keywords as is customary in Lisp. And what a wonderful da

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Steven D'Aprano
On Thu, 20 Feb 2014 20:39:10 +1100, Chris Angelico wrote: > In working on a proposal that might result in the creation of a new > keyword, I needed to ascertain what names were used extensively in > existing Python code. I would love to steal^W see your script for doing this :-) -- Steven --

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Steven D'Aprano
On Thu, 20 Feb 2014 14:46:35 +0200, Marko Rauhamaa wrote: > I would imagine there would be dozens of "branches" in the interpreter > if the latest interpreter were to support all past Python dialects (as > it should, IMO). Well thank goodness you're not in charge of Python's future development.

Remove comma from tuples in python.

2014-02-20 Thread Jaydeep Patil
I am getting below tuple from excel. How should i remove extra commas in each tuple to make it easy for operations. tuples is: seriesxlist1 = ((0.0), (0.01), (0.02), (0.03), (0.04), (0.05), (0.06), (0.07), (0.08), (0.09), (0.1), (0.11)) please suggest me solution. Regards jay -- https://ma

Re: Just For Inquiry

2014-02-20 Thread Steven D'Aprano
On Thu, 20 Feb 2014 22:48:18 +, John Gordon wrote: > In shivang patel > writes: > >> So, I kindly request to you please, give me a very brief info regarding >> *Role of Project Manager*. > > In my organization, a project manager does these things (and a lot > more): What does this have to

Re: TypeError: can't multiply sequence by non-int of type 'tuple'

2014-02-20 Thread Jaydeep Patil
On Friday, 21 February 2014 12:06:54 UTC+5:30, Rustom Mody wrote: > On Friday, February 21, 2014 12:01:53 PM UTC+5:30, Jaydeep Patil wrote: > > > HI, > > > > > I have a tuple. I need to make sqaure of elements of tuple and after that i > > want add all suared tuple elements for total. When i

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Steven D'Aprano
On Thu, 20 Feb 2014 14:09:19 +0200, Marko Rauhamaa wrote: > Chris Angelico : > >> Python has a facility like this. It doesn't namespace the keywords, but >> it does let you choose whether to have them or not. In Python 2.5, you >> could type "from __future__ import with_statement" to turn 'with'

Re: TypeError: can't multiply sequence by non-int of type 'tuple'

2014-02-20 Thread Rustom Mody
On Friday, February 21, 2014 12:01:53 PM UTC+5:30, Jaydeep Patil wrote: > HI, > I have a tuple. I need to make sqaure of elements of tuple and after that i > want add all suared tuple elements for total. When i trying to do it, below > error came. > Code: > seriesxlist1 = ((0.0,), (0.01,), (0.0

Can global variable be passed into Python function?

2014-02-20 Thread Sam
I need to pass a global variable into a python function. However, the global variable does not seem to be assigned after the function ends. Is it because parameters are not passed by reference? How can I get function parameters to be passed by reference in Python? -- https://mail.python.org/mai

TypeError: can't multiply sequence by non-int of type 'tuple'

2014-02-20 Thread Jaydeep Patil
HI, I have a tuple. I need to make sqaure of elements of tuple and after that i want add all suared tuple elements for total. When i trying to do it, below error came. Code: seriesxlist1 = ((0.0,), (0.01,), (0.02,), (0.03,), (0.04,), (0.05,), (0.06,), (0.07,), (0.08,), (0.09,), (0.1,), (0.11,

Re:Function and turtle help

2014-02-20 Thread Dave Angel
Scott W Dunning Wrote in message: > Hello, > > I am trying to make a function that allows me to color in a star that was > drawn in Turtle. I just keep having trouble no matter what I do. I’ll > post the code I have for the star (just in case). The ultimate goal is to > create a script t

Re: Just For Inquiry

2014-02-20 Thread William Ray Wing
On Feb 20, 2014, at 5:48 PM, John Gordon wrote: > In shivang patel > writes: > >> So, I kindly request to you please, give me a very brief info regarding >> *Role of Project Manager*. > > In my organization, a project manager does these things (and a lot more): > Ensure that a requirements d

Function and turtle help

2014-02-20 Thread Scott W Dunning
Hello, I am trying to make a function that allows me to color in a star that was drawn in Turtle. I just keep having trouble no matter what I do. I’ll post the code I have for the star (just in case). The ultimate goal is to create a script that’ll draw the American flag (we’re learning this

Re: Function and turtle help

2014-02-20 Thread Scott W Dunning
On Feb 20, 2014, at 9:41 PM, Scott W Dunning wrote: > Hello, > > I am trying to make a function that allows me to color in a star that was > drawn in Turtle. I just keep having trouble no matter what I do. I’ll post > the code I have for the star (just in case). The ultimate goal is to cre

Re: Just For Inquiry

2014-02-20 Thread John Gordon
In shivang patel writes: > So, I kindly request to you please, give me a very brief info regarding > *Role of Project Manager*. In my organization, a project manager does these things (and a lot more): Ensure that a requirements document exists, and is approved by both the customer and the de

Re: The sum of numbers in a line from a file

2014-02-20 Thread Travis Griggs
On Feb 20, 2014, at 8:54 AM, Dave Angel wrote: > kxjakkk Wrote in message: >> Let's say I have a sample file like this: >> >> Name1 2 34 5 6 78 >> >> name1099-66-7871 A-F

Re: The sum of numbers in a line from a file

2014-02-20 Thread MRAB
On 2014-02-20 18:16, kjaku...@gmail.com wrote: What I've got is def stu_scores(): lines = [] with open("file.txt") as f: lines.extend(f.readlines()) return ("".join(lines[11:])) scores = stu_scores() for line in scores: fields = line.split() name = fields[0]

Re: The sum of numbers in a line from a file

2014-02-20 Thread Peter Otten
kjaku...@gmail.com wrote: > Error comes up saying "IndexError: list index out of range." OK, then the 12th line starts with a whitespace char. Add more print statements to see the problem: > scores = stu_scores() print scores > for line in scores: print repr(line) > fields = line.

Re: The sum of numbers in a line from a file

2014-02-20 Thread Chris “Kwpolska” Warrick
On Thu, Feb 20, 2014 at 7:16 PM, wrote: > What I've got is > def stu_scores(): > lines = [] > with open("file.txt") as f: > lines.extend(f.readlines()) > return ("".join(lines[11:])) This returns a string, not a list. Moreover, lines.extend() is useless. Replace this with:

Re: The sum of numbers in a line from a file

2014-02-20 Thread kjakupak
scores = stu_scores() for line in scores: fields = line.split() name = fields[0] print (fields) Error comes up saying "IndexError: list index out of range." -- https://mail.python.org/mailman/listinfo/python-list

Re: The sum of numbers in a line from a file

2014-02-20 Thread Joel Goldstick
On Feb 20, 2014 1:20 PM, wrote: > > What I've got is > def stu_scores(): > lines = [] > with open("file.txt") as f: > lines.extend(f.readlines()) > return ("".join(lines[11:])) > > scores = stu_scores() > for line in scores: > fields = line.split() > name = fields[0] Pr

Re: The sum of numbers in a line from a file

2014-02-20 Thread kjakupak
What I've got is def stu_scores(): lines = [] with open("file.txt") as f: lines.extend(f.readlines()) return ("".join(lines[11:])) scores = stu_scores() for line in scores: fields = line.split() name = fields[0] sum1 = int(fields[4]) + int(fields[5]) + int(fields[6

Re:The sum of numbers in a line from a file

2014-02-20 Thread Dave Angel
kxjakkk Wrote in message: > Let's say I have a sample file like this: > > Name1 2 34 5 6 78 > > name1099-66-7871 A-FY10067815998 > name2999-88-776

Re: The sum of numbers in a line from a file

2014-02-20 Thread John Gordon
In <882091da-a499-477e-8f50-c5bdde7cd...@googlegroups.com> kxjakkk writes: > Let's say I have a sample file like this: > Name1 2 34 5 6 78 > > name1099-66-7871 A-FY1

Re: The sum of numbers in a line from a file

2014-02-20 Thread Joel Goldstick
On Feb 20, 2014 11:25 AM, "kxjakkk" wrote: > > Let's say I have a sample file like this: > > Name1 2 34 5 6 78 > > name1099-66-7871 A-FY10067815998 > na

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Dave Angel
ApathyBear Wrote in message: > > On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote: > >>Calling a class will create a new instance of it. [1] What you do with >>it afterwards is separate. > > Okay. So what you are saying is that > return(Athlete(temp1.pop(0),temp1.pop(0

Just For Inquiry

2014-02-20 Thread shivang patel
Hello, Sir I am Shivang Patel and Master of Computer Engineering Student. In this current we are studying one subject name "Principals of management " as part of syllabus. As per this subject, we have one assignment(Because of we all student think, this subject is useless for us) - *Talk with Pr

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Fri, Feb 21, 2014 at 3:26 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> Also, what happens if two modules (one of which might be your script) >> written for different versions both import some third module? Should >> they get different versions, based on what version tags they use >> themse

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Marko Rauhamaa
Chris Angelico : > Also, what happens if two modules (one of which might be your script) > written for different versions both import some third module? Should > they get different versions, based on what version tags they use > themselves? Compatibility can't be changed that easily. You either ru

Re: Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Ned Batchelder
On 2/20/14 10:55 AM, Oscar Benjamin wrote: On 20 February 2014 15:42, Ned Batchelder wrote: As roundabout and advanced as that code is, it doesn't give the right answer for me. It returns None. On my Mac, after activating a virtualenv: Python 2.7.2 (default, Oct 11 2012, 20:14:37)

The sum of numbers in a line from a file

2014-02-20 Thread kxjakkk
Let's say I have a sample file like this: Name1 2 34 5 6 78 name1099-66-7871 A-FY10067815998 name2999-88-7766 A-FN99 1009691

Re: Error getting REMOTE_USER Environment Variable

2014-02-20 Thread John Gordon
In Hobie Audet writes: > 7. What it echoes back is "userxyzuserxyz". In other words, the > REMOTE_USER value is repeated. What username is recorded in the access_log file? > executed correctly. By why the "REMOTE_USER" value is doubled is > beyond my understanding. Is this a bug in the

Re: Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Piotr Dobrogost
On Thursday, February 20, 2014 4:42:54 PM UTC+1, Ned Batchelder wrote: > > As roundabout and advanced as that code is, it doesn't give the right > answer for me. It returns None. Indeed. I tried on Linux and got None both inside and outside virtualenv :( Regards, Piotr -- https://mail.python.

Re: Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Oscar Benjamin
On 20 February 2014 15:42, Ned Batchelder wrote: > > As roundabout and advanced as that code is, it doesn't give the right answer > for me. It returns None. On my Mac, after activating a virtualenv: > > Python 2.7.2 (default, Oct 11 2012, 20:14:37) > [GCC 4.2.1 Compatible Apple Clang 4.0

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Fri, Feb 21, 2014 at 2:14 AM, Marko Rauhamaa wrote: > * you won't be finding old Python versions on newer operating system >distributions, > > * even http://www.python.org/downloads/> isn't all that extensive >and > > * the program may import modules that were written in different Py

Re: Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Oscar Benjamin
On 20 February 2014 15:34, Piotr Dobrogost wrote: > On Thursday, February 20, 2014 4:22:53 PM UTC+1, Oscar Benjamin wrote: > >> You can find the default location in this roundabout way: > > I'm wondering if there's some API to get this info as what you showed is > really roundabout way to achieve

Re: Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Ned Batchelder
On 2/20/14 10:34 AM, Piotr Dobrogost wrote: On Thursday, February 20, 2014 4:22:53 PM UTC+1, Oscar Benjamin wrote: I'm not sure if I understand the question. Are you trying to find where a script would go if it had been installed as a result of 'python setup.py install' or 'pip install ...'?

Re: Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Piotr Dobrogost
On Thursday, February 20, 2014 4:22:53 PM UTC+1, Oscar Benjamin wrote: > > I'm not sure if I understand the question. Are you trying to find > where a script would go if it had been installed as a result of > 'python setup.py install' or 'pip install ...'? > Yes. > If so there are > different p

Re: Error getting REMOTE_USER Environment Variable

2014-02-20 Thread MRAB
On 2014-02-20 14:53, Hobie Audet wrote: I'm running the Abyss Web Server X1 (v 2.9.0.1) on a Windows XP Home (SP3) system and am using Python 3.3 for a scripting language. I'm having a problem getting the environment variable "REMOTE_USER". Here's the situation: 1. I have created a user under

Re: Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Oscar Benjamin
On 20 February 2014 14:27, Piotr Dobrogost wrote: > Is there cross-platform way to get default directory for binary files > (console scripts for instance) the same way one can use sys.executable to get > path to the Python's interpreter in cross-platform way? > > Context: > There's Python script

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Marko Rauhamaa
Chris Angelico : > If the interpreter were to include every dialect of "old Python", then > it would have a lot more than two branches. They would, in fact, > increase exponentially with every Python version. It shouldn't be *that bad*; the linux kernel is grappling with the glut of system calls,

Re: Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Ned Batchelder
On 2/20/14 9:27 AM, Piotr Dobrogost wrote: Hi! Is there cross-platform way to get default directory for binary files (console scripts for instance) the same way one can use sys.executable to get path to the Python's interpreter in cross-platform way? Context: There's Python script which runs

Error getting REMOTE_USER Environment Variable

2014-02-20 Thread Hobie Audet
I'm running the Abyss Web Server X1 (v 2.9.0.1) on a Windows XP Home (SP3) system and am using Python 3.3 for a scripting language. I'm having a problem getting the environment variable "REMOTE_USER". Here's the situation: 1. I have created a user under Abyss. The userid is "userxyz".. 2.

Cross-platform way to get default directory for binary files like console scripts?

2014-02-20 Thread Piotr Dobrogost
Hi! Is there cross-platform way to get default directory for binary files (console scripts for instance) the same way one can use sys.executable to get path to the Python's interpreter in cross-platform way? Context: There's Python script which runs various tools like pip using subprocess and w

Re: Python 2.7 importing pyc files without py files

2014-02-20 Thread Mircescu Andrei
joi, 20 februarie 2014, 00:25:41 UTC+2, Emile van Sebille a scris: > On 2/19/2014 2:03 PM, Mircescu Andrei wrote: > > > > > If there are only pyc files, the loading time of the application is > > > much more than if I have pyc and py files. It is behind with 2 > > > minutes more than if it

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 11:46 PM, Marko Rauhamaa wrote: >> And at some point, the new keywords must just become standard. > > That's an explicit program of destroying backwards-compatibility: a war > on legacy code. That may be the Python way, but it's not a necessary > strategy. > >> There's no p

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Marko Rauhamaa
Chris Angelico : > On Thu, Feb 20, 2014 at 11:09 PM, Marko Rauhamaa wrote: >>from __py35__ import syntax > > It's more self-documenting with the __future__ directive, because it > says *what* syntax you're importing from the future. As a developer, I will probably want to state the Python di

Al madinah international university opening apply for university colleges

2014-02-20 Thread Marwa Kotb
MR/ Mrs * Al madinah international university which win dependence Malaysian Ministry of Higher Education Malaysia (MOHE) and also winning the adoption of all academic programs and courses, the university that are approved by the Malaysian funds and private academy, which deals with q

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 11:09 PM, Marko Rauhamaa wrote: > How about blocking the introduction of new keywords for ever except if > you specify: > >from __py35__ import syntax > > Eventually, every Python module would likely begin with a statement like > that, and it would document the assumpti

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Marko Rauhamaa
Chris Angelico : > Python has a facility like this. It doesn't namespace the keywords, > but it does let you choose whether to have them or not. In Python 2.5, > you could type "from __future__ import with_statement" to turn 'with' > into a keyword. After Python 2.6, it's always a keyword. That c

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 10:28 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Thu, Feb 20, 2014 at 9:22 PM, Marko Rauhamaa wrote: >>> py35.unless x > 7: >>> return >> >> What about return? Are you allowed to namespace that? And 'from' and >> 'import' and '*'? > > Old keywords are gua

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 10:28 PM, Marko Rauhamaa wrote: > A coworker pointed out that the gist of the PEP has already been > implemented by https://pypi.python.org/pypi/fuckit>. I love how that's categorized "Topic :: Software Development :: Quality Assurance". It certainly assures _something_ ab

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Marko Rauhamaa
Chris Angelico : > On Thu, Feb 20, 2014 at 9:22 PM, Marko Rauhamaa wrote: >> py35.unless x > 7: >> return > > What about return? Are you allowed to namespace that? And 'from' and > 'import' and '*'? Old keywords are guaranteed not to clash with programs. Introducing new keywords runs tha

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 9:22 PM, Marko Rauhamaa wrote: > from py35 import * > > That way, you could choose between: > > unless x > 7: > return > > and: > > py35.unless x > 7: > return > > in case you have already made use of the name "unless" in your program. What about return?

Re: Commonly-used names in the Python standard library

2014-02-20 Thread Marko Rauhamaa
Chris Angelico : > In working on a proposal that might result in the creation of a new > keyword, I'm looking forward to the day when every application can add its own keywords as is customary in Lisp. > I needed to ascertain what names were used extensively in existing > Python code One advant

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
Thank you Chris. And thank you to everyone else. This has tremendously helped me. This google group is definitely the best place for python questions/discussion. PS: Chris, I will be looking at that tutorial now. -- https://mail.python.org/mailman/listinfo/python-list

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 8:22 PM, ApathyBear wrote: > On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote: > >>Calling a class will create a new instance of it. [1] What you do with >>it afterwards is separate. > > Okay. So what you are saying is that > return(Athlete(temp1.pop(

Commonly-used names in the Python standard library

2014-02-20 Thread Chris Angelico
In working on a proposal that might result in the creation of a new keyword, I needed to ascertain what names were used extensively in existing Python code. Out of random curiosity, I asked my script what names were the most commonly used. The script responded with 21854 names and a total of 297164

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote: >Calling a class will create a new instance of it. [1] What you do with >it afterwards is separate. Okay. So what you are saying is that return(Athlete(temp1.pop(0),temp1.pop(0), temp1)) IS in fact creating an instance of

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Gary Herron
On 02/20/2014 12:26 AM, ApathyBear wrote: Thanks for pointing out the missing parenthesis, it makes sense now why there was an error. I suppose my question now is (and forgive my ignorance about classes, this is my first time learning them) why is it calling Athlete with some arguments? In or

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 7:26 PM, ApathyBear wrote: > Thanks for pointing out the missing parenthesis, it makes sense now why there > was an error. > > I suppose my question now is (and forgive my ignorance about classes, this is > my first time learning them) why is it calling Athlete with some

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
Thanks for pointing out the missing parenthesis, it makes sense now why there was an error. I suppose my question now is (and forgive my ignorance about classes, this is my first time learning them) why is it calling Athlete with some arguments? In order to make a class object, don't you need t

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Vincent Vande Vyvre
Le 20/02/2014 08:32, ApathyBear a écrit : I have two questions that come along with the following code: -- from __future__ import print_function def sanitize(time): if '-' in time: splitter = '-'

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 6:32 PM, ApathyBear wrote: > 1. What does this line of code mean: > return(Athlete(temp1.pop(0),temp1.pop(0), temp1) > > Is it making an Athlete class? if you can give examples to help explain what > this is doing that would be helpful. It's supposed to be calling Athlete