Re: Need help to understand not the answer

2017-07-30 Thread Rick Johnson
On Saturday, July 29, 2017 at 2:16:36 PM UTC-5, new_to_c0ding wrote: > Hello all, I have been scratching my head since morning but > could not understand this quiz question. I would appreciate > if someone could help me understand what is it asking me to > do. I dont need the answer

Re: Need help to understand not the answer

2017-07-29 Thread devinderaujla
> > is it asking me to do. I dont need the answer but just the right direction > > to look at. > > > > ### Do not change the Location or Campus classes. ### > > ### Location class is the same as in lecture. ### > > class Location(object): &

Re: Need help to understand not the answer

2017-07-29 Thread MRAB
On 2017-07-29 20:16, new_to_c0ding wrote: Hello all, I have been scratching my head since morning but could not understand this quiz question. I would appreciate if someone could help me understand what is it asking me to do. I dont need the answer but just the right direction to look at

Re: Need help to understand not the answer

2017-07-29 Thread Piet van Oostrum
new_to_c0ding writes: > Now as per instructions, class MITCampus(Campus) has (self, center_loc, > tent_loc = Location(0,0)) and it is mentioned that center_loc and tent_loc > are Location objects but when I code them as Locations, I get error from the > tester: > Traceback (most recent call l

Need help to understand not the answer

2017-07-29 Thread new_to_c0ding
Hello all, I have been scratching my head since morning but could not understand this quiz question. I would appreciate if someone could help me understand what is it asking me to do. I dont need the answer but just the right direction to look at. ### Do not change the Location or Campus

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Larry Hudson via Python-list
On 05/18/2016 06:50 PM, Jake Kobs wrote: MRAB, I am not quite sure how to return the print statements so I thought that returning the displayInfo def would help.. Im so lost. Why do you think you want to _return_ a print statement? The print statement _DOES_ the printing, there is nothing th

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread MRAB
On 2016-05-19 02:50, Jake Kobs wrote: MRAB, I am not quite sure how to return the print statements so I thought that returning the displayInfo def would help.. Im so lost. "return the print statements"? The print statements ... print! Have a search for Python tutorials online and pick one t

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Steven D'Aprano
On Thu, 19 May 2016 11:50 am, Jake Kobs wrote: > MRAB, > > I am not quite sure how to return the print statements so I thought that > returning the displayInfo def would help.. Im so lost. There's no need to return the text that you printed. You printed it, the job is done. Here is some genera

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Jake Kobs
MRAB, I am not quite sure how to return the print statements so I thought that returning the displayInfo def would help.. Im so lost. -- https://mail.python.org/mailman/listinfo/python-list

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread MRAB
On 2016-05-19 02:04, Jake Kobs wrote: Here is the code: #Lab 9-4 Blood Drive #the main function def main(): endProgram = 'no' while endProgram == 'no': print # declare variables pints = [0] * 7 totalPints = 0 averagePints = 0 highPints = 0 lowPints = 0

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread John Gordon
In <1cc14787-7061-45c9-a70e-1b16e3f5e...@googlegroups.com> Jake Kobs writes: > Here is the code: > def getHigh(pints, highPints): > highPints = pints[0] > counter = 1 > while counter < 7: > if (pints[counter] > highPints): > highPints = pints[counter] >

Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Jake Kobs
Here is the code: #Lab 9-4 Blood Drive #the main function def main(): endProgram = 'no' while endProgram == 'no': print # declare variables pints = [0] * 7 totalPints = 0 averagePints = 0 highPints = 0 lowPints = 0

Re: [Tutor] Is context manager the answer to synchronous function calls?

2015-09-16 Thread John Wong
Ah. Thanks.. I removed the previous code. Please excuse me. I will rewrite the question so it is clear. Here is my current solution in an imperative way. My application will work with AWS boto library to create EC2 instances and RDS instances. Assuming my API will simply send the request, and retu

Re: [Tutor] Is context manager the answer to synchronous function calls?

2015-09-16 Thread Chris Angelico
On Thu, Sep 17, 2015 at 12:34 AM, John Wong wrote: > Sorry first time posting to tutor / general list. Usually on TIP list. As > per Mark's recommendation, now posting to python-list@python.org. But, sadly, without a lot of context. When you change lists, it's helpful to include a lot of extra ve

Re: [Tutor] Is context manager the answer to synchronous function calls?

2015-09-16 Thread John Wong
On Wed, Sep 16, 2015 at 7:54 AM, Mark Lawrence wrote: > > Assuming your (Alan's) guess is correct, and I certainly agree it's > plausible, I suspect this might be better asked on the main Python mailing > list, I don't see this as tutor material. > > Sorry first time posting to tutor / general li

Re: I'm a newbie and you helped me find the answer...

2015-08-03 Thread Dwight Hotmail
Thank you, Jussi. Problem finally solved. I am using Coderunner 2 as my editor. It has a language setting. I had set it as Python instead of Python 3. Duh! Thank you again, everyone! With appreciation, Dwight dwi...@goldwinde.com www.goldwinde.com Author of the book, "Courage: the Choice t

the ressurection of ZOPE for web domination? bluebream and caveman the answer?

2014-10-22 Thread johannes falcone
i loved the rant about how zope would have all these features, and then some other python framework would come on with like 1 and act like its the bomb, and zope was like we been doing that and more for X years those who dont study zope are doomed to repeat it!!! is zope scoffing at drupal? bot

Re: The answer

2010-01-18 Thread samwyse
On Jan 17, 8:30 pm, Jive Dadson wrote: > Okay, with your help I've figured it out.  Instructions are below, but > read the caveat by Ben Fenny in this thread.  All this stuff is good for > one default version of Python only.  The PYTHONPATH described below, for > example, cannot specify a version

Re: The answer

2010-01-18 Thread Dave Angel
Jive Dadson wrote: alex23 wrote: > > Actually, if you're using Python 2.6+/3.x, you can effectively skip > steps 1-5, as these versions now support user site-packages. > > Rather than create a Module folder and modify your PYTHONPATH, add (if > it doesn't exist already) the following folder: >

Re: The answer

2010-01-17 Thread Lie Ryan
specify a version number. Yes, that's a pain in the > butt, but there's no way around it. If you switch versions, you may > have to delete all the .pyc files that will show up in the module > folders. Python ought to check them to see if they are valid, but I do > not know

Re: The answer

2010-01-17 Thread alex23
Jive Dadson wrote: > That requires a directory whose name embeds the Python version number, > which is the evil from which I flee, or rather sought to flee.  Imagine > if all your C++ code had to go into directories that were named for some > specific C++ compiler.  It's just WRONG.  It's a mainte

Re: The answer

2010-01-17 Thread Jive Dadson
alex23 wrote: > > Actually, if you're using Python 2.6+/3.x, you can effectively skip > steps 1-5, as these versions now support user site-packages. > > Rather than create a Module folder and modify your PYTHONPATH, add (if > it doesn't exist already) the following folder: > %APPDATA%/Python/Pytho

