Re: python coding contest

2005-12-26 Thread Claudio Grondi
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.

Re: Please enlighten me about PyPy

2005-12-22 Thread Claudio Grondi
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

Re: Wingide is a beautiful application

2005-12-22 Thread Claudio Grondi
[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.

Re: Wanted: binary of OpenCV Python extension module for Windows

2005-12-21 Thread Claudio Grondi
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

Re: Wingide is a beautiful application

2005-12-19 Thread Claudio Grondi
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

Re: Wingide is a beautiful application

2005-12-19 Thread Claudio Grondi
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

Re: How can I load python script into Html ??

2005-12-19 Thread Claudio Grondi
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

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Claudio Grondi
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

Re: Wingide is a beautiful application

2005-12-18 Thread Claudio Grondi
[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

Re: Wingide is a beautiful application

2005-12-18 Thread Claudio Grondi
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

Re: Wingide is a beautiful application

2005-12-17 Thread Claudio Grondi
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

Wanted: binary of OpenCV Python extension module for Windows

2005-12-16 Thread Claudio Grondi
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

Re: I want a Python Puppy !

2005-12-13 Thread Claudio Grondi
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

Re: I want a Python Puppy !

2005-12-13 Thread Claudio Grondi
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 want a Python Puppy !

2005-12-12 Thread Claudio Grondi
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

Re: I want a Python Puppy !

2005-12-12 Thread Claudio Grondi
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

Re: I want a Python Puppy !

2005-12-12 Thread Claudio Grondi
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

Re: PythonMagick on Windows

2005-12-05 Thread Claudio Grondi
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

Re: PythonMagick on Windows

2005-12-05 Thread Claudio Grondi
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

Re: Is there no compression support for large sized strings in Python?

2005-12-02 Thread Claudio Grondi
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

Re: Compiling Guppy-PE extension modules

2005-12-02 Thread Claudio Grondi
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

Is there no compression support for large sized strings in Python?

2005-12-01 Thread Claudio Grondi
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

Re: Is there no compression support for large sized strings in Python?

2005-12-01 Thread Claudio Grondi
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

Re: Is there no compression support for large sized strings in Python?

2005-12-01 Thread Claudio Grondi
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

Re: Is there no compression support for large sized strings in Python?

2005-12-01 Thread Claudio Grondi
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

Re: Compiling Guppy-PE extension modules

2005-12-01 Thread Claudio Grondi
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

Can Python by design handle adress space larger than 2 GByte?

2005-12-01 Thread Claudio Grondi
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

Re: Call OCX from python?

2005-11-29 Thread Claudio Grondi
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

Re: Compiling Guppy-PE extension modules

2005-11-29 Thread Claudio Grondi
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

Re: How to get started in GUI Programming?

2005-11-27 Thread Claudio Grondi
[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

Re: Call OCX from python?

2005-11-26 Thread Claudio Grondi
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

Re: Any royal road to Bezier curves...?

2005-11-21 Thread Claudio Grondi
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

Re: Any royal road to Bezier curves...?

2005-11-21 Thread Claudio Grondi
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,

Re: newbie - How do I import automatically?

2005-11-16 Thread Claudio Grondi
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

Re: newbie - How do I import automatically?

2005-11-16 Thread Claudio Grondi
[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:

Re: newbie - How do I import automatically?

2005-11-16 Thread Claudio Grondi
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

Re: SciPy python 2.4 wintel binaries

2005-11-14 Thread Claudio Grondi
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

Re: Want to perform unattended installation of SW using python

2005-11-13 Thread Claudio Grondi
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

Re: PySizer 0.1

2005-11-13 Thread Claudio Grondi
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

Re: PyFLTK - an underrated gem for GUI projects

2005-11-09 Thread Claudio Grondi
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

Re: How to organize Python files in a (relatively) big project

2005-10-19 Thread Claudio Grondi
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

Re: UI toolkits for Python

2005-10-19 Thread Claudio Grondi
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

Re: How to organize Python files in a (relatively) big project

2005-10-19 Thread Claudio Grondi
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 =

Re: UI toolkits for Python

2005-10-18 Thread Claudio Grondi
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

Re: UI toolkits for Python

2005-10-16 Thread Claudio Grondi
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

Re: UI toolkits for Python

2005-10-14 Thread Claudio Grondi
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

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread Claudio Grondi
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:

Re: matching elements of numeric arrays

2005-10-13 Thread Claudio Grondi
[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 source code for direct access to raw sectors of harddrives (MFT, boot sector, etc.) in Linux/Windows

2005-10-12 Thread Claudio Grondi
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

Re: Wanted: Python module allowing direct access to raw sectors ofharddrives (MFT, boot sector, etc.) in MS Windows

2005-10-11 Thread Claudio Grondi
://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

Wanted: Python module allowing direct access to raw sectors of harddrives (MFT, boot sector, etc.) in MS Windows

2005-10-10 Thread Claudio Grondi
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

Re: Wanted: Python module allowing direct access to raw sectors ofharddrives (MFT, boot sector, etc.) in MS Windows

2005-10-10 Thread Claudio Grondi
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,

Re: pyMinGW support for Python 2.4.2 (final) is available

2005-09-28 Thread Claudio Grondi
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

Re: Getting a number out of a string

2005-09-27 Thread Claudio Grondi
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

Re: The .NET Framework SDK needs to be installed before building

2005-09-22 Thread Claudio Grondi
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

Is it possible to detect if files on a drive were changed without scanning the drive?

2005-09-12 Thread Claudio Grondi
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

Re: Why do Pythoneers reinvent the wheel?

2005-09-12 Thread Claudio Grondi
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

Re: Is it possible to detect if files on a drive were changed without scanning the drive?

2005-09-12 Thread Claudio Grondi
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

Python OpenCV wrapper

2005-09-06 Thread Claudio Grondi
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

Re: left/right mouse button events not trapped

2005-09-06 Thread Claudio Grondi
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

Re: left/right mouse button events not trapped

2005-09-06 Thread Claudio Grondi
= 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

Re: new line

2005-08-29 Thread Claudio Grondi
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')

Why does min(A,B) behave different for lists and for classes?

2005-08-26 Thread Claudio Grondi
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()

Re: Why does min(A, B) not raise an error if A, B actually can't be compared?

2005-08-26 Thread Claudio Grondi
__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

Re: Speed quirk: redundant line gives six-fold speedup

2005-08-25 Thread Claudio Grondi
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

Re: Version of TAR in tarfile module? TAR 1.14 or 1.15 port to Windows?

2005-08-20 Thread Claudio Grondi
/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

unpacking TAR 1.14/ 1.15 archives on Windows (first step towards own static HTML version of Wikipedia)

2005-08-20 Thread Claudio Grondi
://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

Version of TAR in tarfile module? TAR 1.14 or 1.15 port to Windows?

2005-08-19 Thread Claudio Grondi
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

Re: Documentation bug: Python console behaviour changed

2005-07-20 Thread Claudio Grondi
'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

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Claudio Grondi
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

Re: Favorite non-python language trick?

2005-06-24 Thread Claudio Grondi
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

Re: Favorite non-python language trick?

2005-06-24 Thread Claudio Grondi
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

Re: key - key pairs

2005-06-23 Thread Claudio Grondi
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

Re: What is different with Python ?

2005-06-17 Thread Claudio Grondi
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

Re: What is different with Python ?

2005-06-17 Thread Claudio Grondi
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

Re: What is different with Python ?

2005-06-16 Thread Claudio Grondi
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

Re: What is different with Python ?

2005-06-16 Thread Claudio Grondi
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:

Re: What is different with Python ?

2005-06-15 Thread Claudio Grondi
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

Re: What is different with Python ?

2005-06-14 Thread Claudio Grondi
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

Re: What is different with Python ?

2005-06-13 Thread Claudio Grondi
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 ?

2005-06-11 Thread Claudio Grondi
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

Re: What is different with Python ?

2005-06-11 Thread Claudio Grondi
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,

what can happen if Python wents commercial ;-) ...

2005-06-05 Thread Claudio Grondi
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

Re: searching substrings with interpositions

2005-05-24 Thread Claudio Grondi
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 =

Re: searching substrings with interpositions

2005-05-24 Thread Claudio Grondi
[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

Re: Python documentation moronicities (continued)

2005-04-26 Thread Claudio Grondi
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 comp.ai.vision - beside C also Python code included

2005-04-26 Thread Claudio Grondi
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

Re: Name/ID of removable Media: how?

2005-04-19 Thread Claudio Grondi
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

Re: Name/ID of removable Media: how?

2005-04-19 Thread Claudio Grondi
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.

Re: changing colors in python

2005-04-16 Thread Claudio Grondi
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

Re: IPython - problem with using US international keyboard input scheme on W2K

2005-04-12 Thread Claudio Grondi
? 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

IPython - problem with using US international keyboard input scheme on W2K

2005-04-11 Thread Claudio Grondi
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

Re: Problem with access to shared memory(W2K) SOLVED

2005-04-08 Thread Claudio Grondi
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 *

ANN: Python script (for Windows) accessing motherboard sensory data

2005-04-08 Thread Claudio Grondi
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

Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
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

Re: (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
, 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

Re: Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread 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

Re: Problem with access to shared memory(W2K) / ORIGINALLY (win32) speedfan api control

2005-04-06 Thread Claudio Grondi
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

Re: (win32) speedfan api control

2005-04-04 Thread Claudio Grondi
, 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

Re: (win32) speedfan api control

2005-04-02 Thread Claudio Grondi
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

<    1   2   3   4   >