[issue10148] st_mtime differs after shutil.copy2

2012-05-05 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 709850f1ec67 by Larry Hastings in branch 'default':
Update Misc/NEWS for issues #14127 and #14705.  (And, technically, #10148.)
http://hg.python.org/cpython/rev/709850f1ec67

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10148] st_mtime differs after shutil.copy2

2012-05-05 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 05274ab06182 by Larry Hastings in branch 'default':
Update Misc/NEWS for issues #14127 and #14705.  (And, technically, #10148.)
http://hg.python.org/cpython/rev/05274ab06182

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10148] st_mtime differs after shutil.copy2

2012-03-13 Thread STINNER Victor

STINNER Victor victor.stin...@gmail.com added the comment:

This issue is a duplicate of #14127.

--
nosy: +haypo
resolution:  - duplicate
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10148] st_mtime differs after shutil.copy2

2011-04-27 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10148] st_mtime differs after shutil.copy2

2011-04-27 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

Python =3.3 contains os.futimens() and os.utimensat() functions.

I have filed issue #11941, which suggests to add support for nanosecond 
resolution in result of os.stat().

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10148] st_mtime differs after shutil.copy2

2011-01-28 Thread Peter

Peter p.j.a.c...@googlemail.com added the comment:

I'm also seeing this on 32bit Windows XP using Python 3.1.2, and Python 3.2rc1 
on a local NTFS filesystem.

e.g. from os.stat(filename).st_mtime after using shutil.copy2(...)

1293634856.1402586 source
1293634856.1402581 copied

I've been using shutil.copy2 then expecting st_mtime will be equal (or at least 
that the copy file will be newer than the original). As you can see in this 
case, the copy is sometimes a fraction older.

The same issue occurs using shutil.copy then shutils.copystat (probably not a 
surprise).

--
nosy: +maubp

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10148] st_mtime differs after shutil.copy2

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10148] st_mtime differs after shutil.copy2

2010-10-19 Thread Luke McCarthy

New submission from Luke McCarthy l...@iogopro.co.uk:

When copying a file with shutil.copy2() between two ext4 filesystems on 64-bit 
Linux, the mtime of the destination file is different after the copy. It 
appears as if the resolution is slightly different, so the mtime is truncated 
slightly. For example:

source file mtime:  1287367331.8433506
destination file mtime: 1287367331.84335

--
components: Library (Lib)
messages: 119176
nosy: shaurz
priority: normal
severity: normal
status: open
title: st_mtime differs after shutil.copy2
type: behavior
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10148] st_mtime differs after shutil.copy2

2010-10-19 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

This is a system limitation. The underlying file system supports nanosecond 
resolution for the file stamps, and stat(2) also supports reporting them. 
However, utimes(2) only supports microsecond resolution when setting them.

Linux supports utimensat(2) since 2.6.22 (July 2007), however, Python doesn't 
use it. It would be possible to come up with a patch to transparently use it 
where available. Are you interested in writing such a patch?

As a consequential issue: For Python, a long time ago, it was decided that time 
stamps in system interfaces are floating point numbers. As a consequence, 
nanoseconds cannot be accurately represented for today's dates (IIUC). I doubt 
there is anything we could do about this; this is likely won't fix.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com