PYTHON Predefined Constants

is this article helpful?
|
Python replacement for PHP's Predefined Constants [ edit | history ]
import os
os.sep
os.pathsep

PHP Predefined Constants

PHP original manual for Predefined Constants [ show | php.net ]

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

DIRECTORY_SEPARATOR (string)
PATH_SEPARATOR (string)

Note: The PATH_SEPARATOR was introduced with PHP 4.3.0-RC2.