Re: The answer

2010-01-17 Thread alex23
On Jan 18, 12:30 pm, Jive Dadson wrote: > These instructions are for MS Windows. > > 1) Create your modules folder. Let's say it's named "Modules."  The > documentation calls it a "package." > > 2) In an explorer window or on the desktop, right click on My Computer, > and select Properties. > > 3)

Re: The answer

2010-01-17 Thread Alf P. Steinbach
* Jive Dadson: Okay, with your help I've figured it out. Instructions are below, but read the caveat by Ben Fenny in this thread. All this stuff is good for one default version of Python only. The PYTHONPATH described below, for example, cannot specify a version number. Yes, that's a pain i

The answer

2010-01-17 Thread Jive Dadson
Okay, with your help I've figured it out. Instructions are below, but read the caveat by Ben Fenny in this thread. All this stuff is good for one default version of Python only. The PYTHONPATH described below, for example, cannot specify a version number. Yes, that's a pain in the butt, but

The answer

2010-01-17 Thread Jive Dadson
Okay, with your help I've figured it out. Instructions are below, but read the caveat by Ben Fenny in this thread. All this stuff is good for one default version of Python only. The PYTHONPATH described below, for example, cannot specify a version number. Yes, that's a pain in the butt, but

Re: Help me in this please--is Python the answer?

