mesheb82 added the comment:
Testing on Python 2.7.12 on through Windows 10 bash (so Linux), I find an
inconsistency with the documented statement "If a component is an absolute
path, all previous components are thrown away and joining continues from the
absolute path comp
New submission from mesheb82:
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'
Th
mesheb82 added the comment:
Thank you.
On Wed, Feb 22, 2017 at 9:22 PM, Serhiy Storchaka
wrote:
>
> Serhiy Storchaka added the comment:
>
> > When I run the following code on Windows/Linux for < Python 3.6, I have
> no problems.
>
> You have a problem. Did you try t
New submission from mesheb82:
When I run the following code on Windows/Linux for < Python 3.6, I have no
problems. When I run in Python 3.6.0, I get the subsequent traceback.
I checked the release notes and only saw the following struct module note
related to half-floats: Issue #11734
f
New submission from mesheb82:
I got unexpected results when working with a string that has an apostrophe in
it.
"Joe's".title()
>> "Joe'S"
'Joe"s'.title()
>> 'Joe"S'
--
components: Interpreter Core
messages: 16
mesheb82 added the comment:
Also, I tested this on Windows in Python 3.2.3 and Windows in Python 2.7.2
--
___
Python tracker
<http://bugs.python.org/issue14
New submission from mesheb82 :
I found some unexpected behavior while working with the struct module.
>>> import struct
This works as expected:
>>> struct.pack('1s1s','3','4')
'34'
In this case, with bad input, the error me
New submission from mesheb82 :
I’m running:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on
win32
I was testing out some print functionality and I made an error in typing (I
meant to use %8.8f), but is this behavior intentional or is it an error?
>>