On Jan 9, 3:43 pm, "bruce" wrote:
> hi jason
>
> forgive me... but in your sample:
> my_popenobjects = [subprocess.Popen("foo.py", "--filename=file
> %i.txt"%x) for x in xrange(10)]
> are you spawning 'foo.py' 10 times? that can't be right!
> so just what is "foo.py" used for?
> It's almost like shared libraries are disallowed from the module
> library Zip format.
Correct. That's a limitation of the Windows operating system, which can
load DLLs only from plain, regular files. Python can load .py files from
zip files because it implements the loading itself. For DLL load
thanks jason
or i could also, simply iterate through a loop of the names of the "child
processes" i want to spawn, using the names in the subprocess.popen, and
then proceeding with the rest of your example..
question though... if i have a child app that's hanging.. how do i kill it.
or is th
On Jan 10, 6:58 am, Carl Banks wrote:
> On Jan 9, 12:36 pm, "J. Cliff Dyer" wrote:
>
>
>
>
>
> > On Fri, 2009-01-09 at 13:13 -0500, Steve Holden wrote:
> > > Aivar Annamaa wrote:
> > > >> As was recently pointed out in a nearly identical thread, the -3
> > > >> switch only points out problems tha
On Jan 9, 4:07 pm, "bruce" wrote:
> thanks jason
>
> or i could also, simply iterate through a loop of the names of the "child
> processes" i want to spawn, using the names in the subprocess.popen, and
> then proceeding with the rest of your example..
>
> question though... if i have a child a
Mark Wooding wrote:
As an aside, I don't notice anywhere near as much confusion in Lisp and
Scheme groups, which might be surprising since Lisp and Scheme have
precisely the same data model, argument passing convention, and
assignment semantics, as Python has.
Nor is there anywhere near as muc
Joe Strout wrote:
> ru...@yahoo.com wrote:
>
>>> I never claimed that you *couldn't* have copy semantics in C; you can do
>>> almost anything you want in C (or C++). But the *normal* usage of an
>>> array is via a pointer, in which case the semantics are exactly the same
>>> as in Python, Java, RE
On Fri, Jan 9, 2009 at 7:11 PM, Joe Strout wrote:
> Mark Wooding wrote:
>
>
> .NET isn't a language at all:
>> rather, it's a virtual machine, runtime system, class library and family
>> of languages each of which may have idiosyncratic semantics.
>>
>
> But they don't, AFAIK -- they all have th
bruce wrote:
> toying with an idea.. trying to figure out a good/best way to spawn
> multiple python scripts from a parent python app. i'm trying to figure
> out how to determine when all child apps have completed, or to
> possibly determine if any of the child processes have died/halted..
You d
On Jan 10, 9:52 am, webcomm wrote:
> On Jan 9, 5:21 pm, John Machin wrote:
>
> > Thanks. Would you mind spending a few minutes more on this so that we
> > can see if it's a problem that can be fixed easily, like the one that
> > Chris Mellon reported?
>
> Don't mind at all. I'm now working with
I've added a field to all PyObjects in the interpreter which is of type
PyObject*. Most of the time this pointer is NULL but occassionally I
want to track some information in there. The problem I'm running into
is that I can add a reference to a PyObject inside any of my PyObjects,
but it seems
hi, thanks for your help.
May the diff file is wrong? on my system it doesn't work.
Well, set the -enable-universalsdk= path occurs that error.
Hmm. that is really a disaster, isn't it :( hm.
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone know a way to remove the 'FFFD' character with python?
You can see the browser output I'm dealing with here:
http://webcomm.webfactional.com/htdocs/fffd.JPG
I deleted a big chunk out of the middle of that JPG to protect
sensitive data.
I don't know what the character encoding of this
On Fri, 09 Jan 2009 21:03:39 +, Mark Wooding wrote:
> Steven D'Aprano wrote:
>
>> Python doesn't do the same thing as C. It actually passes the same
>> value to the function, without copying it.
>>
>> Why oh why do you keep insisting that Python is no different from C?
>
> I'm beginning to
On 2009-01-10, Joe Strout wrote:
> Mark Wooding wrote:
>
>> As an aside, I don't notice anywhere near as much confusion in Lisp and
>> Scheme groups, which might be surprising since Lisp and Scheme have
>> precisely the same data model, argument passing convention, and
>> assignment semantics, as
On Jan 9, 9:56 pm, mk wrote:
> The factor of 30 indeed does not seem right -- I have done somewhat
> similar stuff (calculating Levenshtein distance [edit distance] on words
> read from very large files), coded the same algorithm in pure Python and
> C++ (using linked lists in C++) and Python ver
In article
,
googler.1.webmas...@spamgourmet.com wrote:
> May the diff file is wrong? on my system it doesn't work.
> Well, set the -enable-universalsdk= path occurs that error.
Sorry, there were a few line wrap-arounds in the diff file due to long
lines but the changes for the four significant
Hi! :)
>Sorry, there were a few line wrap-arounds in the diff file due to long
>lines but the changes for the four significant lines should be easy to
>do manually.
Hadn't done that before but I found a ressource how to read that
syntax.
x86_64 would be enough. i test that again. Thank you. :)
-
i'm using urllib2 in python 2.4
wondering how people typically deal with the case in which a download
is too slow. setting the socket timeout only covers those cases where
there is no response in the socket for whatever the timeout period is.
what if, however, i'm getting bits back but want simply
En Sat, 10 Jan 2009 00:07:15 -0200, p. escribió:
i'm using urllib2 in python 2.4
wondering how people typically deal with the case in which a download
is too slow. setting the socket timeout only covers those cases where
there is no response in the socket for whatever the timeout period is.
wh
p. wrote:
i'm using urllib2 in python 2.4
wondering how people typically deal with the case in which a download
is too slow. setting the socket timeout only covers those cases where
there is no response in the socket for whatever the timeout period is.
what if, however, i'm getting bits back but
Hi Everyone,
We have a process that does a copy of a share from one location to another.
This usually works fine but can occasionally bomb if a file is opened by
a user somewhere.
Is there a way to code detection of open files and force a close?
The files in question are typically PDF files
On Sat, 10 Jan 2009 00:21:27 -, wrote:
Joe Strout wrote:
ru...@yahoo.com wrote:
[snip]
Pointers are passed and assigned by value, just as
other types (disputedly except arrays) are.
One can then use that pointer to manually effect
pass-(the-value-pointed-to)-by-reference, or sharing,
e
Joe Strout wrote:
> No, actually, that was me. rurpy's list was something like C, FORTRAN,
> Perl, and VBA.
My mistake -- I failed to read the quoting properly. Apologies to all.
We still dealt with C.
Fortran (to give it its modern spelling) has a similar data model to C,
but passes argume
Steven D'Aprano wrote:
> Er, perhaps you missed that I was replying to Joe Strout.
Yes, evidently. My apologies for the mix up!
-- [mdw], who obviously should put the keyboard down now.
--
http://mail.python.org/mailman/listinfo/python-list
Mark Wooding wrote:
> ru...@yahoo.com wrote:
>
>> If one accepts that there are a "lot" of people who post in here that
>> clearly are surprised by Python's assignment semantics,
>
> But one should not accept that. One might accept that there are many
> who post who claim that they are surprised
Andrew Robert wrote:
Hi Everyone,
We have a process that does a copy of a share from one location to
another.
This usually works fine but can occasionally bomb if a file is opened
by a user somewhere.
Is there a way to code detection of open files and force a close?
The files in question are
MRAB wrote:
Andrew Robert wrote:
Hi Everyone,
We have a process that does a copy of a share from one location to
another.
This usually works fine but can occasionally bomb if a file is opened
by a user somewhere.
Is there a way to code detection of open files and force a close?
The files in
On Fri, Jan 9, 2009 at 3:37 PM, Frank Wierzbicki wrote:
> On behalf of the Jython development team, I'm pleased to announce that
> Jython 2.5b1 is available for download:
> http://downloads.sourceforge.net/jython/jython_installer-2.5b1.jar.
> See the installation instructions here:
> http://www.jy
Rhodri James wrote:
> On Sat, 10 Jan 2009 00:21:27 -, wrote:
>> IIRC, Someone posted here that his experience was
>> that 12-year old kids (presumably without programming
>> experience) had no problem with Python and references
>> when described as "names given to an object". (From
>> memory,
So I'm in the current testing situation:
sender.py:
-
def sendEmails():
return "I send emails"
alerter.py:
-
from sender import *
def DoStuffAndSendEmails():
doStuff()
sendEmails()
I'm trying to write a test fn that will test DoStuffAndSendEmails()
(as well as it's
Silfheed wrote:
So I'm in the current testing situation:
sender.py:
-
def sendEmails():
return "I send emails"
alerter.py:
-
from sender import *
def DoStuffAndSendEmails():
doStuff()
sendEmails()
I'm trying to write a test fn that will test DoStuffAndSendEmails(
On Jan 9, 6:39 pm, Ryan Stutsman wrote:
> I've added a field to all PyObjects in the interpreter which is of type
> PyObject*. Most of the time this pointer is NULL but occassionally I
> want to track some information in there. The problem I'm running into
> is that I can add a reference to a Py
Silfheed wrote in news:c73b304b-f601-4bb5-89c1-3ee667eeb7d9
@l37g2000vba.googlegroups.com in comp.lang.python:
> So I'm in the current testing situation:
>
> sender.py:
> -
> def sendEmails():
>return "I send emails"
>
> alerter.py:
> -
> from sender import *
> def Do
On Jan 8, 11:35 pm, John Machin wrote:
> On Jan 9, 1:56 pm, Benjamin wrote:
>
> > On Jan 8, 4:21 pm, Thorsten Kampe wrote:
>
> > > * Terry Reedy (Thu, 08 Jan 2009 17:04:04 -0500)
> > > > Since you are, I believe, at least the second person to report being bit
> > > > by this confusion, please op
On Jan 10, 2:55 pm, Benjamin wrote:
> On Jan 8, 11:35 pm, John Machin wrote:
> > > Actually, don't bother now; I've fixed it up in the trunk.
>
> > Would you mind giving a pointer to where or what your fix is? The
> > reason for asking is that Thorsten's suggestion is ambiguous: warn
> > about s
On Sat, 10 Jan 2009 03:06:03 -, Andrew Robert
wrote:
The usual scenario is that a user will leave a PDF open and then go home
for the evening. They are simply viewing and not modifying the file.
When the XCOPY executes, it signals a failure and subsequent scheduler
job abend.
What
On Jan 10, 4:21 am, Silfheed wrote:
> So I'm in the current testing situation:
>
> sender.py:
> -
> def sendEmails():
> return "I send emails"
>
> alerter.py:
> -
> from sender import *
> def DoStuffAndSendEmails():
> doStuff()
> sendEmails()
>
> I'm trying to write
Hi!
I downloaded W7 two days ago, directly on MSDN (Microsoft), and not on a
bizarre, unknown site, and doubtful.
Python 2.6 run OK.
But the problem (well known) with Python 2.6.1 is always present.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
En Fri, 09 Jan 2009 03:04:58 -0200, akineko escribió:
(2) test program with multiprocessing
Both processes receives SIGINT.
OS apparently distributes the SIGINT event to processes associated
with the terminal.
Yes, to avoid that, the child process has to detach itself from the
terminal. I'd
On Jan 9, 2:14 pm, Marc 'BlackJack' Rintsch wrote:
> On Fri, 09 Jan 2009 15:34:17 +, MRAB wrote:
> > Marc 'BlackJack' Rintsch wrote:
>
> >> def iter_max_values(blocks, block_count):
> >> for i, block in enumerate(blocks):
> >> histogram = defaultdict(int)
> >> for byte in b
On Thu, 08 Jan 2009 16:47:39 -0800, webcomm wrote:
> The error...
...
> BadZipfile: File is not a zip file
>
> When I look at data.zip in Windows, it appears to be a valid zip file.
> I am able to uncompress it in Windows XP, and can also uncompress it
> with 7-Zip. It looks like zipfile is not
> Always crashing because I asked the OS to please not allow a process
> to grow too big is what I call overloading the meaning of ulimit -s.
Please trust that there is no explicit code in the Python interpreter
that tests whether the stack size is 4GB, and then produces an explicit
crash.
> It's
> I see. I should be blaming the default behavior of pthreads.
You shouldn't blame anybody. Instead, you should sit down and study
the problem in detail, until you fully understand it. Then you should
start contributing fixes. Never ever should you spread blame.
Regards,
Martin
--
http://mail.py
I was wondering if there is a mechanism to encrypt logging
automatically in python.
The issue is as follows:
(a) An application (after py2exe) will go as executable and there
is no need for the user to know that it is written in python. If an
exception occurs and it is logged, then the us
On Fri, 9 Jan 2009 15:15:28 +0800, "Steven Woody"
wrote:
> Hi,
>
> I am considering using PyQt for GUI programs, and I notices that both
> of them include threading supports, so which one should I pick up?
> Similar also applies 'socket'.
I'd recommend using the PyQt versions of both.
A signifi
> What would cause a zip file to not have a table of contents?
AFAICT, _EndRecData is failing to find the "end of zipfile" structure in
the file. You might want debug through it to see where it looks, and how
it decides that this structure is not present in the file. Towards
22 bytes before the en
On Thu, 08 Jan 2009 10:42:13 -0800, Paul McNett wrote:
> Ben Finney wrote:
>> Paul McNett writes:
>>> But arguing about this here isn't going to change anything: opinions
>>> differ just like tabs/spaces and bottom-post/top-post.
>>
>> In cases like this, one side can simply be wrong :-)
>>
>>
On Jan 9, 2:16 am, Steven D'Aprano wrote:
> On Thu, 08 Jan 2009 16:47:39 -0800, webcomm wrote:
> > The error...
> ...
> > BadZipfile: File is not a zip file
>
> > When I look at data.zip in Windows, it appears to be a valid zip file.
> > I am able to uncompress it in Windows XP, and can also uncom
Tim Arnold wrote:
Hi, I don't even know what to google for on this one. I need to drive a
commercial desktop app (on windows xp) since the app doesn't have a batch
interface. It's intended to analyze one file at a time and display a
report.
I can get the thing to write out the report an html
Steven Woody a écrit :
On Fri, Jan 9, 2009 at 1:02 PM, James Mills
wrote:
On Fri, Jan 9, 2009 at 2:57 PM, Steven Woody wrote:
In C++/Java, people usually put one class into one file. What's the
suggestion on this topic in Python? I so much interesting this
especially when exception classes
On Fri, Jan 9, 2009 at 4:54 PM, Bruno Desthuilliers
wrote:
> Steven Woody a écrit :
>>
>> On Fri, Jan 9, 2009 at 1:02 PM, James Mills
>> wrote:
>>>
>>> On Fri, Jan 9, 2009 at 2:57 PM, Steven Woody
>>> wrote:
In C++/Java, people usually put one class into one file. What's the
sugg
On Fri, 09 Jan 2009 04:04:41 +0100, Johannes Bauer wrote:
> I've first tried Python. Please don't beat me, it's slow as hell and
> probably a horrible solution:
>
> #!/usr/bin/python
> import sys
> import os
>
> f = open(sys.argv[1], "r")
Mode should be 'rb'.
> filesize = os.stat(sys.argv[1])[
Bruno Desthuilliers a écrit :
Sergey Kishchenko a écrit :
(snip)
#prints "Ouch!"
f=Foo()
if f:
print "Ouch!"
So, default __nonzero__ impl is to return True.
Yes. It's clearly documented FWIW.
To be more exact: there's no "default __nonzero__". The boolean value of
an object is eval'd
hm... any ideas?
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Jan 9, 2009 at 6:18 PM, wrote:
> hm... any ideas?
Posting the config.log file would be a first step to give more information,
David
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Jan 9, 2009 at 7:15 PM, Marc 'BlackJack' Rintsch wrote:
>> print("Filesize : %d" % (filesize)) print("Image size : %dx%d"
>> % (width, height)) print("Bytes per Pixel: %d" % (blocksize))
>
> Why parentheses around ``print``\s "argument"? In Python <3 ``print`` is
> a statement a
On Jan 9, 7:16 pm, Steven D'Aprano wrote:
> On Thu, 08 Jan 2009 16:47:39 -0800, webcomm wrote:
> > The error...
> ...
> > BadZipfile: File is not a zip file
>
> > When I look at data.zip in Windows, it appears to be a valid zip file.
> > I am able to uncompress it in Windows XP, and can also uncom
On Jan 8, 9:06 pm, "Tim Arnold" wrote:
> Is there any lib or recipe(s) for doing something like this via python?
Look into the PyWin32 extension module. It gives access to Windows
internals including the COM interface. You'll need to do some research
into how to automate the GUI you're using from
On Fri, 09 Jan 2009 19:33:53 +1000, James Mills wrote:
> On Fri, Jan 9, 2009 at 7:15 PM, Marc 'BlackJack' Rintsch
> wrote:
>> Why parentheses around ``print``\s "argument"? In Python <3 ``print``
>> is a statement and not a function.
>
> Not true as of 2.6+ and 3.0+
>
> print is now a functio
On Fri, Jan 9, 2009 at 7:41 PM, Marc 'BlackJack' Rintsch wrote:
> Please read again what I wrote.
Lol I thought "<3" was a smiley! :)
Sorry!
cheers
James
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 09 Jan 2009 04:04:41 +0100, Johannes Bauer wrote:
> datamap = { }
> for i in range(len(data)):
> datamap[ord(data[i])] = datamap.get(data[i], 0) + 1
Here is an error by the way: You call `ord()` just on the left side of
the ``=``, so all keys in the dictionary
On Thu, 08 Jan 2009 18:33:50 +, Mark Wooding wrote:
> [Steven's message hasn't reached my server, so I'll reply to it here.
> Sorry if this is confusing.]
>
> Aaron Brady wrote:
>> On Jan 8, 1:45 am, Steven D'Aprano
>> wrote:
>> > On Wed, 07 Jan 2009 10:17:55 +, Mark Wooding wrote:
>> >
On Fri, 09 Jan 2009 00:46:27 -0800, Carl Banks wrote:
> On Jan 9, 2:16 am, Steven D'Aprano cybersource.com.au> wrote:
>> On Thu, 08 Jan 2009 16:47:39 -0800, webcomm wrote:
>> > The error...
>> ...
>> > BadZipfile: File is not a zip file
>>
>> > When I look at data.zip in Windows, it appears to be
After upgrading my system, a program started to throw this error, and
make a core dump:
Fatal Python error: ceval: tstate mix-up
Kernel log says:
Jan 9 05:06:49 shopzeus kernel: pid 89184 (python), uid 1024: exited on
signal 6 (core dumped)
I found out that this can happen only when execu
On Fri, 09 Jan 2009 19:33:53 +1000, James Mills wrote:
> On Fri, Jan 9, 2009 at 7:15 PM, Marc 'BlackJack' Rintsch
> wrote:
>>> print("Filesize : %d" % (filesize)) print("Image size :
>>> %dx%d" % (width, height)) print("Bytes per Pixel: %d" % (blocksize))
>>
>> Why parentheses around ``
On Fri, 09 Jan 2009 09:15:20 +, Marc 'BlackJack' Rintsch wrote:
>> picture = { }
>> havepixels = 0
>> while True:
>> data = f.read(blocksize)
>> if len(data) <= 0: break
>
> if data:
> break
>
> is enough.
You've reversed the sense of the test. The OP exits the loop w
On Fri, 09 Jan 2009 00:21:09 -0800, koranthala wrote:
> I was wondering if there is a mechanism to encrypt logging automatically
> in python.
>The issue is as follows:
> (a) An application (after py2exe) will go as executable and there
> is no need for the user to know that it is written i
On Fri, 09 Jan 2009 04:04:41 +0100, Johannes Bauer wrote:
> As this was horribly slow (20 Minutes for a 2GB file) I coded the whole
> thing in C also:
Yours took ~37 minutes for 2 GiB here. This "just" ~15 minutes:
#!/usr/bin/env python
from __future__ import division, with_statement
import os
Steven Woody a écrit :
On Fri, Jan 9, 2009 at 4:54 PM, Bruno Desthuilliers
wrote:
Steven Woody a écrit :
On Fri, Jan 9, 2009 at 1:02 PM, James Mills
wrote:
On Fri, Jan 9, 2009 at 2:57 PM, Steven Woody
wrote:
In C++/Java, people usually put one class into one file. What's the
suggestion on
Marc 'BlackJack' Rintsch wrote:
> On Fri, 09 Jan 2009 04:04:41 +0100, Johannes Bauer wrote:
[...]
>> print("Filesize : %d" % (filesize)) print("Image size : %dx%d"
>> % (width, height)) print("Bytes per Pixel: %d" % (blocksize))
>
> Why parentheses around ``print``\s "argument"? In Pyth
On Jan 9, 7:46 pm, Carl Banks wrote:
> On Jan 9, 2:16 am, Steven D'Aprano
>
>
>
>
> cybersource.com.au> wrote:
> > On Thu, 08 Jan 2009 16:47:39 -0800, webcomm wrote:
> > > The error...
> > ...
> > > BadZipfile: File is not a zip file
>
> > > When I look at data.zip in Windows, it appears to be a
Steven D'Aprano wrote:
> On Fri, 09 Jan 2009 19:33:53 +1000, James Mills wrote:
>
>> On Fri, Jan 9, 2009 at 7:15 PM, Marc 'BlackJack' Rintsch
>> wrote:
print("Filesize : %d" % (filesize)) print("Image size :
%dx%d" % (width, height)) print("Bytes per Pixel: %d" % (blocksize))
Hi, my Python program can be launched with a range of different options
(or subcommands) like:
$ myProgram doSomething
$ myProgram doSomethingElse
$ myProgram nowDoSomethingDifferent
I want it to use auto-completion with so that if i type "myProgram d" it
returns "myProgram doSomething" and
On Thu, Jan 8, 2009 at 9:07 PM, "Martin v. Löwis" wrote:
>> i'd just ... much rather be completely independent of proprietary
>> software when it comes to building free software.
>
> I guess my question is then: why do you want to use Windows in the
> first place?
ha ha :) the same question wa
Johannes Bauer wrote:
Which takes about 40 seconds. I want the niceness of Python but a little
more speed than I'm getting (I'd settle for factor 2 or 3 slower, but
factor 30 is just too much).
This probably doesn't contribute much, but have you tried using Python
profiler? You might have *so
gu wrote:
>
> Hi, my Python program can be launched with a range of different options
> (or subcommands) like:
>
> $ myProgram doSomething
> $ myProgram doSomethingElse
> $ myProgram nowDoSomethingDifferent
>
> I want it to use auto-completion with so that if i type "myProgram d" it
> returns "m
Tim Chase wrote:
tekion wrote:
Is there a module where you could figure week of the day, like where
it starts and end. I need to do this for a whole year. Thanks.
the monthcalendar() call returns the whole month's calendar which
may be more what you want for the big-picture.
And if you want
Steve Holden wrote:
gu wrote:
Hi, my Python program can be launched with a range of different options
(or subcommands) like:
$ myProgram doSomething
$ myProgram doSomethingElse
$ myProgram nowDoSomethingDifferent
I want it to use auto-completion with so that if i type "myProgram d" it
returns
gu wrote:
I see, but how does django-admin work, then?
from bash:
complete -W "doSomething doSomethingElse doSomethingDifferent" myProgram
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 9, 4:01 am, Steven D'Aprano wrote:
> On Thu, 08 Jan 2009 18:33:50 +, Mark Wooding wrote:
> > [Steven's message hasn't reached my server, so I'll reply to it here.
> > Sorry if this is confusing.]
>
> > Aaron Brady wrote:
> >> On Jan 8, 1:45 am, Steven D'Aprano
> >> wrote:
> >> > On We
gu wrote:
> Steve Holden wrote:
>> gu wrote:
>>> Hi, my Python program can be launched with a range of different options
>>> (or subcommands) like:
>>>
>>> $ myProgram doSomething
>>> $ myProgram doSomethingElse
>>> $ myProgram nowDoSomethingDifferent
>>>
>>> I want it to use auto-completion with s
Marco Mariani wrote:
gu wrote:
I see, but how does django-admin work, then?
from bash:
complete -W "doSomething doSomethingElse doSomethingDifferent" myProgram
This worked like a charm, thank you so much. Is this available for bash
only or any shell?
--
http://mail.python.org/mailman/lis
2008/12/22 Simon Brunning
> 2008/12/21 :
> > The code below opens the Choose Font dialog on my Spanish Windows
> version:
> >
> > py> from pywinauto.application import Application
> > py> app = Application.start("Notepad.exe")
>
> Notepad's menus are build with MFC. Word's menus are not. Trust m
> Is there any lib or recipe(s) for doing something like this via python?
>
I've used pywinauto to do something similar, and found it good.
http://pywinauto.openqa.org/
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 8, 1:00 am, Paul McNett wrote:
> It displays '3E+1' instead of '30.0'.
>
> As I can't reproduce I'm looking for an idea brainstorm of what could be
> causing
> this. What would be choosing to display such a normal number in scientific
> notation?
>
> Ideas?
[I thought I replied to this e
I could start "gdb python python.core" but don't know what it means.
Unfortunately, there are no debugging symbols.
%gdb /usr/local/bin/python python.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and yo
Hello all,
I'm newbie in the serial buissness and I beed some Help. I'm a student at my
last year and I got final assaignment.
My goal is to comunicate with SIM free, GSM Module through computer. I want
to simulate SIM card by receiving and transferring data from my code.
In order to understand ho
Marc 'BlackJack' Rintsch schrieb:
>> f = open(sys.argv[1], "r")
>
> Mode should be 'rb'.
Check.
>> filesize = os.stat(sys.argv[1])[6]
>
> `os.path.getsize()` is a little bit more readable.
Check.
>> print("Filesize : %d" % (filesize)) print("Image size : %dx%d"
>> % (width, height)
James Mills schrieb:
> What does this little tool do anyway ?
> It's very interesting the images it creates
> out of files. What is this called ?
It has no particular name. I was toying around with the Princeton Cold
Boot Attack (http://citp.princeton.edu/memory/). In particular I was
interested
Marc 'BlackJack' Rintsch schrieb:
> On Fri, 09 Jan 2009 04:04:41 +0100, Johannes Bauer wrote:
>
>> As this was horribly slow (20 Minutes for a 2GB file) I coded the whole
>> thing in C also:
>
> Yours took ~37 minutes for 2 GiB here. This "just" ~15 minutes:
Ah, ok... when implementing your sug
mk schrieb:
> Johannes Bauer wrote:
>
>> Which takes about 40 seconds. I want the niceness of Python but a little
>> more speed than I'm getting (I'd settle for factor 2 or 3 slower, but
>> factor 30 is just too much).
>
> This probably doesn't contribute much, but have you tried using Python
> p
Hi Peter and others,
your idea was good, but it does not work with Django ORM Models:
Traceback (most recent call last):
File "/localhome/modw/django/core/handlers/base.py", line 87, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/localhome/modw/foo/
On Jan 9, 3:16 pm, Steven D'Aprano wrote:
> On Fri, 09 Jan 2009 00:21:09 -0800, koranthala wrote:
> > I was wondering if there is a mechanism to encrypt logging automatically
> > in python.
> > The issue is as follows:
> > (a) An application (after py2exe) will go as executable and there
>
Meanwhile I'm trying to turn off threads in that program one by one. I
just got this new type of error:
Fatal Python error: PyThreadState_Delete: invalid tstate
--
http://mail.python.org/mailman/listinfo/python-list
Hi, everyone
I'm searching the win32gui lib to find a way to get the text under the
user cursor.
so far I managed to find only the controller ID which under the cursor
this way
cursorID = win32gui.WindowFromPoint(win32gui.GetCursorPos())
their is function called GetWindowText I tried to use but i
On Jan 9, 7:34 am, Gandalf wrote:
> Hi, everyone
> I'm searching the win32gui lib to find a way to get the text under the
> user cursor.
> so far I managed to find only the controller ID which under the cursor
> this way
>
> cursorID = win32gui.WindowFromPoint(win32gui.GetCursorPos())
>
> their is
On Jan 9, 8:02 am, koranth...@gmail.com wrote:
> Also, what I am asking is a generic option in logging - which can help
> the adoption of the logging framework in even closed source systems.
> It is not just about security - just that a closed source company
> might be much more comfortable in usin
Does anyone have any good examples, or links thereto for using python
as an Apache handler? And I should qualify all of this by saying I'm a
python newbie, and while having experience with Apache, I've never
done anything outside whats "in the box" .
What I'm looking for is how one might use Pytho
On Jan 9, 2009, at 2:49 AM, bilgin arslan wrote:
Hello,
I am a beginner in python and I am trying to create image files that
contain
lines from a text file.
I am trying to do this with PIL, which seems like a suitable tool. I
have a
copy of TextMate(1.5.8) and I run Macosx 10.5.6
The pro
1 - 100 of 207 matches
Mail list logo