re/pycups/
I have not used these yet myself, but I have trying them out on my
agenda for later in the spring.
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckma
which case apologies.
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
sig
…){…}
makes f accessible via ctypes if f is in a shared object/dynamic link
library.
--
Russel.
=
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.ru
does it do
what it should.
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w:
hon that my first book didn't permit. It means that although there
> is some overlap in coverage the style and content are quite different.
>
> Context and target make a big difference in what and how you teach.
Definitely. Good luck with the new project.
--
Russel.
=====
at
the time of covering earlier codes to ensure people realize there is a
progression and that the current code is initial not final.
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 B
sel.
=
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
___
Tutor maillist - Tutor@python.org
as f:
for line in f:
print(line.upper())
should, I argue, be the canonical idiom in modern Python.
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Bu
idea that
this is a good final solution is, I believe, a disservice.
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.
n
Django Tutorial, it emphasizes TDD and tests where the Django site
rarely mentions them in the introductory material (a gross oversight).
http://www.tdd-django-tutorial.com/
--
Russel.
=========
Dr Russel Winder t:
xcept that it doesn't have a Python 3 presence as far as I know just
now.
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 46
On Sun, 2013-03-03 at 13:51 +0100, Kwpolska wrote:
> On Sun, Mar 3, 2013 at 10:55 AM, Russel Winder wrote:
> > On Sun, 2013-03-03 at 08:29 +, Alan Gauld wrote:
> > […]
> >> Once comfortable go to SourceForge and find something in Python you can
> >> contribu
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description
Python as it does in
mathematics.
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www
n at the same time.
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.ru
#x27;'.join(['this', 'is', 'it'])
print ''.join(['1', '2', '3', '4', '5'])
if __name__ == '__main__':
main()
but, mayhap, I am missing the intention.
--
Russel.
On Thu, 2012-05-17 at 19:35 +1000, Steven D'Aprano wrote:
> On Thu, May 17, 2012 at 08:27:07AM +0100, Russel Winder wrote:
>
> > Should we be promoting use of the format method in strings rather than
> > the % operator? % is deprecated now.
>
> It most certainly is
and contrasting
> > these various models. Some of the articles are even reasonable :-)
>
> Wikipedia is my friend :-)
:-)
--
Russel.
=
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +
le: sqlite> select sum(rainfall)/count(*) from rain;
> 3.97352768125
>
> This statement will give the average rainfall over the complete dataset.
> To get the ave rainfall for a given year do this:
> sqlite> select sum(rainfall)/count(*) from rain where year = 1983;
>
> Come
On Tue, 2012-05-15 at 19:14 +0100, Alan Gauld wrote:
> On 15/05/12 10:36, Russel Winder wrote:
> > ...queries passed over it then year a database it the
> > right thing -- though I would probably choose a non-SQL database.
>
> As a matter of interest why?
Because there are a
gesByYear[year][1] )
for month in months :
print ( month , averagesByMonth[month][0] ,
averagesByMonth[month][1] )
The cost of the repetition in the code here is probably minimal compared
to the disc access costs. On the other hand this is a small data set so
time is p
re.DOTALL)
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a d
nes lying in
> between.
Without the source code you already have, it is difficult to provide any
constructive suggestions.
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41
g option except that there is all the FUD
about use of the CLR and having to buy extortion^H^H^H^H^H^H^H^H^H
licencing money to Microsoft. Also Microsoft ceasing to fund IronPython
(and IronRuby) is a clear indicator that Microsoft have no intention of
supporting use of Python on CLR. Thus
some email clients
enforce this on sending by amending what the author thought they sent.
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465
our program is limited by disk or network I/O, then there is a
> possibility
> you can speed it up with threads.
Or better still use an event based system, cf Twisted.
[...]
>
--
Russel.
=
Dr Russel Winder
ngine, there are many other far better ones.
It is also worth noting that PyGTK is effectively deprecated. PyGTK only
works with GTK+2 it is not ported to GTK+3. Instead PyGObject is the
way of working with GTK+3 from Python.
http://readthedocs.org/docs/python-gtk-3-tutorial/en/latest/index.htm
sible to understand your code.
Indeed. The lack of indentation was a barrier to contemplating looking
at the code. Especially since indentation is meaningful in Python!
--
Russel.
=====
Dr Russel Winder t: +44 20 758
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description
been. Even C++ is going to a more declarative
mode of expression, along with Java. Python's list comprehensions fit
into this trend.
(*) Which may turn out just to be just the latest fashion ready to be
replaced in 2013.
--
Russel.
=======
s deal only with .py files -- or possibly pyx if you are
using Cython.
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@
what Python can achieve even though I would
not use it myself.
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk s
h compiler and how many cases.
For 3 or more cases compilers will generate a hardware supported jump
table: a switch statement is a jump table not a cascade of if
statements.
--
Russel.
=========
Dr Russel Winder t: +44 20 75
ial(setflag, 2),
1: partial(setflag, 1),
2: partial(setflag, 0),
}[thisflag]()
return results
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:rus
uses the except clause to execute if it does.
--
Russel.
=====
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w
Python. Not been translated to Chinese yet as far as
I know. The book is Python 2.4/2.5, we are currently trying to work
with the publisher to get out a new edition that can be Python 2.7/3.2.
--
Russel.
=========
Dr Russe
isinstance ( y , int )
preferred?
Violates EAFP obviously but...
--
Russel.
=========
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@russel.
37 matches
Mail list logo