Jason:
> It's such a minor optimization, that you probably wouldn't see any
> effect on your program.

>>> from dis import dis
>>> def f():
...  return 'This is ' + 'an example.'
...
>>> dis(f)
  2           0 LOAD_CONST               3 ('This is an example.')
              3 RETURN_VALUE

Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to