2006-01-13 Thread Adrian Holovaty
Ray wrote: > Does the comparison between dynamic and static language carry over to > comparison between Django and Turbogear too? Is this what is meant by > "Turbogear is much more flexible than Django"? Nah, the difference is more than Django is a complete product whereas TurboGears is a collecti

Re: Help me in this please--is Python the answer?

2006-01-13 Thread Ray
Fredrik Lundh wrote: > I hope you're aware that this sounds a lot like late 90's anti-dynamic- > language propaganda... > > "I would never use Perl or Python over C++ for any performance- > "intensive Web app. In my opinion, both languages make some > poor design decisions regarding th

Re: Help me in this please--is Python the answer?

2006-01-13 Thread Fredrik Lundh
Adrian Holovaty wrote: > I would never use TurboGears or Ruby on Rails over Django for any > performance-intensive Web app. In my opinion, both frameworks make some > poor design decisions regarding the importance of performance. I hope you're aware that this sounds a lot like late 90's anti-dyna

Re: Help me in this please--is Python the answer?

2006-01-13 Thread Ray
bruno at modulix wrote: > Possibly - but if a programmer is not able to pick on Python in a matter > of days, then it's a bad programmer that won't be of any help whatever > the language. So in fact, choosing Python may help you get better > programmers !-) You have a point there! :) > You may a

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Ray
Very useful input, Adrian. Thanks a lot! These are facts that I can use to convince people that Python is a legit choice for the app I'm developing. Warm regards, Ray Adrian Holovaty wrote: > Ray wrote: > > Yes, but this is more of a web application though--something that I've > > never develop

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Aahz
In article <[EMAIL PROTECTED]>, Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > >- Do you have to interface with things like messaging-systems (a la JMS >specs), distributed transaction managers? If so, the only way to go >Python is Jython: Python for the JVM. Because AFAIK, there are no >interfa

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Adrian Holovaty
Ray wrote: > Yes, but this is more of a web application though--something that I've > never developed in Python before, so... I'll be evaluating Django > shortly--let me see how it compares to Tomcat. Performance is one of the key features of Django. For example, I'm using Django at washingtonpost

Re: Help me in this please--is Python the answer?

2006-01-12 Thread bruno at modulix
Ray wrote: (snip) > But then on the other hand, there is a manpower problem--it's damn easy > to find a Java programmer (although the quality that you get is a > different matter). Python programmers are more difficult. Possibly - but if a programmer is not able to pick on Python in a matter of d

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Ray
Tim N. van der Leeuw wrote: > Hi Ray, Hi Tim! > I'm in a bit of the same boat as you only I don't get to choose my > implementation language ;-) > > Some of the concerns should be: > - Do you have to interface with things like messaging-systems (a la JMS > specs), distributed transaction manager

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Ray
Hi Ed, Ed Singleton wrote: > Personally I have found that if you need to sell a technology on, > saying it's written in Java is an advantage generally (because "it's a > standard"). If it's written in Python you may get asked why it has > been written in a "scripting language" if they've heard of

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Ed Singleton
On 11 Jan 2006 17:54:05 -0800, Ray <[EMAIL PROTECTED]> wrote: > Hello, > > I've got the chance to determine the technology to use in creating a > product similar to this: > > http://www.atomicisland.com/ > > Now the thing is that I need to sell this to the guy with the money. > I've developed for y

Re: Help me in this please--is Python the answer?

2006-01-12 Thread Tim N. van der Leeuw
Hi Ray, I'm in a bit of the same boat as you only I don't get to choose my implementation language ;-) Some of the concerns should be: - Do you have to interface with things like messaging-systems (a la JMS specs), distributed transaction managers? If so, the only way to go Python is Jython: Pyth

Help me in this please--is Python the answer?

2006-01-11 Thread Ray
Hello, I've got the chance to determine the technology to use in creating a product similar to this: http://www.atomicisland.com/ Now the thing is that I need to sell this to the guy with the money. I've developed for years with C++ and Java, last 7 years J2EE, and I'm kinda sick of the "bloated