ANN: Pyrex 0.9.3.1

2005-09-16 Thread Greg Ewing
Giovanni Bajo has put together a Pyrex release incorporating patches to address the Python 2.4 distutils compatibility problem and the GCC 4 lvalue cast problem. http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Thanks to Giovanni for filling a gap until I can get back to working on Pyrex

curvepulator 0.1 for Blender Python published

2005-09-16 Thread antont
The initial release of 'curvepulator' (working name), a tool for creating animatable 3d curves in Blender Python, is demonstrated at and available via http://orange.blender.org/blog/generating-shapes-with-animatable-curves It is made to be used in this specific film production, but hopefully

ANN: QuiX Sampler v0.1 released

2005-09-16 Thread t . koutsovassilis
QuiX Sampler is a simple Porcupine application that demostrates all the available web widgets implemented, grouped by relevance. It is an excelent introduction to QuiX fundamentals. This release include many widget variations and a couple of simple event handlers. For more, see

Re: Software bugs aren't inevitable

2005-09-16 Thread Terry Reedy
Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] (Aahz) writes: While that's true, one of the reasons Guido has historically rejected this optimization is because there are plenty of recursive algorithms not amenable to tail-call optimization. That

Re: Self reordering list in Python

2005-09-16 Thread Kay Schluehr
Laszlo Zsolt Nagy wrote: Hello, Do you know how to implement a really efficient self reordering list in Python? (List with a maximum length. When an item is processed, it becomes the first element in the list.) I would like to use this for caching of rendered images. I wonder why you don't

Re: IDE, widget library

2005-09-16 Thread Max M
[EMAIL PROTECTED] wrote: I like to use Eclipse with the Pydev plugin which is quite good and is cross-platform. I have used those on Windows for about 3 weeks now, and I must say that the switch has been allmost completely painless. I have only good things to say about it. I can see that my

Re: No newline using printf

2005-09-16 Thread Sybren Stuvel
Johnny Lee enlightened us with: Why the prompt followed after the output? Maybe it's not as expected. Because it did what you ask of it: write 012 to stdout, and nothing else. Hence, no newline at the end, hence the prompt is on the same line. Sybren -- The problem with the world is

Re: read stdout/stderr without blocking

2005-09-16 Thread Adriaan Renting
Great reply, I had just mixed Pexpect and subProcess code until I'd got something that worked, you can actually explain my code better a I can myself. I find it quite cumbersome to read stdout/strerr separately, and to be able to write to stdin in reaction to either of them, but at least on

Re: re and escape character

2005-09-16 Thread Sinan Nalkaya
Thomas Guettler wrote: Am Thu, 15 Sep 2005 14:36:38 +0300 schrieb Sinan Nalkaya: i re-format incoming messages like this, command = re.findall(^\002(.{2})\|.*\003$, response)[0] it works well but when response comes with escape characters , my command variable crashes, i cannot parse if

Re: No newline using printf

2005-09-16 Thread Samuel
Thanks for your help, Guys. This works of course. -Samuel -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing duplicates from a list

2005-09-16 Thread martijn
Thanks for all the information. And now I understand the timeit module ;) GC-Martijn -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE, widget library

2005-09-16 Thread Adriaan Renting
I find developing in Eric3 + QtDesigner to be very quick and easy. It does everything you want and much more, only it uses Qt3. The new Qt4 has an official GPL version for Windows, and there are GPL ports versions of Qt3 as pointed out by other posters. I am realy impressed by the elegance of

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread Laszlo Zsolt Nagy
A. L. wrote: In Python interactive mode, is there some function acting like 'clear' command in bash? Could somebody here give some advice? Under Linux/UNIX system (on x86 at least) you can use the CTRL+L combination to clear the screen. I do not now similar for Windows and MACs. Les --

Lines of Strings

