This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mesheb82
Recipients mesheb82, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-07-11.20:43:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499805834.64.0.51742284415.issue30906@psf.upfronthosting.co.za>
In-reply-to
Content
I'm trying to join paths on Windows with data taken from a user generated file.  In doing so, I came across:

    >>> os.path.join('dir1', '/dir2')
    '/dir2'

I'd expect an error or:

    'dir1\\dir2'

This has been tested and is consistent with Python 2.7.13 and 3.6.1.
History
Date User Action Args
2017-07-11 20:43:54mesheb82setrecipients: + mesheb82, paul.moore, tim.golden, zach.ware, steve.dower
2017-07-11 20:43:54mesheb82setmessageid: <1499805834.64.0.51742284415.issue30906@psf.upfronthosting.co.za>
2017-07-11 20:43:54mesheb82linkissue30906 messages
2017-07-11 20:43:54mesheb82create