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

bMotu bcd240 at gmail.com
Mon Nov 24 05:33:28 EST 2008


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



More information about the Python-list mailing list