[issue5252] 2to3 should detect and delete import of removed statvfs module

2016-05-29 Thread R. David Murray
R. David Murray added the comment: Closing based on Benjamin's comments. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue5252] 2to3 should detect and delete import of removed statvfs module

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Benjamin, you seem to have rejected this feature request. Close it? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5252

[issue7647] Add statvfs flags to the posix module

2010-08-18 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Committed to 3.2 in rev. 84188; thanks, Adam! -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7647

[issue7647] Add statvfs flags to the posix module

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Here's a patch that updates the 2.7 docs. Adam, have you submitted a contributor agreement (http://www.python.org/psf/contrib/)? -- nosy: +akuchling Added file: http://bugs.python.org/file16318/posix-statvfs-flag-docs.txt

[issue7647] Add statvfs flags to the posix module

2010-01-12 Thread Adam Jackson
Adam Jackson a...@redhat.com added the comment: None of the other symbolic constants in 'posix' have documentation. Perhaps they should, but the patch is at least doing the same as what's already done. -- ___ Python tracker rep...@bugs.python.org

[issue7647] Add statvfs flags to the posix module

2010-01-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: IMO these symbols should go to the stat module, not the posix module. However, that module is Python, so the values would need to be hardcoded. Do you know whether they are constant on all relevant systems? -- assignee: - loewis

[issue7647] Add statvfs flags to the posix module

2010-01-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think having a stat module is a mistake in the first place. It's primary purpose (giving symbolic names to fields in a stat result) is out-of-date, now that we have named tuples. It's secondary purpose (collecting symbolic constants and

[issue7647] Add statvfs flags to the posix module

2010-01-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Okay. Would it then make sense to migrate those constants in the stat module to posix, and deprecate the former? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7647

[issue7647] Add statvfs flags to the posix module

2010-01-06 Thread Adam Jackson
New submission from Adam Jackson a...@redhat.com: Though the statvfs call exists in the posix module, the posix-defined values for the f_flag field are not. This makes it hard to know whether a filesystem is readonly without also knowing the value for ST_READONLY on the machine you're

[issue7647] Add statvfs flags to the posix module

2010-01-06 Thread Adam Jackson
Changes by Adam Jackson a...@redhat.com: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7647 ___ ___ Python-bugs-list

[issue7647] Add statvfs flags to the posix module

2010-01-06 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7647 ___ ___ Python-bugs-list

Re: statvfs clearance

2009-04-05 Thread Scott David Daniels
Dave Angel wrote: The term we used to use for these is magic numbers. Using magic-numbers directly in your code is a good way to ensure future time debugging. And perhaps, in these job-scarce days, future employment. I am reminded of a saying we had in the OS group at TymShare: A wizard is

Re: statvfs clearance

2009-04-05 Thread Cameron Simpson
On 04Apr2009 03:56, Sreejith K sreejith...@gmail.com wrote: | Python's statvfs module contains the following indexes to use with | os.statvfs() that contains the specified information | statvfs.F_BSIZE | Preferred file system block size. [...] | Can anyone tell me (or give me some links

statvfs clearance

2009-04-04 Thread Sreejith K
Python's statvfs module contains the following indexes to use with os.statvfs() that contains the specified information statvfs.F_BSIZE Preferred file system block size. statvfs.F_FRSIZE Fundamental file system block size. statvfs.F_BLOCKS Total number of blocks in the filesystem

Re: statvfs clearance

2009-04-04 Thread Albert Hopkins
On Sat, 2009-04-04 at 03:56 -0700, Sreejith K wrote: Python's statvfs module contains the following indexes to use with os.statvfs() that contains the specified information statvfs.F_BSIZE Preferred file system block size. statvfs.F_FRSIZE Fundamental file system block size

Re: statvfs clearance

2009-04-04 Thread Hrvoje Niksic
Sreejith K sreejith...@gmail.com writes: Python's statvfs module contains the following indexes to use with os.statvfs() that contains the specified information statvfs.F_BSIZE Preferred file system block size. [...] statvfs.F_NAMEMAX Maximum file name length. Can anyone tell me

Re: statvfs clearance

2009-04-04 Thread Albert Hopkins
On Sat, 2009-04-04 at 15:48 +0200, Hrvoje Niksic wrote: Sreejith K sreejith...@gmail.com writes: Python's statvfs module contains the following indexes to use with os.statvfs() that contains the specified information statvfs.F_BSIZE Preferred file system block size

Re: statvfs clearance

2009-04-04 Thread Dave Angel
Hrvoje Niksic wrote: Sreejith K sreejith...@gmail.com writes: Python's statvfs module contains the following indexes to use with os.statvfs() that contains the specified information statvfs.F_BSIZE Preferred file system block size. [...] statvfs.F_NAMEMAX Maximum file

[issue5252] 2to3 should detect and delete import of removed statvfs module

2009-02-14 Thread Stephen J. Turnbull
Stephen J. Turnbull step...@xemacs.org added the comment: Benjamin Peterson writes: Hmm. 2to3 doesn't currently mess with the stat module and os.stat the more common function. Also the new interface (attributes on the objects returned) has been around since 2.2. So what? You *can't*

[issue5252] 2to3 should detect and delete import of removed statvfs module

2009-02-14 Thread Benjamin Peterson
statement when he's porting it to use the attributes of the statvfs call. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5252 ___ ___ Python-bugs-list mailing

[issue5252] 2to3 should detect and delete import of removed statvfs module

2009-02-13 Thread Stephen J. Turnbull
New submission from Stephen J. Turnbull step...@xemacs.org: It should also try to convert stuff like from statvfs import F_BAVAIL, F_FRSIZE status = os.statvfs(directory) available = status[F_BAVAIL]/((1024*1024)/status[F_FRSIZE] -- components: 2to3 (2.x to 3.0 conversion tool

[issue5252] 2to3 should detect and delete import of removed statvfs module

2009-02-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Hmm. 2to3 doesn't currently mess with the stat module and os.stat the more common function. Also the new interface (attributes on the objects returned) has been around since 2.2. -- nosy: +benjamin.peterson priority: - low

Re: statvfs

2007-10-30 Thread Korthrun
At 2007-10-29, [EMAIL PROTECTED] expressed thier undying love for me by saying: On Mon, 29 Oct 2007 16:52:12 -0500, Korthrun wrote: I'm writing some scripts to populate RRD's, mainly for practicing python. As such I've decided to play with statvfs in order to build disk graphs. Here is what

statvfs

2007-10-29 Thread Korthrun
I'm writing some scripts to populate RRD's, mainly for practicing python. As such I've decided to play with statvfs in order to build disk graphs. Here is what I have and what I get. What I'm curious about here is the meaning of the L charcter, as that fubars math. ###start code### from os

Re: statvfs

2007-10-29 Thread Marc 'BlackJack' Rintsch
On Mon, 29 Oct 2007 16:52:12 -0500, Korthrun wrote: I'm writing some scripts to populate RRD's, mainly for practicing python. As such I've decided to play with statvfs in order to build disk graphs. Here is what I have and what I get. What I'm curious about here is the meaning of the L