I just acquired a Raspberry Pi and want to program in Python. I was a PL/1
programmer back in the 60's & 70's and Python is similar. I am struggling
with some very fundamental things that I am not finding in the
documentation. Can someone help me with the basics like how do I save a
program I've wr
Hi all,
I am happy to announce an update to Python-Future for Python 2/3 compatibility
and a new cheat-sheet for writing code compatible with both versions.
Here’s the "What’s New" page for v0.13:
http://python-future.org/whatsnew.html
Here’s the Py2/3 compatibility cheat-sheet:
http:
On Tue, Aug 12, 2014 at 11:03 PM, Marko Rauhamaa wrote:
>
> Ian Kelly :
>
> > On Tue, Aug 12, 2014 at 11:02 AM, cool-RR wrote:
> >> And that's it, no coroutines, no `yield from`. Since, if I understand
> >> correctly, asyncio requires a mainloop, it would make sense for the
> >> AsyncIOExecutor t
Ian Kelly :
> On Tue, Aug 12, 2014 at 11:02 AM, cool-RR wrote:
>> And that's it, no coroutines, no `yield from`. Since, if I understand
>> correctly, asyncio requires a mainloop, it would make sense for the
>> AsyncIOExecutor to have a thread of its own in which it could run its
>> mainloop.
>
>
On Wednesday, August 13, 2014 12:59:35 AM UTC+5:30, Neil D. Cerutti wrote:
> > Some things follow from this:
> > For the lego-game of playing with functions at the REPL to work and be
> > pleasant and rewarding:
> > 1. functions should be non side-effecting; else same trials giving different
> > a
Steven D'Aprano wrote:
[...]
> I am using "abstract" in the sense of an abstraction, as opposed to
> something concrete and real, not as a mechanism for specifying interfaces
> in Java or Python. Python's float is a leaky abstraction of mathematical
> Real numbers, and Python's softed() is a leaky
On Wed, Aug 13, 2014 at 12:11 PM, Steven D'Aprano
wrote:
> both leak
> because the implementation of the abstraction spoils the abstraction.
Can you name *any* nontrivial abstraction that doesn't leak? I can't.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Rustom Mody wrote:
> I guess part of the problem is that evidently you and I use 'concrete'
> and 'abstract' in almost diametrically opposite ways.
[...]
> But now you are turning the tables and saying that the FP types/constructs
> are more abstract than the conventional ones.
[...]
> In my book,
On Wed, Aug 13, 2014 at 11:45 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> I like to look at SQL as a language that specifies an end result
>> without specifying how to get there
>
> Well, sure, but sometimes the how to get there is a matter of 10x, or
> 100x, or 1000x in per
Wesley writes:
> If my questions make you guys not so happy, I am sorry and please just
> ignore.
You seek to dismiss the valid concerns by calling them “not so happy”.
You assert it is questions we object to, when we are clearly objecting
to your intentions.
Don't be disingenuous. The respons
In article ,
Chris Angelico wrote:
> I like to look at SQL as a language that specifies an end result
> without specifying how to get there
Well, sure, but sometimes the how to get there is a matter of 10x, or
100x, or 1000x in performance.
I'm currently migrating a 3 TB database to a new 5
On Wed, Aug 13, 2014 at 11:36 AM, Wesley wrote:
> If my questions make you guys not so happy, I am sorry and please just ignore.
> I just wanna a general suggestion here in the beginning.
> Why I need to write such program is just having such requirements, and has
> nothing to do with the coding
If my questions make you guys not so happy, I am sorry and please just ignore.
I just wanna a general suggestion here in the beginning.
Why I need to write such program is just having such requirements, and has
nothing to do with the coding work itself. Don't say something to prove you're
so nobl
On Wed, Aug 13, 2014 at 10:47 AM, Steven D'Aprano
wrote:
> Chris Angelico wrote:
>
>> On Mon, Aug 11, 2014 at 7:44 PM, Steven D'Aprano
>> wrote:
>>> I think this is why both declarative and functional programming idioms
>>> will remain niche (although important niches). Most tasks are inherently
On Tue, 12 Aug 2014 15:44:58 -0700 (PDT), Simon Evans wrote:
[snip]
> Dear Programmers, Thank you for your responses. I have installed
> 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup'
> book, but can't seem to make any progress with it, I am too thick to
> make much use of it.
Chris Angelico wrote:
> On Mon, Aug 11, 2014 at 7:44 PM, Steven D'Aprano
> wrote:
>> I think this is why both declarative and functional programming idioms
>> will remain niche (although important niches). Most tasks are inherently
>> imperative to at least some degree, and often a *great* degree
In article <53eaab7d$0$29979$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> By studying how other scraping programs work, and studying how your racing
> pages store data, you should be able to put the two together and see how to
> get the data you want.
It's also worth mentioning
Simon Evans wrote:
> Dear Programmers, Thank you for your responses. I have installed
> 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup' book,
> but can't seem to make any progress with it, I am too thick to make much
> use of it. I was hoping I could scrape specified stuff off
On Tuesday, August 12, 2014 9:00:30 PM UTC+1, Simon Evans wrote:
> Dear Programmers,
>
> I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves.
> I have tried a few of his python programs in the Python27 command prompt, but
> altered them from accessing data using links sa
On 8/12/2014 1:40 PM, Neil D. Cerutti wrote:
I disagree. For a beginner, you want to be able to break things down
into individual steps and examine the result at each point. If you do:
l= [6,2,9,12,1,4]
l2 = sorted(l,reverse=True)
you have the advantage that you can stop after creating l2 a
On Tue, Aug 12, 2014 at 11:02 AM, cool-RR wrote:
> And that's it, no coroutines, no `yield from`. Since, if I understand
> correctly, asyncio requires a mainloop, it would make sense for the
> AsyncIOExecutor to have a thread of its own in which it could run its
> mainloop.
I think that puttin
In article ,
Simon Evans wrote:
> Dear Programmers,
> I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves.
> I have tried a few of his python programs in the Python27 command prompt, but
> altered them from accessing data using links say from the Dow Jones index, to
>
On Tue, Aug 12, 2014 at 3:33 AM, Rustom Mody wrote:
> Ive been asked to formulate a python course for financial services folk.
>
> If I actually knew about the subject, I'd have fatter pockets!
> Anyway heres some thoughts. What I am missing out?
>
> [Apart from basic python -- contents typically
On 12/08/2014 20:25, c1234 py wrote:
El martes, 12 de agosto de 2014 16:16:21 UTC-3, Christian Gollwitzer escribió:
Am 12.08.14 20:36, schrieb c1223:
Hi, Im working in the development of a program based in python that
allow us to contrl a spectometer. The spectometer has an .dll file.
T
On Tue, 12 Aug 2014 13:00:30 -0700 (PDT)
Simon Evans wrote:
> Dear Programmers,
> I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves.
> I have tried a few of his python programs in the Python27 command prompt, but
> altered them from accessing data using links say from
Dear Programmers,
I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves. I
have tried a few of his python programs in the Python27 command prompt, but
altered them from accessing data using links say from the Dow Jones index, to
accessing the details I would be interested
El martes, 12 de agosto de 2014 16:16:21 UTC-3, Christian Gollwitzer escribió:
> Am 12.08.14 20:36, schrieb c1223:
>
> > Hi, Im working in the development of a program based in python that
>
> > allow us to contrl a spectometer. The spectometer has an .dll file.
>
> > The idea is to work throug
On 8/12/2014 2:20 PM, Rustom Mody wrote:
On Tuesday, August 12, 2014 11:10:48 PM UTC+5:30, Neil D. Cerutti wrote:
Beginners are particularly poor, in relation to experts, at noticing the
applicability of idea, and at combining ideas together. Breaking things
into component parts has multiple ben
Am 12.08.14 20:36, schrieb c1223:
Hi, Im working in the development of a program based in python that
allow us to contrl a spectometer. The spectometer has an .dll file.
The idea is to work through this dll and operate the spectometer. The
name of the .dll is AS5216.dll. I've trying with ctype, b
On 12/08/2014 19:45, alister wrote:
On Tue, 12 Aug 2014 23:39:42 +1000, Chris Angelico wrote:
On Tue, Aug 12, 2014 at 8:40 PM, alister
wrote:
On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote:
[ chomp ]
Mathematicians work with numbers (Algebra is a abstraction of numerical
concepts) strin
On Tuesday, August 12, 2014 4:09:13 PM UTC-3, Chris Angelico wrote:
> On Wed, Aug 13, 2014 at 4:58 AM, Rob Gaddi
>
> wrote:
>
> > Great. And that fails in what way, on which line, with what error message?
>
>
>
> And, is that the entire program? Because if it is, then I can see at
>
> least
On Wednesday, August 13, 2014 12:24:12 AM UTC+5:30, Denis McMahon wrote:
> On Tue, 12 Aug 2014 10:48:14 -0700, Rustom Mody wrote:
> > However those folks have thousands of lines of C/C++ which they are
> > porting to python.
> That begs the question: Why?
> Seriously, I'd like to know what benef
On Wed, Aug 13, 2014 at 4:58 AM, Rob Gaddi
wrote:
> Great. And that fails in what way, on which line, with what error message?
And, is that the entire program? Because if it is, then I can see at
least one problem, a NameError.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 12 Aug 2014 11:56:37 -0700 (PDT)
c1234 py wrote:
> On Tuesday, August 12, 2014 3:36:17 PM UTC-3, c1234 py wrote:
> > Hi,
> >
> > Im working in the development of a program based in python that allow us to
> > contrl a spectometer. The spectometer has an .dll file. The idea is to work
On Tuesday, August 12, 2014 3:36:17 PM UTC-3, c1234 py wrote:
> Hi,
>
> Im working in the development of a program based in python that allow us to
> contrl a spectometer. The spectometer has an .dll file. The idea is to work
> through this dll and operate the spectometer.
>
> The name of the
On Tue, Aug 12, 2014 at 11:48 AM, Skip Montanaro wrote:
> Just as the off-chance your DLL was written in C++... I don't think
> you can interface with ctypes directly. I think you would have to
> write a little shim DLL which exposes a C-compatible API.
>
You should be able to use ctypes with a
On Tue, 12 Aug 2014 10:48:14 -0700, Rustom Mody wrote:
> However those folks have thousands of lines of C/C++ which they are
> porting to python.
That begs the question: Why?
Seriously, I'd like to know what benefits they expect to achieve by doing
so.
--
Denis McMahon, denismfmcma...@gmail.c
On 12/08/2014 19:36, c1223 wrote:
Hi,
Im working in the development of a program based in python that allow us to
contrl a spectometer. The spectometer has an .dll file. The idea is to work
through this dll and operate the spectometer.
The name of the .dll is AS5216.dll. I've trying with ctype,
On Tue, 12 Aug 2014 23:39:42 +1000, Chris Angelico wrote:
> On Tue, Aug 12, 2014 at 8:40 PM, alister
> wrote:
>> On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote:
>> [ chomp ]
>>
>> Mathematicians work with numbers (Algebra is a abstraction of numerical
>> concepts) strings are concerned with
On Tue, Aug 12, 2014 at 1:36 PM, c1223 wrote:
> I've trying with ctype, but it doesn't work.
Can you post a small example of how you're trying to use cypes? I
don't think a full example would be necessary, but knowing the API of
one or two functions and how you're trying to call them from Python
On Wed, Aug 13, 2014 at 4:36 AM, c1223 wrote:
> Im working in the development of a program based in python that allow us to
> contrl a spectometer. The spectometer has an .dll file. The idea is to work
> through this dll and operate the spectometer.
> The name of the .dll is AS5216.dll. I've try
On 2014-08-12 18:02, cool-RR wrote:
Hello everybody! I have a question.
I have a Django app running on Heroku. I need to run about 100 worker
threads there to do uploads/downloads simultaneously. A Heroku Dyno
has only 512MB of memory, so I'm reluctant to run 100 worker threads.
(I've had Dynos
Hi,
Im working in the development of a program based in python that allow us to
contrl a spectometer. The spectometer has an .dll file. The idea is to work
through this dll and operate the spectometer.
The name of the .dll is AS5216.dll. I've trying with ctype, but it doesn't
work.
I'm beggin
cool-RR :
> If I understand correctly [asyncio] would let me run multiple uploads
> and downloads efficiently in one thread, which would conserve more
> resources than using threads.
Asyncio does make it convenient to multiplex event on one or more
threads. Threads have their uses (exploiting mul
On Tuesday, August 12, 2014 11:10:48 PM UTC+5:30, Neil D. Cerutti wrote:
> On 8/10/2014 2:14 PM, Roy Smith wrote:
> > Rustom Mody wrote:
> > l= [6,2,9,12,1,4]
> > sorted(l,reverse=True)[:5]
> >> [12, 9, 6, 4, 2]
> >> No need to know how sorted works nor [:5]
> >> Now you (or Steven) can
On Tuesday, August 12, 2014 9:20:16 PM UTC+5:30, Denis McMahon wrote:
> On Tue, 12 Aug 2014 00:33:11 -0700, Rustom Mody wrote:
> > Ive been asked to formulate a python course for financial services folk.
> I wouldn't worry too much about c or c++ interfacing paradigms.
And I dont like teaching t
On Tuesday, August 12, 2014 9:05:44 PM UTC+5:30, Johann Hibschman wrote:
> Rustom Mody writes:
> > - Pandas
> > - Numpy Scipy (which? how much?)
> For me, pandas is huge, numpy is a nice fundamental substrate, while
> only bits and pieces of scipy are used (mostly optimization).
> statsmodels may
On 8/10/2014 2:14 PM, Roy Smith wrote:
In article <154cc342-7f85-4d16-b636-a1a953913...@googlegroups.com>,
Rustom Mody wrote:
l= [6,2,9,12,1,4]
sorted(l,reverse=True)[:5]
[12, 9, 6, 4, 2]
No need to know how sorted works nor [:5]
Now you (or Steven) can call it abstract.
And yet its
1. A
Hello everybody! I have a question.
I have a Django app running on Heroku. I need to run about 100 worker threads
there to do uploads/downloads simultaneously. A Heroku Dyno has only 512MB of
memory, so I'm reluctant to run 100 worker threads. (I've had Dynos crash from
lack of memory when usi
On Tue, 12 Aug 2014 00:33:11 -0700, Rustom Mody wrote:
> Ive been asked to formulate a python course for financial services folk.
I wouldn't worry too much about c or c++ interfacing paradigms.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Aug 13, 2014 at 1:38 AM, Denis McMahon wrote:
> On Wed, 13 Aug 2014 01:06:47 +1000, Chris Angelico wrote:
>
>> Let me spell it out for you: NO WE WILL NOT do this for you. And if you
>> do it yourself, we will not be happy. Just don't.
>
> Chris, I suspect he's a codemonkey in a chinese or
On Tue, Aug 12, 2014 at 8:12 AM, Grant Edwards wrote:
> On 2014-08-12, Chris “Kwpolska” Warrick wrote:
>> On Mon, Aug 11, 2014 at 8:53 PM, Grant Edwards
>> wrote:
>>> I just installed Arch Linux for the first time, and was surprosed to
>>> find that Python isn't installed as part of a "base" sy
On Wed, 13 Aug 2014 01:06:47 +1000, Chris Angelico wrote:
> Let me spell it out for you: NO WE WILL NOT do this for you. And if you
> do it yourself, we will not be happy. Just don't.
Chris, I suspect he's a codemonkey in a chinese or similar asian spamhaus.
We should probably be thankful that h
Rustom Mody writes:
> Ive been asked to formulate a python course for financial services
> folk.
>
> If I actually knew about the subject, I'd have fatter pockets!
> Anyway heres some thoughts. What I am missing out?
Good luck! It's a pretty broad field, so everyone probably has
different needs
On Wed, Aug 13, 2014 at 12:57 AM, Wesley wrote:
> Here is captcha link:
> https://drive.google.com/folderview?id=0B33_p7UnVqoyd09mT3V0aWFxRmc&usp=sharing
You seem to have misunderstood how grossly offensive your request is.
I am now the third person to do you the courtesy of a response, but
there
Here is captcha link:
https://drive.google.com/folderview?id=0B33_p7UnVqoyd09mT3V0aWFxRmc&usp=sharing
在 2014年8月12日星期二UTC+8下午8时59分11秒,Dennis Lee Bieber写道:
> On Tue, 12 Aug 2014 00:04:33 -0700 (PDT), Wesley
>
> declaimed the following:
>
>
>
> >Hi guys,
>
> > These days I got a small task to
On 2014-08-12, Chris “Kwpolska” Warrick wrote:
> On Mon, Aug 11, 2014 at 8:53 PM, Grant Edwards
> wrote:
>> I just installed Arch Linux for the first time, and was surprosed to
>> find that Python isn't installed as part of a "base" system. It's
>> also not included in the 'base-devel' package
On 2014-08-11, Grant Edwards wrote:
> What MTP allows is parallel access between the MTP protocol server in
> the phone and the rest of the phone (OS and apps). In order to mount
> a partition as a USB mass storage device, it has to first be unmounted
> by the Android system. That's OK for an S
On Tue, 12 Aug 2014 00:04:33 -0700, Wesley wrote:
> These days I got a small task to identify Captcha characters.
Several of us code websites. Some of our websites may even use captcha.
We use captcha to stop software posting spam to websites.
What makes you think we have any inclination to hel
On Tue, Aug 12, 2014 at 2:31 PM, Cameron Simpson wrote:
> I would expect file.write to be fast enough that the lock would usually be
> free.
Until the day when it becomes really REALLY slow, because your
program's piped into 'less' and the user's paging through it. But even
apart from that, writi
On Tue, Aug 12, 2014 at 8:40 PM, alister
wrote:
> On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote:
> [ chomp ]
>
> Mathematicians work with numbers (Algebra is a abstraction of numerical
> concepts) strings are concerned with characters (Arabic numerals are just
> characters commonly used to r
Chris “Kwpolska” Warrick writes:
>> 2) the phone isn't necessarily visible on a pc as a drive at all.
>> For example the Samsung gs4.
>
> This is actually true for ALL android devices, starting with Android 3.0.
There was just a guy on comp.mobile.android saying his Android 4.2 phone
(BLU Dash
On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote:
> Math:
>
> Try to formalize with mathematics the Flexible String Representation.
> You should quickly realize, it is a logical mathematical absurdity.
> Unbelievable.
>
> jmf
Mathematicians work with numbers (Algebra is a abstraction of nume
On Mon, Aug 11, 2014 at 8:53 PM, Grant Edwards wrote:
> I just installed Arch Linux for the first time, and was surprosed to
> find that Python isn't installed as part of a "base" system. It's
> also not included in the 'base-devel' package group. It's trivial to
> install, but I'd still pretty
On 12.08.2014 09:59, David Palao wrote:
Also Gentoo uses Python3 by default for some months now. The positive
side effect for me has been that I started seriously to switch to
python3.
it's a matter of months for debian/ubuntu to rely only on python3 code
too, while still respecting PEP 394:
2014-08-11 23:36 GMT+02:00 Ned Deily :
> In article ,
> Grant Edwards wrote:
>> Apparently. Perhaps theres an "enable LSB compliance" option
>> somewhere in the Arch install docs, but I didn't see it...
>
> Also beware that, unlike most other distributions and contrary to
> recommended practice,
Ive been asked to formulate a python course for financial services folk.
If I actually knew about the subject, I'd have fatter pockets!
Anyway heres some thoughts. What I am missing out?
[Apart from basic python -- contents typically needs tailoring to the audience]
the following:
- Libraries -
In article
,
Chris Angelico wrote:
> Well, it only *became* contrary to recommended practice in response to
> Arch doing it and everyone seeing the issues it caused :) Personally,
> I'm glad they did. Lets those of us who follow "slower" distros (I'm
> running Debian) get the benefit of someone
Hi guys,
These days I got a small task to identify Captcha characters.
I googled a lot and find some way to do verification code identify.
However, most are for general captcha.
And, for simple captcha, I can use Pytesser.
However, what about those advanced pictures.
I mean:
1.including number
69 matches
Mail list logo