RE: Swiss Ephemeris

2017-04-09 Thread Deborah Swanson
Fully recognizing that most of what you wrote was tongue-in-cheek, I just want to say that regardless of the wonders of modern medicine, it's a pity they learn so little about successful medicines other than their own. In other academic scientific disciplines such as physics and chemistry it's not

Re: Swiss Ephemeris

2017-04-09 Thread Rick Johnson
On Sunday, April 9, 2017 at 8:52:44 PM UTC-5, Deborah Swanson wrote: > PS. I've been using medical astrology to look ahead at my > medical condition for years in advance. And being off by a > day or so doesn't matter that much when you're looking at > trends over the course of years and decades. I

Re: Need help with getting Key, Value out of dicts in lists

2017-04-09 Thread Irv Kalb
OK, I did't know if you were able to re-organize the data. I know nothing about AWS load balancers, but it's unfortunate that the data is laid out in a way that makes dealing with it difficult. But it sounds like you have worked it out. Best of luck. Irv > On Apr 9, 2017, at 2:21 PM, Kento

Re: Python and the need for speed

2017-04-09 Thread Rick Johnson
On Saturday, April 8, 2017 at 7:20:35 PM UTC-5, bream...@gmail.com wrote: > I've an idea that > http://www.mos6581.org/python_need_for_speed is a week late > for April Fool's but just in case I'm sure that some of you > may wish to comment. Might be a bit too late to dub this "April fools", but ne

Re: Python and the need for speed

2017-04-09 Thread Rick Johnson
On Sunday, April 9, 2017 at 7:21:21 PM UTC-5, Gregory Ewing wrote: > My take on the idea of making Python less dynamic in order > to improve speed is that you'll end up with a language > that, while it may superficially resemble Python, doesn't > really feel like Python. Boo is an example of that.

Re: Python and the need for speed

2017-04-09 Thread Rick Johnson
On Sunday, April 9, 2017 at 1:34:39 PM UTC-5, bartc wrote: > On 09/04/2017 04:57, Chris Angelico wrote: > > On Sun, Apr 9, 2017 at 10:20 AM, wrote: > > > I've an idea that > > > http://www.mos6581.org/python_need_for_speed is a week > > > late for April Fool's but just in case I'm sure that some

Re: Python and the need for speed

2017-04-09 Thread Chris Angelico
On Mon, Apr 10, 2017 at 12:04 PM, Rick Johnson wrote: >> Well, maybe. As is pointed out many, many times, 99% of >> Python code avoids the sorts of extreme dynamism that keeps >> things slow. Lots of people would be satisfied with a >> language *really close* to Python that was ten or twenty >> ti

Re: Python and the need for speed

2017-04-09 Thread Rick Johnson
On Sunday, April 9, 2017 at 4:05:57 AM UTC-5, Chris Angelico wrote: > On Sun, Apr 9, 2017 at 5:39 PM, Steven D'Aprano wrote: > > Even better would be if the compiler was smart enough to > > use the optimized, fast runtime when the dynamic features > > aren't used, and fall back on a slower implem

Re: Python and the need for speed

2017-04-09 Thread Rick Johnson
On Sunday, April 9, 2017 at 2:39:18 AM UTC-5, Steven D'Aprano wrote: > On Sun, 09 Apr 2017 13:57:28 +1000, Chris Angelico wrote: > > I don't know anyone who has ever said "this interpreter is > too fast, can you make it run slower?" LOL! > [...] > > Well, maybe. As is pointed out many, many times

RE: Swiss Ephemeris

2017-04-09 Thread Deborah Swanson
Peter Henry wrote, on Sunday, April 09, 2017 10:53 AM > > I have a package that has been altered to imported in to > python, however I tired to get is working but without success > I be missing something obvious > > The Swiss Ephemeris enable planetary coordinate to be > imported and used in

Re: Python and the need for speed

2017-04-09 Thread Gregory Ewing
Chris Angelico wrote: From that page: Other candidates for banishment from TurboPython include eval and exec. I'm not convinced that removing eval and exec has anything to do with making Python faster. There has to be a compiler somewhere in the system, and making it invokable at run time d

Re: read in a list in a file to list

2017-04-09 Thread Chris Angelico
On Mon, Apr 10, 2017 at 7:22 AM, john polo wrote: > Thanks for the reply. I looked back through the methods for strings. I also > looked at the csv module, but I couldn't tell which one of those would help. > The small .txt file does have commas, but with the weird form of listname = > [1] , [2],

Re: read in a list in a file to list

2017-04-09 Thread john polo
On 4/8/2017 3:21 PM, breamore...@gmail.com wrote: On Saturday, April 8, 2017 at 7:32:52 PM UTC+1, john polo wrote: Hi, I am using Python 3.6 on Windows 7. I have a file called apefile.txt. apefile.txt's contents are: apes = "Home sapiens", "Pan troglodytes", "Gorilla gorilla" I have a scrip

Re: Need help with getting Key, Value out of dicts in lists

2017-04-09 Thread Kenton Brede
Thanks for the response Irv. On one level I'm glad to know that someone more knowledgeable than myself sees this data structure as difficult. :) I was thinking it was an easy problem to solve. Unfortunately that is the structure I have to use. The data comes from pulling back tag information on

Re: Python and the need for speed

2017-04-09 Thread bartc
On 09/04/2017 04:57, Chris Angelico wrote: On Sun, Apr 9, 2017 at 10:20 AM, wrote: I've an idea that http://www.mos6581.org/python_need_for_speed is a week late for April Fool's but just in case I'm sure that some of you may wish to comment. In fact, extreme dynamism is baked deep into the

Swiss Ephemeris

2017-04-09 Thread Peter Henry
Hi Group I have a package that has been altered to imported in to python, however I tired to get is working but without success I be missing something obvious The Swiss Ephemeris enable planetary coordinate to be imported and used in your program Files access https://pypi.python.org/pypi/pysw

auth select chooses in forms.py

2017-04-09 Thread Xristos Xristoou
I have read this code in this question and look nice. but if I have user auth and I want user select only your odjects how to change that code ?for ex chooses your personal upload images. from django.forms.widgets import Select class ProvinceForm(ModelForm): class Meta: CH

Re: Python and the need for speed

2017-04-09 Thread Chris Angelico
On Sun, Apr 9, 2017 at 5:39 PM, Steven D'Aprano wrote: > On Sun, 09 Apr 2017 13:57:28 +1000, Chris Angelico wrote: >>>From that page: >> >>> Other candidates for banishment from TurboPython include eval and exec. >> >> Bye bye namedtuple. > > All that would mean is that the implementation of named

Re: Need help with getting Key, Value out of dicts in lists

2017-04-09 Thread Peter Otten
Kenton Brede wrote: > This is an example of the data I'm working with. The key/value pairs may > come in any order. There are some keys like the 'Resource_group_id' key > and the 'Name' key which will always be present, but other lists may have > unique keys. > > alist = [[{u'Value': 'shibboleth

Re: Python and the need for speed

2017-04-09 Thread Steven D'Aprano
On Sun, 09 Apr 2017 13:57:28 +1000, Chris Angelico wrote: > On Sun, Apr 9, 2017 at 10:20 AM, wrote: >> I've an idea that http://www.mos6581.org/python_need_for_speed is a >> week late for April Fool's but just in case I'm sure that some of you >> may wish to comment. I'm not sure why Mark think