Re: self-aware list of objects able to sense constituent member alterations?

2009-01-28 Thread Peter Wang
On Jan 27, 3:16 pm, Reckoner wrote: > I'm not sure this is possible, but I would like to have > a list of  objects > > A=[a,b,c,d,...,z] > > where,  in the midst of a lot of processing I might do something like, > > A[0].do_something_which_changes_the_properties() > > which alter the properties of

Documenation for yum and rpmUtils modules

2008-11-13 Thread Peter Wang
Hi All, I'm new to Python. I troubleshoot a yum install error. so i'm studying yum and rmpUtils module and try to understand how yum works. Do you know where can I find the documenation for yum and rpmUtils module? Thanks, Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Can i use this script as a python evaluator?

2008-10-20 Thread Peter Wang
Nathan Seese <[EMAIL PROTECTED]> writes: >> #! /bin/sh >> python -c "import sys;exec(sys.stdin)" > > I know this isn't your question, but I think you could write that more > cleanly with: > > #!/usr/bin/python > import sys > exec(sys.stdin) thanks. What's the difference between this and mine? I

Re: Can i use this script as a python evaluator?

2008-10-20 Thread Peter Wang
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > Peter Wang a �crit : >> >> #! /bin/sh >> python -c "import sys;exec(sys.stdin)" >> >> >> Emacs has a function `shell-command-on-region', which takes region as >> input for the ev

Can i use this script as a python evaluator?

2008-10-20 Thread Peter Wang
#! /bin/sh python -c "import sys;exec(sys.stdin)" Emacs has a function `shell-command-on-region', which takes region as input for the evaluator (script above), and output its result. I have tried and found it works, is there any problems for this, or any other better solution for it? Thanks.

Re: automatically insert text in ms-word properties

2008-10-07 Thread Peter Wang
"gita ziabari" <[EMAIL PROTECTED]> writes: > All, > > I wanna use python to automatically insert text in ms-word properties. > Anyone could help me? Why not use VBA for that work? > > Thanks > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/pyt

Re: how to create GUI dynamically

2008-07-21 Thread Peter Wang
On Jul 21, 8:19 am, [EMAIL PROTECTED] wrote: > Hi; > > i m working on a project where i need  run time creation of GUI. > > i have some no. of entities for which i want checkboxes in front of > them which can be checked/ unchecked by user. > > But the problem is that the number and name of entities

Re: Any fancy grep utility replacements out there?

2008-03-18 Thread Peter Wang
On Mar 18, 5:16 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > So I need to recursively grep a bunch of gzipped files. This can't be > > easily done with grep, rgrep or zgrep. (I'm sure given the right > > pipeline including using the find command it could be donebu

Re: Fast 2D Raster Rendering with GUI

2008-03-18 Thread Peter Wang
On Mar 18, 6:51 pm, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > > That's another new step for me. Any ideas where to start? > > http://docs.python.org/ext/simpleExample.html > > And look into the source of existing extensions. PIL and PyCairo are > the best in your situation. You shouldn't be afr

Re: graphing/plotting with python and interface builder

2008-02-22 Thread Peter Wang
On Feb 22, 10:08 pm, Jacob Davis <[EMAIL PROTECTED]> wrote: > Hi. > > I am developing for mac and using Xcode and Interface Builder 3.0. I > can make a simple application, but I am having a hard time trying to > figure out a good way to create a graph orplotfor a class project. > > Does anybody ha

Re: jpype with JFreeChart, anyone interested to help?

2008-01-15 Thread Peter Wang
On Jan 14, 8:25 pm, oyster <[EMAIL PROTECTED]> wrote: > Thanx > However I knew Chaco and matplotlib, and I use matplotlib during my > school days. And as I have pointed out, they are for "plot", but not > "chart". If you don't know the difference between plot and chart, you > can have a look at ath

Re: jpype with JFreeChart, anyone interested to help?

