For anyone interested, I already moved the slides on github
(https://github.com/AndreaCrotti/pyconuk2012_slides)
and for example the decorator slides will be generated from this:
https://raw.github.com/AndreaCrotti/pyconuk2012_slides/master/deco_context/deco.rst
Notice the literalinclude with
2012/9/19 Trent Nelson tr...@snakebite.org:
FWIW, I gave a presentation on decorators to the New York Python
User Group back in 2008. Relevant blog post:
http://blogs.onresolve.com/?p=48
There's a link to the PowerPoint presentation I used in the first
paragraph.
andrea crotti於 2012年9月20日星期四UTC+8上午12時42分50秒寫道:
2012/9/19 Trent Nelson tr...@snakebite.org:
FWIW, I gave a presentation on decorators to the New York Python
User Group back in 2008. Relevant blog post:
http://blogs.onresolve.com/?p=48
There's a
On Thu, Sep 13, 2012 at 09:00:19AM -0700, andrea crotti wrote:
I have to give a couple of Python presentations in the next weeks, and
I'm still thinking what is the best approach.
In one presentation for example I will present decorators and context
managers, and my biggest doubt is how much
On 16.09.2012 19:35, Steven D'Aprano wrote:
On Sun, 16 Sep 2012 18:13:36 +0200, Alexander Blinne wrote:
def powerlist2(x,n):
if n==1:
return [1]
p = powerlist3(x,n-1)
p.append(p[-1]*x)
return p
Is that a typo? I think you mean to make a recursive call to
On 14.09.2012 14:19, Chris Angelico wrote:
Err, yes, I did mean ** there. The extra multiplications may be
slower, but which is worse? Lots of list additions, or lots of integer
powers? In the absence of clear and compelling evidence, I'd be
inclined to go with the list comp - and what's more,
On Mon, Sep 17, 2012 at 2:13 AM, Alexander Blinne n...@blinne.net wrote:
def powerlist3(x,n):
return [x**i for i in xrange(n)]
for really big n powerlist3 always takes very much time :)
I would reiterate that a really big n is a really unusual use case for
a function like this, except
On Sun, 16 Sep 2012 18:13:36 +0200, Alexander Blinne wrote:
I did some timing with the following versions of the function:
def powerlist1(x, n):
result=[1]
for i in xrange(n-1):
result.append(result[-1]*x)
return result
def powerlist2(x,n):
if n==1:
Chris Angelico於 2012年9月14日星期五UTC+8上午6時39分25秒寫道:
On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne n...@blinne.net wrote:
On 13.09.2012 21:01, 8 Dihedral wrote:
def powerlist(x, n):
# n is a natural number
result=[]
y=1
for i in xrange(n):
On 14.09.2012 00:38, Chris Angelico wrote:
On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne n...@blinne.net wrote:
def powerlist(x,n):
if n==1:
return [1]
p = powerlist(x,n-1)
return p + [p[-1]*x]
Eh, much simpler.
def powerlist(x,n):
return [x*i for i in
On Fri, Sep 14, 2012 at 9:47 PM, Alexander Blinne n...@blinne.net wrote:
On 14.09.2012 00:38, Chris Angelico wrote:
On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne n...@blinne.net wrote:
def powerlist(x,n):
if n==1:
return [1]
p = powerlist(x,n-1)
return p + [p[-1]*x]
In mailman.617.1347552022.27098.python-l...@python.org andrea crotti
andrea.crott...@gmail.com writes:
For my experience if I only see code in slides I tend not to believe
that it works somehow
Presumably you will have some credibility with your audience so they won't
just assume you're
Am Thu, 13 Sep 2012 17:00:19 +0100 schrieb andrea crotti:
I have to give a couple of Python presentations in the next weeks, and
I'm still thinking what is the best approach.
My idea for an introductory presentation of python was to prepare some
code snippets (all valid python), show them
2012/9/13 William R. Wing (Bill Wing) w...@mac.com:
[byte]
Speaking from experience as both a presenter and an audience member, please
be sure that anything you demo interactively you include in your slide deck
(even if only as an addendum). I assume your audience will have access to
On Sep 13, 2012, at 12:00 PM, andrea crotti andrea.crott...@gmail.com wrote:
I have to give a couple of Python presentations in the next weeks, and
I'm still thinking what is the best approach.
In one presentation for example I will present decorators and context
managers, and my biggest
- Original Message -
I have to give a couple of Python presentations in the next weeks,
and
I'm still thinking what is the best approach.
In one presentation for example I will present decorators and context
managers, and my biggest doubt is how much I should show and explain
Also try to keep the presentation interactive by asking questions to
your audience (unless some of them are already participating), otherwise
people will be snoring or texting after 20 minutes.
That is a v good suggestion.
the best presentation I ever attended was one on using an emergency
mblume於 2012年9月14日星期五UTC+8上午12時26分17秒寫道:
Am Thu, 13 Sep 2012 17:00:19 +0100 schrieb andrea crotti:
I have to give a couple of Python presentations in the next weeks, and
I'm still thinking what is the best approach.
My idea for an introductory presentation of python
On 13.09.2012 21:01, 8 Dihedral wrote:
def powerlist(x, n):
# n is a natural number
result=[]
y=1
for i in xrange(n):
result.append(y)
y*=x
return result # any object in the local function can be returned
def powerlist(x, n):
result=[1]
On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne n...@blinne.net wrote:
On 13.09.2012 21:01, 8 Dihedral wrote:
def powerlist(x, n):
# n is a natural number
result=[]
y=1
for i in xrange(n):
result.append(y)
y*=x
return result # any object in
What do you think work best in general?
I find typing during class (other than small REPL examples) time consuming and
error prone.
What works well for me is to create a slidy HTML presentation with asciidoc,
then I can include code snippets that can be also run from the command line.
On 09/13/2012 11:58 PM, Miki Tebeka wrote:
What do you think work best in general?
I find typing during class (other than small REPL examples) time consuming and
error prone.
What works well for me is to create a slidy HTML presentation with asciidoc,
then I can include code snippets that
On 13Sep2012 17:00, andrea crotti andrea.crott...@gmail.com wrote:
| I have to give a couple of Python presentations in the next weeks, and
| I'm still thinking what is the best approach.
|
| In one presentation for example I will present decorators and context
| managers, and my biggest doubt
23 matches
Mail list logo