Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

3.0rc3: List of 'os.', 'os.path.' attribute redundencies ... !! ?

16 views
Skip to first unread message

bMotu

unread,
Nov 24, 2008, 5:33:28 AM11/24/08
to pytho...@python.org
IDLE 3.0rc3 (using XP)
>>> import os

>>> os.altsep
'/'
>>> os.path.altsep
'/'

>>> os.curdir
'.'
>>> os.path.curdir
'.'

>>> os.defpath
'.;C:\\bin'
>>> os.path.defpath
'.;C:\\bin'

>>> os.devnull
'nul'
>>> os.path.devnull
'nul'

>>> os.pardir
'..'
>>> os.path.pardir
'..'

>>> os.pathsep
';'
>>> os.path.pathsep
';'

>>> os.sep
'\\'
>>> os.path.sep
'\\'

these - me thinks - should go away:
os.altsep
os.path.curdir
os.path.defpath
os.pathsep
os.sep

these I do not understand:
>>> os.devnull
'nul'
>>> os.path.devnull # should probably go away
'nul'

>>> os.pardir
'..'
>>> os.path.pardir # should probably go away
'..'

ciao, motu

0 new messages