[issue7957] Tutorial issue regarding the sys module

2010-02-18 Thread Lucian Ursu

New submission from Lucian Ursu :

Hello,

I've discovered an issue while reading the Python tutorial. In chapter 6.2. 
"Standard Modules", the tutorial mentions the "sys" module and two of its 
attributes, ps1='<<<' and ps2='...'. The problem is I can't find these 
attributes in my version of Python (2.6.4.) when I do "dir(sys)". Have these 
attributes been deprecated but not removed from the tutorial yet?
Thank you for your time.
Lucian

--
assignee: georg.brandl
components: Documentation
messages: 99510
nosy: LucianU, georg.brandl
severity: normal
status: open
title: Tutorial issue regarding the sys module
versions: Python 2.6

___
Python tracker 
<http://bugs.python.org/issue7957>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7957] Tutorial issue regarding the sys module

2010-02-18 Thread Lucian Ursu

Lucian Ursu  added the comment:

Then it must be an issue with my Python. This is what I get. 
>>> import sys
>>> dir(sys)
['__displayhook__', '__doc__', '__excepthook__', '__name__', '__package__', 
'__stderr__', '__stdin__', '__stdout__', '_clear_type_cache', 
'_current_frames', '_getframe', 'api_version', 'argv', 'builtin_module_names', 
'byteorder', 'call_tracing', 'callstats', 'copyright', 'displayhook', 
'dllhandle', 'dont_write_bytecode', 'exc_clear', 'exc_info', 'exc_traceback', 
'exc_type', 'exc_value', 'excepthook', 'exec_prefix', 'executable', 'exit', 
'flags', 'float_info', 'getcheckinterval', 'getdefaultencoding', 
'getfilesystemencoding', 'getprofile', 'getrecursionlimit', 'getrefcount', 
'getsizeof', 'gettrace', 'getwindowsversion', 'hexversion', 'last_traceback', 
'last_type', 'last_value', 'maxint', 'maxsize', 'maxunicode', 'meta_path', 
'modules', 'path', 'path_hooks', 'path_importer_cache', 'platform', 'prefix', 
'py3kwarning', 'setcheckinterval', 'setprofile', 'setrecursionlimit', 
'settrace', 'stderr', 'stdin', 'stdout', 'subversion', 'version', 
'version_info', 'warnoptions', 'winver']
>>> sys.ps1

Traceback (most recent call last):
  File "", line 1, in 
sys.ps1
AttributeError: 'module' object has no attribute 'ps1'
>>>

--

___
Python tracker 
<http://bugs.python.org/issue7957>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-06 Thread Lucian Ursu

New submission from Lucian Ursu :

I suggest that name mangling should not be recommended as a way of having 
private attributes. Instead, one underscore should be suggested as a signal 
that the attribute is private.
This suggestion comes after discussing with some of the helpers from #python. 
Basically, they said that name mangling should never be used, so it would be 
appropriate to remove this recommendation from the tutorial.

--
assignee: d...@python
components: Documentation
messages: 105161
nosy: LucianU, d...@python
priority: normal
severity: normal
status: open
title: Remove suggestion for name mangling from the tutorial
type: feature request
versions: Python 2.6

___
Python tracker 
<http://bugs.python.org/issue8638>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com