Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #88139

Re: module attributes and docstrings

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: module attributes and docstrings
Date 2015-03-27 09:49 +0200
Organization A noiseless patient Spider
Message-ID <87lhiinalm.fsf@elektro.pacujo.net> (permalink)
References <fg92halkvjecqedpogsmkov3o53f0i922b@4ax.com> <55114f5e$0$12991$c3e8da3$5496439d@news.astraweb.com> <ljk7happp134fau09h37893ed1m6n3gmaf@4ax.com> <55150749$0$13004$c3e8da3$5496439d@news.astraweb.com>

Show all headers | View raw


Steven D'Aprano <steve+comp.lang.python@pearwood.info>:

> Some people prefer to say "Python has no variables, it has name
> bindings". I think that it's better to say that Python's variables are
> not *like* C or Pascal variables, rather than invent a distinction
> between name bindings and variables. Name bindings are a type of
> variable.

I guess the thinking goes like this:

  In Python, everything is a first-class object.

  In Python, variables are not first-class objects.

  Ergo: In Python, there are no variables.


Marko

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

module attributes and docstrings Mario Figueiredo <marfig@gmail.com> - 2015-03-24 09:55 +0100
  Re: module attributes and docstrings Chris Angelico <rosuav@gmail.com> - 2015-03-24 21:29 +1100
  Re: module attributes and docstrings Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-24 22:49 +1100
    Re: module attributes and docstrings Mario Figueiredo <marfig@gmail.com> - 2015-03-26 10:48 +0100
      Re: module attributes and docstrings Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-27 18:31 +1100
        Re: module attributes and docstrings Marko Rauhamaa <marko@pacujo.net> - 2015-03-27 09:49 +0200
  Re: module attributes and docstrings Terry Reedy <tjreedy@udel.edu> - 2015-03-24 15:33 -0400
    Re: module attributes and docstrings Mario Figueiredo <marfig@gmail.com> - 2015-03-26 10:53 +0100
      Re: module attributes and docstrings Chris Angelico <rosuav@gmail.com> - 2015-03-26 21:27 +1100

csiph-web