Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread Gabriel Genellina
En Thu, 10 Apr 2008 02:59:24 -0300, <[EMAIL PROTECTED]> escribió: > I am getting the comments. So any one can post any comment like > Steve knows nothing of Python. > California has still lot to catch up to be at par with Mesopatamia. > comp.lang.python seems a group of fools. > Anyhow, all I lea

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread cokofreedom
Umm, Mesopotamia is an area geographically located between the Tigris and Euphrates rivers, Bangalore isn't anywhere near that. And most of that is presently under American control. If you don't want to give out your code then try explaining it better. What is the input, what is the output, how ar

Re: problem using import from PyRun_String

2008-04-09 Thread Gabriel Genellina
En Wed, 09 Apr 2008 13:31:22 -0300, Patrick Stinson <[EMAIL PROTECTED]> escribió: > Well, I eventually want to add an import hook, but for now I'd rather > just > get the import statement working normally again. > I have embedded python as a scripting engine in my application. To do > this,

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread subhabrata . iisc
I am getting the comments. So any one can post any comment like Steve knows nothing of Python. California has still lot to catch up to be at par with Mesopatamia. comp.lang.python seems a group of fools. Anyhow, all I learnt take whichever suits and ignore rest many people have lot of time to carr

Re: wrapping C functions in python

2008-04-09 Thread Paul Anton Letnes
Brian and Diez: First of all, thanks for the advice. Brian: I have installed NumPy and SciPy, but I can't seem to find a wavelet transform there. The main point of this was more to learn C wrapping than to actually get a calculation done. I will probably be starting a PhD soon, doing real

Re: Data structure recommendation?

2008-04-09 Thread Tim Roberts
"Steven Clark" <[EMAIL PROTECTED]> wrote: > >Thanks for the reply. Can you explain how I could be bitten by >floating point precision here? >I'm familiar with how&why 1.3*3 != 3.9, etc., but I'm not sure how it >applies here, or what you are gaining by converting to int. Well, it depends on how yo

Re: Need Help

2008-04-09 Thread Gabriel Genellina
En Wed, 09 Apr 2008 05:29:24 -0300, pramod sridhar <[EMAIL PROTECTED]> escribió: > I would like to access type library files (.tlb) from python. > > The application (with .tlb extension) controls an external instrument > over > standard GPIB interface. > Is it possible to control this applicat

Re: PyArg_ParseTuple for structs or binary data

2008-04-09 Thread Gabriel Genellina
En Wed, 09 Apr 2008 05:05:45 -0300, Alvin Delagon <[EMAIL PROTECTED]> escribió: > I'm currently writing a simple python SCTP module in C. So far it works > sending and receiving strings from it. The C sctp function sctp_sendmsg() > has been wrapped and my function looks like this: > > sendMessag

Re: How is GUI programming in Python?

2008-04-09 Thread CM
On Apr 9, 9:54 pm, Chris Stewart <[EMAIL PROTECTED]> wrote: > I've always had an interest in Python and would like to dabble in it > further. I've worked on a few very small command line programs but > nothing of any complexity. I'd like to build a really simple GUI app > that will work across Ma

Linux Mag's "Introduction to Python Decorators"

2008-04-09 Thread Scott SA
Hi, I've been trying to wrap my head around decorators and in my trails found a very recent article on Linux Mag's website. I didn't see a post here regarding this article and feel it is worth directing interested parties towards: Introduction to Python Decorators Have a web app th

Re: Very good Python Book. Free download : Beginning Python: From Novice to Professional

2008-04-09 Thread Danyelle Gragsone
HEH -- http://mail.python.org/mailman/listinfo/python-list

Re: How is GUI programming in Python?

2008-04-09 Thread Kam-Hung Soh
On Apr 10, 12:35 pm, Benjamin <[EMAIL PROTECTED]> wrote: > On Apr 9, 8:54 pm, Chris Stewart <[EMAIL PROTECTED]> wrote:> I've always had > an interest in Python and would like to dabble in it > > further. I've worked on a few very small command line programs but > > nothing of any complexity. I'd

Re: Module Conflicts

