On 02/19/2016 10:14 AM, wrong.addres...@gmail.com wrote:
[snip]
This is precisely reading one character at a time. If not exactly reading one
character, it is effectively looking at each character to assemble the number.
Not a good sign. I guess there might be libraries which will help read nu
On Fri, Feb 19, 2016 at 10:24 PM, Rustom Mody wrote:
> Less snarkily looks like a series of bolt-ons after bolt-ons
>
> IMHO Guido's (otherwise) uncannily sound intuitions have been wrong right from
> 2001 when he overloaded def for generators.
> And after that its been slippery-slope down: reusin
When I use either of the following commands I get an error for which I don't
have a solution, could someone here help me further?
These are the commands:
import matplotlib.pyplot as plt
or
from matplotlib.pyplot import pyplot as plt
This is the error I get:
Traceback (most recent call last):
Marko Rauhamaa writes:
> "Frank Millman" :
>> I would love to drive the database asynchronously, but of the three
>> databases I use, only psycopg2 seems to have asyncio support.
> Yes, asyncio is at its infancy. There needs to be a moratorium on
> blocking I/O.
Unfortunately there appears to be
Am 20.02.16 um 03:36 schrieb Steven D'Aprano:
On Thu, 18 Feb 2016 09:08 am, Mark Lawrence wrote:
Seeing there is a lot of interest in asyncio recently I figured people
might be interested in this
http://www.snarky.ca/how-the-heck-does-async-await-work-in-python-3-5
Thanks for the link, but I
Rustom Mody writes:
> Forgot the probably most important: Not merging stackless into CPython
I thought there was some serious technical obstacle to that.
Where can I find Greg Ewing's suggestions about Python coroutines? The
async/await stuff seems ok on the surface.
I liked the Lua paper abou
On Saturday, February 20, 2016 at 10:55:02 AM UTC+5:30, Rustom Mody wrote:
> On Saturday, February 20, 2016 at 8:07:03 AM UTC+5:30, Steven D'Aprano wrote:
> > On Thu, 18 Feb 2016 09:08 am, Mark Lawrence wrote:
> >
> > > Seeing there is a lot of interest in asyncio recently I figured people
> > > m
On Saturday, February 20, 2016 at 8:07:03 AM UTC+5:30, Steven D'Aprano wrote:
> On Thu, 18 Feb 2016 09:08 am, Mark Lawrence wrote:
>
> > Seeing there is a lot of interest in asyncio recently I figured people
> > might be interested in this
> > http://www.snarky.ca/how-the-heck-does-async-await-wor
On Wednesday, February 17, 2016 at 1:49:44 PM UTC-6, wrong.a...@gmail.com wrote:
> I am mostly getting positive feedback for Python.
>
> It seems Python is used more for web based applications. Is it equally fine
> for creating stand-alone *.exe's? Can the same code be compiled to run on
> Linux
On 2/18/2016 9:22 PM, Ethan Furman wrote:
Anyone know one for deleting all responses to a troll post?
Thunderbird has 'ignore thread' on its context menu.
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/python-list
> On Feb 19, 2016, at 8:13 PM, Steven D'Aprano wrote:
>
> On Sat, 20 Feb 2016 12:27 am, Dennis Lee Bieber wrote:
>
>
>> Then the best suggestion I have would be to take a weekend and just
>> read the language reference manual (it used to be about an 80-page PDF
>> file, but has no doubt grown
On Thu, 18 Feb 2016 09:08 am, Mark Lawrence wrote:
> Seeing there is a lot of interest in asyncio recently I figured people
> might be interested in this
> http://www.snarky.ca/how-the-heck-does-async-await-work-in-python-3-5
Thanks for the link, but I'm now no wiser than I was before :-(
Can s
On Fri, 19 Feb 2016 02:39 pm, Rustom Mody wrote:
> Consider as hypothesis
> L1: Needs 4 weeks to master
A language that only takes 4 weeks to master, starting from zero programming
experience, clearly doesn't include much in the way of features.
> L2: Needs 4 years to manage (if you want to mak
On Sat, Feb 20, 2016 at 11:24 AM, Ian Kelly wrote:
>> Look like inheriting from defaultdict is easier. I don't even have to
>> override the constructor as suggested by Chris Angelico above. Thanks.
>
> True, although there's a faint code smell as this technically violates
> the Liskov Substitutio
On Sat, 20 Feb 2016 12:27 am, Dennis Lee Bieber wrote:
> Then the best suggestion I have would be to take a weekend and just
> read the language reference manual (it used to be about an 80-page PDF
> file, but has no doubt grown into some less handy dynamically linked
> HTML/"help" file). Then ad
On 2016-02-19 10:46, noydb wrote:
> I want to be able to download this CSV file and save to disk
> >> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv
from urllib.request import urlopen
data =
urlopen("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.c
On Thu, Feb 18, 2016 at 10:41 AM, Herman wrote:
> From: Ben Finney
>>
>> you are using the inheritance hierarchy but thwarting it by not using
>> ‘super’. Instead::
>>
>> super().__init__(self, default_factory, *a, **kw)
>>
>> and::
>>
>> super().__getitem__(self, key)
>> --
>> \ "
On 19/02/2016 18:14, wrong.addres...@gmail.com wrote:
On Friday, 19 February 2016 16:08:46 UTC+2, Tim Chase wrote:
All this I could do with one Read or Input statement in Fortran and Basic.
I agree with you completely. This stuff is far more complicated than it
need be. And the fact that t
On Fri, Feb 19, 2016 at 3:05 PM, noydb wrote:
> Thanks! That was pretty easy.
>
> import urllib.request
> url = '
> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv'
> urllib.request.urlretrieve(url, csv_file)
> csv_file = r"C:\Temp\earthquakeAll_last30days.csv"
> urllib.re
Thanks! That was pretty easy.
import urllib.request
url = 'http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv'
urllib.request.urlretrieve(url, csv_file)
csv_file = r"C:\Temp\earthquakeAll_last30days.csv"
urllib.request.urlretrieve(url, csv_file)
I do want to use python -- the
On Fri, Feb 19, 2016 at 10:33 AM, Dan Stromberg wrote:
> On Thu, Feb 18, 2016 at 5:40 PM, Dan Stromberg wrote:
>
>>
>> BTW, this is not a package I pip installed from pypi - it's an
>> internal-only project.
>
> I need to correct this: It's not installed from pypi.python.org, but
> it probably is
On 2016-02-19, noydb wrote:
> Greetings All,
>
> Python v 3.4, windows
>
> I want to be able to download this CSV file and save to disk
>>> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv
Unless you really want to write a Python program, "wget" is a good solution:
htt
On 2016-02-19 18:46, noydb wrote:
Greetings All,
Python v 3.4, windows
I want to be able to download this CSV file and save to disk
http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv
This (interacting with the web using python) is very new to me, so can anyone
provide di
Greetings All,
Python v 3.4, windows
I want to be able to download this CSV file and save to disk
>> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv
This (interacting with the web using python) is very new to me, so can anyone
provide direction on how to go about doing t
On Fri, Feb 19, 2016 at 8:18 AM, Gisle Vanem wrote:
> Dennis Lee Bieber wrote:
>
How can one search for files with DOS?
>>>
>>> dir /s /b \*add2path.*
>>>
>>> ChrisA
>>
>> Or move to PowerShell...
>>
>> Windows PowerShell
>> Copyright (C) 2009 Microsoft Corporation. All rights reserved.
On Friday, February 19, 2016 at 1:18:41 PM UTC-5, Jon Ribbens wrote:
> On 2016-02-19, Jeremy Leonard wrote:
> > I have a quick question regarding processing multiple forms. Most of
> > my experience has been where there is just one form so the logic was
> > pretty straight forward for me. My questi
On Thu, Feb 18, 2016 at 5:40 PM, Dan Stromberg wrote:
>
> BTW, this is not a package I pip installed from pypi - it's an
> internal-only project.
I need to correct this: It's not installed from pypi.python.org, but
it probably is installed from our internal pypi server.
Thanks!
--
https://mail
On Fri, Feb 19, 2016 at 10:18 AM, Joseph L. Casale
wrote:
>> It's still not clear to me specifically what you're trying to do. It
>> would really help if you would describe the problem in more detail.
>> Here's what I think you're trying to do:
>>
>> 1) Submit a task to a ThreadPoolExecutor and ge
On 2016-02-19, Jon Ribbens wrote:
> On 2016-02-19, Jeremy Leonard wrote:
>
>> I have a quick question regarding processing multiple forms. Most
>> of my experience has been where there is just one form so the logic
>> was pretty straight forward for me. My question revolves around how
>> to handl
On 2016-02-19, Jeremy Leonard wrote:
> I have a quick question regarding processing multiple forms. Most of
> my experience has been where there is just one form so the logic was
> pretty straight forward for me. My question revolves around how to
> handle multiple forms. I've seen that you can ha
On Friday, 19 February 2016 16:08:46 UTC+2, Tim Chase wrote:
> On 2016-02-19 02:47, wrong.addres...@gmail.com wrote:
> > 2 12.657823 0.1823467E-04 114 0
> > 3 4 5 9 11
> > "Lower"
> > 278.15
> >
> > Is it straightforward to read this, or does one have to read one
> > character at a time and then
I have a quick question regarding processing multiple forms. Most of my
experience has been where there is just one form so the logic was pretty
straight forward for me. My question revolves around how to handle multiple
forms. I've seen that you can have an id for each form, but I'm unsure how
On Monday, February 8, 2016 at 1:05:08 AM UTC-7, shaunak...@gmail.com wrote:
> On Sunday, February 7, 2016 at 1:23:32 AM UTC-7, dieter wrote:
> > Shaunak Bangale writes:
> > > ...
> > > while (count > 0):
> > > try :
> > > # read line from file:
> > > print(file.readline())
> >
On Thu, Feb 18, 2016 at 10:55 AM, Ulli Horlacher
wrote:
> Ulli Horlacher wrote:
>
>> > but simpler still and more reliable to just call QueryValueEx.
>>
>> I find it more complicated.
>
> I have now (after long studying docs and examples)::
>
> def get_winreg(key,subkey):
> try:
> rkey = wi
On Fri, Feb 19, 2016 at 4:48 AM, Chris Angelico wrote:
> On Fri, Feb 19, 2016 at 9:42 PM, Ulli Horlacher
> wrote:
>> pyotr filipivich wrote:
>>
>>> > Windows (especially 7) search function is highly crippled. There is
>>> >some command sequence that will open it up to looking at other file
On 2016-02-19, BartC wrote:
>
>> IOW, you're expected to do things correctly
>
> You mean pedantically.
:)
> In real life, names generally are not case sensitive. I can call
> myself bart or Bart or BART or any of the remaining 13 combinations,
> without anyone getting confused (but they might b
> It's still not clear to me specifically what you're trying to do. It
> would really help if you would describe the problem in more detail.
> Here's what I think you're trying to do:
>
> 1) Submit a task to a ThreadPoolExecutor and get back a future.
>
> 2) When the task is complete, submit anot
On 19 February 2016 at 14:58, Peter Otten <__pete...@web.de> wrote:
> Tim Chase wrote:
>> [a long thing]
>
> Or just tell the parser what to expect:
>
> [another long thing]
If you're sure all of the words on a line are going to be numbers then
>>> [float(x) for x in '2 12.657823 0.1823467E-04 11
Ulli Horlacher on Fri, 19 Feb 2016
10:42:52 + (UTC) typed in comp.lang.python the following:
>pyotr filipivich wrote:
>
>> > Windows (especially 7) search function is highly crippled. There is
>> >some command sequence that will open it up to looking at other file types
>> >and locatio
On Sat, Feb 20, 2016 at 3:32 AM, BartC wrote:
> In real life, names generally are not case sensitive. I can call myself bart
> or Bart or BART or any of the remaining 13 combinations, without anyone
> getting confused (but they might be puzzled as to why I'd choose to spell it
> bArT).
There are
On 19/02/2016 15:59, Grant Edwards wrote:
On 2016-02-19, BartC wrote:
On 17/02/2016 19:49, wrong.addres...@gmail.com wrote:
Could someone kindly tell me advantages and disadvantages of Python?
Something I don't think anyone has mentioned is that Python is
case-sensitive.
That's an _advant
[root@nexus cgi-bin]# head -10 ./metrites.py
#!/usr/bin/python3
# coding=utf-8
import cgitb; cgitb.enable()
import cgi, re, os, sys, socket, time, datetime, locale, codecs, random,
smtplib, subprocess, pymysql, geoip2.database
from datetime import datetime, timedelta
from http import cookies
#
#!/usr/bin/python3
# coding=utf-8
import cgitb; cgitb.enable()
import cgi, re, os, sys, socket, time, datetime, locale, codecs, random,
smtplib, subprocess, pymysql, geoip2.database
from datetime import datetime, timedelta
from http import cookies
===
[root@nexus cgi-bin]# /usr/b
On 2016-02-19, Chris Angelico wrote:
> and of course you wouldn't expect that to collide with something
> written in a completely different script. As far as the interpreter's
> concerned, "P" and "p" are just as different as are "A", "Α", "А", and
> [...]
...and a, ã, á, ä, â, à, ą, å, æ, etc.
On 2016-02-19, BartC wrote:
> On 17/02/2016 19:49, wrong.addres...@gmail.com wrote:
>
>> Could someone kindly tell me advantages and disadvantages of Python?
>
> Something I don't think anyone has mentioned is that Python is
> case-sensitive.
That's an _advantage_ not a disadvantage.
Anybody wh
On Sat, Feb 20, 2016 at 2:34 AM, BartC wrote:
> On 17/02/2016 19:49, wrong.addres...@gmail.com wrote:
>
>> Could someone kindly tell me advantages and disadvantages of Python?
>
>
> Something I don't think anyone has mentioned is that Python is
> case-sensitive.
>
> So keywords, identifiers, libra
On 17/02/2016 19:49, wrong.addres...@gmail.com wrote:
Could someone kindly tell me advantages and disadvantages of Python?
Something I don't think anyone has mentioned is that Python is
case-sensitive.
So keywords, identifiers, library functions and so on have to be written
just right. (Fo
On 2016-02-19, Steven D'Aprano wrote:
> Pascal was easy to learn and powerful, but it made the mistake of not
> standardising on a few critical functions that production languages need,
> like strings. Nevertheless, for the first 10 or 15 years, Apple used a mix
> of Pascal and assembly to write
On 2016-02-19, Ben Finney wrote:
> So I am sympathetic to Python newcomers recoiling in horror from
> significant whitespace, *before* they try it. And because of that, we
> are burdened with forever needing to deal with that reaction and
> soothing it.
The first time I wrote Python (it was the
Tim Chase wrote:
> On 2016-02-19 02:47, wrong.addres...@gmail.com wrote:
>> 2 12.657823 0.1823467E-04 114 0
>> 3 4 5 9 11
>> "Lower"
>> 278.15
>>
>> Is it straightforward to read this, or does one have to read one
>> character at a time and then figure out what the numbers are? --
>
> It's easy
Dennis Lee Bieber wrote:
>>> How can one search for files with DOS?
>>
>> dir /s /b \*add2path.*
>>
>> ChrisA
>
> Or move to PowerShell...
>
> Windows PowerShell
> Copyright (C) 2009 Microsoft Corporation. All rights reserved.
>
> PS C:\Users\Wulfraed\Documents> Get-ChildItem -Path c:\ -Filt
On 2016-02-19 02:47, wrong.addres...@gmail.com wrote:
> 2 12.657823 0.1823467E-04 114 0
> 3 4 5 9 11
> "Lower"
> 278.15
>
> Is it straightforward to read this, or does one have to read one
> character at a time and then figure out what the numbers are? --
It's easy to read. What you do with tha
On Friday, 19 February 2016 13:24:46 UTC+2, Mark Lawrence wrote:
> On 19/02/2016 10:47, wrong.addres...@gmail.com wrote:
> >
> > 2 12.657823 0.1823467E-04 114 0
> > 3 4 5 9 11
> > "Lower"
> > 278.15
> >
> > Is it straightforward to read this, or does one have to read one character
> > at a time a
ANNOUNCING
eGenix PyRun - One file Python Runtime
Version 2.1.2
An easy-to-use single file relocatable Python run-time -
available for Linux, Mac OS X and U
When I try to compile the python from source on Solaris 8. I getting the
following error
"""
Modules/_localemodule.o: In function PyIntl_gettext':
Modules/_localemodule.o(.text+0xb60): undefined reference to libintl_gettext'
Modules/_localemodule.o: In function PyIntl_dgettext':
Modules/_l
When I try to compile the python from source on Solaris 8. I getting the
following error
"""
Modules/_localemodule.o: In function PyIntl_gettext':
Modules/_localemodule.o(.text+0xb60): undefined reference to libintl_gettext'
Modules/_localemodule.o: In function PyIntl_dgettext':
Modules/_loc
On Thursday, February 18, 2016 at 11:12:45 AM UTC+5:30, Steven D'Aprano wrote:
> Today I learned that **kwargs style keyword arguments can be any string:
>
>
> py> def test(**kw):
> ... print(kw)
> ...
> py> kwargs = {'abc-def': 42, '': 23, '---': 999, '123': 17}
> py> test(**kwargs)
> {'':
On 19/02/16 11:23, Mark Lawrence wrote:
On 19/02/2016 10:47, wrong.addres...@gmail.com wrote:
2 12.657823 0.1823467E-04 114 0
3 4 5 9 11
"Lower"
278.15
Is it straightforward to read this, or does one have to read one
character at a time and then figure out what the numbers are?
One characte
On 19/02/2016 10:47, wrong.addres...@gmail.com wrote:
2 12.657823 0.1823467E-04 114 0
3 4 5 9 11
"Lower"
278.15
Is it straightforward to read this, or does one have to read one character at a
time and then figure out what the numbers are?
One character at a time in a high level language lik
On Friday, 19 February 2016 03:06:58 UTC+2, Steven D'Aprano wrote:
> On Fri, 19 Feb 2016 02:35 am, wrong.addres...@gmail.com wrote:
>
> > I am almost eager to do this but want to be sure that I know the pitfalls
> > in using Python for my purposes. Thanks for your encouraging response.
>
> Hones
On Thursday, 18 February 2016 21:31:20 UTC+2, Tim Chase wrote:
> On 2016-02-18 07:33, wrong.addres...@gmail.com wrote:
> > Another question I have is regarding reading numerical data from
> > text files. Is it necessary to read one character at a time, or can
> > one read like in Fortran and Basic
On Fri, Feb 19, 2016 at 9:42 PM, Ulli Horlacher
wrote:
> pyotr filipivich wrote:
>
>> > Windows (especially 7) search function is highly crippled. There is
>> >some command sequence that will open it up to looking at other file types
>> >and locations.
>> >
>> >http://answers.microsoft.com/
pyotr filipivich wrote:
> > Windows (especially 7) search function is highly crippled. There is
> >some command sequence that will open it up to looking at other file types
> >and locations.
> >
> >http://answers.microsoft.com/en-us/windows/forum/windows_7-files/windows-7-search-does-not-fi
On Fri, 19 Feb 2016 01:14 pm, BartC wrote:
> On 19/02/2016 00:30, Steven D'Aprano wrote:
[...]
>> "Then don't do that. What if you pass the source code through a system
>> that strips out braces?"
>
> Python doesn't use braces, so that's not a problem!
mydict = {23: 'twenty-three', 17: 'sevente
On 2016-02-19, Ethan Furman wrote:
> On 02/02/2016 07:26 PM, Rick Johnson wrote:
>
> a bunch of garbage.
>
> *sigh*
>
> Time to update my procmail filters...
>
> Anyone know one for deleting all responses to a troll post?
Well for this particular imbecile, just blocking posts without any
lower-ca
On 18/02/2016 22:35, Mark Lawrence wrote:
On 18/02/2016 22:27, Chris Withers wrote:
Hi All,
I'm pleased to announce the release of testfixtures 4.9.0 featuring the
following:
4.8.0 or 4.9.0, that is the question, or should it be just how good is
your version control? :)
Gah, I really need
On 02/02/2016 07:26 PM, Rick Johnson wrote:
a bunch of garbage.
*sigh*
Time to update my procmail filters...
Anyone know one for deleting all responses to a troll post?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
Hi everybody,
I've finally had the time to do the benchmarks and here you go:
http://srkunze.blogspot.com/2016/02/the-xheap-benchmark.html
The benchmark compares heapq, Heap, OrderHeap, RemovalHeap and XHeap
regarding their operation heapify, push and pop.
As expected wrapping results in so
68 matches
Mail list logo