PyDev 0.9.8.5 released

2005-11-17 Thread Fabio Zadrozny
Hi All, PyDev - Python IDE (Python Development Enviroment for Eclipse) version 0.9.8.5 has been released. Check the homepage (http://pydev.sourceforge.net/) for more details. Details for Release: 0.9.8.5 Major highlights: --- * Removed the dependency on packages

Re: best way to discover this process's current memory usage, cross-platform?

2005-11-17 Thread Serge Orlov
Jack Diederich wrote: Electric Fence[1] uses the LD_PRELOAD method. I've successfully used it to track down leaks in a python C extension. If you look at the setup.py in probstat[2] you'll see #libraries = [efence] # uncomment to use ElectricFence which is a holdover from developing.

Re: Addressing the last element of a list

2005-11-17 Thread Antoon Pardon
Op 2005-11-16, Mike Meyer schreef [EMAIL PROTECTED]: Antoon Pardon [EMAIL PROTECTED] writes: Op 2005-11-15, Mike Meyer schreef [EMAIL PROTECTED]: Antoon Pardon [EMAIL PROTECTED] writes: Like having an assignment operator (let use @= for it) next to a (re)bind operator. We could then have

Re: running functions

2005-11-17 Thread Cameron Laird
In article [EMAIL PROTECTED], Gorlon the Impossible [EMAIL PROTECTED] wrote: . . . the fly' so to speak. I checked out the threading module and its working for what I am trying to do at the moment, but I am open to

Re: A way for closing an app monitor

2005-11-17 Thread Daniel Crespo
Ok. Thanks for your answer :-) I have implemented this and works correctly. Daniel -- http://mail.python.org/mailman/listinfo/python-list

how to organize a module that requires a data file

2005-11-17 Thread Steven Bethard
Ok, so I have a module that is basically a Python wrapper around a big lookup table stored in a text file[1]. The module needs to provide a few functions:: get_stem(word, pos, default=None) stem_exists(word, pos) ... Because there should only ever be one lookup table, I feel

Re: os.spawnl error

2005-11-17 Thread Fredrik Lundh
Salvatore wrote: Does someone already had ths problem ? os.spawnl(os.P_NOWAIT,'c:\windows\notepad.exe') Traceback (most recent call last): File stdin, line 1, in ? File C:\Python24\lib\os.py, line 565, in spawnl return spawnv(mode, file, args) OSError: [Errno 22] Invalid argument

Re: searching for files on Windows with Python

2005-11-17 Thread Kent Johnson
Shane wrote: I've been giving Google a good workout with no luck. I would like to be able to search a Windows filesystem for filenames, returning a list off absolute paths to the found files, something like: def findFiles(filename, pathToSearch): ... ... return

Stretching a bitmap

2005-11-17 Thread David Poundall
Is it possible to import a bitmap and stretch it to fit a defined area with wxPython? If so, could someone point me to any relevent web reference on the subject? Thanks in advance David -- http://mail.python.org/mailman/listinfo/python-list

Python and U3 devices

2005-11-17 Thread Philippe C. Martin
Dear all, Has anyone attempted to compile Python for a U3 device ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Stretching a bitmap

2005-11-17 Thread Larry Bates
Python Imaging Library (PIL) can size bitmaps. I use it to create thumbnails or to size bitmaps quite often. There may be a wxPython built-in for this also, but I don't know what it would be. -Larry Bates David Poundall wrote: Is it possible to import a bitmap and stretch it to fit a defined

Re: PyQt layout question: QScrollView and QGridLayout?

2005-11-17 Thread dwelch
Volker Lenhardt wrote: Phil Thompson schrieb: On Thursday 17 November 2005 2:56 pm, Volker Lenhardt wrote: prefer to use QGridLayout, but cannot add it to the scroll view. sc=QScrollView(self) layout=QGridLayout(..., sc.viewport()) sc.addChild(layout) results in a TypeError. Is there

Importing a class without knowing the module

2005-11-17 Thread Franck PEREZ
Hello, I'm developing a small XML marshaller and I'm facing an annoying issue. Here's some sample code: ### My test application class Foo(object): #The class I'd like to serialize pass import myMarshaller foo = Foo() s = myMarshaller.dumps(foo) #works fine, spits

Re: about try and exception

2005-11-17 Thread Carl J. Van Arsdall
I would think that when the exception occurs the interpreter exits the block of code it is currently in and enters the exception block. Thus the line n = 1/2 would never get executed. -Carl Ben Bush wrote: I wrote the following code to test the use of try...exception, and I want n to be

line order

2005-11-17 Thread Ben Bush
I run the following code and the red line and black line show at the same time. is there anyway to show the red line first, then the black line? for example, after I click the 'enter' key? from Tkinter import *tk = Tk()canvas = Canvas(tk, bg=white, bd=0,

Socket Error

2005-11-17 Thread Chad Everett
Does anyone know why you get socket error while trying to run IDLE and the module. Is says something about a Subprocess Startup Error. I know that it always says something about a personal firewall. I have all that shut off. About 50% of the time when I try and test code by running the module

Re: Zope vs Php

2005-11-17 Thread Fernando Lujan
Jorge Godoy wrote: Mike Meyer [EMAIL PROTECTED] writes: That said, I have to confess that lately I've been using Cheetah templates, because the syntax for inserting values is simpler, and the way Cheetah templates work naturally in the Python inheritance hierarchy. In this article you will

Re: searching for files on Windows with Python

2005-11-17 Thread Peter Hansen
Kent Johnson wrote: I always use Jason Orendorff's path module for this kind of stuff. It's way easier to use than os.whatever: import path files = path.path(pathToSearch).walkfiles(filename) A minor enhancement (IMHO) (though I certainly agree with Kent's recommendation here): since

[ python-Feature Requests-1353344 ] python.desktop

2005-11-17 Thread SourceForge.net
Feature Requests item #1353344, was opened at 2005-11-10 19:22 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=355470aid=1353344group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1358527 ] subprocess.py fails on Windows when there is no console

2005-11-17 Thread SourceForge.net
Bugs item #1358527, was opened at 2005-11-16 22:59 Message generated for change (Comment added) made by blais You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1358527group_id=5470 Please note that this message will contain a full copy of the comment thread,

[ python-Bugs-1358527 ] subprocess.py fails on Windows when there is no console

2005-11-17 Thread SourceForge.net
Bugs item #1358527, was opened at 2005-11-16 23:59 Message generated for change (Settings changed) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1358527group_id=5470 Please note that this message will contain a full copy of the comment