Peter Otten wrote:
Simon Hengel wrote:
Is it necessary to keep the input parameter as 'input'? Reducing that to
a single character drops the length of a program by at least 8
characters. Technically it changes the interface of the function, so
it's a little bogus, but test.py doesn't check.
Steve Holden wrote:
Kevin Yuan wrote:
21 Dec 2005 19:33:20 -0800, Luis M. González [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]:
... ...
This implementation requires a minimal core, writen in a restricted
subset of python called rpython. This subset avoids many of the
most
[EMAIL PROTECTED] wrote:
I don't like, that one of the latest UltraEdit releases
was buggy causing 100%CPU load and 2MByte of harddisk
data traffic beeing idle, so I am looking for an alternative
for years, but instead of finding it I was forced lately
to spend money again on renewing my license.
Claudio Grondi wrote:
OpenCV means Intel® Open Source Computer Vision Library. It is a
collection of C functions and a few C++ classes that implement some
popular Image Processing and Computer Vision algorithms.
OpenCV library is mainly aimed at real time computer vision. Some
example
BartlebyScrivener wrote:
If you're on Windows XP why not try Xemacs? That's free and does syntax
highlighting etc. Doesn't have a problem with large files and so on.
rpd
Installed:
http://ftp.dk.xemacs.org/pub/emacs/xemacs/binaries/win32/InnoSetup/XEmacs%20Setup%2021.4.18-1.exe
Requesting
BartlebyScrivener wrote:
Go to Options. Near the bottom, it will say Edit Init.File Click on
it.
Done. A completely new file was created.
Make an entry on a separate line near the top as follows
(require 'python-mode)
Then save the init file.
Have copy/pasted to it including braces
PatPoul wrote:
Yes I register Python script.
I see in your exemple that you use file extention pys.
That was why my exemple does'nt work.
Thanks !
Patrick Poulin
In this context I have a question:
How can the registering of the Python scripting engine be easily and
completely
Mike Meyer wrote:
Ok, I've given it the interface I want, and made it less of an
attractive nuisance.
http://www.mired.org/home/mwm/try_python/ is now ready for people to
play with. There's no tutorial information on it yet, that's the next
thing to do. However, I won't be able to work on
[EMAIL PROTECTED] wrote:
Claudio Grondi wrote:
The only thing what makes a difference to me is, that Wing 'understands'
Python code what results in features not available elsewhere (e.g. go to
definition).
This is something that pretty much any reasonable programming editor
will get you
Sybren Stuvel wrote:
Claudio Grondi enlightened us with:
With [Strg]-[End] I went to the end of the file where I wanted to
continue editing, but the syntax highlighting told me there is no
code but only a comment. I checked it and found out, that Vim is
apparently not able to do proper
vinjvinj wrote:
I haven't used an IDE in a long time but gave wing ide a try because
I wanted the same development platform on Linux and Windows.
I'm currently using Ultraedit and it works fine but needed something
more portable as I'm moving my main platform over to Ubuntu.
This is also
OpenCV means Intel® Open Source Computer Vision Library. It is a
collection of C functions and a few C++ classes that implement some
popular Image Processing and Computer Vision algorithms.
OpenCV library is mainly aimed at real time computer vision. Some
example areas would be Human-Computer
Magnus Lycka wrote:
Claudio Grondi wrote:
I have just discovered the existance of Puppy Linux which is a
complete operating system with a suite of GUI apps, only about 50 -
60M booting directly off the CDROM ( http://www.puppylinux.org ).
This approach appears to me very Pythonic, so
Paul Rubin wrote:
Claudio Grondi [EMAIL PROTECTED] writes:
Currently Ubuntu is my favorite, because it seems to be at the moment
the only Linux distribution supporting already Python 2.4.2 out of the
box,
Are you seriously saying that whatever distro came out most recently
(and therefore
I have just discovered the existance of Puppy Linux which is a complete
operating system with a suite of GUI apps, only about 50 - 60M booting
directly off the CDROM ( http://www.puppylinux.org ).
This approach appears to me very Pythonic, so it were a nice thing to
have a full featured
Diez B. Roggisch wrote:
Claudio Grondi schrieb:
I have just discovered the existance of Puppy Linux which is a
complete operating system with a suite of GUI apps, only about 50 -
60M booting directly off the CDROM ( http://www.puppylinux.org ).
This approach appears to me very Pythonic
Paul Boddie wrote:
Claudio Grondi wrote:
I have just discovered the existance of Puppy Linux which is a complete
operating system with a suite of GUI apps, only about 50 - 60M booting
directly off the CDROM ( http://www.puppylinux.org ).
This isn't really Python-related, but I thought
Adam Endicott wrote:
Does anyone know anything about PythonMagick? I've got a project that
could use ImageMagick, so I went looking around for PythonMagick, and
I'm a bit lost.
I was able to download the PythonMagick source from the ImageMagick
site, but I'm on Windows and don't have the
Adam Endicott wrote:
Claudio Grondi wrote:
Why is PIL *(Python Image Library) not suitable to do the graphics?
http://www.pythonware.com/products/pil/
Claudio
I am using PIL for some other things, but what I need ImageMagick for
is to convert a PDF into a series of jpegs (one per page
Gerald Klix [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Did you consider the mmap library?
Perhaps it is possible to avoid to hold these big stings in memory.
BTW: AFAIK it is not possible in 32bit windows for an ordinary programm
to allocate more than 2 GB. That
Sverker Nilsson [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi [EMAIL PROTECTED] wrote:
but the problem with sets.c remains:
C:\VisualC++NET2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /G7 /GX
/DNDEBUG -IE:\Python24\include -IE:\Python24\PC /Tcsrc/sets
What started as a simple test if it is better to load uncompressed data
directly from the harddisk or
load compressed data and uncompress it (Windows XP SP 2, Pentium4 3.0 GHz
system with 3 GByte RAM)
seems to show that none of the in Python available compression libraries
really works for large
Fredrik Lundh [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
What started as a simple test if it is better to load uncompressed data
directly from the harddisk or
load compressed data and uncompress it (Windows XP SP 2, Pentium4 3.0
GHz
system
I was also able to create a 1GB string on a different system (Linux 2.4.x,
32-bit Dual Intel Xeon, 8GB RAM, python 2.2).
$ python -c 'print len(m * 1024*1024*1024)'
1073741824
I agree with another poster that you may be hitting Windows limitations
rather
than Python ones, but I am certainly not
Harald Karner [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
Anyone on a big Linux machine able to do e.g. :
\python -c print len('m' * 2500*1024*1024)
or even more without a memory error?
I tried on a Sun with 16GB Ram (Python 2.3.2)
seems like
I have made a new version now, 0.1.1 .
It compiles cleanly with gcc -pedantic .
but the problem with sets.c remains:
C:\VisualC++NET2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /G7 /GX
/DNDEBUG -IE:\Python24\include -IE:\Python24\PC /Tcsrc/sets/sets.c
/Fobuild\temp.win32-2.4\Re
the string type uses the ob_size field to hold the string length, and
ob_size is an integer:
$ more Include/object.h
...
int ob_size; /* Number of items in variable part */
If this is what you mean,
#define PyObject_VAR_HEAD \
PyObject_HEAD \
int ob_size; /* Number of items in
JustSomeGuy [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
JustSomeGuy [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Hi I have a commercial OCX that I want to use in
my python
Sverker Nilsson [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net)
has failed to compile its extension modules with a Microsoft .NET 2003
compiler under Windows 2000.
[To the person who informed me about this
[EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
I am trying to learn GUI programming in Python, but have to confess I
am finding it difficult.
I am not an experienced programmer - just someone who from time to
time writes small programs for my use. Over the years I have
JustSomeGuy [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Hi I have a commercial OCX that I want to use in
my python application. How do I call OCXs from
python?
TIA
import win32com.client
axOCX =
win32com.client.Dispatch(RegistryEntryForThisOCXin[VersionIndependentProgID
http://en.wikipedia.org/wiki/De_Casteljau%27s_algorithm
has a Python example implementation of qubic Bezier curves available.
Claudio
Warren Francis [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
I'm fairly new to Python (2-3 months) and I'm trying to figure out a
simple
way
http://en.wikipedia.org/wiki/De_Casteljau%27s_algorithm
has a Python example implementation of qubic Bezier curves available.
Here my port to Tkinter (doesn't need PIL)
from Tkinter import *
master = Tk()
objTkCanvas = Canvas(master, width=110, height=180)
objTkCanvas.pack()
def midpoint((x1,
Just edit the first lines of %SystemDrive%\Python24\Lib\idlelib\PyShell.py
yourself (not tested, but I have customized Idle intitial message using it
and
it worked ok - after new Python installation I overwrite this file with my
own
version to keep this customization.)
Hope this helps.
Claudio
[EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
I tried to put the line
from btools import *
in several places in PyShell.py
but to now avail. It does not work, IDLE does not execute it???
Bob
I have to give up here :-( .
The best solution I am able to come up with is:
Probably you have inbetween already found the 'def runsource(' line in the
PyShell.py , but maybe you still wait for a reply, so here it is:
yes, you put the two lines at the beginning of in PyShell.py existing
runsource() method of the class ModifiedInterpreter(InteractiveInterpreter)
If in my
Is
http://heanet.dl.sourceforge.net/sourceforge/scipy/scipy-0.4.3.win32-py2.4.exe
not what are you looking for?
Claudio
jelle [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Hi Peter,
I'm aware of the Enthought distribution, which really is my preferred
2.3 Python
Use AutoIt3 for it and be happy:
http://www.autoitscript.com/autoit3/.
And if you need Python to be involved in this process, just write out the
AutoIt script from Python and then run the AutoIt script from Python, what
makes you twice that happy.
If you want, you can reinvent the wheel using
A small hint about the Web-site:
At least to me, the links to the documentation as e.g.
http://pysizer.8325.org/doc/auto/home/nick/sizer-trunk/doc/auto/scanner.html
are broken (no big thing, because the distro has it anyway).
Claudio
Nick Smallbone [EMAIL PROTECTED] schrieb im Newsbeitrag
So I hope this humble message might inspire some folks to have a serious
look at pyfltk. For many situations, PyFLTK can take you to break-even
point quickly, and deliver net savings in time and effort after that.
Animated by your posting I have downloaded:
fltk-1.1.6-source.zip (3.073.432
If I understand you right you need a concept in which you can put the files
of your project where you want, i.e. restructure the nesting of directories
storing your scripts without the problem of breaking the import statements.
This will give you not a solution to any problem you maybe have with
to see any in the future.
It is simply not possible to have one, even if much progress was done lately
in many areas in order to try to approach it as close as possible.
Claudio
Steve Holden [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
Steve Holden [EMAIL
Maybe looking at the todays thread [dynamical importing] can be helpful
also here.
Claudio
P.S. Below a copy of one of the responses:
:
Joerg Schuster wrote:
I need to import modules from user defined paths. I.e. I want to do
something like:
module_dir = sys.argv[1]
my_path =
Steve Holden [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
Steve Holden [EMAIL PROTECTED] schrieb im Newsbeitrag
[...]
[Claudio]
I don't fully understand your attitude here. The Web Browser interface
has
all I can imagine is required for a GUI
Steve Holden [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
Kenneth McDonald [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]
Thanks for reminding me of Gtk. OK, add that to the list.
The Web Browser interface is good for simple things
Kenneth McDonald [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]
Thanks for reminding me of Gtk. OK, add that to the list.
The Web Browser interface is good for simple things, and will get better
with CSS2's adoption, but they still don't have a good way for important
things like
What I can point you to is not Python, but embedding it in Python
is a question of executing one line of Python code triggering its
execution.
I think you will be fascinated by its features and ease of use and
how well it is suited to fit into your needs:
[EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]
I have two one-dimensional Numeric arrays, and I need to know the
indices in the second array of elements from the first.
so if i had:
a=array([2,4,6])
b=array([2,3,4,5,6])
i want a function match that does this:
match(a,b)
Python code for direct access to raw sectors of harddrives (MFT, boot
sector, etc.) in Linux/Windows:
http://people.freenet.de/AiTI-IT/Python/HowTo_AccessRawSectorsOfPhysicalDrives_onLinux.py
and
http://people.freenet.de/AiTI-IT/Python/HowTo_AccessRawSectorsOfPhysicalDrives_onWindows.py
Claudio
://starship.python.net/crew/samschul/
Sam Schulenburg
Claudio Grondi wrote:
Thank you Jeff very much for your quick reply.
It saved me really much time of digging in the wrong direction.
[EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]...
I took the advice from this web page:
http
Googling for keywords like
direct access sector harddrive Python module Windows
seems to give no useful results.
Any hints(best if cross-platform)?
Claudio
--
http://mail.python.org/mailman/listinfo/python-list
Thank you Jeff very much for your quick reply.
It saved me really much time of digging in the wrong direction.
[EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]...
I took the advice from this web page:
http://support.microsoft.com/kb/q100027/
Ok, I had found this page myself during Googling,
I am not able to download any file from the site
below, getting always only a page with link to the
download which is the link to the HTML page with
same link. Any ideas why?
Claudio
A.B., Khalid [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
This is to inform those interested
what about:
lst = [digit for digit in '06897']
lst
['0', '6', '8', '9', '7']
Claudio
[EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
I'm trying to extract single digit number from a string.
t[1] = '06897'
I want to get the 7, 9,8 6 seperated out to use but can't find a
I mean I have seen this error already in the past installing
another package requiring compilation of C sources.
As I can remember, the actual problem was, that C++ .NET 2003
compiler environment was not installed - so this message seems
to point in the wrong direction (is created somewhere
It is maybe not a pure Python question, but I think
it is the right newsgroup to ask for help, anyway.
After connecting a drive to the system (via USB
or IDE) I would like to be able to see within seconds
if there were changes in the file system of that drive
since last check (250 GB drive with
Here some of my thougts on this subject:
I think that this question adresses only a tiny
aspect of a much more general problem the
entire human race has in any area.
Reinventing the wheel begins when the grandpa
starts to teach his grandchild remembering well
that he has done it already many
Alessandro Bottoni [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
After connecting a drive to the system (via USB
or IDE) I would like to be able to see within seconds
if there were changes in the file system of that drive
since last check (250 GB
What is the current status of Python OpenCV interface i.e. the opencv
module?
\OpenCV\samples\python\contours.py gives following ERROR:
OpenCV Python version of contours
Traceback (most recent call last):
File \OpenCV\samples\python\contours.py, line 6, in ?
from opencv import cv
I don't know much about wxPython, but
the left/right mouse button events _ARE_ trapped, but
not when clicking on the image, probably because they
are registered to the panel not to the image.
Just resize the window and click next to the image.
Hope this helps for now, before you get a
= bmp.GetHeight()
DisplayPicturePanel=DisplayPicture(None, -1, Test MB, bmp, bmpW, bmpH)
#MainFrame = DisplayPicture(None,-1,Test Mouse Clicks)
app.MainLoop()
Claudio Grondi [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
I don't know much about wxPython, but
the left
Kuljo [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Dear friends
I'm so sorry to bore you with this trivial problem. Allthou: I have string
having 0x0a as new line, but I should have \n instead.
How should I solve it?
I've tried
text_new=tex_old.replace(str(0x0a), '\n')
Trying to understand the outcome of the recent
thread (called later reference thread):
Speed quirk: redundant line gives six-fold speedup
I have put following piece of Python code together:
class PythonObject_class:
pass
PythonObject_class_instanceA = PythonObject_class()
__cmp__() as parameter: True
min(B,A) is A:
in case of classes with defined __cmp__() as parameter: False
Raymond Hettinger [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
Is there any deeper reason I don't understand
explaining why does min(A,B) behave
I've learnt my lesson :) Thank you for your help, and apologies
for wasting other people's time with this as well as my own!
I've learnt my lesson reading through this thread, too.
I am glad to be given the chance of wasting my time
with it and very happy and thankful, that you posted
your
/tar: j\:/o/archives/images/dump.tar: Cannot open: Input/Output
error
telling
tar.exe --extract --directory=tmp -f /cygdrive/j/o/archives/images/dump.tar
doesn't work either.
Claudio
Martin v. Löwis [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
What TAR
://www.pythonforum.org/ftopic19424_Wikipedia___conversion_of_in_SQL_database_stored_data_to_HTM.html
)
Claudio
Diez B. Roggisch [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi wrote:
remember. I work in a Windows command shell
(DOS-box) and mount says:
j: on /cygdrive
I need to unpack on a Windows 2000 machine
some Wikipedia media .tar archives which are
compressed with TAR 1.14 (support for long file
names and maybe some other features) .
It seems, that Pythons tarfile module is able to list far
more files inside the archives than WinRAR or 7zip or
'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.
Usually means you have a readline package installed.
Right. Readline uninstalled, Ctrl-Z works again.
By the way:
After trying to take over readline support from Gary Bishop,
I have inbetween given up trying to fix readline behaviour on
Lucas Raab [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Peter Hansen wrote:
Kay Schluehr wrote:
The documentation of the Python console behaviour is not correct
anymore for Python 2.4.1. At least for the Win2K system I'm working on
'Ctrl-Z' does not shut down the
And you can do block comments with --[[ and ---]].
I am very happy not to have such tricks in Python.
Any other (useful) suggestions?
Claudio
Joseph Garvin [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
As someone who learned C first, when I came to Python everytime I read
the
trick with the block comment.
By the way, I personally find
--[[
good style comment block
]]--
or
[[--
good style comment block
--]]
much more intuitive than
--[[
bad style comment block
--]]
Claudio
Joseph Garvin [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio
is there in python a kind of dictionary that supports key - key pairs?
I need a dictionary in which I can access a certain element using two
different keys, both unique.
A Python dictionary needs a unique key, so a pair
of keys is still one unique key, but probably it is some
kind of
I always thought about our intellect being something superior
to this world made of fragile bones and stinking flesh.
However I realized that there's probably no real magic in
it... knowing there are pills to make you happy is sort of
shocking from a philosophical point of view :-)
Yes it
there is a 1% of people extremely interested in turning
on or off a pixel
I taught adults aged from 16 to 86 for some years
a course Introduction to data processing, where I had
tried to teach the basics beginning with switching light
on and off. Having around twenty participants I
experienced
My communication ability is dropping every day at
Probably no reason to worry. Reading your post I haven't
even noticed the unnecessary not, because the message
was clear as intended even with it, anyway.
Should I start to be seriously in doubt about own
physiological problems only because
Also I think the fact that you think your were diteriating just goes to
show [...]
should be probably:
In my opinion the fact that you consider you were deteriorating just
shows [...]
but it can be understood as it is anyway, right?
Written maybe exactly as it is, with the only purpose:
Yes, both the sun and the moon have gravitational fields which affect
tides. But the moon's gravitational field is much stronger than the
sun's,
so as a first-order approximation, we can ignore the sun.
Here we are experiencing further small lie which found its way
into a text written by an
High and low tides aren't caused by the moon.
They're not???
I suppose, that the trick here is to state,
that not the moon, but the earth rotation relative
to the moon causes it, so putting the moon at
cause is considered wrong, because its existance
alone were not the cause for high and low
They're things that can be IMO genuinely accept
as obvious. Even counting is not the lowest
level in mathematic... there is the mathematic
philosohy direction.
I am personally highly interested in become
aware of the very bottom, the fundaments
all our knownledge is build on.
Trying to answer
Re: What is different with Python ?
from my point of view, to be honest, nothing
except mixing a well spiced soup of what
was available within other programming
languages.
I think, that what currently makes a real
difference is not the language as such,
but the people using it, posting here and
4) Yes I agree a mix (... well spiced soup ...)
seems to be the answer but
my brain somehow wants to formalize it.
Here one further suggestion trying to point out, that
it probably can't generally be formalized, because
the experience one developes after going through
the story of assembly,
don't click the following link if you are not
at least 18 years old (or don't like sexual
related content):
http://www.python.com/
Claudio
--
http://mail.python.org/mailman/listinfo/python-list
i search a function f(a,b) that gives 1 if a is contained in b with
any sub strings interposed.
If I understand it right, it should be something
like this:
def blnFindCharSequenceAevenIfSpreadOverEntireStringB(strA, strB):
intNoOfCharsFound = 0
intPtrToBeginOfSubsectionOfB = 0
intLenA =
[EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
thanx everyone, is what i need.
As Claudio argues, it's a standard problem of dna sequences
comparation.
the next step of my job is to make limits of lenght of interposed
sequences (if someone can help me in this way i'll
Conclusion:
---
I agree with Bill Mill saying
I'd suggest that he [Xah Lee] actually make
an effort at improving the docs before
submitting them.
so I am still waiting for the final version
before deciding which docu is
better, believing, that if Xah Lee puts
more work and serious
From: Thomas Deselaers [EMAIL PROTECTED]
Subject: QA : FIRE (Flexible Image Retrieval Engine) sources available
FIRE is an extensible image retrieval engine that was developed to
investigate the impact of different features for content-based image
retrieval. The system was used in the 2004
There are sure thousand ways
of doing it with windoze.
Here one of them (NOT tested) in form
of code snippets you can rearrange
for your purpose:
import win32com.client
axFSO = win32com.client.Dispatch(Scripting.FileSystemObject) # SCRRUN.DLL
axLstDrives = axFSO.Drives
Maybe the function below can help?
I suppose WMI returns same values as FSO (File System Object):
def strDriveHexSerialNumberFromFSOintRetVal(intDriveSerialNumberByFSO):
Supplied with an integer representing a drive serial number returns the
number in same format as \dir command does (i.e.
The readline module (used e.g. in IPython)
http://sourceforge.net/project/showfiles.php?group_id=82407
provides the Console.py
script and in my own version of it, the (extended)
Console() class supports any ANSI escape
sequences of the form ESC[#m and ESC[#,#m ,
making it possible to set any by
?
Claudio
lazy at the moment, because instead of trying to fix it just
switched back to Idle ...
Ville Vainio [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio == Claudio Grondi [EMAIL PROTECTED] writes:
Claudio Is it already known, that after switching the keyboard
German Windows 2000, SP 4
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
IPython 0.6.10 -- An enhanced Interactive Python.
Is it already known, that after switching
the keyboard input scheme on German
Windows 2000 to english USA International
IPython generates \x00 instead
I have got a solution to my problem from Thomas Heller by email.
The problem was solved by using .from_address() instead of
causing trouble cast() - here the solution as a generalized
example of code for reading access to shared memory area
with given 'appropriateName':
from ctypes import *
MBM 5 before using this script ***'
print '*** MBM 5 home: http://mbm.livewiredev.com ***'
print '*** Port of the MBM API to Python by Claudio Grondi ***'
print '*** http://www.python.org/moin/ClaudioGrondi ***'
print
Background information:
-
in order to monitor mainboard sensory data
as fan speeds, temperatures, applications
like SpeedFan http://www.almico.com/speedfan.php
or MBM http://mbm.livewiredev.com/
can be used.
Both of the mentioned apps expose data got
from the
, Delphi code examples).
but ...
I failed to get the data into
a Python script :-( .
For details see my other
Problem with access to shared memory(W2K) /
ORIGINALLY (win32) speedfan api control
posting.
Claudio
Almico [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi
For the mistake you made see below, hope that helps.
It doesn't.
pBuf_buf = cast(pBuf, Buffer)
Here's the problem. pBuf is a pointer to a Buffer structure, not the
buffer structure itself.
Something like
pBuf_buf = Buffer.from_address(pBuf)
may work.
If I currently understand it
Newsbeitrag
news:[EMAIL PROTECTED]
Claudio Grondi [EMAIL PROTECTED] writes:
For the mistake you made see below, hope that helps.
It doesn't.
pBuf_buf = cast(pBuf, Buffer)
Here's the problem. pBuf is a pointer to a Buffer structure, not the
buffer structure itself.
Something like
, but best for both Linux
and Windows) able to get the text of the
word under the current mouse pointer
position like it is done e.g. by Babylon
translator?
Claudio
Simon Brunning [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
On Apr 3, 2005 1:52 AM, Claudio Grondi [EMAIL
your script works ok on my W2K box :-).
It makes me curious if I can get also the
temperatures into Python script for
further processing as easy as the setting
of the checkbox is done? (I have not
much experience with this kind of
programming yet)
May I ask how did you get the
TJvXPCheckbox and
201 - 300 of 330 matches
Mail list logo