Re: [Tutor] properly propagate problems

2019-03-24 Thread ingo janssen
On 24/03/2019 00:03, Cameron Simpson wrote: Short takeaway: decide what's mechanism and what is policy, and try to put policy further out in higher level code. That, Cameron, was a very insightful answer and an eye opener, as I try to 'fix things' as early as possible. It also answered the que

Re: [Tutor] After virtualenv, how to use ide

2019-03-24 Thread anand warik
I gave up on Spyder and shifted to Atom, which seems easy to port to different versions of python created by virtual environments. But now facing a new problem. I have installed a package named autocomplete-python on atom but it doesn't seem to work. I checked few links on stackoverflow as well but

[Tutor] [OT] Problem with auto-complete package installation in Atom [Was: Re: After virtualenv, how to use ide]

2019-03-24 Thread boB Stepp
On Sun, Mar 24, 2019 at 2:45 AM anand warik wrote: > > I gave up on Spyder and shifted to Atom, which seems easy to port to > different versions of python created by virtual environments. But now facing > a new problem. I have installed a package named autocomplete-python on atom > but it doesn

Re: [Tutor] How to avoid "UnboundLocalError: local variable 'goal_year' referenced before assignment"?

2019-03-24 Thread boB Stepp
Oh, happy day! eval() has been expunged from my program!! I will now continue from where I left off earlier. On Sun, Mar 24, 2019 at 12:22 AM Cameron Simpson wrote: > > On 23Mar2019 22:15, boB Stepp wrote: > > The lambda is just a single line function definition, and doesn't get a > function n

Re: [Tutor] [OT] Problem with auto-complete package installation in Atom [Was: Re: After virtualenv, how to use ide]

2019-03-24 Thread Alan Gauld via Tutor
On 24/03/19 18:32, boB Stepp wrote: apologize in advance! But that is okay. I am not a professional nor expert programmer myself. Because of this, I recall agonizing over the choice of code editor, or, possibly even worse, deciding whether to use an IDE or editor. This is a difficult decisio

Re: [Tutor] [OT] Problem with auto-complete package installation in Atom [Was: Re: After virtualenv, how to use ide]

2019-03-24 Thread David L Neil
apologize in advance!  But that is okay.  I am not a professional nor expert programmer myself.  Because of this, I recall agonizing over the choice of code editor, or, possibly even worse, deciding whether to use an IDE or editor.  This is a difficult decision about which many wax poetic and expr

Re: [Tutor] How to avoid "UnboundLocalError: local variable 'goal_year' referenced before assignment"?

2019-03-24 Thread Cameron Simpson
On 24Mar2019 14:33, boB Stepp wrote: On 23Mar2019 22:15, boB Stepp wrote: The lambda is just a single line function definition, and doesn't get a function name. So your get_input name now accepts a "date_constructor" parameter and you would change the input step from this: try:

Re: [Tutor] [OT] Problem with auto-complete package installation in Atom [Was: Re: After virtualenv, how to use ide]

2019-03-24 Thread boB Stepp
On Sun, Mar 24, 2019 at 8:51 PM anand warik wrote: > > I am sorry for not sticking to my original question but editors are > complicated in itself. So many costimization instruction to read through just > to finally execute a simple .Py file which can be just executed using the > terminal. > >