[BangPypers] BangPypers Digest, Vol 52, Issue 7

alind sharma alind_sap at yahoo.com
Thu Dec 8 09:49:06 CET 2011


I hope that you dont want something like multimethods as described in this thread by Guido.
(Your function naming suggests something in that direction)

http://www.artima.com/weblogs/viewpost.jsp?thread=101605

 
Alind Sharma


________________________________
 From: Anand Patil <2002anand at gmail.com>
To: bangpypers at python.org 
Sent: Wednesday, 7 December 2011 7:41 PM
Subject: Re: [BangPypers] BangPypers Digest, Vol 52, Issue 7
 
Hi.

I have a unique question or may be i am not so perfect at python.Please
help me out

a, b, c = 0, 0, 0
def getabc():
    print "hi "

def gettuple():
    print "hello all"

def getlist():
    print "bye"

lis={"a":["getabc","gettuple","getlist"]}
lis['a'][1]()

why does this fail ?
How to make it work?
On Wed, Dec 7, 2011 at 4:30 PM, <bangpypers-request at python.org> wrote:

> Send BangPypers mailing list submissions to
>        bangpypers at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mail.python.org/mailman/listinfo/bangpypers
> or, via email, send a message with subject or body 'help' to
>        bangpypers-request at python.org
>
> You can reach the person managing the list at
>        bangpypers-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of BangPypers digest..."
>
>
> Today's Topics:
>
>   1. Re: virtual-python & easy_install doubt (Ashutosh Narayan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 7 Dec 2011 14:07:48 +0530
> From: Ashutosh Narayan <aashutoshnarayan at gmail.com>
> To: Bangalore Python Users Group - India <bangpypers at python.org>
> Subject: Re: [BangPypers] virtual-python & easy_install doubt
> Message-ID:
>        <CADft7NjQXxNEFJHiOs46En-PAeLeJmBPaqDoc8AeUVUTF8437Q at mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> OK. Giving it a shot then. Thanks !
>
> On Wed, Dec 7, 2011 at 2:00 PM, Noufal Ibrahim <noufal at gmail.com> wrote:
>
> > Ashutosh Narayan <aashutoshnarayan at gmail.com> writes:
> >
> > > Yes, virtualenv is an extension of virtual-python. I can try that as
> > well.
> > > But again my concern is why easy_install is not picking up the virtual
> > > environment that I have set to. Any pointers ?
> >
> > [...]
> >
> > I don't think anyone uses virtual-python anymore. You should use
> > virtualenv. Create an env, then activate it and then use easy_install
> > (or preferably pip) to install packages inside it.
> >
> > There's also a virtualenvwrapper package to help management of
> virtualenvs.
> >
> > --
> > ~noufal
> > http://nibrahim.net.in
> >
> > She used to diet on any kind of food she could lay her hands on. --
> Arthur
> > Baer, American comic and columnist
> > _______________________________________________
> > BangPypers mailing list
> > BangPypers at python.org
> > http://mail.python.org/mailman/listinfo/bangpypers
> >
>
>
> ------------------------------
>
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
>
> End of BangPypers Digest, Vol 52, Issue 7
> *****************************************
>
_______________________________________________
BangPypers mailing list
BangPypers at python.org
http://mail.python.org/mailman/listinfo/bangpypers


More information about the BangPypers mailing list