2008-04-09 Thread Benjamin
On Apr 9, 5:33 pm, Jose <[EMAIL PROTECTED]> wrote: > I have a module named math.py in a package with some class > definitions. I am trying to import the standard python math module > inside of math.py but It seems to be importing itself. Is there any > way around this problem without renaming my

Re: How is GUI programming in Python?

2008-04-09 Thread Benjamin
On Apr 9, 8:54 pm, Chris Stewart <[EMAIL PROTECTED]> wrote: > I've always had an interest in Python and would like to dabble in it > further. I've worked on a few very small command line programs but > nothing of any complexity. I'd like to build a really simple GUI app > that will work across Ma

email header decoding fails

2008-04-09 Thread ZeeGeek
It seems that the decode_header function in email.Header fails when the string is in the following form, '=?gb2312?Q?=D0=C7=C8=FC?=(revised)' That's when a non-encoded string follows the encoded string without any whitespace. In this case, decode_header function treats the whole string as non-enc

Re: How is GUI programming in Python?

2008-04-09 Thread Ben Kaplan
The pain level all depends on how you go about it. If you try to builda GUI from scratch, it will be very painful. If you use a toolkit, thenit's pretty close to working with Swing. WxPython is the only one I've used, so Ican't give you a "best one". I can say that going from Swing to wxPython w

Re: new user needs help!

2008-04-09 Thread Steve Holden
drjekil wrote: > I have done something so far about that problem,but its not the good way to > do it > > need ur comments about that > Well, at least you can see that your approach is not satisfactory, so that means you have some sense of what's good and bad programming/ > > from string im

Re: How is GUI programming in Python?

2008-04-09 Thread Paul Rubin
Chris Stewart <[EMAIL PROTECTED]> writes: > I've always had an interest in Python and would like to dabble in it > further. I've worked on a few very small command line programs but > nothing of any complexity. I'd like to build a really simple GUI app > that will work across Mac, Windows, and Li

How is GUI programming in Python?

2008-04-09 Thread Chris Stewart
I've always had an interest in Python and would like to dabble in it further. I've worked on a few very small command line programs but nothing of any complexity. I'd like to build a really simple GUI app that will work across Mac, Windows, and Linux. How painful is that going to be? I

Re: popen pipe limit

2008-04-09 Thread skunkwerk
On Apr 7, 6:17 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 07 Apr 2008 20:52:54 -0300,skunkwerk<[EMAIL PROTECTED]>   > escribió: > > > I'm getting errors when reading from/writing to pipes that are fairly > > large in size.  To bypass this, I wanted to redirect output to a file > >

Re: I am worried about Python 3

2008-04-09 Thread John Machin
On Apr 10, 8:12 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "jmDesktop" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | Two new versions of the language are currently in development: version > | 2.6, which retains backwards compatibility with previous releases; and > | versio

Re: How can I use quotes without escaping them using CSV?

2008-04-09 Thread John Machin
On Apr 10, 9:39 am, jeffself <[EMAIL PROTECTED]> wrote: > I set quotechar="" and was able to get it to work. I'll try this at > work tomorrow! setting it to what Andrew told you to do ('' not ")works equally well -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorting a List of Objects by an Attribute of the Objects Case-Insensitively

2008-04-09 Thread Jason
Thanks so much everyone! That works great, & (presumably) is way faster than the way I was doing it-- -- http://mail.python.org/mailman/listinfo/python-list

Creating and Audio Equalizer with python and gstreamer

2008-04-09 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For about 3 weeks I have been search for examples for grabbing and frequency from an audio stream and manipulating it. So far I haven't been too successful. Just wondering if anyone has done this or has a good example of doing such. TIA Rod -BE

Re: How can I use quotes without escaping them using CSV?

2008-04-09 Thread jeffself
On Apr 9, 5:39 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:python- > > [EMAIL PROTECTED] On Behalf Of jeffself > > Sent: Wednesday, April 09, 2008 5:11 PM > > To: [EMAIL PROTECTED] > > Subject: How can I use quotes without esca

Re: How can I use quotes without escaping them using CSV?

