Re: Swiss Ephemeris

2017-04-10 Thread Rustom Mody
On Monday, April 10, 2017 at 11:26:47 AM UTC+5:30, Deborah Swanson wrote: > The great ancients were no less endowed with intelligence than we are, they > simply directed it to different ends. And just when I was convinced by the all-knowers that my gpa was a monkey you've spoilt my complacence >

Re: Python and the need for speed

2017-04-10 Thread Christian Gollwitzer
Am 10.04.17 um 02:21 schrieb Gregory Ewing: Heck, you can write an exec() function for C if you really want. Run the C compiler in another process, dynamically load the object file and call it. Doing that would be very inefficient, but it wouldn't slow down the rest of your C code. Actually, th

Re: Pound sign problem

2017-04-10 Thread Steve D'Aprano
On Tue, 11 Apr 2017 12:50 am, Lew Pitcher wrote: > David Shi wrote: > >> In the data set, pound sign escape appears: >> u'price_currency': u'\xa3', u'price_formatted': u'\xa3525,000', That looks like David is using Python 2. >> When using table.to_csv after importing pandas as pd, an error mess

Re: Python and the need for speed

2017-04-10 Thread Chris Angelico
On Tue, Apr 11, 2017 at 8:45 AM, Erik wrote: > On 10/04/17 03:23, Chris Angelico wrote: >> >> Okay, I have a pretty thick skin, but this is getting a bit obnoxious. >> Can you PLEASE post something that isn't just insulting me? Thanks. > > > Are you suggesting he should post something that insults

Re: Python and the need for speed

2017-04-10 Thread Erik
On 10/04/17 03:23, Chris Angelico wrote: Okay, I have a pretty thick skin, but this is getting a bit obnoxious. Can you PLEASE post something that isn't just insulting me? Thanks. Are you suggesting he should post something that insults you *and* others? If so, I'm up for being insulted too ;)

Re: read in a list in a file to list

2017-04-10 Thread Erik
On 09/04/17 22:22, john polo wrote: The new attempt gives me a list, now I have to figure out how to deal with unwanted quotation marks and spaces. datFil = open("apelist.txt") datObj = datFil.read() datObj2 = datObj.replace('" ','') #added this comment while writing this email: I guess I c

RE: Swiss Ephemeris

2017-04-10 Thread Deborah Swanson
Hi Peter I'm willing to believe there's a correlation between planetary cycles and the stockmarket, if you say you see one. The question is whether this correlation has truth value significance, or whether it's just a set of coincidences. The correlation is interesting, but I fail to see the cau

Fwd: Swiss Ephemeris

2017-04-10 Thread Peter Henry
Hi Deborah Very few people would believe there is correlation between planetary cycles and the stockmarket however this is known to select few, for many years, I can also visually see relationship on charts, however its hard to quantify statically http://astrologynewsservice.com/business/study-c

RE: Swiss Ephemeris

2017-04-10 Thread Deborah Swanson
Hi Peter, I would be interested in seeing your Excel addin with customized planetary settings. I'd be curious what these customizations would be, though if they look useful I'd more likely be scavenging the code to rewrite it in Python and add to what I already have, rather than using the addin in

how to convert this container back to format build result?

2017-04-10 Thread Ho Yeung Lee
http://construct.readthedocs.io/en/latest/basics.html format.build can build the hex string, but after edit attribute of the format parse result it is a container, how to convert this container back to format build result? #format.parse(format.build(dict(width=3,height=2,pixels=[7,8,9,11,12,13]

Re: Swiss Ephemeris

2017-04-10 Thread Peter Henry
Hi Deborah, Thanks your reply and interest, A few years ago did create a Excel addin, that extracted planetary coordinates from the Swisseph source code and populated excel spreadsheet This Marco addin had customised planetary settings of which was useful Currently now learning to program in P

[ANN] txkube 0.1.0

2017-04-10 Thread Jean-Paul Calderone
Hello all, I'm pleased to announce the first release of txkube, a Twisted-based library for interacting with Kubernetes using the HTTP API. This release supports several of the most commonly used basic Kubernetes objects, including Services, ConfigMaps, Deployments, ReplicaSets, and Pods. While

Re: Installing Python 3.6.1 on a Windows 10

2017-04-10 Thread eryk sun
On Mon, Apr 10, 2017 at 3:45 PM, Colin J. Williams wrote: > Below is the tail of my Install Log. > Is this a problem that I should be able to resolve? > Advice sought. Open a Windows / Installation issue on bugs.python.org. Zip up the installation logs and attach the zip to the issue. -- https:/

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

2017-04-10 Thread John Ralph
There are a number of ways to reorganise the data for the exclusive use of your script without affecting the original data. Is there a reason you can't or not allowed to do this? Regardless, here's some code that might make things a little easier. It operates on each balancer on the fly, redu

Re: using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread iMath
On Tuesday, April 11, 2017 at 12:00:27 AM UTC+8, iMath wrote: > > Are you sure you posted the code you are actually using? Because the > > error message suggests a difference. > > > I am sure ! > > As I have tested: If I pass the IP address of my web server to the host > parameter of HTTPHandle

Re: using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread iMath
On Tuesday, April 11, 2017 at 12:00:27 AM UTC+8, iMath wrote: > > Are you sure you posted the code you are actually using? Because the > > error message suggests a difference. > > > I am sure ! > > As I have tested: If I pass the IP address of my web server to the host > parameter of HTTPHandle

