Re: not able to install mysqldb-python

2016-06-25 Thread Lawrence D’Oliveiro
On Friday, June 24, 2016 at 5:48:27 AM UTC+12, Joaquin Alzola wrote: > This email is confidential and may be subject to privilege. If you are not > the intended recipient, please do not copy or disclose its content but > contact the sender immediately upon receipt. Sender, please consider yoursel

Re: how to python to use virtual memory?

2016-06-25 Thread Ho Yeung Lee
what is the command or code to write to use virtual memory if i use extra 20 GB from hard disk as memory, means from 70GB memory to 90GB memory and left 10GB for file? Michael Torrie於 2016年6月25日星期六 UTC+8上午11時00分36秒寫道: > On 06/24/2016 08:44 PM, Dennis Lee Bieber wrote: > > I don't know how Lin

Re: Can math.atan2 return INF?

2016-06-25 Thread Gregory Ewing
Marko Rauhamaa wrote: pdora...@pas-de-pub-merci.mac.com (Pierre-Alain Dorange): For a scientific point of view, right. But tell this to the one that will be close to a blackhole ;-) Then, you'd better consult a priest than a scientist. But don't worry, you'll have an infinitely long time to

Re: Can math.atan2 return INF?

2016-06-25 Thread Gregory Ewing
Marko Rauhamaa wrote: pdora...@pas-de-pub-merci.mac.com (Pierre-Alain Dorange): Near a black hole 3.7 seconds can last an infinite time... Which phenomenon prevents a black hole from ever forming. Yet astronomers keep telling us they are all over the place. Astronomers have observed objects

Re: Can math.atan2 return INF?

2016-06-25 Thread MRAB
On 2016-06-26 00:15, Gregory Ewing wrote: Steven D'Aprano wrote: China has just announced a new supercomputer that is so fast it can run an infinite loop in 3.7 seconds. They're lying. It has to be NaN seconds. If it was an Indian supercomputer, it would be naan seconds. Sorry. :-) -- https

Re: Can math.atan2 return INF?

2016-06-25 Thread Gregory Ewing
Steven D'Aprano wrote: China has just announced a new supercomputer that is so fast it can run an infinite loop in 3.7 seconds. They're lying. It has to be NaN seconds. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Operator Precedence/Boolean Logic

2016-06-25 Thread Gregory Ewing
Marko Rauhamaa wrote: The pile originally had -4 coconuts. The first sailor threw one to the monkey, leaving -5 coconuts in the pile. He took his share (-1 coconut) out and put the remaining -4 coconuts back in the big pile. Sounds a bit like Hawking radiation. A coconut-anticoconut p

Re: JSON to Pandas data frame

2016-06-25 Thread hasan . diwan
David Shi writes: >How to convert a JSON object into a Pandas data frame? You can use read_json -- http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_json.html to read it into a dataframe. Or you can read the json into python objects and use read_records to create a pandas DataFra

JSON to Pandas data frame

2016-06-25 Thread David Shi via Python-list
How to convert a JSON object into a Pandas data frame? I know that for XML, there are XML parsers. Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: How to reset IPython notebook file association

2016-06-25 Thread Steven D'Aprano
On Sat, 25 Jun 2016 09:00 pm, David Shi wrote: > I use IPython Notebook to do Python programming. > I used "Open with" and set it with Google Chrome.  Then, my IPython > notebook does not load properly. How can I reset IPython notebook file > association, so that I can use it again? Have you trie

How to reset IPython notebook file association

2016-06-25 Thread David Shi via Python-list
I use IPython Notebook to do Python programming. I used "Open with" and set it with Google Chrome.  Then, my IPython notebook does not load properly. How can I reset IPython notebook file association, so that I can use it again? Looking forward to hearing from you. Regards. David -- https://mail.

Re: Operator Precedence/Boolean Logic

2016-06-25 Thread Marko Rauhamaa
Steven D'Aprano : > So we have falsey values: > > - None > - zeroes (0, 0.0, 0j, etc) > - empty dict {} > - empty sets and frozensets > - empty strings '' and b'' (in Python 2: u'' and '') > - empty lists, tuples and other sequences > > and truthy values: > > - object > - non-zero numbers > - non-

Re: I seem to be creating a dict that I cannot access the keys of

2016-06-25 Thread Sayth Renshaw
> > The code below is obviously wrong - it is surprising that you get > anything other than an exception. See comments below inserted into > your code. > > > def parseXML(): > > ... > > result = etree.tostring(tree.getroot(), pretty_print=True) > > "result" here is obviously a string

Re: program return killed after run a very long time

2016-06-25 Thread dieter
meInvent bbird writes: > i suspect it use so much memory, > > however i have already assign 30GB memory in openstack cloud > > is there any command to allow python to use more memory? > > currently > > program return killed after run a very long time Usually, there are memory limits at various l

Re: Question on compiling on linux

2016-06-25 Thread Steven Truppe
i hope this email works like you expected! I found the libpython3.so, i don't know why i was not able to see it, thank you very much to everyone wo helped me! No my last question(s) is how can i create debug/release builds ? Am 2016-06-24 um 22:08 schrieb Zachary Ware: On Fri, Jun 24, 2016 a

Re: I seem to be creating a dict that I cannot access the keys of

2016-06-25 Thread dieter
Sayth Renshaw writes: > ... > Can I ask is there something obvious wrong, i have left the commented other > versions in they "work" in that they all produce the same output the print > whole file. > The code below is obviously wrong - it is surprising that you get anything other than an excepti

Re: not able to install mysqldb-python

2016-06-25 Thread Chris Warrick
On 24 June 2016 at 09:46, Arshpreet Singh wrote: > On Thursday, 23 June 2016 23:18:27 UTC+5:30, Joaquin Alzola wrote: >> >ImportError: No module named 'ConfigParser' >> It is telling you the error >> This email is confidential and may be subject to privilege. If you are not >> the intended