[no subject]

2017-04-07 Thread David Shi via Python-list
I was using IPython notebooks.  All the sudden, it asks for password or token. I did not set any password or token. How do I get back to use my IPython notebooks? Looking forward to hearing from you. Regards. David -- https://mail.python.org/mailman/listinfo/python-list

A Python solution for turning a web page into Pandas DataFrame table

2017-04-07 Thread David Shi via Python-list
Is there a Python solution for turning a web page into Pandas DataFrame table? Looking forward to hearing from you. Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: A Python solution for turning a web page into Pandas DataFrame table

2017-04-07 Thread Steve D'Aprano
On Fri, 7 Apr 2017 07:08 pm, David Shi wrote: > > > Is there a Python solution for turning a web page into Pandas DataFrame > table? Looking forward to hearing from you. What, *any* web page? Like this? http://www.math.ubc.ca/~cass/courses/m308-03b/projects-03b/skinner/ex-dimension-sierpinski_

django float round tripping

2017-04-07 Thread Robin Becker
I've been having problems with django FloatFields not round tripping properly; eg field = 0.018903438896219302 gets saved and returns as 0.0189034388962193 It turns out that this is a property of the MySQLdb python interface where in converter.py we have the definition def Float2Str(o, d):

Re: PYTHON

2017-04-07 Thread Mario R. Osorio
On Thursday, April 6, 2017 at 8:43:48 AM UTC-4, alders...@gmail.com wrote: > Hello, how can I start programming? http://www.lmgtfy.com/?q=Hello%2C+how+can+I+start+programming%3F -- https://mail.python.org/mailman/listinfo/python-list

Issues downloading python.

2017-04-07 Thread Brandon Mace
I have downloaded python onto a DELL laptop, but it will not run. I have tried to install it multiple times but each time it does not work so I try again. This time it has come up with a system error and that "The program can't start because api-ms-win-crt-runtime-[1-1-0.dlll is missing" What can I

Re: ANN: pyftpdlib 1.5.2 released

2017-04-07 Thread Jack Jansen
It looks as though you posted this message with the “about” paragraph from a different library? I looked at the web site, and pyftpdlib indeed seems to be an ftp daemon, as the name suggests, not a system load package…. Regards, Jack > On 06 Apr 2017, at 13:06, Giampaolo Rodola' wrote: > > He

Re: Issues downloading python.

2017-04-07 Thread mm0fmf
On 07/04/2017 15:57, Brandon Mace wrote: I have downloaded python onto a DELL laptop, but it will not run. I have tried to install it multiple times but each time it does not work so I try again. This time it has come up with a system error and that "The program can't start because api-ms-win-crt

EuroPython 2017: Tickets are now available

2017-04-07 Thread Alexander Hendorf
You can now buy regular tickets for Europe’s largest Python conference. After the early bird tickets sold out in just eight hours, standard rate tickets are now available: Student: EUR 130.- incl. VAT (only available for students and postdocs; please bring your student card) Personal: EUR 375.

Elastic Search

2017-04-07 Thread Keith Anthony
I need some insightful examples of elastic search, using REGEX ... And using REST. -- https://mail.python.org/mailman/listinfo/python-list

Find out which module a class came from

2017-04-07 Thread Tobiah
I was viewing the python source for a program at work and came across a class name that I knew my company had written: import mycmp1 import mycmp2 import mycmp3 import mycmp4 import mycmp5 foo = FooClass() So I knew that FooClass was defined in on

Re: Find out which module a class came from

2017-04-07 Thread Chris Angelico
On Sat, Apr 8, 2017 at 6:24 AM, Tobiah wrote: > I was viewing the python source for a program at work and > came across a class name that I knew my company had written: > > import mycmp1 > import mycmp2 > import mycmp3 > import mycmp4 > import mycmp5 > >

Re: Elastic Search

2017-04-07 Thread breamoreboy
On Friday, April 7, 2017 at 9:16:51 PM UTC+1, Keith Anthony wrote: > I need some insightful examples of elastic search, using REGEX ... > And using REST. What was wrong with the hits that you got from your search engine of choice? Kindest regards. Mark Lawrence. -- https://mail.python.org/mailm

Re: Temporary variables in list comprehensions

2017-04-07 Thread Roel Schroeven
Lele Gaifax schreef op 6/04/2017 20:07: Piet van Oostrum writes: It is a poor man's 'let'. It would be nice if python had a real 'let' construction. Or for example: [(tmp, tmp + 1) for x in data with tmp = expensive_calculation(x)] Alas! It would be nice indeed! Or even [(tmp, tmp + 1)

Re: Elastic Search

2017-04-07 Thread Steve D'Aprano
On Sat, 8 Apr 2017 06:15 am, Keith Anthony wrote: > I need some insightful examples of elastic search, using REGEX ... > And using REST. What's elastic search? And what does this have to do with Python? Can you be more specific rather than assume we know what you want? What have you tried, what

Re: Find out which module a class came from

2017-04-07 Thread Steve D'Aprano
On Sat, 8 Apr 2017 06:24 am, Tobiah wrote: > I was viewing the python source for a program at work and > came across a class name that I knew my company had written: > > import mycmp1 > import mycmp2 > import mycmp3 > import mycmp4 > import mycmp5 > > foo = FooClass() > > > So I knew that FooC

Re: Find out which module a class came from

2017-04-07 Thread Rick Johnson
On Friday, April 7, 2017 at 7:49:11 PM UTC-5, Steve D'Aprano wrote: > But for merely ordinary obfuscation caused by poor design, > your best bet is probably to inspect Foo.__module__. > > You can also try: > > inspect.getsource(FooClass) > inspect.getsourcefile(FooClass) Hmm, I tried that code b

Re: Temporary variables in list comprehensions

2017-04-07 Thread Jussi Piitulainen
Roel Schroeven writes: > Lele Gaifax schreef op 6/04/2017 20:07: >> Piet van Oostrum writes: >> >>> It is a poor man's 'let'. It would be nice if python had a real 'let' >>> construction. Or for example: >>> >>> [(tmp, tmp + 1) for x in data with tmp = expensive_calculation(x)] >>> >>> Alas! >> >