2005-09-16 Thread Reem Mohammed
Hi Suppose we have data file like this one (Consider all lines as strings ) 1 2 3 3 4 4 4 4 5 6 2 2 2 5 5 5 6 3 2 1 1 1 3 3 3 4 6 I would like to remove line if its belong to another one, and will be able to do this if longer line come after a short one. Thanks

Tear off menus

2005-09-16 Thread keithlackey
Ok I got a really great system tray script working Its based off the pysystray script which is based on the SysTrayIcon script which is just based on the win32gui_menu script Point is that all of us are basing are scripts on someone elses work Anyways, my script adds some of the

Re: Looking for a database. Sugestions?

2005-09-16 Thread Gerhard Häring
Ed Hotchkiss wrote: On 15 Sep 2005 21:31:27 -0700, *gsteff* wrote: SQLite rocks, its definitely the way to go. Its binary is around 250K, but it supports more of the SQL standard than MySQL. It CAN be thread safe, but you have to compile it with a threadsafe macro enabled.

Re: help for conversion of NUMARRAY to PIL object

2005-09-16 Thread A. L.
Sorry, I make the mistakes. I have known how to use to/fromstring method to interface between PIL and Numarray. And your code does work. Another question. Just like the code you provide, is it possible to directly load image data from PIL to Numarray array without use of to/fromstring method?

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread A. L.
Thank you very much. I have tested it under Cygwin, and that works. But it fails under Windows Python Shell Mode. -- http://mail.python.org/mailman/listinfo/python-list

Re: Lines of Strings

2005-09-16 Thread bruno modulix
Reem Mohammed wrote: Hi Suppose we have data file like this one (Consider all lines as strings ) 1 2 3 3 4 4 4 4 5 6 2 2 2 5 5 5 6 3 2 1 1 1 3 3 3 4 6 I would like to remove line if its belong to another one, and will be able to do this if longer line come after a short one. That's

Re: read stdout/stderr without blocking

2005-09-16 Thread Jacek Popławski
Donn Cave wrote: I don't recall the beginning of this thread, so I'm not sure if this is the usual wretched exercise of trying to make this work on both UNIX and Windows, It is used in test framework which runs on Linux, Windows (Cygwin) and QNX. I can't forget about Windows. --

wxPython, using sizers.

2005-09-16 Thread Iain King
I'm making a program to view log files. The main display is a multi column listbox. I want to add combobox filters above the listbox headers. The filters contain each unique instance in the list column below it, and if any filter has text selected in it then the listbox will only display rows

MemoryError in httplib

2005-09-16 Thread ZhangYue张岳
The problem from http://www.thescripts.com/forum/thread25490.html can be repeated here with python2.4.1 on WinXP. Test sample: sending about 5MB http data. It appears to be caused by line 545, httplib.py. chunk = self.fp.read(amt) It seems that reading too much from that sock

Rendering HTML

2005-09-16 Thread Harlin Seritt
I am looking for a module that will render html to console but formatted much like one might see with Lynx. Is there such a module already out there for this? Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Software bugs aren't inevitable

2005-09-16 Thread Jerzy Karczmarczuk
Terry Reedy cites: Mike Meyer who fights with: While that's true, one of the reasons Guido has historically rejected this optimization is because there are plenty of recursive algorithms not amenable to tail-call optimization. Since the BDFL is *not* known for doing even mildly silly things when

Re: Software bugs aren't inevitable

2005-09-16 Thread Steven D'Aprano
On Thu, 15 Sep 2005 18:07:28 +0100, phil hunt wrote: On Thu, 15 Sep 2005 21:56:06 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: Are you saying that the recursion done by serious languages is a fake? That it is actually implemented behind the scenes by iteration? It seems to me that if

Is There the Equivalent of FLT_EPS of C In Python?

2005-09-16 Thread A. L.
I am writing the code involved in numerical computation. When I need a float epsilon similar to FLT_EPS in C, eps in matlab, I fail to find the equivalent in python. Could somebody here can give me some advices? -- http://mail.python.org/mailman/listinfo/python-list

