Re: Python and the need for speed

2017-04-11 Thread Steven D'Aprano
On Tue, 11 Apr 2017 21:10:56 -0700, Rick Johnson wrote: > high level languages like Python should make it difficult, if not > impossible, to write sub- > optimal code (at least in the blatantly obvious cases). You mean that Python should make it impossible to write: near_limit = [] near

Re: Python and the need for speed

2017-04-11 Thread Terry Reedy
On 4/11/2017 8:40 PM, Paul Rubin wrote: Mikhail V writes: Just my curiosity, I've always been intersted in such question: are devs still writing extensions in C, I mean type in C code? Yes. Aren't they using some translator or IDE which at lest hides the brackets and semicolons? I don't k

Re: Python and the need for speed

2017-04-11 Thread Gregory Ewing
Paul Rubin wrote: Or you could look at the past 50 years(!) of Lisp and Scheme compilers some of which produce very good code, ask what Python features can't be straightforwardly transliterated into Lisp to use those compilers, Lisp and Scheme are much less dynamic than Python. The problem of t

Re: download redtube video - Free

2017-04-11 Thread grownbetterwe
在 2008年9月22日星期一 UTC+8下午6:39:10,uomioc...@gmail.com写道: > download redtube video > . > . > . > ***CLICK HERE > http://vids365.cn/download-redtube-video > * > . > . > . > . > . > . > . > . > . > . > . > . > download redtube video You may also try Allavsoft to d

Re: IOError: [Errno 12] Not enough space

2017-04-11 Thread LnT
Hi Irmen, you may please find full log @ https://pastebin.mozilla.org/9018753 Regards, LnT On Tuesday, April 11, 2017 at 10:41:36 PM UTC+5:30, Irmen de Jong wrote: > On 11-4-2017 14:30, LnT wrote: > > Hi, > > > > version information > > > > python 27 > > Please be more precise, there is no P

Re: IOError: [Errno 12] Not enough space

2017-04-11 Thread LnT
Hi Irmen, 1) yes. its Python 2.7 2) Since windows 10 machine is a VM ,Only drive is available C and is provided 60GB for both OS and other softwares like java and python. And still 20GB free space is available. This python script does - open web application and capture the screenshot of the we

Re: IOError: [Errno 12] Not enough space

2017-04-11 Thread LnT
Hello eryk sun, Thanks so much for your input. could you please advice. 1) Any workaround for this issue ? 2) is it good to report issue in Windows OS help desk ? Regards, LnT On Wednesday, April 12, 2017 at 8:18:11 AM UTC+5:30, eryk sun wrote: > On Tue, Apr 11, 2017 at 12:30 PM, LnT wrote: >

Re: Python and the need for speed

2017-04-11 Thread Paul Rubin
Chris Angelico writes: > It's also entirely possible to have a single "application thread" and > then a "file opening thread" that does nothing but open files; Thanks. I think GHC and Erlang BEAM both do that. I hoped there was a better way. Note you potentially need multiple file opening thre

Re: Python and the need for speed

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 2:32 PM, Paul Rubin wrote: > Chris Angelico writes: >> Python, meanwhile, has made it easy to write blocking >> I/O in a single-threaded program, and then adds async'ness to it. > > I'd be interested to know how to open a disk file asynchronously in a > single-threaded Pyt

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Tuesday, April 11, 2017 at 7:44:49 PM UTC-5, Nathan Ernst wrote: > goto is a misunderstood and much misaligned creature. It is > a very useful feature, but like nearly any programming > construct can be abused. Constructs like 'break', > 'continue' or 'next' in languages like Python or C/C++ ar

Re: Python and the need for speed

2017-04-11 Thread Paul Rubin
Chris Angelico writes: > Python, meanwhile, has made it easy to write blocking > I/O in a single-threaded program, and then adds async'ness to it. I'd be interested to know how to open a disk file asynchronously in a single-threaded Python program under Linux. As far as I can tell there is no wa

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Tuesday, April 11, 2017 at 7:28:46 PM UTC-5, Nathan Ernst wrote: > > [...] > > Writing performant Python code is possible, but like > writing performant code in any other language, you need to > be aware of what's happening. This means paying attention > to things that may cause memory allocatio

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Tuesday, April 11, 2017 at 7:10:00 PM UTC-5, Mikhail V wrote: > On 12 April 2017 at 00:02, Rick Johnson wrote: > > On Monday, April 10, 2017 at 7:25:48 AM UTC-5, Mikhail V wrote: > > > Still I miss some old school features in Python, e.g. > > > "goto" statement would be very useful in some cases

