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 :py
andrea crotti於 2012年9月20日星期四UTC+8上午12時42分50秒寫道:
> 2012/9/19 Trent Nelson :
>
> >
>
> > 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 l
2012/9/19 Trent Nelson :
>
> 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. It's in .ppt
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
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 cal
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:
>
On Mon, Sep 17, 2012 at 2:13 AM, Alexander Blinne 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 that... I frankly
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 mo
On Fri, Sep 14, 2012 at 9:47 PM, Alexander Blinne wrote:
> On 14.09.2012 00:38, Chris Angelico wrote:
>> On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne wrote:
>>> def powerlist(x,n):
>>> if n==1:
>>> return [1]
>>> p = powerlist(x,n-1)
>>> return p + [p[-1]*x]
>>
>> Eh, muc
On 14.09.2012 00:38, Chris Angelico wrote:
> On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne 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 xrange
Chris Angelico於 2012年9月14日星期五UTC+8上午6時39分25秒寫道:
> On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne 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 13Sep2012 17:00, 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 I should
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 can
> 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.
(Somethi
On Fri, Sep 14, 2012 at 8:33 AM, Alexander Blinne 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 t
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=
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.
>
> >
>
> 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 l
- 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
On Sep 13, 2012, at 12:00 PM, 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
2012/9/13 William R. Wing (Bill Wing) :
>
> [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
> the deck
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 va
In andrea crotti
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 making it up?
I think slides would be fine.
--
John Gordon
23 matches
Mail list logo