New submission from houqp <[email protected]>:

Hi PyPy dev,

I run into following inconsistent behaviour between CPython and PyPy.

This is what I got from pypy:

```
>>>> f = open('/tmp/foo', 'a+')
>>>> f.write('123')
>>>> f.truncate(0)
>>>> f.write('1')
>>>> f.close()
>>>> open('/tmp/foo', 'r').read()
'\x00\x00\x00\x001'
```

While in Python 2.6, 2.7, I got '1' instead.

----------
messages: 6851
nosy: dave2008, pypy-issue
priority: bug
status: unread
title: inconsistent with CPython when writing to a truncated file

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1756>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to