Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78751
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dpalao.python@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.051 |
| X-Spam-Evidence | '*H*': 0.90; '*S*': 0.00; 'subject:instance': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; 'does,': 0.16; 'subject:variable': 0.16; 'subject:python': 0.16; 'module': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'url:python': 0.33; 'knows': 0.35; 'received:google.com': 0.35; 'var': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'list.': 0.37; 'explain': 0.39; 'url:mail': 0.40; 'how': 0.40; 'everybody': 0.60; 'you.': 0.62; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'ins': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/CJg7l2UuT2L/WyfnmPnAhrHJymXHPFUF39pKZbj3dE=; b=WW4gdkBycwL524d5xo3+/ICAjIEHZVkUwDIF9Fr07eKJL3gcBf26wYoBQCLMFKmlZu +1lYtInHJkhtHNAuI5PCL2IQR+WSS4qCsVnHUMhXdFdoqPpPYtyblCl/gjQxcF5Rb2e0 wVrE0pDUNO11CgwwfKPclw5qso/8GUrty7QNga+Hwj+GM3YqEijDI+A3coAbtRb4soak tzM8UwsKDLi/F7ktdsXLh+r115exbwm4mP3pPNA4wfbxio4JuWRlqezMrRDPSCNMxGQT vonwBtoVKEPCgtntGsMtLbW1puTfH/MXL79PpoMztVwQ64T6c6+AzIuvBn7jJ4d/sqlC da3g== |
| MIME-Version | 1.0 |
| X-Received | by 10.194.94.196 with SMTP id de4mr29886307wjb.86.1412592340048; Mon, 06 Oct 2014 03:45:40 -0700 (PDT) |
| In-Reply-To | <CAOoj+KABq68dX25qSHWgdb5SLmNPFLw8MEc1K24EqDnzpPqmWg@mail.gmail.com> |
| References | <CAOoj+KABq68dX25qSHWgdb5SLmNPFLw8MEc1K24EqDnzpPqmWg@mail.gmail.com> |
| Date | Mon, 6 Oct 2014 12:45:40 +0200 |
| Subject | Re: ruby instance variable in python |
| From | David Palao <dpalao.python@gmail.com> |
| To | roro codeath <rorocodeath@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14633.1412592347.18130.python-list@python.org> (permalink) |
| Lines | 41 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1412592347 news.xs4all.nl 2847 [2001:888:2000:d::a6]:60208 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:78751 |
Show key headers only | View raw
Hello, If you explain what the ruby code does, I think much more people will be able to help you. Don't forget, this is a Python list. Not everybody knows Ruby here. Best 2014-10-06 12:06 GMT+02:00 roro codeath <rorocodeath@gmail.com>: > in ruby: > > module M > def ins_var > @ins_var ||= nil > end > > def m > @ins_var = 'val' > end > > def m2 > m > ins_var # => 'val' > end > end > > in py: > > # m.py > > # how to def ins_var > > def m: > # how to set ins_var > > def m2: > m() > # how to get ins var > > -- > https://mail.python.org/mailman/listinfo/python-list >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: ruby instance variable in python David Palao <dpalao.python@gmail.com> - 2014-10-06 12:45 +0200
csiph-web