Re: using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread iMath
> Are you sure you posted the code you are actually using? Because the > error message suggests a difference. > I am sure ! As I have tested: If I pass the IP address of my web server to the host parameter of HTTPHandler, the server side would show http 400 and Invalid HTTP_HOST header messag

Installing Python 3.6.1 on a Windows 10

2017-04-10 Thread Colin J. Williams
Below is the tail of my Install Log. Is this a problem that I should be able to resolve? Advice sought. C Property(S): RedirectedDllSupport = 2 Property(S): MsiRunningElevated = 1 Property(S): Privileged = 1 Property(S): USERNAME = AdminOnly Property(S): Installed = 0

Re: Pound sign problem

2017-04-10 Thread Lew Pitcher
David Shi wrote: > In the data set, pound sign escape appears: > u'price_currency': u'\xa3', u'price_formatted': u'\xa3525,000', > When using table.to_csv after importing pandas as pd, an error message > persists as follows: UnicodeEncodeError: 'ascii' codec can't encode > character u'\xa3' in pos

Re: Python and the need for speed

2017-04-10 Thread William Ray Wing
> On Apr 10, 2017, at 8:25 AM, Mikhail V wrote: > > On 10 April 2017 at 02:21, 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'

Re: Pillow ImportError: No module named Image

2017-04-10 Thread Jon Ribbens
On 2017-04-10, jorge.conr...@cptec.inpe.br wrote: > I installed the Pillow in my computer. The I did: > > import Image, ImageMath > > ImportError: No module named Image Try: from PIL import Image, ImageMath -- https://mail.python.org/mailman/listinfo/python-list

Pillow ImportError: No module named Image

2017-04-10 Thread jorge . conrado
Hi, I installed the Pillow in my computer. The I did: import Image, ImageMath ImportError: No module named Image Please, what can I do to solve this. Conrado -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.6 printing crashing on OS X 10.12.4

2017-04-10 Thread Ray Cote
On Wed, Apr 5, 2017 at 3:40 PM, Python wrote: > Le 05/04/2017 à 20:14, Ray Cote a écrit : > >> Hello: >> >> Python 3.6 crashing when trying to print from the environment. >> >> $ python >> Python 3.6.1 (default, Mar 22 2017, 15:53:21) >> [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]

Re: Pound sign problem

2017-04-10 Thread Peter Otten
David Shi via Python-list wrote: > In the data set, pound sign escape appears: > u'price_currency': u'\xa3', u'price_formatted': u'\xa3525,000', > When using table.to_csv after importing pandas as pd, an error message > persists as follows: UnicodeEncodeError: 'ascii' codec can't encode > characte

Re: Pound sign problem

2017-04-10 Thread Ben Finney
David Shi via Python-list writes: > When using table.to_csv after importing pandas as pd I don't know much about that library. What does its documentation say for the ‘table.to_csv’ function? Can you write a *very short* complete example, that we can run to demonstrate the same behaviour you ar

[ANN] txAWS 0.3.0

2017-04-10 Thread Jean-Paul Calderone
Hello all, I'm pleased to announce the release of txAWS 0.3.0. txAWS is a library for interacting with Amazon Web Services (AWS) using Twisted. You can download the release from PyPI (https://pypi.python.org/pypi/txAWS). txAWS development uses GitHub for is

Pound sign problem

2017-04-10 Thread David Shi via Python-list
In the data set, pound sign escape appears: u'price_currency': u'\xa3', u'price_formatted': u'\xa3525,000', When using table.to_csv after importing pandas as pd, an error message persists as follows: UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 0: ordinal not in ra

Re: Python and the need for speed

2017-04-10 Thread breamoreboy
On Monday, April 10, 2017 at 1:25:48 PM UTC+1, Mikhail V wrote: > > Still I miss some old school features in Python, e.g. "goto" statement would > be very useful in some cases. I know it is considered bad style > to use goto, but in some cases it is just most natural thing to use. > http://entri

Re: Python and the need for speed

2017-04-10 Thread Mikhail V
On 10 April 2017 at 02:21, 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. It

RE: Swiss Ephemeris

2017-04-10 Thread Adriaan Renting
There are at least two other packages with Python bindings that allow ephimerides calculations. 1) PyEphem http://rhodesmill.org/pyephem/ 2) Pyraphttp://www.astron.nl/casacore/trunk/pyrap/docs/ (This needs a very big casacore c++ library and thus a pain to compile, but can give second level accur

Re: Python and the need for speed

2017-04-10 Thread bartc
On 10/04/2017 03:40, Rick Johnson wrote: On Sunday, April 9, 2017 at 1:34:39 PM UTC-5, bartc wrote: I have my own interpreted language which I call 'dynamic', but compared with Python, code in it might as well be set in concrete. Is this a personal toy, or something that you can share a link

Re: Improve Python + Influxdb import performance

2017-04-10 Thread Prathamesh
Hi I've installed Jython 2.7 and was able to get weblogic running as a Jython 2.7 module following https://technology.amis.nl/2015/10/04/how-to-use-wlst-as-a-jython-2-7-module/ I got the requests module 2.7 installed as well But am facing an issue when invoking it related to SSL certificates an