Commits

Antoine Pitrou committed 7a27984

More docs

Comments (0)

Files changed (2)

       ''
 
 
+.. method:: PurePath.as_bytes()
+
+   Equivalent to calling ``bytes()`` on the path object::
+
+      >>> PurePosixPath('/etc').as_bytes()
+      b'/etc'
+
+
+.. method:: PurePath.as_posix()
+
+   Return a string representation of the path with forward slashes (``/``)::
+
+      >>> p = PureNTPath('c:\\windows')
+      >>> str(p)
+      'c:\\windows'
+      >>> p.as_posix()
+      'c:/windows'
+
+
 .. method:: PurePath.is_absolute()
 
    Return whether the path is absolute or not.  A path is considered absolute
         'Topic :: Software Development :: Libraries',
         'Topic :: System :: Filesystems',
         ],
+    download_url='https://pypi.python.org/pypi/pathlib/',
     url='http://readthedocs.org/docs/pathlib/',
 )