2008-04-09 Thread jeffself
On Apr 9, 5:39 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:python- > > [EMAIL PROTECTED] On Behalf Of jeffself > > Sent: Wednesday, April 09, 2008 5:11 PM > > To: [EMAIL PROTECTED] > > Subject: How can I use quotes without esca

Re: Control process execution

2008-04-09 Thread Noah
On Apr 9, 1:57 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > As far as I know, there is no "os.process". Maybe you meant os.system > or the subprocess module? > > Mike Yeah, I was thinking "subprocess" module. -- Noah -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I use quotes without escaping them using CSV?

2008-04-09 Thread John Machin
On Apr 10, 7:39 am, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:python- > > [EMAIL PROTECTED] On Behalf Of jeffself > > Sent: Wednesday, April 09, 2008 5:11 PM > > To: [EMAIL PROTECTED] > > Subject: How can I use quotes without esc

Re: Ctypes and C Infinite Callback Loops

2008-04-09 Thread Thomas Dimson
On Apr 9, 1:24 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Tue, 8 Apr 2008 16:49:27 -0700 (PDT), Thomas Dimson > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > > I assume there is some issue with the global interpreter lock or that > > you can't exit the infinite

Re: How to find documentation about methods etc. for iterators

2008-04-09 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I'm not sure if I have even phrased that right but anyway | | How does one find (in the standard Python documentation) information | about things like the iteritems() method and the enumerate() function. The Library Reference manu

Module Conflicts

2008-04-09 Thread Jose
I have a module named math.py in a package with some class definitions. I am trying to import the standard python math module inside of math.py but It seems to be importing itself. Is there any way around this problem without renaming my math.py file? -- http://mail.python.org/mailman/listinfo/p

Free Photo Sharing

2008-04-09 Thread kovyrus2
Upload your photos and share them with friends and family. http://fotochange.com -- http://mail.python.org/mailman/listinfo/python-list

Re: I am worried about Python 3

2008-04-09 Thread Terry Reedy
"jmDesktop" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Two new versions of the language are currently in development: version | 2.6, which retains backwards compatibility with previous releases; and | version 3.0, which breaks backwards compatibility to the extent that | even t

Re: Google App Engine

2008-04-09 Thread Terry Reedy
"Duncan Booth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | There are several things which would make moving away from Google tricky: I noticed that too, but it does have the virtue that development is done on one's own machine rather than keeping everying on the ISP's machines

Re: Not Sure This Can Be Done...

2008-04-09 Thread gamename
Hi, In hopes it may help someone else, here's what I ended up doing: 1) Add this to to point to your local 'tools' directory: import site # the python tools dir is at "../../tools/python" site.addsitedir('..'+os.sep+'..'+os.sep+'tools'+os.sep +'python') 2) In the

ANN: ActivePython 2.5.2.2 and 2.4.5.14 are now available

2008-04-09 Thread Trent Mick
I'm happy to announce that ActivePython 2.5.2.2 and 2.4.5.14 are now available for download from: http://www.activestate.com/products/activepython/ These are patch releases that update ActivePython to core Python 2.5.2 and 2.4.5. What is ActivePython? - ActivePython is

Re: basic python question about for loop

2008-04-09 Thread Terry Reedy
|So what is n and x in the first iteration? Sorry. I'm trying. When n == 2, the inner loop executes 0 times (the length of range(2,n)) and then falls thru to the else clause, printing the correct answer. -- http://mail.python.org/mailman/listinfo/python-list

RE: Stripping scripts from HTML with regular expressions

2008-04-09 Thread Michel Bouwmans
Reedick, Andrew wrote: > > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans >> Sent: Wednesday, April 09, 2008 3:38 PM >> To: python-list@python.org >> Subject: Stripping scripts from HTML with regular expressions >> >> H

RE: How can I use quotes without escaping them using CSV?

2008-04-09 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of jeffself > Sent: Wednesday, April 09, 2008 5:11 PM > To: python-list@python.org > Subject: How can I use quotes without escaping them using CSV? > > > If I put an escape character in, it work

Re: Any fancy grep utility replacements out there?