2008-01-14 Thread Peter Wang
On Jan 14, 6:51 am, oyster <[EMAIL PROTECTED]> wrote: > As you may know, there is no beautiful and free chart(notplot, you > can find the examples > athttp://www.jfree.org/jfreechart,http://www.rmchart.com) module for python > than runs on > windows/linux/mac osx. Actually, may I humbly suggest

Re: 3D plotting with python 2.5 on win32

2007-12-20 Thread Peter Wang
On Dec 19, 8:15 am, anton <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to know if some of you knows a > - working > - actual > - out of the box (for me: binaries available) > Package/Lib to do 3D plotting out of the box. > There is MayaVi from enthon but you need to use their python (2.4.3)

Re: Basic animation in Python - how to

2007-12-08 Thread Peter Wang
On Dec 8, 6:37 am, "http://members.lycos.co.uk/dariusjack/"; <[EMAIL PROTECTED]> wrote: > I need to draw a shaded rectangle and have flashing (gif animated) > points on it > so not to refresh all objects a rectangle, but points, changing their > colors, attributes. > Please refer me to some basic P

Re: (Modular-)Application Framework / Rich-Client-Platform in Python

2007-05-18 Thread Peter Wang
On May 18, 1:10 pm, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > I'm not sure, but you guys seem a bit Windows-centric. I have yet to > find out if the egg-approach actually works for Linux (and Mac, though I > don't use it) as well. It does. We have several linux and mac-based developers h

Re: (Modular-)Application Framework / Rich-Client-Platform in Python

2007-05-18 Thread Peter Wang
On May 18, 10:15 am, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > stefaan wrote: > > To make it short again:http://code.enthought.com/ets/ > > Nice, seems very interesting. Bit of a bitch to set up, as it appears > from scanning the site, but that might be it. Actually, just this week, we co

Re: Python crash after using weave inline

2007-04-18 Thread Peter Wang
Soren, For future reference, you might want to direct weave-related questions to the [EMAIL PROTECTED] mailing list. > def cartPolFast(xlen, ylen, x_c, y_c): > > res = zeros((xlen,ylen)) > > code = """ > { > int xlen, ylen, x_c, y_c; This line is unnecessary, because weave expose

Re: Squisher -- a lightweight, self-contained alternative to eggs?

2007-03-06 Thread Peter Wang
On Mar 5, 12:31 am, "Adam Atlas" <[EMAIL PROTECTED]> wrote: > Right now I'm just testing and polishing up the code... in the > meantime, any comments? How does this work with compiled extension modules? -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling extension with Visual C++ Toolkit Compiler - MSVCR80.dll

2007-01-29 Thread Peter Wang
On Jan 29, 2:47 pm, [EMAIL PROTECTED] wrote: > The library seems to build correctly (producing Polygon.py and > cPolygon.pyd), but when I import it I get the following message from > python.exe: "This application has failed to start because MSVCR80.dll > was not found". I thought that this might be

Re: Decorator for Enforcing Argument Types

2006-12-22 Thread Peter Wang
Bruno Desthuilliers wrote: > > Python is dynamic, and fighting against the language is IMHO a really > bad idea. The only places where theres a real need for this kind of > stuff are when dealing with the "outside world" (IOW : inputs and > outputs). And then packages like formencode can do much m

Re: How a script can know if it has been called with the -i command line option?

2006-12-22 Thread Peter Wang
Michele Simionato wrote: > The subject says it all, I would like a script to act differently when > called as > $ python script.py and when called as $ python -i script.py. I looked > at the sys module > but I don't see a way to retrieve the command line flags, where should > I look? I realize th

Re: Python component model

2006-10-17 Thread Peter Wang
Ilias Lazaridis wrote: > Peter Wang wrote: > > Ilias Lazaridis wrote: > > > what about persistency? > > > > Um... what about it? > > " > As far as I can see, there's no persistency binding available. > > Is one planned? > " > ht

Re: Python component model

2006-10-12 Thread Peter Wang
Ilias Lazaridis wrote: > looks interesting. Thanks! > what about persistency? Um... what about it? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-12 Thread Peter Wang
Edward, This isn't in response to any specific one of the 100+ posts on this thread, but I justed wanted to encourage you to continue your investigation into Python component models and maybe looking for some common ground between them. Frequently the individual developers are too heads-down on w

Re: Python component model

2006-10-12 Thread Peter Wang
Edward Diener wrote: > It looks as if traits is an attempt to create a "property" in the > component terminology which I originally specified. I will take a look > at it. Traits is frighteningly similar to the requirements that you laid out in your post (the example for Skip), including delegates!

Re: Enthought python - Traits

2006-10-12 Thread Peter Wang
Ash wrote: > Hello everyone ! > > I am trying to find some sort of a cookbook or more examples for using > Enthought Traits to build GUI's. I tried to follow the documentations > present at the enthought site, but couldnt get too far - especially on > how to handle a control event ? The traits man

Re: Python doc problems example: gzip module

2005-09-01 Thread Peter Wang
>> Constructor for the GzipFile class, which simulates most of the methods >> of a file object, with the exception of the readinto() and truncate() > > yeah, blab blab blab. what the fuck are you talking about? So, how to > use it? um... presumably you type "zippedfile = GzipFile(...)" and dependi