Re: Software bugs aren't inevitable

2005-09-16 Thread Michael Sparks
Paddy wrote: A work colleague circulated this interesting article about reducing software bugs by orders of magnitude: The problem that these sorts of approaches don't address is the simple fact that simple creating a formal spec and implementing it, even if you manage to create a way of

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread Steven D'Aprano
On Thu, 15 Sep 2005 21:18:33 -0700, A. L. wrote: In Python interactive mode, is there some function acting like 'clear' command in bash? Could somebody here give some advice? Thanks in advance. Something like this may help: def clearscreen(numlines=100): Clear the console.

Re: Creating Pie Chart from Python

2005-09-16 Thread paron
If you can wait a week or two, you can use svg and it will work for IE or Firefox. -- http://mail.python.org/mailman/listinfo/python-list

RE: [Python-Dev] python optimization

2005-09-16 Thread Neal Becker
One possible way to improve the situation is, that if we really believe python cannot easily support such optimizations because the code is too dynamic, is to allow manual annotation of functions. For example, gcc has allowed such annotations using __attribute__ for quite a while. This would

Re: Self reordering list in Python

2005-09-16 Thread Laszlo Zsolt Nagy
I wonder why you don't use a dictionary? The only time I used a move-front algorithm I stored algorithms and had to evaluate a condition to select the correct algo. That means no constant search key was available for accessing the correct one. In case of an image list I would implement a

Re: MySQLdb UPDATE does nothing

2005-09-16 Thread Magnus Lycka
Steve Horsley wrote: Or, as I found out yesterday, cursor.execute('commit') afterwards. The correct way to do it is to close the cursor object, and then do db.commit(). Don't rely on a cursor object to work across transaction boundries! See e.g. www.thinkware.se/epc2004db/epc04_mly_db.pdf and

dictionary to file

2005-09-16 Thread Enrique Palomo Jiménez
Hi all, I'm writing an application who needs to handle a lot of information of several files. So, i think the better way is design a batch process to catch that information in a dictionary and write it in a file. So, after that when a user wants to retrieve something, only with an execfile

Re: 2.3 - 2.4: long int too large to convert to int

2005-09-16 Thread Raymond L. Buvel
Grant Edwards wrote: I give up, how do I make this not fail under 2.4? fcntl.ioctl(self.dev.fileno(),0xc0047a80,struct.pack(HBB,0x1c,0x00,0x00)) I get an OverflowError: long int too large to convert to int ioctl() is expecting a 32-bit integer value, and 0xc0047a80 has the high-order

Re: Software bugs aren't inevitable

2005-09-16 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: But there is a difference: writing assembly is *hard*, which is why we prefer not to do it. Are you suggesting that functional programming is significantly easier to do than declarative? I think you mean imperative. Yes, there is a community that

Re: dictionary to file

2005-09-16 Thread Max M
Enrique Palomo Jiménez wrote: Hi all, I'm writing an application who needs to handle a lot of information of several files. So, i think the better way is design a batch process to catch that information in a dictionary and write it in a file. So, after that when a user wants to retrieve

Re: re and escape character

2005-09-16 Thread Fredrik Lundh
Sinan Nalkaya wrote: thats exactly what i want, how can i use DOTALL, by doing re.compile ? there's always the manual: http://docs.python.org/lib/node114.html compile(pattern[, flags]) Compile a regular expression pattern into a regular expression object, which can be used

Re: Rendering HTML

2005-09-16 Thread Fredrik Lundh
Harlin Seritt wrote: I am looking for a module that will render html to console but formatted much like one might see with Lynx. Is there such a module already out there for this? use htmllib+formatter: http://effbot.org/librarybook/formatter.htm /F --

Re: multiple replaces