2008-04-09 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Thanks to everyone who responded, and sorry for my late response. > > Grin seems like the perfect solution for me. I finally had a chance > to download it and play with it today. It's great. > > Robert...you were kind enough to ask if I had any requests. Just the > o

Re: Basic optimization of python.

2008-04-09 Thread Terry Reedy
"??" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I wonder whether python compiler does basic optimizations to .py. In general, the answer to such questions depends on the implementation and version thereof. For CPython, you can look at bytecode with the dis module as ano

Re: basic python question about for loop

2008-04-09 Thread Diez B. Roggisch
jmDesktop schrieb: > On Apr 9, 4:58 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> jmDesktop schrieb: >> >> >> >> >> >>> From the Python.org tutorial: >> for n in range(2, 10): >>> ... for x in range(2, n): >>> ... if n % x == 0: >>> ... print n, 'equals', x, '*',

RE: basic python question about for loop

2008-04-09 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of jmDesktop > Sent: Wednesday, April 09, 2008 5:04 PM > To: python-list@python.org > Subject: Re: basic python question about for loop > > > > > > >>> for n in range(2, 10): > > > ...     for x

How can I use quotes without escaping them using CSV?

2008-04-09 Thread jeffself
I'm reading data out of an Excel spreadsheet using the XLRD module. The spreadsheet contains a list of election results. The fields are as follows: Precinct, Candidate, Votes The problem is candidate names can be funky, for instance: Michael L. "Mick" Jones I cannot for the life of me figure ou

Re: basic python question about for loop

2008-04-09 Thread jmDesktop
On Apr 9, 4:59 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:python- > > [EMAIL PROTECTED] On Behalf Of jmDesktop > > Sent: Wednesday, April 09, 2008 4:51 PM > > To: [EMAIL PROTECTED] > > Subject: basic python question about for

Re: basic python question about for loop

2008-04-09 Thread jmDesktop
On Apr 9, 4:58 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > jmDesktop schrieb: > > > > > > > From the Python.org tutorial: > > for n in range(2, 10): > > ...     for x in range(2, n): > > ...         if n % x == 0: > > ...             print n, 'equals', x, '*', n/x > > ...             b

Re: basic python question about for loop

2008-04-09 Thread Steve Holden
jmDesktop wrote: >>From the Python.org tutorial: > for n in range(2, 10): > ... for x in range(2, n): > ... if n % x == 0: > ... print n, 'equals', x, '*', n/x > ... break > ... else: > ... # loop fell through without finding a factor > ...

Re: new user needs help!

2008-04-09 Thread drjekil
I have done something so far about that problem,but its not the good way to do it need ur comments about that from string import *; import sys myfile = open("/afs/pdc.kth.se/home/d/debnath/membrane/1a91A.txt") a = myfile.readlines() data = myfile.readlines() for line in myfile.readlines()

RE: basic python question about for loop

