Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78751 > unrolled thread
| Started by | David Palao <dpalao.python@gmail.com> |
|---|---|
| First post | 2014-10-06 12:45 +0200 |
| Last post | 2014-10-06 12:45 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: ruby instance variable in python David Palao <dpalao.python@gmail.com> - 2014-10-06 12:45 +0200
| From | David Palao <dpalao.python@gmail.com> |
|---|---|
| Date | 2014-10-06 12:45 +0200 |
| Subject | Re: ruby instance variable in python |
| Message-ID | <mailman.14633.1412592347.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web