Jakub Stolarski wrote:
> On Apr 4, 12:36 pm, "autin" <[EMAIL PROTECTED]> wrote:
>> such as:>>>b = False
> id(b)
>> Traceback (most recent call last):
>> File "", line 1, in ?
>> TypeError: 'bool' object is not callable
>>
>> ---
>> how to desc it?
>
b = False
id(b)
> 135311308
>
>
Adam wrote:
> I want to know if it possible to tell when a file is opened. However I
> don't want it to be the last access time. I want to know how many
> times a file opened so I can generate statistics of file usage.
>
> I will be wanting to watch all files on a server so this will be on
> quite
momobear wrote:
>> Will look into NTFS change journals when I get some spare time.
> How can we get NTFS change journals? Is there any API for this purpose
> or we could implement our own?
> there're an api in windows help us montior file changes.
> win32file.ReadDirectoryChangesW
Don't know what
人言落日是天涯,望极天涯不见家 wrote:
> print r'\\.\'
>
> This line will cause error. I just want to print the
> \\.\
> why the prefix character "r" isn't effective. Thanks!
Because of the way in which Python parses strings,
you can't end a string -- even a raw one -- with
an odd (1, 3, 5 etc) number of backsla
On a whim, given the terseness of your post, I
cut-and-pasted your subject line into Google,
added "python" for good measure, and looked at
the results.
I suggest you might do the same. Granted, maybe
this will raise more questions, but at least it
shows willing :)
TJG
--
http://mail.python.org/
Michael Bentley wrote:
>
> On Apr 13, 2007, at 7:04 AM, Robert Rawlins - Think Blue wrote:
>> #!/usr/bin/python
>>
>> # Filename: Firewall.py
>> class Firewall:
>>def __init__(self):
>>
>> Self.FireArray = array(c)
>>
>> p = Firewall()
>>
>> print p
>> Throws:
>>
>>
>>
>> Tra
Robert Rawlins - Think Blue wrote:
> Hello Guys,
>
> Wider fragments of code don't really exists at this moment in time :-D this
> is just a bit of a 'tester' class for me to get used to the methods.
> Basically I'm trying to create a class that contains an array of MAC
> address, these look somet
Robert Rawlins - Think Blue wrote:
> I'm looking to write a Log file which will be CSV based, and there is a good
> possibility that it'll get quite busy once its up and running, so I'm
> looking for the most efficient way to achieve it.
[... snip ...]
> myfile = open("Logs/Applica
Robert Rawlins - Think Blue wrote:
> The log at its highest rate of write may be looking at an operation a
> second
I think I can probably type stuff in faster than that if
I try :) You probably don't have a performance issue there.
, I've not got much experience with this kind of thing so
I'm n
Robert Rawlins - Think Blue wrote:
> Thanks for that Tim,
>
> I could use a little more help with this CSV stuff this afternoon and I
> can't get it to write the output I want for the life of me. I'm trying to
> write a method for my logging class that receives a string as an argument,
> and then
Ros wrote:
> Hi,
> > I wish to write xml file after validating data from mssql database.
> I am using xml data mapping list and would use it for validating data.
All right, I'm not going answer the question you're
asking (a) because I'm not really sure what the question
is and (b) because I'm not
Tommy Zong wrote:
> class easyExcel:
[... snip ...]
> However, I found a problem today - it works fine in single thread version
> but can not work properly in multi-thread version - If I move excel file
> operations to sub-thread, it will complain 'CoInitialize has not been
> called'. I noticed
Robert Rawlins - Think Blue wrote:
> I'm looking to clear those log files we were discussing earlier chaps,
>
> What the best method to do this? Delete the file completely? Or just empty
> its content?
Not sure there is a "best method". For simplicity I'd
just delete it and let the logger recreat
peter wrote:
> I've been wrestling on and off with this problem for over a year now,
> without success. Basically, I am looking for a simple set of screen
> and keyboard manipulation commands that will run identically under
> Linux and Windows. Nothing fancy - just clear the screen, print a
> str
lucidparadox wrote:
> I'm currently new to Python and I haven't been able to find the
> operator/math function to find the square root or even the x root of a
> number.
Without ever having used it, I would guess
it's the sqrt function in the math module.
(Possibly also of interest: the pow func
prajwala wrote:
>I want to convert xml file to a word document using python. Is
> there
> any built in module available?
>or Is there any other way to convert xml file to word document.
Insofar as it is textual, an xml file *is* a Word document.
Just open it up in Word and see. I assume yo
George Trojan wrote:
> A while ago I found somewhere the following implementation of frange():
.
.
.
> return (limit1 + n*increment for n in range(count))
>
> I am puzzled by the parentheses in the last line. Somehow they make
> frange to be a generator:
> But I always thought that generato
Christoph Scheit wrote:
> Hello,
>
> is there a way to do something like
> for i,j in l1, l2:
> print i,j
I'm assuming that l1 and l2 are in fact
lists (or at least sequences). If that's
the case:
l1 = [1, 2, 3]
l2 = ['a', 'b', 'c']
for i, j in zip (l1, l2):
print i, j
TJG
--
http:/
Carl K wrote:
> It seems there are 2 odbc modules - pyOdbc and mxOdbc - anyone know the
> difference?
In short, pyodbc is open source; mxOdbc requires a commercial license.
pyodbc is a newcomer, but appears to work for everything I've thrown
at it (which is not much). mxOdbc has been around longe
n00m wrote:
> def f(i,sm):
> if i+1==len(a):
> print sm+a[i]
> return sm+a[i]
> else:
> f(i+1,sm+a[i])
>
> a=[1,2,3,4,5]
>
> print f(0,0)
>
>
> 15
> None
You're not actually returning anything from
the recursive call.
TJG
--
http://mail.python.org/mailman/list
Joel wrote:
> I've been using this nice timing out decorator :
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871 . The
> problem is that since it relies on sigalarm, it doesn't work under
> windows. Would anyone know how to do a cross-platform version?
I don't think you're going to
Steve Holden wrote:
> Joel wrote:
>> On Sep 27, 4:36 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>>> Joel <[EMAIL PROTECTED]> writes:
I found the solution :
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440569
describes a solution based on threads. I tested it and it works
Peters, Matthew J. ET3 wrote:
> I'm looking for a way to read the lastwritetime property of
> a windows registry key. ... I found the function in perl
So what does the Perl source say? It presumably hooks some kind
of Windows API. Take that and, if it isn't already exposed via
pywin32
Nachiket Joshi wrote:
> Well before I explain my problem, let me tell you all that
> I am not a professional programmer and new to python too.
Welcome to the world of Python, home to professional and
non-professional programmers alike!
> I just write some scripts as and when required
Same coul
Steve Holden wrote:
> I wouldn't dream of suggesting it's impossible.
> I just regard "soon" as less than an hour in
> commuter's terms, I suppose.
Sadly, speaking as a Londoner, an hour is indeed
"soon" in commuter terms.
TJG
--
http://mail.python.org/mailman/listinfo/python-list
Nicholas Bastin wrote:
> On 10/4/07, John <[EMAIL PROTECTED]> wrote:
>> Is there a way to find the number of processors on a machine (on linux/
>> windows/macos/cygwin) using python code (using the same code/cross
>> platform code)?
>
> There's no single call that will give you the same info on ev
[Tim Golden]
>>"""
>>Windows Server 2003, Windows XP, and Windows 2000:
>> This property is not available.
>>"""
>>
>> since it's presumably not available in anything earlier either,
>> that leaves you w
jorma kala wrote:
> I get an error that I don't understand when using the subprocess module
> on Windows.
> I guess I'm missing out something very basic.
> For instance, to execute and capture the output of the ms-dos dir
> command, I tried the following:
>
> from subprocess import *
>
> p1 = P
Tim Chase wrote:
>> You are assuming the system is not localized, that won't work if you
>> distribute your applications internationally. In my system it is not
>> "Desktop", it is "Escritorio", and I guess it will vary with every
>> locale. Does someone know a way to find out what name does the de
Tim Chase wrote:
>> You are assuming the system is not localized, that won't work if you
>> distribute your applications internationally. In my system it is not
>> "Desktop", it is "Escritorio", and I guess it will vary with every
>> locale. Does someone know a way to find out what name does the de
[EMAIL PROTECTED] wrote:
> On Oct 8, 9:19 am, goldtech <[EMAIL PROTECTED]> wrote:
>>> from win32com.shell import shell, shellcon
>>> desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0)
>>>
>> Tim,
>>
>> How did you learn Win32com?
>>
>> Other than the O'Reilly book, I've never found
tough - there's tons of stuff in
>>> there. I've never been able to find the Win32com classes, methods,
>>> usage examples when I browse COM in PythonWin.
>>>
>>> For example where is, shell.SHGetFolderPath and shellcon.CSIDL_DESKTOP
>>> officia
KDawg44 wrote:
> Hi,
>
> I am frustrated with my users who send large files around the office
> instead of using the network shares.
[...]
> Which means that there are 8 copies of the same file 4MB taking up
> space, or a 4MB file turned into a 32MB file."
>
> So, what I would like, is to write
jeremito wrote:
> On Oct 11, 10:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> jeremito wrote:
>>> My Python script makes a bunch of images that I want to use as frames
>>> in a movie. I've tried searching for a module that will take these
>>> images and put them together in a Quicktime o
[KDawg44]
>>> I am frustrated with my users who send large files around the office
>>> instead of using the network shares.
[Tim Golden]
>> I have something v. similar, ...
>> It's a while since they were last run to they're probably quite
>> dus
Sells, Fred wrote:
> I'm using ActiveState python on a windows box to talk to ACtive Directory.
> I'm running a Pyro Server on the same box.
>
> The client is Linux running std Python 2.4.
>
> It works just fine until the server codes calls some
> win32com.client api; then I get
>
>
> Tra
Tim Golden wrote:
> [KDawg44]
>
>>>> I am frustrated with my users who send large files around the office
>>>> instead of using the network shares.
>
> [Tim Golden]
>>> I have something v. similar, ...
>>> It's a while since they were
Tim Golden wrote:
> Sells, Fred wrote:
>> I'm using ActiveState python on a windows box to talk to ACtive
>> Directory.
> > I'm running a Pyro Server on the same box.
>>
>> The client is Linux running std Python 2.4.
>>
>&g
danbrotherston wrote:
> I am trying to get the output from the win32 platform command
> OutputDebugString. I have used the following C++ code as a
> guideline:
>
> http://groups.google.com/group/microsoft.public.vc.utilities/browse_frm/thread/1434418cb968d053/1a3c957675242c7e?lnk=st&q=DBWIN_BUFFE
danbrotherston wrote:
>
>
> Wow, more of a response than I expected, thanks very much for the
> research. While not related to the mutex, the problem did appear to
> be permission related. For the record, on windows XP
>
> import sys
> import mmap
> import win32event
>
> buffer_ready = win32e
marc wyburn wrote:
> On Oct 17, 10:32 am, Heiko Schlierkamp <[EMAIL PROTECTED]
> africa.com.na> wrote:
>> I need to update the virus program every day with the new dat file from
>> mcafee
>> I would like to us a Bat file to go to the web page and download the dat
>> file automatically to a specific
he last time I parsed its
>> content
>> into the application then I need to parse it in again. However, I need
>> this
>> process to not interrupt the rest of my application flow.
>
> See this article by Tim Golden:
> http://timgolden.me.uk/python/win32_how_do_i/wat
Marco Mariani wrote:
> From the cookbook, this time.
> It satisfies the requirements nicely ;)
>
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496691
>
[... snip the ultimate general-purpose answer to the OP's question ...
I really hope that's a wink up there, Marco. The poor g
Marco Mariani wrote:
> Tim Golden wrote:
>
>>> From the cookbook, this time.
>>> It satisfies the requirements nicely ;)
>>>
>>> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496691
>> [... snip the ultimate general-purpose answer to th
Neil Cerutti wrote:
> On 2007-11-01, Chris Mellon <[EMAIL PROTECTED]> wrote:
>> On Nov 1, 2007 3:01 PM, Neil Cerutti <[EMAIL PROTECTED]> wrote:
>>> On 2007-11-01, Lee Capps <[EMAIL PROTECTED]> wrote:
On Nov 1, 2007, at 1:45 PM, braver wrote:
> Greetings -- as a long time user of both Pytho
Thierry Lam wrote:
> I'm using the WMI library for python and I was able to connect to
> another computer on the network with the following line:
>
> c = wmi.WMI(computer="the-network-computer", user="hello",
> password="hello")
>
> Is there a way to write information to a file on that computer?
>
abcd wrote:
> I have a class such as...
[... ]
> And I am storing them in a Queue.Queue...
>
> import Queue
> q = Queue.Queue()
> q.put(Foo('blah'))
> q.put(Foo('hello world'))
> q.put(Foo('test'))
>
> how can I search "q" for an instance of Foo which has 'id' equal to say
> 2? Typically a queue
awel wrote:
> I'm new in python and I would like to know if it's possible to check if
> a specific windows service is present and if it's possible how can I
> do?
This is one way:
http://tgolden.sc.sabren.com/python/wmi_cookbook.html#automatic_services
You'd have to change that example slightly
awel wrote:
> Sorry, but could you give me an example with a real service 'cause I've
> tried this script but nothings happened, no error, nothings ; even if I
> launch it in cmd prompt.
Well, as that example said, it was designed to show
automatic services which are not running. If you don't
have
> Does anyone have any experience having python deal with sleep mode? I'd
> love to run something that would hear a sleep event coming and pickle
> some data before sleep, then after coming out of sleep, unpickle...
It should, in theory, be possibly by trapping the WMI
Win32_PowerManagementEvent
Lance Hoffmeyer wrote:
> I ran makepy.py and loaded Microsoft Excel Object Library 11.0
> I have imported:
>
> import win32com.client
> from win32com.client import constants
> import re
> import codecs,win32com.client
> import time
> import datetime
> import win32com.client.dynamic
>
>
> using t
billie wrote:
> Hi there,
> I would like to submit a username/password pair to a Windows NT
> workstation and find out if it's valid.
> Moreover I would like to get the user's home directory given the
> username.
> Does it is possible to do that by using pywin32 extension?
http://timgolden.me.uk/p
billie wrote:
> Do you got any idea about how getting user's home directory?
The answer to that is unfortunately slightly complicated,
because Windows has no such thing as a "user's home directory"
or, if you prefer, it has several such things.
If you want, you can let Python make the decision,
billie wrote:
> Another question, I'm sorry.
> Do you got any idea about how to get permissions of a file/directory
> given the username?
> For example: I would like to know if C:\my_file.ext is readable/
> writable by user 'x' or not.
This is an unfortunately messy question. The easiest
answer --
Tim Golden wrote:
> billie wrote:
>> Another question, I'm sorry.
>> Do you got any idea about how to get permissions of a file/directory
>> given the username?
>> For example: I would like to know if C:\my_file.ext is readable/
>> writable by user 'x
[EMAIL PROTECTED] wrote:
> Here is my current setup:
>
> [... BSD ...]
> - Windows XP machine with folder share (What packet is sent over the
> network to remotely shutdown a Windows XP machine?)
>
> My hope is to have a script then when you start it will list all your
> remote computers/servers
Youth work in Ealing).
Tim Golden
--
http://mail.python.org/mailman/listinfo/python-list
Endless Story wrote:
> On Feb 16, 9:56 am, "Jim" <[EMAIL PROTECTED]> wrote:
>> On Feb 16, 5:52 am, "Endless Story" <[EMAIL PROTECTED]> wrote:
>> Are you talking about the Environment Variables-->System Variable-->path?
>> You may want to right click on My Computer-->System Properties-->Advanced-->
Kooch54 wrote:
>> Thanks for your response and Uwe I apologize if I misunderstood
>> and misinterpreted your comments. I am sorry.
>> I have tried Tim's module called active_directory and it works really
>> well. But I can't figure out how to connect to a specific group is I
>> know the comm
[EMAIL PROTECTED] wrote:
> Hello All,
>
> I'm a newbie to Python!
>
> I am trying to develop a program that monitors the performance of an
> application. The kind of information I am interested in is the CPU/
> Process/Thread and memory performance. Specifically, I would like to
> track the foll
[EMAIL PROTECTED] wrote:
> The phone reference is actually because the target device is WM 5.0.
> I've found a python port Pyce that will run on this platform. We have
> a target application that runs on this platform which we would like to
> develop some automated tests for. The application is w
Philipp Pagel wrote:
> David C. Ullrich <[EMAIL PROTECTED]> wrote:
>> Is there a csvlib out there somewhere?
>
> How about csv in the standard library?
>
>> (Um: Believe it or not I'm _still_ using
>> python 1.5.7.
>
> I have no idea if csv was part of the standard library backin those
> days...
Nader Emami wrote:
> L.S.,
>
> I have installed locally Python-2.4.4 without any problem. Then I would
> install the "ez_setup.py" to be able using of "easy_install" tool, but I
> get the next error:
>
> %python ez_setup.py
> Traceback (most recent call last):
>File "ez_setup.py", line 223,
Nader Emami wrote:
> Tim Golden wrote:
>> Nader Emami wrote:
>>> L.S.,
>>>
>>> I have installed locally Python-2.4.4 without any problem. Then I
>>> would install the "ez_setup.py" to be able using of "easy_install"
>>>
Nader Emami wrote:
>>> How can do the second solution, (take off the home from Python path)?
>>
>> Depends on your setup. Since you're on *nix, I can't
>> test whether $HOME is automatically on sys.path (it
>> isn't on Win32). Are you running *in* /usr/people/emami?
>> If so, go somewhere else bef
Nader Emami wrote:
> Tim Golden wrote:
>> Nader Emami wrote:
>>
>>>>> How can do the second solution, (take off the home from Python path)?
>>>>
>>>> Depends on your setup. Since you're on *nix, I can't
>>>> test whether
Nader Emami wrote:
> Tim Golden wrote:
>> Nader Emami wrote:
>>> Tim Golden wrote:
>>>> Nader Emami wrote:
>>>>
>>>>>>> How can do the second solution, (take off the home from Python
>>>>>>> path)?
>>>
OK. He's solved it. For the historical record...
Tim Golden wrote:
> Nader Emami wrote:
>> Tim Golden wrote:
>>> Nader Emami wrote:
>>>> Tim Golden wrote:
>>>>> Nader Emami wrote:
>>>>>
>>>>>&
Phoe6 wrote:
> Hi all,
> I am trying to disable the NIC card (and other cards) enabled in my
> machine to test diagnostics on that card.
> I am trying to disable it programmatic using python. I checked python
> wmi and i could not find ways to disable/enable, (listing is however,
> possible).
Sinc
[EMAIL PROTECTED] wrote:
> The problem I have is that since I import WMI, it takes a long time
> and we have users complaining about it. So I stuck the import
> statement into a separate thread and set it to a daemon so it could do
> its thing in the background and the rest of the script would fin
[EMAIL PROTECTED] wrote:
> On Feb 27, 3:32 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>>> The problem I have is that since I import WMI, it takes a long time
>>> and we have users complaining about it. So I stuck the import
>>> s
[... re getting free disk space ...]
Sick Monkey wrote:
> Here you are:
>
> >>> from win32com.client import GetObject
wmiObj = GetObject("winmgmts:MGW01641\\root\\cimv2")
diskinfo = wmiObj.ExecQuery("Select * from Win32_LogicalDisk")
for disk in diskinfo:
> ...print disk.N
kevinliu23 wrote:
> Thanks so much for the help guys. I got the code Sick Monkey provided
> to work on my computer. Now I"m more confused than ever though. :) I
> thought the only standard modules provided by Python are listed here:
>
> http://docs.python.org/modindex.html
>
> But it appears that
kevinliu23 wrote:
> Just tried your solution Tim, worked like a charm. :)
>
> It's great because I don't even have to worry about the computer name.
> A question regarding the rootPath parameter...how would I be passing
> it? Would I be passing it as...
>
>tuple = win32api.GetDiskFreeSpace(r'
[EMAIL PROTECTED] wrote:
> HI,
>
> I am new to Python and wanted to know how to check for the remaining
> disk space on my Windows machine using Python? I was thinking of using
> the command line "dir" and trying to extract the output from there.
> But I'm not sure how to extract command line stri
Pablo was Paolo wrote:
> [EMAIL PROTECTED] ha scritto:
>> If you want to work directly with the files why not just use Python's csv
>> module?
>
> Now, with Java, I use the same class to read several databases and csv
> files (with SQL instructions).
> I'd like to find a library for using the sam
Sick Monkey wrote:
> I am trying to build a python program that will reset a user's account
> (password) on a windows machine. I have been working with win32
> objects and was wondering if this functionality was already built in.
I'm going to assume that "win32 objects" is the stuff in the
pywin32
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am trying to get a small group of volunteers together to create
> Windows binaries for any Python extension developer that needs them,
> much like the package/extension builders who volunteer their time to
> create Linux RPMs.
>
> The main thing I need are peo
[EMAIL PROTECTED] wrote:
> The hardest part was finding accurate information. Most people on the
> user groups have been unhelpful or sarcastic.
That's a shame to hear. Because you were building on Windows?
Or for some other reason? (I ask because, even here on the
Python lists, reactions like "G
Gabor Urban wrote:
> OK, you are right... Problem was not precise enough. I need to process CDs
> to create a list. Does it ring a bell for you?
On Windows, at least, you can do this with WMI:
import win32com.client
wmi = win32com.client.GetObject ("winmgmts:")
for result in wmi.ExecQuery (
Jeremy C B Nicoll wrote:
> Is there a cross-platform of determining what other processes (or in Windows
> terms, other applications) are running?
>
> Is it possible in a cross-platform way to ask some other application to shut
> down, wait a while, and then test to see if it did shut?
>
> Failing
Jeremy C B Nicoll wrote:
> Is there a cross-platform of determining what other processes (or in
Windows
> terms, other applications) are running?
>
> Is it possible in a cross-platform way to ask some other application
to shut
> down, wait a while, and then test to see if it did shut?
>
>
Tim Golden wrote:
> Jeremy C B Nicoll wrote:
>> Is there a cross-platform of determining what other processes (or in Windows
>> terms, other applications) are running?
>>
>> Is it possible in a cross-platform way to ask some other application to shut
>> down, wait
[EMAIL PROTECTED] wrote:
> is it possible to parse a pdf file in python? for starters, i would
> like to count the number of pages in a pdf file. i see there is a
> project called ReportLab, but it seems to be a pdf generator... i
> can't tell if i would be able to parse a pdf file programmically
Carl K wrote:
> jay graves wrote:
>> On Sep 21, 2:43 am, Tim Golden <[EMAIL PROTECTED]> wrote:
>>> Carl K wrote:
>>>> It seems there are 2 odbc modules - pyOdbc and mxOdbc - anyone know the
>>>> difference?
>>> In short, pyodbc is open sour
Tim Couper wrote:
> but it would mean that a version for large duration projects would be
> "MarAthon" ...
Can't decide whether you were deliberately avoiding "long-running"
there, Tim, or just missed the opportunity :)
TJG
--
http://mail.python.org/mailman/listinfo/python-list
Méta-MCI (MVP) wrote:
> Hi, Tim!
>
> You are right, for shimgvw.dll (on XP / 2000, or some Vista). But
> others Vista (ou users practice) had associate images with
> WindowsPhotoGallery.exe.
>
> But shimgvw.dll already exist.
>
> I found that this line:
>
> command = 'start "%s"
Méta-MCI (MVP) wrote:
> Re!
>
> I have found the problem. On Vista, the Windows-Photo-Galery (soft
> default displayer) don't wait. Even with START /WAIT (in Image.py &
> _showxv), it don't wait.
>
> Then, like the preview don't wait, the (next) "DEL" run prior the end of
> the launch of th
Méta-MCI (MVP) wrote:
[Excuse my execrable French below]
> Sorry, I don't understand english. But, with Babelfish-translation, I
> recovered essence...
> (you should learn French ; yes! yes! yes!)
Vraiment!
> I have just try on another CPU, with a very new Vista-premium
> (configuration of
farsheed wrote:
> I have a big problem. I have a list of files that my script find and
> list them in a little gui.
> I need this function:
>
> when i d-click on each item, I want explorer opens and selects that
> item inside windows explorer.
> like that beautiful buttom in iTunes.
Experiment wi
farsheed wrote:
> That was great. Thanks so so much.
> can you tell me where can I find that kind of trips?
(assuming "kind of tips")
I stuck "explorer command line options" into Google and... Bingo!
(All right, I'm cheating a bit: I knew that explorer *had* comman
Yann Leboulanger wrote:
> Martin v. Löwis a écrit :
>>> I create a folder test under e:
>>>
>>> then os.access('e:\\test', os.W_OK) returns True. Everything's ok.
>>>
>>> Now I move My Documents to this e:\test folder
>>>
>>> Then os.access('e:\\test', os.W_OK) returns False !!
>> This description
Tim Golden wrote:
> Yann Leboulanger wrote:
>> Martin v. Löwis a écrit :
>>>> I create a folder test under e:
>>>>
>>>> then os.access('e:\\test', os.W_OK) returns True. Everything's ok.
>>>>
>>>> Now I move My Do
Yann Leboulanger wrote:
> Tim Golden a écrit :
>>
>> I'm happy to contribute a doc patch if I can imagine what
>> exactly to write.
>>
>
> "Don't use it under windows, always consider it's True"?
Well, that's not the case for
Navid Parvini wrote:
> Dear All,
>
> Would you please help me to find a way to get the list of all processes id
> on the machine along with their parent processes.
>
> Thank you in advance.
Deja vu?
http://groups.google.com/group/comp.lang.python/search?q=list+process
TJG
--
http:/
Yann Leboulanger wrote:
> Ok thanks for all those information, I'll remove the call to os.access()
> on folders for windows in my application.
>
FWIW, I think it's worth bearing in mind what was said
earlier in this thread: it's easier to ask forgiveness
than permission. Technically, even if os.
Martin v. Löwis wrote:
> It would be possible to fix this specific case, by always
> returning True for directories; and perhaps I'll do that for
> 2.5.2.
Martin. Could you confirm that the outline below correctly
describes the behaviour of the os.access function under
Windows, please? If you conf
Martin v. Löwis wrote:
>> Martin. Could you confirm that the outline below correctly
>> describes the behaviour of the os.access function under
>> Windows, please?
>
> It's correct for Python 2.5.2 and 2.6; for 2.5.1 (as discussed)
> the test "if directory:return True" was not implemented.
Thanks
Martin v. Löwis wrote:
>> Now, ironically, I'm confused by your recap :) What I meant to say was
>> that the os.access function as implemented under Windows returns False
>> if the path in question (say, "x:\someones-private-docs\diary.doc") was
>> inaccessible to the process invoking os.access by
[apologies if this double-posts; my email server's playing up]
Martin v. Löwis wrote:
> In a POSIX world, you need read permission on the directory.
> In Windows, with the "bypass-traversal-check" privilege,
> you only need read permission on the directory if you want
> to list it, not to acce
801 - 900 of 1542 matches
Mail list logo