2008-04-09 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of jmDesktop > Sent: Wednesday, April 09, 2008 4:51 PM > To: python-list@python.org > Subject: basic python question about for loop > > >From the Python.org tutorial: > > >>> for n in range(2, 1

Re: basic python question about for loop

2008-04-09 Thread Diez B. Roggisch
jmDesktop schrieb: > From the Python.org tutorial: > for n in range(2, 10): > ... for x in range(2, n): > ... if n % x == 0: > ... print n, 'equals', x, '*', n/x > ... break > ... else: > ... # loop fell through without finding a factor > ...

Re: Control process execution

2008-04-09 Thread Mike Driscoll
On Apr 9, 3:11 pm, Noah <[EMAIL PROTECTED]> wrote: > On Apr 6, 5:30 am, Wesley Mesquita <[EMAIL PROTECTED]> wrote: > > > I am trying to create a test environment to a couple C applications > > (simple UDP and TCP server/clients), so I want to write this in python > > and I m looking for ways to do

Re: wrapping C functions in python

2008-04-09 Thread Brian Cole
SWIG is a program that automatically generates code to interface Python (and many other languages) with C/C++. If you plan to create lasting software libraries to be accessed from Python and C it is quite a robust way to do so. Essentially, you feed it header files, compile your code and the code

basic python question about for loop

2008-04-09 Thread jmDesktop
>From the Python.org tutorial: >>> for n in range(2, 10): ... for x in range(2, n): ... if n % x == 0: ... print n, 'equals', x, '*', n/x ... break ... else: ... # loop fell through without finding a factor ... print n, 'is a prime number' ..

Re: wrapping C functions in python

2008-04-09 Thread Paul Anton Letnes
Hi, and thanks. However, being a newbie, I now have to ask: What is SWIG? I have heard the name before, but haven't understood what it is, why I need it, or similar. Could you please supply some hints? -Paul Den 9. april. 2008 kl. 22.22 skrev Brian Cole: > We use the following SWIG (www.

Love matplotlib, but....

2008-04-09 Thread A_H
I love matplotlib, but I want to do a polar plot using your basic compass type plot, i.e. zero degrees at the top, degrees going clockwise. I don't see a real easy way to do this. Any examples? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: wrapping C functions in python

2008-04-09 Thread Diez B. Roggisch
>> I am a "scientific" user of Python, and hence have to write some performance >> critical algorithms. Right now, I am learning Python, so this is a "newbie" >> question. >> >> I would like to wrap some heavy C functions inside Python, specifically a >> wavelet transform. I am beginning to become

Re: Python 3.0 new integer division

2008-04-09 Thread Mark Dickinson
On Apr 9, 3:57 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > Naive question: why not just use a long + an exponent? > > e.g. 132560  -> (13256, 1) >      0.534   -> (534, -3) >      5.23e10 -> (523, 8) > It's a good question. The standard answer is that if the coefficient is a long then it's

RE: Stripping scripts from HTML with regular expressions

2008-04-09 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Michel Bouwmans > Sent: Wednesday, April 09, 2008 3:38 PM > To: python-list@python.org > Subject: Stripping scripts from HTML with regular expressions > > Hey everyone, > > I'm trying to stri

Re: wrapping C functions in python

2008-04-09 Thread Brian Cole
We use the following SWIG (www.swig.org) typemap to perform such operations: %typemap(in) (int argc, char **argv) { if (!PySequence_Check($input)) { PyErr_SetString(PyExc_ValueError,"Expected a sequence"); return NULL; } $1 = PySequence_Length($input); $2 = (char**)alloca($1*sizeof

Re: Stani's python ide 'spe' editor problem

2008-04-09 Thread SPE - Stani's Python Editor
Did you try to remove the .spe folder from your c:\Documents & Settings \username folder? Stani On Apr 9, 6:16 pm, Rick King <[EMAIL PROTECTED]> wrote: > Hi everyone, > The editor inspeon my system (win XP home sp2) does not do automatic > indentation. I can't figure out why - it used to. I'm

Re: Stripping scripts from HTML with regular expressions

2008-04-09 Thread Stefan Behnel
Michel Bouwmans wrote: > I'm trying to strip all script-blocks from a HTML-file using regex. You might want to take a look at lxml.html instead, which comes with an HTML cleaner module: http://codespeak.net/lxml/lxmlhtml.html#cleaning-up-html Stefan -- http://mail.python.org/mailman/listinfo/py

Re: Control process execution

2008-04-09 Thread Noah
On Apr 6, 5:30 am, Wesley Mesquita <[EMAIL PROTECTED]> wrote: > I am trying to create a test environment to a couple C applications > (simple UDP and TCP server/clients), so I want to write this in python > and I m looking for ways to do it. Basically I need an execution timer > and timeout control

wrapping C functions in python

2008-04-09 Thread Paul Anton Letnes
Hello etc. I am a "scientific" user of Python, and hence have to write some performance critical algorithms. Right now, I am learning Python, so this is a "newbie" question. I would like to wrap some heavy C functions inside Python, specifically a wavelet transform. I am beginning to bec

RE: Stripping scripts from HTML with regular expressions

2008-04-09 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Michel Bouwmans > Sent: Wednesday, April 09, 2008 3:38 PM > To: python-list@python.org > Subject: Stripping scripts from HTML with regular expressions > > Hey everyone, > > I'm trying to stri

Re: Python 3.0 new integer division

2008-04-09 Thread Arnaud Delobelle
On Apr 9, 8:35 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > Strictly speaking, BCD doesn't come into it:  the coefficient of a > Decimal instance is stored simply as a string of digits.  This is > pretty wasteful in terms of space:  1 byte per decimal digit > instead of the 4 bits per digit that

Re: Running a python code periodically

2008-04-09 Thread Jorgen Grahn
On Tue, 08 Apr 2008 15:01:36 -0500, Larry Bates <[EMAIL PROTECTED]> wrote: > paul wrote: >> Maryam Saeedi schrieb: >>> Hi, >>> >>> I was wondering if you know how can I run a python code once every five >>> minutes for a period of time either using python or some other program like >>> a bash scrip

Stripping scripts from HTML with regular expressions

2008-04-09 Thread Michel Bouwmans
Hey everyone, I'm trying to strip all script-blocks from a HTML-file using regex. I tried the following in Python: testfile = open('testfile') testhtml = testfile.read() regex = re.compile(']*>(.*?)', re.DOTALL) result = regex.sub('', blaat) print result This strips far more away then just the

Re: Python 3.0 new integer division

2008-04-09 Thread Mark Dickinson
On Apr 8, 6:01 pm, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > On Apr 8, 2:25 pm, Grzegorz S³odkowicz <[EMAIL PROTECTED]> wrote: > > > > > Isn't Decimal a BCD implementation? > > Yep, you are right and I am > wrong.http://www.python.org/dev/peps/pep-0327/#why-not-rational Strictly speaking, BCD

Re: Displaying vtk files in a wxPython window

2008-04-09 Thread Mike Driscoll
On Apr 9, 1:38 pm, rocksportrocker <[EMAIL PROTECTED]> wrote: > Hi, > > I want to visualize some vtk-files within a wxPython Window. Google > did not help me > very much, I only found some tools for Tk, what is no solution for me. > > I'm sure I am not the first one who asks this question > > A

pywin32 vista installer fix & general distutils installer name bug

2008-04-09 Thread Ville Vainio
I just noticed that pywin32 does not work with vista directly (tried import win32clipboard, => ImportError). The problem is the installer name; it's the usual pywin32-210-win32-py2.5.exe It needs to be renamed to: pywin32-210.win32-setup-py2.5.exe In order for vista to catch it as "installer".

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread Marc 'BlackJack' Rintsch
On Wed, 09 Apr 2008 16:16:14 +0200, Diez B. Roggisch wrote: > And then you reply telling us about the greatness of Bangalore and your > product to come. Which is somewhat amusing that people who claim to produce > the greatest software being incapable of debugging it deems me as odd - to > say the

Re: Google App Engine

2008-04-09 Thread Joshua Kugler
Duncan Booth wrote: > http://www.techcrunch.com/2008/04/07/google-jumps-head-first-into-web-services-with-google-app-engine/ > "Python only. What a weird decision. Not business and > community-friendly at all." Translation: "Not over-engineered-top-heavy-overly-complex-job-security-inducing-Java-e

Re: Parsing locale specific dates, currency, numbers

2008-04-09 Thread Jarek Zgoda
Malcolm Greene pisze: > The locale module provides the ability to format dates, currency and > numbers according to a specific locale. > > Is there a corresponding module for parsing locale's output to convert > locale formatted dates, currency, and numbers back to their native data > types on the

Re: Can C.L.P.handle the load?

2008-04-09 Thread Joshua Kugler
Paddy wrote: > I'm waiting for the rush of new users to c.l.p :-) > If it comes, then aren't regularly posted FAQ's newbie friendly? No, it just means they didn't take the time to read the docs and the FAQ for themselves. :) > Is their a good FAQ already around that we can regularly point newbies

Displaying vtk files in a wxPython window

2008-04-09 Thread rocksportrocker
Hi, I want to visualize some vtk-files within a wxPython Window. Google did not help me very much, I only found some tools for Tk, what is no solution for me. I'm sure I am not the first one who asks this question Any hints ? Greetings, Uwe -- http://mail.python.org/mailman/listinfo/python

Re: Pydev shell (was: Re: Stani's python ide 'spe' editor problem)

2008-04-09 Thread Rick King
I guess this is appropriate to the list... the funky things in eclipse that were happening are hard to describe, but first let me say that none of the other ide's had any funky things happening so I don't think it was my code. That said: I'm working on a command line bulk file renaming tool (us

Re: String Literal to Blob

2008-04-09 Thread Victor Subervi
On Wed, Apr 9, 2008 at 1:49 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > Victor Subervi wrote: > > On Wed, Apr 9, 2008 at 12:51 PM, Steve Holden <[EMAIL PROTECTED] > > > wrote: > I imagine the following code should do so, given your earlier writings: > > #! /usr/bin/pyth

Re: Google App Engine

2008-04-09 Thread Daniel Fetchinson
> > > The backend data store, while it has a vaguely SQLish query language is an > > object database not a relational database, i.e. more like ZODB than MySQL. > > It uses similar concepts to django's data api but isn't the same. It > should > > be possible to write something simple to replace it,

Pydev shell (was: Re: Stani's python ide 'spe' editor problem)

2008-04-09 Thread Fabio Zadrozny
> Anyway, I am extremely frustrated. I've tried other ide's: pythonwin (I > found it inadequate for my purposes - why is a command line prompt > displayed in a dialog window?) - eclipse (editor is just ok, shell does > not have command history(!), and then *really* funky things started > happe

Parsing locale specific dates, currency, numbers

2008-04-09 Thread Malcolm Greene
The locale module provides the ability to format dates, currency and numbers according to a specific locale. Is there a corresponding module for parsing locale's output to convert locale formatted dates, currency, and numbers back to their native data types on the basis of a specified locale? In

Re: String Literal to Blob

2008-04-09 Thread Steve Holden
Victor Subervi wrote: > On Wed, Apr 9, 2008 at 12:51 PM, Steve Holden <[EMAIL PROTECTED] > > wrote: > > Victor Subervi wrote: > > On Wed, Apr 9, 2008 at 11:10 AM, Steve Holden > <[EMAIL PROTECTED] >

Re: Google App Engine

2008-04-09 Thread Erich
On Apr 9, 3:51 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > The backend data store, while it has a vaguely SQLish query language is an > object database not a relational database, i.e. more like ZODB than MySQL. > It uses similar concepts to django's data api but isn't the same. It should > be po

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-09 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hi Steve, > comp.lang.python is supposed to be a serious group not anyone knowing > nothing and giving comment. Well, original code snippet I don't know > why an expert person like you fails to understand, I told it almost > can't you guess the next portion? And this

Pydev 1.3.15 Released

2008-04-09 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.15 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: --

Re: question about string formatting

2008-04-09 Thread Kelie
Thank you Jerry! -- Kelie UliPad is my Python editor. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Leopard DLL Hell

2008-04-09 Thread Brian Cole
I have learned that this is a specific behavior of OS X. I have submitted a formal bug report to Apple about the problem. It appears that this is documented by Apple as acceptable: http://developer.apple.com/documentation/DeveloperTools/Reference/MachOReference/Reference/reference.html#//apple_ref/

Re: question about string formatting

2008-04-09 Thread Jerry Hill
On Wed, Apr 9, 2008 at 1:04 PM, Kelie <[EMAIL PROTECTED]> wrote: > Is there something in Python built-in function or library that will convert > a number 1205466.654 to $1,205,466.65? To add the "$" sign and set the > decimal place is not a problem, but I don't know how to add the thousands > delim

Re: String Literal to Blob

2008-04-09 Thread Victor Subervi
On Wed, Apr 9, 2008 at 12:51 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > Victor Subervi wrote: > > > On Wed, Apr 9, 2008 at 11:10 AM, Steve Holden <[EMAIL PROTECTED] > [EMAIL PROTECTED]>> wrote: > > > > I'm having a problem believing this, but I don't think you are lying. > Are you *sure* you ha

Re: is Pylons alive?

2008-04-09 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, Gerhard Häring <[EMAIL PROTECTED]> wrote: > - TurboGears 2.0 (I personally wouldn't bother with TurboGears 1.x at > this point) Having investigated some of this myself recently, I agree with you that the TG 1.x series is a dead end, but there's no TG 2.0 yet. La

Re: question about string formatting

2008-04-09 Thread G
>>> import locale >>> locale.setlocale(locale.LC_ALL, '') 'en_US.UTF-8' >>> locale.format('%.2f', 1021212.12, True) '1,021,212.12' >>> On Wed, Apr 9, 2008 at 1:04 PM, Kelie <[EMAIL PROTECTED]> wrote: > Hello, > > Is there something in Python built-in function or library that will > convert a numb

Re: set file permission on windows

2008-04-09 Thread Tim Arnold
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold wrote: >> "Mike Driscoll" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> On Apr 8, 12:03 pm, "Tim Arnold" <[EMAIL PROTECTED]> wrote: >> >>> According to the following thread, you can

question about string formatting

2008-04-09 Thread Kelie
Hello, Is there something in Python built-in function or library that will convert a number 1205466.654 to $1,205,466.65? To add the "$" sign and set the decimal place is not a problem, but I don't know how to add the thousands delimiter. Thanks, -- Kelie UliPad

Re: Learning curve for new database program with Python?

2008-04-09 Thread M.-A. Lemburg
On 2008-04-07 20:19, Gary Duzan wrote: > In article <[EMAIL PROTECTED]>, > M.-A. Lemburg <[EMAIL PROTECTED]> wrote: >> On 2008-04-07 15:30, Greg Lindstrom wrote: >>> SQL is one of the areas I wish I had mastered (much) earlier in my career >> Fully agree :-) >> >> Interesting comments in a time whe

Guppy-PE / Heapy 0.1.8

2008-04-09 Thread Sverker Nilsson
I am happy to announce Guppy-PE 0.1.8 Guppy-PE is a library and programming environment for Python, currently providing in particular the Heapy subsystem, which supports object and heap memory sizing, profiling and debugging. It also includes a prototypical specification language, the Guppy Specif

Re: String Literal to Blob

2008-04-09 Thread Steve Holden
Victor Subervi wrote: > On Wed, Apr 9, 2008 at 11:10 AM, Steve Holden <[EMAIL PROTECTED] > > wrote: > > Victor Subervi wrote: > > On Wed, Apr 9, 2008 at 10:24 AM, Steve Holden > <[EMAIL PROTECTED] >

Re: problem using import from PyRun_String

2008-04-09 Thread Patrick Stinson
Well, I eventually want to add an import hook, but for now I'd rather just get the import statement working normally again. I have embedded python as a scripting engine in my application. To do this, I create a new empty module, run the script text using PyRun_String() passing the module's __dict__

Stani's python ide 'spe' editor problem (again)

2008-04-09 Thread Rick King
In my previous post about spe I didn't mention that my set up is: python 2.4.4 wxpython 2.8.3 thanks. -Rick King -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find documentation about methods etc. for iterators

2008-04-09 Thread Arnaud Delobelle
On Apr 9, 5:05 pm, [EMAIL PROTECTED] wrote: > I'm not sure if I have even phrased that right but anyway > > How does one find (in the standard Python documentation) information > about things like the iteritems() method and the enumerate() function. > > They are mentioned in the tutorial as way

Stani's python ide 'spe' editor problem

2008-04-09 Thread Rick King
Hi everyone, The editor in spe on my system (win XP home sp2) does not do automatic indentation. I can't figure out why - it used to. I'm set up with subversion so I have the very latest stuff from Stani. It's amazing how not having automatic indentation can make working in the ide such a pa

Re: String Literal to Blob

2008-04-09 Thread Victor Subervi
On Wed, Apr 9, 2008 at 11:10 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > Victor Subervi wrote: > > > On Wed, Apr 9, 2008 at 10:24 AM, Steve Holden <[EMAIL PROTECTED] > [EMAIL PROTECTED]>> wrote: > > connection = MySQLdb.connect(host=host, user=user, passwd=passwd, db=db) > > cursor = connection.

  1   2   >