2005-09-16 Thread Fredrik Lundh
Harald Armin Massa wrote: sth. like rpdict={!--tree--:%(tree)s,!--house--:%(house)s,%,%%} for key, value in rpdict.iteritems(): h1=h1.replace(key, value) but ... without the garbage, in one command. I guess there are very, very, very wise solution for this problem, but I do not know

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread A. L.
I have tested it under windows python console, and it works. Thank you very much. -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a database. Sugestions?

2005-09-16 Thread Christoph Haas
On Thu, Sep 15, 2005 at 11:00:46PM +0200, ionel wrote: I'm looking for a thread-safe database. Preferably an embedded, sql database. What are the best choices in terms of speed ? Sqlite may be a good choice. It doesn't have network overhead, operates on simple files on the disk (nothing to

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread bruce
elif os.name in (nt, dos, ce): # emacs/Windows What`s the right statement here? -- http://mail.python.org/mailman/listinfo/python-list

ANN: Pyrex 0.9.3.1

2005-09-16 Thread Greg Ewing
Giovanni Bajo has put together a Pyrex release incorporating patches to address the Python 2.4 distutils compatibility problem and the GCC 4 lvalue cast problem. http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Thanks to Giovanni for filling a gap until I can get back to working on Pyrex

Re: Accessing shared library file...

2005-09-16 Thread Ernesto
Where is the ctypes mailing list? -- http://mail.python.org/mailman/listinfo/python-list

Multi-Screen display

2005-09-16 Thread Bartosz Ptaszynski
Hi, Currently I'm working on a project in which I have to display a window on each of the monitors connected to the PC. I've been looking around for a way to detect how many monitors are connected to the machine (windows box) and how to force a window to launch at specific monitor, without

Py.java out of memory exception.

2005-09-16 Thread deeptirev
Working on a CLI application that uses python package. The memory consumed is around 200 Mb. Heap size allocated is 512 Mb. But still I am getting outofmeomory exception due to which the JVM is killed. Working on Windows 2000. Any idea what could cause this?? There are no more system exits in our

Re: Creating Pie Chart from Python

2005-09-16 Thread John Hunter
Thierry == Thierry Lam [EMAIL PROTECTED] writes: Thierry Let's say I have the following data: 500 objects: -100 Thierry are red -300 are blue -the rest are green Thierry Is there some python package which can represen the above Thierry information in a pie chart? It looks like

Python:C++ interfacing. Tool selection recommendations

2005-09-16 Thread adsheehan
Hi, I am embedding Python with a C++ app and need to provide the Python world with access to objects data with the C++ world. I am aware or SWIG, BOOST, SIP. Are there more? I welcome comments of the pros/cons of each and recommendations on when it appropriate to select one over the others.

Re: Software bugs aren't inevitable

2005-09-16 Thread Michael Sparks
Steven D'Aprano wrote: On Thu, 15 Sep 2005 18:07:28 +0100, phil hunt wrote: On Thu, 15 Sep 2005 21:56:06 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: Are you saying that the recursion done by serious languages is a fake? That it is actually implemented behind the scenes by iteration? It

Re: My First Python Script

2005-09-16 Thread Gary Wilson Jr
Ed Hotchkiss wrote: def ZeroThrough255(): x = 0 while x = 255: if len(x) == 1: mySet = '00' + str(x) elif len(x) == 2: mySet = '0' + str(x) else: mySet = x

Re: CGI Problem on MS IIS 5.0 - Trying to access files on other machines

2005-09-16 Thread paulp
Based on your comment, I finally realized that IIS is running under the IUSR_ account. So I changed the priveleges on this account on my test IIS server as related elsewhere in this note. So now I'm getting a different error. 1326, LogonUser, Logon failure: unknown user name or bad password

Re: Is There the Equivalent of FLT_EPS of C In Python?

2005-09-16 Thread A. L.
Thank you very much. I have searched in python's documentation, and I am sure that python doesn't provide an epsilon. -- http://mail.python.org/mailman/listinfo/python-list

Re: strptime() doesn't recognize BST as a valid timezone

2005-09-16 Thread Dan
I get: ValueError: time data did not match format: ... I'm running Linux in London, and I don't get that error. Python 2.3.5 (#2, May 29 2005, 00:34:43) [GCC 3.3.6 (Debian 1:3.3.6-5)] on linux2 Type help, copyright, credits or license for more information. import time date_str = Wed Sep 14,

Walking through directories and files

2005-09-16 Thread Thierry Lam
I'm trying to use the os.walk() method to search all the directory from a root directory and display their contents. For example, I want my output to be like the following: directoryA stuffs.c stuffs2.cpp directoryB asd.c asdf.cpp Any ideas how to do it? Currently, I can only print all the

Re: Creating Pie Chart from Python

2005-09-16 Thread Markus Weihs
Hi! I tried your script and got the following error: Traceback (most recent call last): File pie_chart.py, line 302, in OnPaint self.OnDraw() File pie_chart.py, line 336, in OnDraw segment.Draw(self.angle, self.rot, self.explode) File pie_chart.py, line 46, in Draw

Re: multiple replaces

2005-09-16 Thread D H
You can use python's re.sub function. But also look into full fledged template engines like Cheetah. import re txt= html body pwhatever/p !--tree-- pthe machine with bing/p !--house-- p10% of boo is foo/p /html h1=txt.replace(%,%%) h3 = re.sub(!--(\w+)--, %(\\1)s, h1) house=something awfull

Re: Creating Pie Chart from Python

2005-09-16 Thread Thierry Lam
Those python pie chart add ons are not very useful. For my specific pie chart, I have some 6-8 items to show up and some of them occupy only 2-5% of the pie. This cause the names and percentages to overlap each other. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is There the Equivalent of FLT_EPS of C In Python?

2005-09-16 Thread A. L.
According to pp 134 of C: A Reference Manual, it's better to use eps*2 in your code. -- http://mail.python.org/mailman/listinfo/python-list

Re: Software bugs aren't inevitable

2005-09-16 Thread Giles Brown
Michael Sparks wrote: The problem that these sorts of approaches don't address is the simple fact that simple creating a formal spec and implementing it, even if you manage to create a way of automating the test suite from the spec *doesn't guarantee that it will do the right thing*. snip As

Re: Rendering HTML

2005-09-16 Thread D H
Harlin Seritt wrote: I am looking for a module that will render html to console but formatted much like one might see with Lynx. Is there such a module already out there for this? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52297 --

Re: Software bugs aren't inevitable

2005-09-16 Thread Terry Hancock
On Thursday 15 September 2005 04:38 am, Jerzy Karczmarczuk wrote: is for me a biased view of the problem. Justified only by the fact that at the beginning of functional programming (sixties) nobody cared about the efficiency. Now, such languages as Clean, or good implementations of Scheme are

Re: Walking through directories and files

2005-09-16 Thread Fredrik Lundh
Thierry Lam wrote: I'm trying to use the os.walk() method to search all the directory from a root directory and display their contents. For example, I want my output to be like the following: directoryA stuffs.c stuffs2.cpp directoryB asd.c asdf.cpp Any ideas how to do it? import

Re: Python:C++ interfacing. Tool selection recommendations

2005-09-16 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: Hi, I am embedding Python with a C++ app and need to provide the Python world with access to objects data with the C++ world. I am aware or SWIG, BOOST, SIP. Are there more? I welcome comments of the pros/cons of each and recommendations on when it appropriate

Why doesn't IDLE editor windows have horizontal scrollbars?

2005-09-16 Thread chuck
The browser windows do. Why not the editor windows? I hate to complain but is there any way to get IDLE to run in more of an MDI mode? Having the floating windows everywhere is rather confusing to me. -- http://mail.python.org/mailman/listinfo/python-list

Wrapper module for Linux shared lib

2005-09-16 Thread Ernesto
What's the best resource for finding out how to write a wrapper module for a shared library file *.so* in Linux? -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Pie Chart from Python

2005-09-16 Thread Will McGugan
Markus Weihs wrote: Hi! I tried your script and got the following error: Traceback (most recent call last): File pie_chart.py, line 302, in OnPaint self.OnDraw() File pie_chart.py, line 336, in OnDraw segment.Draw(self.angle, self.rot, self.explode) File

Re: 2.3 - 2.4: long int too large to convert to int

2005-09-16 Thread Grant Edwards
On 2005-09-16, Raymond L. Buvel [EMAIL PROTECTED] wrote: Grant Edwards wrote: I give up, how do I make this not fail under 2.4? fcntl.ioctl(self.dev.fileno(),0xc0047a80,struct.pack(HBB,0x1c,0x00,0x00)) I get an OverflowError: long int too large to convert to int ioctl() is expecting a

Re: encryption with python?

2005-09-16 Thread Larry Bates
I've successfully used this toolkit to implement AES encryption in a recent project. http://www.amk.ca/python/code/crypto -Larry Bates Robert Kern wrote: Ed Hotchkiss wrote: What's the best module for encryption with python, anyone out there using python and encryption together? It

Re: Software bugs aren't inevitable

2005-09-16 Thread Sybren Stuvel
Terry Hancock enlightened us with: This is ludicrous sophistry. The technical reason for having ANY high level languages is psychological. Computers are happier with binary code, over ANY language that must be interpreted. Computers aren't happy. They couldn't care less about the programming

Re: Lines of Strings

2005-09-16 Thread Larry Bates
If these were the lines what would the output look like? From your example it doesn't appear that any of the lines would be eliminated. Larry Bates Reem Mohammed wrote: Hi Suppose we have data file like this one (Consider all lines as strings ) 1 2 3 3 4 4 4 4 5 6 2 2 2 5 5 5 6 3 2 1 1

Re: dictionary to file

2005-09-16 Thread Larry Bates
You don't define what you mean by a lot. Python can read a tremendous amount of information from files in a very short amount of time so I wouldn't try to prematurely optimize this. Just read the information and see how long it takes. If it is really a long time, then look for alternatives. It

Re: Wrapper module for Linux shared lib

2005-09-16 Thread Matt Hammond
On Fri, 16 Sep 2005 15:49:15 +0100, Ernesto [EMAIL PROTECTED] wrote: What's the best resource for finding out how to write a wrapper module for a shared library file *.so* in Linux? I thoroughly recommend pyrex ... it was a joy to use: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ --

Re: Software bugs aren't inevitable

2005-09-16 Thread Terry Hancock
On Friday 16 September 2005 08:35 am, Michael Sparks wrote: Steven D'Aprano wrote: But there is a difference: writing assembly is *hard*, which is why we prefer not to do it. Are you suggesting that functional programming is significantly easier to do than declarative? But there is a

Re: Software bugs aren't inevitable

2005-09-16 Thread Terry Hancock
On Friday 16 September 2005 09:41 am, Terry Hancock wrote: (Terry Hancock formulated this plainly, he prefers dumb ways because he wants to solve problems, and he doesn't like to perform gymnastics with his brain. We have to accept those attitudes. But I believe that this is the effect of

Re: Self reordering list in Python

2005-09-16 Thread Terry Hancock
On Friday 16 September 2005 06:03 am, Laszlo Zsolt Nagy wrote: You are right in that holding a reference will have a better time complexity. But holding a reference makes it impossible to free the object. :-) As I said, my list has a maximum length. I just can't store any number of images

Re: Software bugs aren't inevitable

2005-09-16 Thread Ron Adam
Paul Rubin wrote: Steven D'Aprano [EMAIL PROTECTED] writes: But there is a difference: writing assembly is *hard*, which is why we prefer not to do it. Are you suggesting that functional programming is significantly easier to do than declarative? I think you mean imperative. Yes, there is

Re: Python:C++ interfacing. Tool selection recommendations

2005-09-16 Thread Neal Becker
[EMAIL PROTECTED] wrote: Hi, I am embedding Python with a C++ app and need to provide the Python world with access to objects data with the C++ world. I am aware or SWIG, BOOST, SIP. Are there more? I welcome comments of the pros/cons of each and recommendations on when it

Re: My First Python Script

2005-09-16 Thread Ed Hotchkiss
Sweet, time to play with python for a whole day today :P On 9/16/05, Gary Wilson Jr [EMAIL PROTECTED] wrote: Ed Hotchkiss wrote: def ZeroThrough255(): x = 0 while x = 255: if len(x) == 1: mySet = '00' + str(x) elif len(x) == 2: mySet = '0' + str(x) else: mySet = x print mySet x +=1

xml2schema

2005-09-16 Thread Mikael Larsson
Hi Is there any python tool to generate a schema from xml ?? //Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Software bugs aren't inevitable

2005-09-16 Thread Ron Adam
Terry Reedy wrote: You cannot tell whether a function object will act recursive or not just by looking at its code body. Trivial examples: I was thinking last night that maybe it would be useful to be able to define a function explicitly as a recursive object where it's frame is reused on

Re: Python:C++ interfacing. Tool selection recommendations

2005-09-16 Thread float_dublin
Neal Becker wrote: [EMAIL PROTECTED] wrote: Hi, I am embedding Python with a C++ app and need to provide the Python world with access to objects data with the C++ world. I am aware or SWIG, BOOST, SIP. Are there more? I welcome comments of the pros/cons of each and recommendations on when

Re: Software bugs aren't inevitable

2005-09-16 Thread phil hunt
On Fri, 16 Sep 2005 20:36:02 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: On Thu, 15 Sep 2005 18:07:28 +0100, phil hunt wrote: On Thu, 15 Sep 2005 21:56:06 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: Are you saying that the recursion done by serious languages is a fake? That it is

Re: IDE, widget library

2005-09-16 Thread float_dublin
Thomas Jollans wrote: I guess questions like this come all the time here ... well: I a looking for a python IDE for gnu/linux that : - has decent sytax highlighting (based on scintilla would be neat) - has basic name completition, at least for system-wide modules - has an integrated

Re: Self reordering list in Python

2005-09-16 Thread Fredrik Lundh
Terry Hancock wrote: This is actually the use-case for an LRU cache=least recently used cache, which is probably already implemented in Python somewhere (or even as a fast extension). I'd do a google search for it. reposted, in case there are more people who cannot be bothered to read other

Re: No newline using printf

2005-09-16 Thread Gary Herron
Samuel wrote: Hello, I have been searching for an answer for almost two hours now and have not found an answer. I want this code: for i in range(3): print i # or whatever To produce this output: 012 How can I print a word without appending a newline character? Appending a , to the print

Re: Wrapper module for Linux shared lib

2005-09-16 Thread Michele Petrazzo
Ernesto wrote: What's the best resource for finding out how to write a wrapper module for a shared library file *.so* in Linux? If you have only the .so file, not the source, you can use ctypes. I work always with it without problems. Michele --

Odd behavior with os.fork and time.sleep

2005-09-16 Thread Yin
I am writing a script that monitors a child process. If the child process dies on its own, then the parent continues on. If the child process is still alive after a timeout period, the parent will kill the child process. Enclosed is a snippet of the code I have written. For some reason, unless

Re: Looking for a database. Sugestions?

2005-09-16 Thread Ed Hotchkiss
Awesome, I'm checking both out right now, trying to get it setup - thanks. On 9/16/05, Christoph Haas [EMAIL PROTECTED] wrote: On Thu, Sep 15, 2005 at 11:00:46PM +0200, ionel wrote: I'm looking for a thread-safe database. Preferably an embedded, sql database. What are the best choices in terms of

Re: List of integers L.I.S.

2005-09-16 Thread n00m
Anton, it simply does not work! Try supernumbers([2,1,4,5,3]). -- http://mail.python.org/mailman/listinfo/python-list

distutils problem

2005-09-16 Thread Michele Petrazzo
I create a setup script for distribute my application, but I have a problems with the exe package. When I create the package with: python setup.py win bdist_wininst and execute if after, it'll copy the data file specified by data_files directive into the

Problem with Help when using numarray

2005-09-16 Thread Colin J. Williams
Python advertises some basic service: C:\Python24python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. With numarray, help gives unhelpful responses: import numarray.numarraycore as _n c=

Re: Problem with Help when using numarray

2005-09-16 Thread Robert Kern
Colin J. Williams wrote: Python advertises some basic service: C:\Python24python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. With numarray, help gives unhelpful responses: import

Re: Problem with Help when using numarray

2005-09-16 Thread Fredrik Lundh
Colin J. Williams wrote: With numarray, help gives unhelpful responses: import numarray.numarraycore as _n c= _n.array((1, 2)) print 'rank Value:', c.rank print 'c.rank Help:', help(c.rank) c.rank returns a Python integer object. if you pass in an object to help(), help figures out what

Re: Why doesn't IDLE editor windows have horizontal scrollbars?

2005-09-16 Thread bruno modulix
chuck wrote: The browser windows do. Why not the editor windows? I hate to complain but is there any way to get IDLE to run in more of an MDI mode? Having the floating windows everywhere is rather confusing to me. IDLE is open source, so you may want to consider contributing to it !-)

influence platorm during install -end user question

2005-09-16 Thread Peter Hartmann
How do I influence the platform type during install? Could you look at this and tell me what I'm doing wrong? It's still using information from get_platform instead of using my preference. [EMAIL PROTECTED] pyosd-0.2.14]# python setup.py install --install-purelib=lib.linux=i686-2.3

