[issue12102] mmap requires file to be synced

2011-07-24 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks! -- assignee: -> rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker

[issue12102] mmap requires file to be synced

2011-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset e75715f27ce7 by Ross Lagerwall in branch '2.7': Issue #12102: Document that buffered files must be flushed before being used http://hg.python.org/cpython/rev/e75715f27ce7 -- ___ Python tracker

[issue12102] mmap requires file to be synced

2011-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 198627bbe242 by Ross Lagerwall in branch '3.2': Issue #12102: Document that buffered files must be flushed before being used http://hg.python.org/cpython/rev/198627bbe242 New changeset 4898b14dcd69 by Ross Lagerwall in branch 'default': Issue #1210

[issue12102] mmap requires file to be synced

2011-05-22 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file22020/12102.1.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue12102] mmap requires file to be synced

2011-05-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > that doesn't make me any good Well - 'can only be better than myself, so i'll take that as yes :) -- ___ Python tracker ___

[issue12102] mmap requires file to be synced

2011-05-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: > Looked at it again and i think it's much better english with an > additional ..to ensure "that" local... > @Ross, aren't you a native english speaker? What do you say? Yes I am, but that doesn't make me any good ;-) I'd probably agree that it's better with

[issue12102] mmap requires file to be synced

2011-05-21 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Looked at it again and i think it's much better english with an additional ..to ensure "that" local... @Ross, aren't you a native english speaker? What do you say? -- Added file: http://bugs.python.org/file22048/12102.2.diff __

[issue12102] mmap requires file to be synced

2011-05-18 Thread Ross Lagerwall
Ross Lagerwall added the comment: > I don't think that Python should guess what the user expects (i.e. Python > should not sync the file *implicitly*). Agreed. The documentation patch looks good. -- nosy: +rosslagerwall ___ Python tracker

[issue12102] mmap requires file to be synced

2011-05-18 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: @ STINNER Victor wrote (2011-05-18 14:33+0200): > I don't think that Python should guess what the user expects > (i.e. Python should not sync the file *implicitly*). Before i've found F_FULLFSYNC i indeed have had a solution which tracked the open() of

[issue12102] mmap requires file to be synced

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: > Hello, zion, Victor, i'm proposing a documentation patch. I like it. I don't think that Python should guess what the user expects (i.e. Python should not sync the file *implicitly*). -- ___ Python tracker

[issue12102] mmap requires file to be synced

2011-05-18 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: @ rion wrote (2011-05-18 12:39+0200): > just document it or fix. Hello, zion, Victor, i'm proposing a documentation patch. It applies to 2.7 and 3.3 (from yesterday). -- keywords: +patch Added file: http://bugs.python.org/file22020/12102.1.diff

[issue12102] mmap requires file to be synced

2011-05-18 Thread rion
rion added the comment: okay guys I'm not going to read all this stuff. just document it or fix. thanks for quick reply -- ___ Python tracker ___ __

[issue12102] mmap requires file to be synced

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: See also issue #11877 and #11277. -- nosy: +haypo, sdaoden ___ Python tracker ___ ___ Python-bugs-l

[issue12102] mmap requires file to be synced

2011-05-18 Thread Ralf Schmitt
Ralf Schmitt added the comment: your suggestion doesn't work. there's no such thing like a "flush on file descriptor". -- nosy: +schmir ___ Python tracker ___ _

[issue12102] mmap requires file to be synced

2011-05-18 Thread rion
New submission from rion : Not flushed file gives next results: rion@rionhost ~/temp $ python2 test.py Traceback (most recent call last): File "test.py", line 10, in m = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) mmap.error: [Errno 22] Invalid argument rion@rionhost ~/temp $ pytho