Re: Python and the need for speed

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 12:29 PM, Rustom Mody wrote: > > I wonder if you notice Steven, that people use these examples to make > the opposite case? > > When you see "python is sweet... almost as sweet as javascript" > > you know you are in trouble and need to start running (at least I do) > > http

Re: IOError: [Errno 12] Not enough space

2017-04-11 Thread eryk sun
On Tue, Apr 11, 2017 at 12:30 PM, LnT wrote: > Opening browser 'firefox' to base url 'https://onbdev.nbpa.com/zae' > [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: > No browser is open > | FAIL | > IOError: [Errno 12] Not enough space >

Re: read in a list in a file to list

2017-04-11 Thread Rick Johnson
On Sunday, April 9, 2017 at 4:22:59 PM UTC-5, john polo wrote: > 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: > > I'll start you off. > > > > with open("apefile.txt") as apefile: > > for line in apefile: > > do

Re: Python and the need for speed

2017-04-11 Thread Rustom Mody
On Wednesday, April 12, 2017 at 7:38:12 AM UTC+5:30, Steve D'Aprano wrote: > On Wed, 12 Apr 2017 03:39 am, Paul Rubin wrote: > > > I still do my everyday stuff in Python and I'd like to get more > > conversant with stuff like numpy, but it feels like an old-fashioned > > language these days. > >

Re: Python and the need for speed

2017-04-11 Thread Rustom Mody
On Wednesday, April 12, 2017 at 3:32:57 AM UTC+5:30, Rick Johnson wrote: > On Monday, April 10, 2017 at 7:25:48 AM UTC-5, Mikhail V wrote: > > Still I miss some old school features in Python, e.g. > > "goto" statement would be very useful in some cases. > > Are you serious? > > > I know it is co

Re: Python and the need for speed

2017-04-11 Thread Steve D'Aprano
On Wed, 12 Apr 2017 03:39 am, Paul Rubin wrote: > I still do my everyday stuff in Python and I'd like to get more > conversant with stuff like numpy, but it feels like an old-fashioned > language these days. "Old fashioned"? With await/async just added to the language, and type annotations? And c

Re: Inclusion of of python and python libraries licensed with BSD- 3 clause license in proprietary software

2017-04-11 Thread Steve D'Aprano
On Wed, 12 Apr 2017 06:35 am, Abhishek Kumar wrote: > Hello, > > I tried finding the answer but even the lawyers in my town have no idea Where is your town? > about it and searching the web leaved me puzzled. What have you tried? The first few links found here: https://duckduckgo.com/?q=BS

Re: Python and the need for speed

2017-04-11 Thread Steve D'Aprano
On Wed, 12 Apr 2017 10:28 am, Nathan Ernst wrote: [...] > If you have a performance problem with Python, before you blame Python, > take a step back and look at your own code (or libraries you're using) and > ask yourself: "Is my code optimal?" > > Yes, Python is not the faster language/runtime i

Re: Python and the need for speed

2017-04-11 Thread Steve D'Aprano
On Wed, 12 Apr 2017 08:42 am, Rick Johnson wrote: > The fact that both Google AND DropBox are ignoring Python, > must be devastating to GvR Fact check: liar, liar, pants on fire. Neither Google nor DropBox are "ignoring Python". From two randomly selected technical job positions currently offere

Re: Python and the need for speed

2017-04-11 Thread Nathan Ernst
I think that's fair (and I had intended to mention it). Although, I'm curious how threading with IO compares to using async/awai (I've not experience with async/await in Python, just in C#). Regards, Nate On Tue, Apr 11, 2017 at 8:04 PM, MRAB wrote: > On 2017-04-12 01:28, Nathan Ernst wrote: >

Re: Python and the need for speed

2017-04-11 Thread MRAB
On 2017-04-12 01:28, Nathan Ernst wrote: [snip] I worked on http://www.marketswiki.com/wiki/CMDX - in particular I wrote most of the Migration Utility mentioned to migrate paper CDS trades to standardized CDS contracts against CME. Most of the migration util was written in native Python 2.5 (it

Re: Python and the need for speed

2017-04-11 Thread Nathan Ernst
goto is a misunderstood and much misaligned creature. It is a very useful feature, but like nearly any programming construct can be abused. Constructs like 'break', 'continue' or 'next' in languages like Python or C/C++ are goto's with implied labels. As Mikhail said, goto's can be great to break

Re: Python and the need for speed

2017-04-11 Thread Paul Rubin
Mikhail V writes: > Just my curiosity, I've always been intersted in such question: are devs > still writing extensions in C, I mean type in C code? Yes. > Aren't they using some translator or IDE which at lest hides the > brackets and semicolons? I don't know of anyone who does that. I don't

Re: Python and the need for speed

2017-04-11 Thread Paul Rubin
Grant Edwards writes: > If there are now other Python implementations (e.g. MicroPython) with > C APIs that differ from CPython, then it seems like it is no longer > redundant to say "the CPython API". Perhaps there should be an attempt to define a unified API like the Java JNI, Lisp FFI's, etc.

Re: Python and the need for speed

2017-04-11 Thread Paul Rubin
Chris Angelico writes: > Do you mean this? > https://docs.python.org/3/c-api/intro.html Correct, smart guy ;-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and the need for speed

2017-04-11 Thread Paul Rubin
Grant Edwards writes: > I didn't know there was such a thing as "The Python C API". It's described in this document: https://infohost.nmt.edu/tcc/help/lang/python/2_6_3/c-api.pdf You can tell that the document is about the Python/C API (ok, with a slash) because it says so at the top of the tit

Re: Swiss Ephemeris

2017-04-11 Thread Rick Johnson
On Monday, April 10, 2017 at 12:56:47 AM UTC-5, Deborah Swanson wrote: > 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.

Re: Python and the need for speed

2017-04-11 Thread Nathan Ernst
I used to write Python modules in C++. Well, more accurately, wrapped already-written C++ APIs to expose to Python using Boost Python. This wasn't due to performance issues, but to avoid reimplementing APIs. That said, I believe Python gets a bad wrap in regards to performance for a variety of re

Re: Python and the need for speed

2017-04-11 Thread Mikhail V
On 12 April 2017 at 00:02, Rick Johnson wrote: > On Monday, April 10, 2017 at 7:25:48 AM UTC-5, Mikhail V wrote: >> Still I miss some old school features in Python, e.g. >> "goto" statement would be very useful in some cases. > > Are you serious? Not so serious to think it is needed much. And it

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Tuesday, April 11, 2017 at 10:31:16 AM UTC-5, bartc wrote: > On 11/04/2017 15:56, Steve D'Aprano wrote: > > > The truth is, all of us in this discussion -- including me > > -- are "random, ignorant commentators". I don't believe > > that any of us are experts at writing compilers. Bart is > > a

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Tuesday, April 11, 2017 at 9:56:45 AM UTC-5, Steve D'Aprano wrote: > On Tue, 11 Apr 2017 07:56 pm, Brecht Machiels wrote: > > On 2017-04-11 08:19:31 +, Steven D'Aprano said: > > > > I understand that high performance was never a goal in > > CPython development (and Python language design!),

Re: Python and the need for speed

2017-04-11 Thread Mikhail V
On 11 April 2017 at 23:45, MRAB wrote: > On 2017-04-11 21:58, Mikhail V wrote: >> >> On 11 April 2017 at 16:56, Steve D'Aprano >> wrote: >>> >>> On Tue, 11 Apr 2017 07:56 pm, Brecht Machiels wrote: >>> >>> [...] >>> DropBox and Google seem to agree that there are no good solutions, sinc

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Tuesday, April 11, 2017 at 4:56:27 AM UTC-5, Brecht Machiels wrote: > On 2017-04-11 08:19:31 +, Steven D'Aprano said: > > > On Sun, 09 Apr 2017 19:05:35 +1000, Chris Angelico wrote: [...] > > The Python ecosystem is actually quite healthy, if you > > need to speed up code there are lots of

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Monday, April 10, 2017 at 5:48:30 PM UTC-5, 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 somethi

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Monday, April 10, 2017 at 7:25:48 AM UTC-5, Mikhail V wrote: > Still I miss some old school features in Python, e.g. > "goto" statement would be very useful in some cases. Are you serious? > I know it is considered bad style to use goto, but in some > cases it is just most natural thing to us

Re: Python and the need for speed

2017-04-11 Thread Rick Johnson
On Monday, April 10, 2017 at 4:43:52 AM UTC-5, bartc wrote: > 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

Re: Python and the need for speed

2017-04-11 Thread MRAB
On 2017-04-11 21:58, Mikhail V wrote: On 11 April 2017 at 16:56, Steve D'Aprano wrote: On Tue, 11 Apr 2017 07:56 pm, Brecht Machiels wrote: [...] DropBox and Google seem to agree that there are no good solutions, since they are moving to Go. That's a good solution! Maybe we should be writi

Re: Pound sign problem

2017-04-11 Thread Mikhail V
On 10 April 2017 at 15:17, 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'

Re: Pound sign problem

2017-04-11 Thread Tim Chase
On 2017-04-12 02:29, Steve D'Aprano wrote: > >> In 2017, unless you are reading from old legacy files created > >> using a non-Unicode encoding, you should just use UTF-8. > > > > Thanks for your opinion. My opinion differs. > > What would you suggest then, if not UTF-8? > > My personal favo

Re: Inclusion of of python and python libraries licensed with BSD- 3 clause license in proprietary software

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 7:03 AM, Abhishek Kumar wrote: > thanks for your response I am planning to distribute as a stand alone package > (fro windows .exe). Should I worry about the license in this case?! > Like I mentioned lawyers in my town have little or no idea about open source > .. Yes, i

Re: Python and the need for speed

2017-04-11 Thread Grant Edwards
On 2017-04-11, Chris Angelico wrote: > On Wed, Apr 12, 2017 at 5:47 AM, Grant Edwards > wrote: >> >> If there are now other Python implementations (e.g. MicroPython) with >> C APIs that differ from CPython, then it seems like it is no longer >> redundant to say "the CPython API". > > I don't think

Re: Inclusion of of python and python libraries licensed with BSD- 3 clause license in proprietary software

2017-04-11 Thread Abhishek Kumar
On Wednesday, 12 April 2017 02:23:53 UTC+5:30, Chris Angelico wrote: > On Wed, Apr 12, 2017 at 6:35 AM, Abhishek Kumar > wrote: > > I tried finding the answer but even the lawyers in my town have no idea > > about it and searching the web leaved me puzzled. > > I am planning to make a software

Re: Python and the need for speed

2017-04-11 Thread Mikhail V
On 11 April 2017 at 16:56, Steve D'Aprano wrote: > On Tue, 11 Apr 2017 07:56 pm, Brecht Machiels wrote: > >[...] > >> DropBox and >> Google seem to agree that there are no good solutions, since they are >> moving to Go. > > That's a good solution! Maybe we should be writing extensions in Go, inste

Re: Inclusion of of python and python libraries licensed with BSD- 3 clause license in proprietary software

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 6:35 AM, Abhishek Kumar wrote: > I tried finding the answer but even the lawyers in my town have no idea > about it and searching the web leaved me puzzled. > I am planning to make a software in python which will include libraries > licensed under BSD- 3 clause. Can I s

Inclusion of of python and python libraries licensed with BSD- 3 clause license in proprietary software

2017-04-11 Thread Abhishek Kumar
Hello, I tried finding the answer but even the lawyers in my town have no idea about it and searching the web leaved me puzzled. I am planning to make a software in python which will include libraries licensed under BSD- 3 clause. Can I sell this software under proprietary license and legal

Re: Python and the need for speed

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 5:47 AM, Grant Edwards wrote: > > If there are now other Python implementations (e.g. MicroPython) with > C APIs that differ from CPython, then it seems like it is no longer > redundant to say "the CPython API". I don't think there are. They either implement (some subset o

Re: Python and the need for speed

2017-04-11 Thread Grant Edwards
On 2017-04-11, Chris Angelico wrote: >>> Do you mean this? >>> >>> https://docs.python.org/3/c-api/intro.html >> >> I think so. That's the C API for one particlar implementation of >> Python "CPython", right? >> >> There is no "Python" C API specified as part of the language >> definition is the

Re: Python and the need for speed

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 5:19 AM, Grant Edwards wrote: > On 2017-04-11, Chris Angelico wrote: >> On Wed, Apr 12, 2017 at 4:42 AM, Grant Edwards >> wrote: >>> On 2017-04-11, Paul Rubin wrote: >>> You might look at MicroPython too (micropython.org). A fairly complete Python 3 implementat

Re: Python and the need for speed

2017-04-11 Thread Grant Edwards
On 2017-04-11, Chris Angelico wrote: > On Wed, Apr 12, 2017 at 4:42 AM, Grant Edwards > wrote: >> On 2017-04-11, Paul Rubin wrote: >> >>> You might look at MicroPython too (micropython.org). A fairly complete >>> Python 3 implementation with some ahead-of-time compiling, no fancy >>> JIT. Compl

Re: Python and the need for speed

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 4:42 AM, Grant Edwards wrote: > On 2017-04-11, Paul Rubin wrote: > >> You might look at MicroPython too (micropython.org). A fairly complete >> Python 3 implementation with some ahead-of-time compiling, no fancy >> JIT. Completely breaks the Python C API though. > > I di

Re: Python and the need for speed

2017-04-11 Thread Grant Edwards
On 2017-04-11, Paul Rubin wrote: > You might look at MicroPython too (micropython.org). A fairly complete > Python 3 implementation with some ahead-of-time compiling, no fancy > JIT. Completely breaks the Python C API though. I didn't know there was such a thing as "The Python C API". Or do y

Re: Pound sign problem

2017-04-11 Thread Steve D'Aprano
On Wed, 12 Apr 2017 02:23 am, Lew Pitcher wrote: > I recommend whatever encoding is appropriate for the output. There are multiple encodings that are appropriate for ASCII + pound sign. How should the OP choose between them without guidance? If he understood the issue well enough to make an info

Re: Python and the need for speed

2017-04-11 Thread Paul Rubin
Steven D'Aprano writes: > If we're going to talk about speeding up Python, we ought to talk about > *serious* approaches to the problem, not the musing of random, ignorant > bloggers and other naive commentators. So let's look at what the experts > have done: [list snipped] You might look

Re: Mcidas format

2017-04-11 Thread Terry Reedy
On 4/11/2017 7:57 AM, jorge.conr...@cptec.inpe.br wrote: I have some data from the https://ghrc.nsstc.nasa.gov/hydro/search.pl. These data are the Infrared Global Geostationary Composite and the format of this is data is Mcidas. Please anyone know how I can read this data using Python. Search

Re: Pound sign problem

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 2:23 AM, Lew Pitcher wrote: > Chris Angelico wrote: > >> On Wed, Apr 12, 2017 at 1:24 AM, Lew Pitcher >> wrote: >>> >>> What in "Try changing your target encoding to something other than ASCII" >>> is encouragement to use "old legacy encodings"? >>> In 2017, unless yo

Re: IOError: [Errno 12] Not enough space

2017-04-11 Thread Irmen de Jong
On 11-4-2017 14:30, LnT wrote: > Hi, > > version information > > python 27 Please be more precise, there is no Python 27. (Yeah it is clear you meant 2.7 but still) > java version "1.8.0_111" That should not be relevant > OS -Win 10 , 64Bit , 8GB RAM , 60GB HD 60 GB is not a lot of space for

Re: Python and the need for speed

2017-04-11 Thread Steve D'Aprano
On Wed, 12 Apr 2017 12:20 am, breamore...@gmail.com wrote: > So we should be welcoming back the RUE who I see is still spewing his > bile? The only one I see "spewing bile" is you. wxjmfauth's ignorant, stupid opinions about Python's handling of Unicode are just silly. Why are you taking it so

Re: Pound sign problem

2017-04-11 Thread Steve D'Aprano
On Wed, 12 Apr 2017 01:24 am, Lew Pitcher wrote: [...] >>> There is no "pound sign" in ASCII[1]. Try changing your target encoding >>> to something other than ASCII. >> >> Please don't encourage the use of old legacy encodings. > > I wonder if you actually read my reply. Of course I did. > W

Re: Pound sign problem

2017-04-11 Thread Lew Pitcher
Chris Angelico wrote: > On Wed, Apr 12, 2017 at 1:24 AM, Lew Pitcher > wrote: >> >> What in "Try changing your target encoding to something other than ASCII" >> is encouragement to use "old legacy encodings"? >> >>> In 2017, unless you are reading from old legacy files created using a >>> non-Uni

Re: Mcidas format

2017-04-11 Thread John Ralph
Can you provide a sample of the data and its format, please? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and the need for speed

2017-04-11 Thread bartc
On 11/04/2017 15:56, Steve D'Aprano wrote: The truth is, all of us in this discussion -- including me -- are "random, ignorant commentators". I don't believe that any of us are experts at writing compilers. Bart is a possible exception, for some definition of "expert" -- he claims to have writt

Re: Pound sign problem

2017-04-11 Thread Chris Angelico
On Wed, Apr 12, 2017 at 1:24 AM, Lew Pitcher wrote: > > What in "Try changing your target encoding to something other than ASCII" is > encouragement to use "old legacy encodings"? > >> In 2017, unless you are reading from old legacy files created using a >> non-Unicode encoding, you should just us

Moderating the list [was: Python and the need for speed]

2017-04-11 Thread Tim Golden
On 11/04/2017 15:20, breamore...@gmail.com wrote: On Tuesday, April 11, 2017 at 2:32:34 PM UTC+1, Steve D'Aprano wrote: On Tue, 11 Apr 2017 07:00 pm, breamoreboy wrote: While we're at it how do we go about changing this https://www.python.org/community/lists/ which states that "comp.lang.pytho

Re: Pound sign problem

2017-04-11 Thread Lew Pitcher
Steve D'Aprano wrote: > 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

Mcidas format

2017-04-11 Thread jorge . conrado
Hi, I have some data from the https://ghrc.nsstc.nasa.gov/hydro/search.pl. These data are the Infrared Global Geostationary Composite and the format of this is data is Mcidas. Please anyone know how I can read this data using Python. Thanks, Conrado -- https://mail.python.org/mailman/list

ldap search and Tuple

2017-04-11 Thread Alejandro Decchi
Dear, I am writing to ask you which is the most profitable way, to get the last uidNumber. With ldap search create a tuple with a lot of values as follows: ('dc=xxx,dc=xxx,dc=xx', {'uid': ['pepe'], 'objectClass': ['inetOrgPerson', 'mailUser', 'shadowAccount', 'amavisAccount', 'shell', 'wiki'],'uid

Re: Python and the need for speed

2017-04-11 Thread breamoreboy
On Tuesday, April 11, 2017 at 2:32:34 PM UTC+1, Steve D'Aprano wrote: > On Tue, 11 Apr 2017 07:00 pm, breamoreboy wrote: > > > While we're at it how do we go about changing this > > https://www.python.org/community/lists/ which states that > > "comp.lang.python is a high-volume Usenet open (not mo

Re: Python and the need for speed

2017-04-11 Thread Steve D'Aprano
On Tue, 11 Apr 2017 07:56 pm, Brecht Machiels wrote: > On 2017-04-11 08:19:31 +, Steven D'Aprano said: >> If we're going to talk about speeding up Python, we ought to talk about >> *serious* approaches to the problem, not the musing of random, ignorant >> bloggers and other naive commentators.

Need webFOCUS Business Intelligence Developer

2017-04-11 Thread Jack
Hi , Greetings from Niche software solutions . ​We have a new job opening for the following position, please find the job​ ​description below.Please share your most recent updated resume to move forward into the process, If you are not interested please let me know if you have any friends or

Need webFOCUS Business Intelligence Developer

2017-04-11 Thread Jack
Hi , Greetings from Niche software solutions . ​We have a new job opening for the following position, please find the job​ ​description below.Please share your most recent updated resume to move forward into the process, If you are not interested please let me know if you have any friends or

django user images

2017-04-11 Thread Xristos Xristoou
hello if i want to create a query in django with to take all images and preview that list in html like easy work. but if want in html page preview only the personal images where login user what changes i need in my code ? model.py class MyModel(models.Model): user = models.ForeignKey(User,

Re: Python and the need for speed

2017-04-11 Thread Steve D'Aprano
On Tue, 11 Apr 2017 07:11 pm, Chris Angelico wrote: > (Picking up one small part of your email; for the most part, I believe > we are in belligerent agreement.) :-) [...] > Did literal_eval get changed in 3.6 to add support for this? Nope. It > just hands the string of text to the compiler and

Re: Temporary variables in list comprehensions

2017-04-11 Thread Piet van Oostrum
Vincent Vande Vyvre writes: > final = [(x, y+1) for x, y in zip(e, e)] final = [(x, x+1) for x in e] -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and the need for speed

2017-04-11 Thread Steve D'Aprano
On Tue, 11 Apr 2017 07:00 pm, breamore...@gmail.com wrote: > While we're at it how do we go about changing this > https://www.python.org/community/lists/ which states that > "comp.lang.python is a high-volume Usenet open (not moderated) newsgroup > for general discussions and questions about Pytho

IOError: [Errno 12] Not enough space

2017-04-11 Thread LnT
Hi, version information python 27 java version "1.8.0_111" OS -Win 10 , 64Bit , 8GB RAM , 60GB HD executing python test script (robotframework) for a we bapplication Application url will be invoked by Firefox 38.0 Please find below log: -

Re: strange behaviour when writing a large amount of data on stdout

2017-04-11 Thread tlnarayana
On Thursday, November 24, 2005 at 8:06:34 PM UTC+5:30, bon...@gmail.com wrote: > Bengt Richter wrote: > > Depends on what you run ;-) Maybe how many times buggy apps die in unusual > > ways. > > Or worse, buggy drivers. Your car might have bad 4-wheel drive that you > > never used, > > so you tho

Re: Python and the need for speed

2017-04-11 Thread bartc
On 11/04/2017 09:19, Steven D'Aprano wrote: On Sun, 09 Apr 2017 19:05:35 +1000, Chris Angelico wrote: When people talk about making a restricted optimizable subset of Python, the implication (if not the explicit declaration) is that it's done strictly by removing, not by rewriting. Maybe *s

Re: Python and the need for speed

2017-04-11 Thread Brecht Machiels
On 2017-04-11 08:19:31 +, Steven D'Aprano said: On Sun, 09 Apr 2017 19:05:35 +1000, Chris Angelico wrote: When people talk about making a restricted optimizable subset of Python, the implication (if not the explicit declaration) is that it's done strictly by removing, not by rewriting. M

Re: Python and the need for speed

2017-04-11 Thread Chris Angelico
(Picking up one small part of your email; for the most part, I believe we are in belligerent agreement.) On Tue, Apr 11, 2017 at 6:19 PM, Steven D'Aprano wrote: > Are you aware that literal_eval is *not* the same code that the Python > interpreter uses for evaluating literals? They are kept in sy

Re: Python and the need for speed

2017-04-11 Thread breamoreboy
On Tuesday, April 11, 2017 at 9:26:14 AM UTC+1, Tim Golden wrote: > On 11/04/2017 00:33, Chris Angelico wrote: > > If he does, it might be the final thing that gets him banned from the > > mailing list. > > A meta-note, since I happen to have seen this email come up. > > I don't know about the ot

Re: Python and the need for speed

2017-04-11 Thread Chris Angelico
On Tue, Apr 11, 2017 at 6:26 PM, Tim Golden wrote: > On 11/04/2017 00:33, Chris Angelico wrote: >> >> If he does, it might be the final thing that gets him banned from the >> mailing list. > > > A meta-note, since I happen to have seen this email come up. > > I don't know about the other list mode

Re: Python and the need for speed

2017-04-11 Thread Tim Golden
On 11/04/2017 00:33, Chris Angelico wrote: If he does, it might be the final thing that gets him banned from the mailing list. A meta-note, since I happen to have seen this email come up. I don't know about the other list moderators, but I don't personally follow every sprawling thread and po

Re: Python and the need for speed

2017-04-11 Thread Steven D'Aprano
On Sun, 09 Apr 2017 19:05:35 +1000, Chris Angelico wrote: > When people talk about making a restricted optimizable subset of Python, > the implication (if not the explicit declaration) is that it's done > strictly by removing, not by rewriting. Maybe *some* people have a naive, if not foolish,