Run VPython on FC3

2005-09-16 Thread York
Hi everybody, I am trying to run VPython on FC3. The installation was fine. But when I import visual, an error occurs: import visual Traceback (most recent call last): File stdin, line 1, in ? File /usr/lib/python2.3/site-packages/visual/__init__.py, line 15, in ? import

Re: MySQLdb UPDATE does nothing

2005-09-16 Thread Steve Horsley
Magnus Lycka wrote: Steve Horsley wrote: Or, as I found out yesterday, cursor.execute('commit') afterwards. The correct way to do it is to close the cursor object, and then do db.commit(). Don't rely on a cursor object to work across transaction boundries! See e.g.

Re: Odd behavior with os.fork and time.sleep

2005-09-16 Thread Donn Cave
In article [EMAIL PROTECTED], Yin [EMAIL PROTECTED] wrote: I am writing a script that monitors a child process. If the child process dies on its own, then the parent continues on. If the child process is still alive after a timeout period, the parent will kill the child process. Enclosed

Re: CGI Problem on MS IIS 5.0 - Trying to access files on other machines

2005-09-16 Thread Pat [MSFT]
Don't change the account IIS is running under - that is a pretty big security issue waiting to happen. Change the authentication model for the web site to Basic, then logon as you. That will cause any execution to be in the security context you are expecting. Pat paulp [EMAIL PROTECTED]

How to retrieve list of installed module (or gentoo bad installation ?)

2005-09-16 Thread mathieu . malaterre
Hello, I am trying to build an executable that link against python libraries. If I only link to python lib I get thoses errors(*). This machine is a gentoo AMD64. I installed python by doing 'emerge python' and my USE flags uses 'zlib'. I am wondering if there is a 'python-config' like

  1   2   >