Re: Crackly sound in pygame

2007-11-30 Thread David Tweet
Before calling pygame.init(), you can call pygame.mixer.pre_init. Make sure the sample rate and sample size matches your audio file. But most likely the issue is that the default audio buffer size of 1024 doesn't cut it for some sound cards; try increasing to the next power of two. Ex. pygame.mi

Benchmark...

2007-11-30 Thread ArShAm Shirvani
Hi I need a benchmark for speed , comparing with other languages Regards Arsham -- http://mail.python.org/mailman/listinfo/python-list

Re: Interfaces to high-volume discussion forums (was: Science list)

2007-11-30 Thread Dotan Cohen
On 30/11/2007, Ben Finney <[EMAIL PROTECTED]> wrote: > "Dotan Cohen" <[EMAIL PROTECTED]> writes: > > > On 29/11/2007, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > Regardless of what Google/Yahoo/M$/AOL want you to think, > > > using a web-based mail client is typically the worst way t

Re: Accessing a URL file Remotely

2007-11-30 Thread mcl
On 29 Nov, 22:32, TheSeeker <[EMAIL PROTECTED]> wrote: > On Nov 29, 3:13 pm, mcl <[EMAIL PROTECTED]> wrote: > > > > > I have been given a url ofCSVfile (http://hostname/dir/file.csv), > > which when I put the full URL in a web browser shows the contents of > > the file. > > > I want to be able to u

Re: Oh no, my code is being published ... help!

2007-11-30 Thread rm
On Nov 30, 1:59 am, Vidyadhar74 <[EMAIL PROTECTED]> wrote: > Please check your hard disk partition is NTFS or FAT32 if it is FAT32 > then Convert the partition to NTFS and unzip the 7zipped file on NTFS > partition. Ok, I admit I don't understand what you mean by this. -- http://mail.python.org/

Re: Need to call functions/class_methods etc using string ref :How

2007-11-30 Thread Bruno Desthuilliers
George Sakkis a écrit : > On Nov 26, 2:04 pm, Bruno Desthuilliers > > <[EMAIL PROTECTED]> wrote: > >>Donn Ingle a écrit : >> >> I see someone already showed you eval. Eval is evil. Don't use it. Especially if the functions are coming to you from a public URL! >> >>>Yes, I suggested to h

getpixel with Python Imaging Library

2007-11-30 Thread jorma kala
Hi, I read that the getpixel function of the PIL library is relatively slow. Which alternative is therefore faster and more efficient, accesing the result of getdata() as a flat list or using the function load(), and accessing pixels through the resulting 2-dimensional array? Thanks a lot. j. ka

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread John Machin
On Dec 1, 1:58 am, [EMAIL PROTECTED] wrote: > Python is a good programming language, but "Python" is not a good > name. > > First, python also means snake, Monty Python. If we search "python" in > google, emule, many results are not programming resource. If we search > PHP, all results are program

Re: Is __import__ known to be slow in windows?

2007-11-30 Thread Joshua Kugler
> What modules are you __import__ing, and what is platform-dependent in > each? The only thing we're importing __import__ are some modules of ours, with no sytem dependent code in them at all. Some of them are even empty modules, as was suggested by one response (for benchmarking purposes). Turn

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread greg
[EMAIL PROTECTED] wrote: > If we search "python" in > google, emule, many results are not programming resource. Have you actually tried this? When I do a google search for "python", the very *first* result I get is "Python Programming Language - Official Website". Also, out of the first 10 result

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Yeef
we search "python" in google, emule, many results are not programming resource. If we search PHP, all results are programming resource. i'm agree! On Dec 1, 2007 12:08 PM, <[EMAIL PROTECTED]> wrote: > Pytn > > New name "Pytn" may be better, do you think so ? > -- > http://mail.python.org/mailman

(More) Re: Is __import__ known to be slow in windows?

2007-11-30 Thread Joshua Kugler
Ok, so we have this code: t = timeit.Timer(stmt='r()', setup='from __main__ import r') sys.path.insert(0,'/path/to/code') def r(): for m in ['three','module','names']: try: x = __import__(m) except ImportError, e: if not e.message.startswith('No module

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Russ P.
On Nov 30, 6:58 am, [EMAIL PROTECTED] wrote: > Python is a good programming language, but "Python" is not a good > name. I agree that Python is not a good name for a programming language, but I'm afraid we're stuck with it. If I had invented Python, I would have called it Newton or Euler, arguab

Re: Is __import__ known to be slow in windows?

2007-11-30 Thread John Machin
On Dec 1, 10:08 am, Joshua Kugler <[EMAIL PROTECTED]> wrote: > [I tried googling for this, didn't find anything relevant.] > > We've recently been doing some profiling on a project of ours. It runs > quite fast on Linux but *really* bogs down on Windows 2003. We initially > thought it was the sim

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Basilisk96
Matt Nordhoff <[EMAIL PROTECTED]> wrote: <..snip..> > Great, now the Google results will just be filled with AMD typoes. :-P Clever! But "typoes" is a typo :-P >From m-w.com: typo Function: noun Inflected Form(s): plural: typos Etymology: short for typographical (error) Date: 187

Re: Is __import__ known to be slow in windows?

2007-11-30 Thread Paul McGuire
On Nov 30, 5:08 pm, Joshua Kugler <[EMAIL PROTECTED]> wrote: > [I tried googling for this, didn't find anything relevant.] > > We've recently been doing some profiling on a project of ours. It runs > quite fast on Linux but *really* bogs down on Windows 2003. We initially > thought it was the sim

ANN: wxPython 2.8.7.1

2007-11-30 Thread Robin Dunn
Announcing -- The 2.8.7.1 release of wxPython is now available for download at http://wxpython.org/download.php. This release has had some bugs fixed, some minor patches applied, and also incorporates the Google Summer of Code 2007 version of XRCed, and adds the Editra source code editor

Is __import__ known to be slow in windows?

2007-11-30 Thread Joshua Kugler
[I tried googling for this, didn't find anything relevant.] We've recently been doing some profiling on a project of ours. It runs quite fast on Linux but *really* bogs down on Windows 2003. We initially thought it was the simplejson libraries (we don't use the C extensions) but profiling proved

Python's doc problems

2007-11-30 Thread Xah Lee
Every few months, i receive a hearty letter about how well people agree with my criticism of Python's docs. (see http://xahlee.org/perl-python/python_doc_index.html ) Here's one received this week: -- Hello, I landed on your website's comments about the Python doc

Re: How to Split a String

2007-11-30 Thread Siah
> I hope you don't use Python to access the database, get a tuple back, > convert it to a string and then try to break up that string into a list!? Sadly, that is the case. Well, kinda. I'm using psycopg2 to access postgresql, which is great. Though postgres has more features than psycopg2 support

issue with cookielib.LWPCookieJar

2007-11-30 Thread JD Smith
Greetings: My cookiejar contains the cookie that I need however when I do cj.save(file) it does not actually save out to the cookies.lwj Does anyone have any clue what would keep this from saving? It CREATED my cookies.lwj file so I know it's not permissions. cookies.lwp: #LWP-Cookies-2.0 tes

Re: Witch editor to use!

2007-11-30 Thread barberomarcelo
On 30 nov, 06:10, SMALLp <[EMAIL PROTECTED]> wrote: > Hello! > > I'm new in wxPython and before i start doing anything I have one qustion. > > Shoul I use some of editors like boa, spe or shoud i use my favorite > text editor! > > i used IDLE on windows and it seamd nice. Now i have linux installed

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > First, python also means snake, Monty Python. If we search > "python" in google, emule, many results are not programming > resource. If we search PHP, all results are programming resource. Who cares? No one looking for special Python programming tips will use only "pytho

Re: Witch editor to use!

2007-11-30 Thread Ben Finney
SMALLp <[EMAIL PROTECTED]> writes: > Shoul I use some of editors like boa, spe or shoud i use my favorite > text editor! Any text editor will, in a minimal way, do the job, so there's nothing to enforce "should". But since it seems you're asking for opinions: A text editor is an indispensible to

Re: Interfaces to high-volume discussion forums

2007-11-30 Thread Michael Spencer
Ben Finney wrote: > > I'm not interested in learning some centralised web-application > interface, and far prefer the discussion forum to be available by a > standard *protocol*, that I can use my choice of *local client* > application with. > I agree: I use Thunderbird, and it works well. But

Re: Witch editor to use!

2007-11-30 Thread [EMAIL PROTECTED]
Try the free komodo edit. it works on both windows, Linux and Mac OS X http://www.activestate.com/Products/komodo_edit/ It is what is drawing me away from the kde editor "kate" and I will close my message with a linke to the features list http://www.activestate.com/Products/komodo_edit/features

OT: Dovetail (was "Re: Yet another database question, please")

2007-11-30 Thread Tim Chase
>> and what Dabo does dovetails nicely. > > Dovetails? > > Sorry, English is not my native language ;) A carpentry term where two pieces of wood are formed to fit together to create the joint: http://images.google.com/images?q=dovetail Used metaphorically to mean "as if they were meant to fit

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Dan Upton
On Nov 30, 2007 11:17 AM, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > Tim Chase wrote: > > (You'd think this was the Lisp ML, not Python... ) > > Atsp? :-) > -- Athp? Wait, no, Microsoft already claimed that one... -- http://mail.python.org/mailman/listinfo/python-list

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread ureuffyrtu955
Pytn New name "Pytn" may be better, do you think so ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Error: UnboundLocalError: local variable 'PfFlag' referenced before assignment

2007-11-30 Thread Calvin
On Nov 30, 3:07 pm, "Wang, Harry" <[EMAIL PROTECTED]> wrote: > $$ TestCase ID : 001 > Step : deleteDvc,206268 > Result Eval type : XmlChk > Step : deleteDvc,206269 > Result Eval type : XmlChk > Traceback (most recent call last): > File "C:\UDR2\UDRxmlGateway.py", line 388, in > ParseAll() >

Error: UnboundLocalError: local variable 'PfFlag' referenced before assignment

2007-11-30 Thread Wang, Harry
$$ TestCase ID : 001 Step : deleteDvc,206268 Result Eval type : XmlChk Step : deleteDvc,206269 Result Eval type : XmlChk Traceback (most recent call last): File "C:\UDR2\UDRxmlGateway.py", line 388, in ParseAll() File "C:\UDR2\UDRxmlGateway.py", line 371, in ParseAll if (PfFlag == 1):

Check if a symlink is broken or circular

2007-11-30 Thread Giampaolo Rodola'
Hi there, I would like to know if such function would be correct for verifying if a link is broken and/or circular. def isvalidlink(path): assert os.path.islink(path) try: os.stat(path) except os.error: return 1 return 0 -- http://mail.python.org/mailman/listinfo/p

Re: Yet Another Tabular Data Question

2007-11-30 Thread Ricardo Aráoz
[EMAIL PROTECTED] wrote: > On Nov 29, 5:46 pm, [EMAIL PROTECTED] wrote: >> Hi all, >> >> Fairly new Python guy here. I am having a lot of trouble trying to >> figure this out. I have some data on some regulations in Excel and I >> need to basically add up the total regulations for each country--a

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Tim Golden
Tim Couper wrote: > but it would mean that a version for large duration projects would be > "MarAthon" ... Can't decide whether you were deliberately avoiding "long-running" there, Tim, or just missed the opportunity :) TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: Job posting on the site is broken

2007-11-30 Thread sjol
Does any one know who would be the webmaster ? On Nov 29, 4:41 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > sjol <[EMAIL PROTECTED]> writes: > > To the webmaster of python.org, > > > I have tried to have a job posted on the job board but! Alas, it > > doesn't work and I cannot get a response from t

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Greg Lindstrom
> > > In Athon, the first letter "A" could pronounce as [ e ] . > > For English speakers that pronunciation is just plain wrong. > Going back to my shell scripting days, I nominate "nothyP" as the new name. --greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Tim Couper
but it would mean that a version for large duration projects would be "MarAthon" ... Dr Tim Couper CTO, SciVisum Ltd www.scivisum.com Gerardo Herzig wrote: > [EMAIL PROTECTED] wrote: > >> Python is a good programming language, but "Python" is not a good >> name. >> >> First, python also mean

Re: reading raw variables from file

2007-11-30 Thread Martin Blume
"Bruno Desthuilliers" schrieb > >> I have a file that might contain literal python > >> variable statements at every line. For example > >> the file info.dat looks like this: > >> users = ["Bob", "Jane"] > >> status = {1:"ok",2:users[0]} > >> the problem is I want to read this file and load >

Re: Witch editor to use!

2007-11-30 Thread rm
> > And if editor is bether choice witch one to use! > > The two main choices that meet the criteria above are Vim and Emacs. > In my opinion, either is a good choice. Both Vim and Emacs are hard to learn. In other words, they will require that you spend at least some time studying how they work

Re: Yet another database question, please

2007-11-30 Thread Bruno Desthuilliers
nmp a écrit : > Bruno Desthuilliers wrote: > >> nmp a écrit : >>> Hello to all. I am only just learning both Python and PyGTK (with >>> Glade). I also need to learn how to use databases in my programs. My >>> preliminary research leads me in the direction of SQLAlchemy, which >>> seems to be what

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Tim Chase
>> In Athon, the first letter "A" could pronounce as [ e ] . > > For English speakers that pronunciation is just plain wrong. > > You're trolling, right? Yeth, obviouthly he ith... ;) (You'd think this was the Lisp ML, not Python... ) -tkc -- http://mail.python.org/mailman/listinfo/python

Re: Yet another database question, please

2007-11-30 Thread Peter Decker
On Nov 30, 2007 9:20 AM, <[EMAIL PROTECTED]> wrote: > > On Nov 30, 7:23 am, nmp <[EMAIL PROTECTED]> wrote: > > Hello to all. I am only just learning both Python and PyGTK (with Glade). > > I also need to learn how to use databases in my programs. My preliminary > > research leads me in the directi

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Grant Edwards
On 2007-11-30, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In Athon, the first letter "A" could pronounce as [ e ] . For English speakers that pronunciation is just plain wrong. You're trolling, right? -- Grant Edwards grante Yow! As President I have

Re: Accessing a URL file Remotely

2007-11-30 Thread Grant Edwards
On 2007-11-30, mcl <[EMAIL PROTECTED]> wrote: > Brilliant - I had fears of much more complication. I've been writing Python programs for almost 10 years, and I still have that reaction not infrequently. -- Grant Edwards grante Yow! I like the way ONLY

Re: Sorting array

2007-11-30 Thread Chris Hulan
the list.sort method seems to do exactly what you want? Unless your array() method is creating a custom array object with different sort functionality than list? Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Gerardo Herzig
[EMAIL PROTECTED] wrote: >Python is a good programming language, but "Python" is not a good >name. > >First, python also means snake, Monty Python. If we search "python" in >google, emule, many results are not programming resource. If we search >PHP, all results are programming resource. > >Secon

Re: Oh no, my code is being published ... help!

2007-11-30 Thread Neil Cerutti
On 2007-11-30, Eduardo O. Padoan <[EMAIL PROTECTED]> wrote: > On Nov 30, 2007 11:18 AM, Peter Decker <[EMAIL PROTECTED]> wrote: >> On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote: >> >> > You also have a couple of instances of: >> > print("Error Squeezing %s...") >> > >> > The pa

Unicode string formating

2007-11-30 Thread nico
Hi, I need to do a lot of string formating, and I have strings and/or unicode strings and when I do the following: "%s %s" % (u'Salut', 'H\xe4llo'), I get an exception : UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal not in range(128) How can I insure I don't get a

Re: Different kinds of Import Errors

2007-11-30 Thread Graham Dumpleton
On Dec 1, 12:24 am, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Sorry, but this does not work. If there is an ImportError > during importing the existing module, it won't get inserted > into sys.modules. I just tried it with a small example. > > An other solution would be to inspect the traceback.

Re: Yet another database question, please

2007-11-30 Thread Bruno Desthuilliers
nmp a écrit : > Bruno Desthuilliers wrote: > > [..] > >> About DB access, there are two major APIs : the official (low-level - >> that is,relatively to the other one...) db-api, and the higher-level >> SQLAlchemy package. Note that while having an ORM part, SQLAlchemy is >> first an higher-level

Re: Oh no, my code is being published ... help!

2007-11-30 Thread Eduardo O. Padoan
On Nov 30, 2007 11:36 AM, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > "Eduardo O. Padoan" <[EMAIL PROTECTED]> writes: > > > No, writing this way will confound the 2to3 tool. > > Why? print("foo") is a perfectly valid Python 2 statement. Maybe > it's simply a matter of fixing the tool. > print("fo

Re: Yet another database question, please

2007-11-30 Thread kyosohma
On Nov 30, 7:23 am, nmp <[EMAIL PROTECTED]> wrote: > Hello to all. I am only just learning both Python and PyGTK (with Glade). > I also need to learn how to use databases in my programs. My preliminary > research leads me in the direction of SQLAlchemy, which seems to be what > everybody else is us

Re: Oh no, my code is being published ... help!

2007-11-30 Thread rm
On Nov 30, 10:01 am, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-11-30, Eduardo O. Padoan <[EMAIL PROTECTED]> wrote: > > > > > On Nov 30, 2007 11:18 AM, Peter Decker <[EMAIL PROTECTED]> wrote: > >> On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote: > > >> > You also have a couple

Can't Find Headers on OSX

2007-11-30 Thread Calvin Spealman
I'm still on 10.4 and I'm trying to build pyOpenSSL, but I'm failing with Python.h trying to include and failing to find any of the shared libraries. I can't figure this one out because i just don't compile anything non trivial often. ironfroggy:~/Desktop/pyOpenSSL-0.6 ironfroggy$ python setup.py

Re: any Templating system help

2007-11-30 Thread Ravi Kumar
I havent looked much into string.template . I think i will have to now. I went trying MAKO, Cheetah, Genshi and some others too. But in less time, I got confused. I didn;t need a total language. Rather I just want to write my xHTML/CSS/JS in a page with embedded placeholders like ${variableName} or

Re: Oh no, my code is being published ... help!

2007-11-30 Thread Eduardo O. Padoan
On Nov 30, 2007 11:18 AM, Peter Decker <[EMAIL PROTECTED]> wrote: > On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote: > > > You also have a couple of instances of: > > print("Error Squeezing %s...") > > > > The parentheses serve no purpose here, and are unidiomatic. > > I thought

Re: Oh no, my code is being published ... help!

2007-11-30 Thread Peter Decker
On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote: > You also have a couple of instances of: > print("Error Squeezing %s...") > > The parentheses serve no purpose here, and are unidiomatic. I thought that with the eventual dropping of 'print' as a statement in Python 3, that writ

Re: Different kinds of Import Errors

2007-11-30 Thread Thomas Guettler
Sorry, but this does not work. If there is an ImportError during importing the existing module, it won't get inserted into sys.modules. I just tried it with a small example. An other solution would be to inspect the traceback. If the app_name+'.management' is in it, it exists. Graham Dumpleton sc

Re: Bundling Python on Mac

2007-11-30 Thread Diez B. Roggisch
Benjamin schrieb: > On Nov 29, 2:34 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> Benjamin schrieb: >> >>> Hello, I'm writing a Python/PyQt application. For my Mac distribution. >>> I would like to include all the needed libraries in the Mac bundle. >>> How should I go about doing this? >> T

CSharifi

2007-11-30 Thread CVC
C-Sharifi Cluster Engine: The Second Success Story on "Kernel-Level Paradigm" for Distributed Computing Support Contrary to two school of thoughts in providing system software support for distributed computation that advocate either the development of a whole new distributed operating system (like

Re: python vs pythonw

2007-11-30 Thread has
On 30 Nov, 06:16, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > New to mac. I have leopard. What's the difference between python and > > pythonw? So far (which isn't very far) I can't tell the difference. > > IIUC, pythonw is linked with the WindowManager library, so it can do > GUI operatio

Re: reading raw variables from file

2007-11-30 Thread Francesco Guerrieri
On Nov 30, 2007 5:57 AM, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I have a file that might contain literal python variable statements at > every line. For example the file info.dat looks like this: > users = ["Bob", "Jane"] > status = {1:"ok",2:users[0]} > the problem is I want to read this fi

Re: Donloadin mail on the background

2007-11-30 Thread James Matthews
Use threads or sub processes On Nov 29, 2007 9:17 PM, Francesco Pietra <[EMAIL PROTECTED]> wrote: > Dennis: > > Why am I using web-based email? As I work on several machines scp linked. > I > find often useful to see the same mail on different machines around, > without > downloading anything, ju

Re: Benchmark...

2007-11-30 Thread James Matthews
Google and wikipedia! On Nov 30, 2007 9:39 AM, ArShAm Shirvani <[EMAIL PROTECTED]> wrote: > Hi > I need a benchmark for speed , comparing with other languages > > Regards > Arsham > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://search.goldwatches.com/?Search=Movado+Wa

Re: reading raw variables from file

2007-11-30 Thread Bruno Desthuilliers
Martin Blume a écrit : > "Astan Chee" schrieb >> I have a file that might contain literal python >> variable statements at every line. For example >> the file info.dat looks like this: >> users = ["Bob", "Jane"] >> status = {1:"ok",2:users[0]} >> the problem is I want to read this file and load

Re: Witch editor to use!

2007-11-30 Thread Bruno Desthuilliers
Carl Banks a écrit : > On Nov 30, 4:40 am, Ant <[EMAIL PROTECTED]> wrote: >> On Nov 30, 9:10 am, SMALLp <[EMAIL PROTECTED]> wrote: (snip) >>> And if editor is bether choice witch one to use! >> One with a spell checker would be a good start. > > Punny. indeed !-) -- http://mail.python.org/mail

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Hi! Sorry, I don't understand english. But, with Babelfish-translation, I recovered essence... (you should learn French ; yes! yes! yes!) > I'm glad you found a solution Thank you for your solicitude > if that executable doesn't honour the wait I have just try on another CPU, with a very

Re: Oh no, my code is being published ... help!

2007-11-30 Thread Bruno Desthuilliers
Tim Roberts a écrit : > rm <[EMAIL PROTECTED]> wrote: (snip) > You also have a couple of instances of: > print("Error Squeezing %s...") > > The parentheses serve no purpose here, and are unidiomatic. And FWIW, error messages should go to sys.stderr, not to sys.stdout which is for normal prog

Re: reading raw variables from file

2007-11-30 Thread Martin Blume
"Astan Chee" schrieb > I have a file that might contain literal python > variable statements at every line. For example > the file info.dat looks like this: > users = ["Bob", "Jane"] > status = {1:"ok",2:users[0]} > the problem is I want to read this file and load > whatever variables written in

Re: PIL + show() + Vista

2007-11-30 Thread Tim Golden
Méta-MCI (MVP) wrote: > Hi, Tim! > > You are right, for shimgvw.dll (on XP / 2000, or some Vista). But > others Vista (ou users practice) had associate images with > WindowsPhotoGallery.exe. > > But shimgvw.dll already exist. > > I found that this line: > > command = 'start "%s"

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Hi, Tim! You are right, for shimgvw.dll (on XP / 2000, or some Vista). But others Vista (ou users practice) had associate images with WindowsPhotoGallery.exe. But shimgvw.dll already exist. I found that this line: command = 'start "%s" /wait %s\\System32\\rundll32.exe %s\\System3

Re: Witch editor to use!

2007-11-30 Thread Carl Banks
On Nov 30, 4:40 am, Ant <[EMAIL PROTECTED]> wrote: > On Nov 30, 9:10 am, SMALLp <[EMAIL PROTECTED]> wrote: > > > Hello! > > > I'm new in wxPython and before i start doing anything I have one qustion. > > > Shoul I use some of editors like boa, spe or shoud i use my favorite > > text editor! > > > i

Re: PIL + show() + Vista

2007-11-30 Thread Tim Golden
Méta-MCI (MVP) wrote: > Re! > > I have found the problem. On Vista, the Windows-Photo-Galery (soft > default displayer) don't wait. Even with START /WAIT (in Image.py & > _showxv), it don't wait. > > Then, like the preview don't wait, the (next) "DEL" run prior the end of > the launch of th

Re: python vs pythonw

2007-11-30 Thread Ant
On Nov 30, 3:30 am, John Velman <[EMAIL PROTECTED]> wrote: > New to mac. I have leopard. What's the difference between python and > pythonw? So far (which isn't very far) I can't tell the difference. > > I have a small application using TKinter that I was working on under > Linux. Both python

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Re! I have found the problem. On Vista, the Windows-Photo-Galery (soft default displayer) don't wait. Even with START /WAIT (in Image.py & _showxv), it don't wait. Then, like the preview don't wait, the (next) "DEL" run prior the end of the launch of the software ; and Windows-Photo-Galery d

Re: Science list

2007-11-30 Thread J. Robertson
Hi, A.T.Hofkamp wrote: > So what is the focus in the list? > > I think 'science' is both too broad and in many cases not at all relevant for > the problem at hand. > > [snip] > > Any particular brand of science (CS, Math, Physics, Bio, Chemistry, other)? > > Should I use Python for programmin

Re: Witch editor to use!

2007-11-30 Thread Ant
On Nov 30, 9:10 am, SMALLp <[EMAIL PROTECTED]> wrote: > Hello! > > I'm new in wxPython and before i start doing anything I have one qustion. > > Shoul I use some of editors like boa, spe or shoud i use my favorite > text editor! > > i used IDLE on windows and it seamd nice. Now i have linux install

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Hi! Not a true solution ; because people who don't have IrfanView don't use it. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

python newbie - question about lexical scoping

2007-11-30 Thread Matt Barnicle
hi everyone.. i've been chugging along learning python for a few months now and getting answers to all needed questions on my own, but this one i can't figure out nor can i find information on the internet about it, possibly because i don't understand the right words to type into google.. i ha

Re: Witch editor to use!

2007-11-30 Thread limodou
On Nov 30, 2007 5:10 PM, SMALLp <[EMAIL PROTECTED]> wrote: > Hello! > > I'm new in wxPython and before i start doing anything I have one qustion. > > Shoul I use some of editors like boa, spe or shoud i use my favorite > text editor! > > i used IDLE on windows and it seamd nice. Now i have linux in

Witch editor to use!

2007-11-30 Thread SMALLp
Hello! I'm new in wxPython and before i start doing anything I have one qustion. Shoul I use some of editors like boa, spe or shoud i use my favorite text editor! i used IDLE on windows and it seamd nice. Now i have linux installed on my mashine and boa works, spe wont start, IDLE crashes when

Re: How to Split a String

2007-11-30 Thread Marc 'BlackJack' Rintsch
On Thu, 29 Nov 2007 12:12:20 -0800, Siah wrote: > I need to convert the string: '(a, b, "c", d, "e")' into the following > list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader does. I usually > use the split function, but this mini-monster wouldn't properly get > split up due to those random quo

Re: Gnu/Linux dialogue boxes in python

2007-11-30 Thread Donn Ingle
Paul Boddie wrote: > I didn't proceed any > further than a simple wrapping around KDialog, Zenity and Xdialog, > since the aim is to cover more than the usual UNIX-like platforms. > However, I could make that code available separately Thanks for the feedback and the links. I'd like to use your code

Re: Bundling Python on Mac

2007-11-30 Thread Benjamin
On Nov 30, 6:48 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Benjamin schrieb: > > > On Nov 29, 2:34 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> Benjamin schrieb: > > >>> Hello, I'm writing a Python/PyQt application. For my Mac distribution. > >>> I would like to include all the n

Re: Announcing Apydia

2007-11-30 Thread Daniel Fetchinson
> Today, I am very excited to announce the first release of the Apydia > API reference documentation generator for Python. It's designed as an > instantly serviceable replacement for Pudge's API documentation > generator. It won't generate complete websites from reST etc. like > Pudge does, though

Re: Gnu/Linux dialogue boxes in python

2007-11-30 Thread Donn Ingle
> [1] http://www.python.org/pypi/desktop Oh, just saw this link and fetched the code -- will have a look around. \d -- http://mail.python.org/mailman/listinfo/python-list

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Matt Nordhoff
Tim Chase wrote: > (You'd think this was the Lisp ML, not Python... ) Atsp? :-) -- -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL + show() + Vista

2007-11-30 Thread Tim Golden
Méta-MCI (MVP) wrote: [Excuse my execrable French below] > Sorry, I don't understand english. But, with Babelfish-translation, I > recovered essence... > (you should learn French ; yes! yes! yes!) Vraiment! > I have just try on another CPU, with a very new Vista-premium > (configuration of

Re: Can't Find Headers on OSX

2007-11-30 Thread Diez B. Roggisch
Calvin Spealman schrieb: > I'm still on 10.4 and I'm trying to build pyOpenSSL, but I'm failing > with Python.h trying to include and failing to find any of the shared > libraries. I can't figure this one out because i just don't compile > anything non trivial often. > > ironfroggy:~/Desktop/pyOpe

Re: reading raw variables from file

2007-11-30 Thread MonkeeSage
On Nov 30, 10:05 am, "Martin Blume" <[EMAIL PROTECTED]> wrote: > "Bruno Desthuilliers" schrieb > > > > > >> I have a file that might contain literal python > > >> variable statements at every line. For example > > >> the file info.dat looks like this: > > >> users = ["Bob", "Jane"] > > >> status =

Gnu/Linux dialogue boxes in python

2007-11-30 Thread Donn Ingle
Hi, Okay, so I am in the mood to try this: Inform the user about what modules the app requires in a graphical dialogue that can vary depending on what the system already has installed. (It will fail-to output on cli) I am running Kubuntu and I seem to have 'kdialog' installed by default (not sure

ANN: A Primer on Python for Life Science Researchers

2007-11-30 Thread Sebastian Bassi
I'm happy to report the release of a PLOS paper: "A Primer on Python for Life Science Researchers". It is a six page education paper introducing Python. If you have a friend that is a researchers in a biological area and you think that he may need to know Python, please send him this e-mail: URL:

Re: Global variables within classes.

2007-11-30 Thread Bruno Desthuilliers
Kevac Marko a écrit : > On Nov 10, 8:39 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> Don't think so. It's a surprise for many but then class attributes are >> not that common in code or they even use this "gotcha" for >> immutable default values. As long a the value isn't changed th

Re: Global variables within classes.

2007-11-30 Thread Bruno Desthuilliers
Donn Ingle a écrit : (about class attributes, instance attributes and lookup rules) > Okay, I sort of see that. It's not a property For clarity, better s/property/attribute/ here. In Python, property is a builtin class used for computed attributes. > of 'j' so it looks upwards > into the class.

Re: Global variables within classes.

2007-11-30 Thread MarkE
> Kevac Marko <[EMAIL PROTECTED]> writes: > > When changing default value, is there any way to change class > > attribute and all referenced attributes too? > > > class M: > > name = u"Marko" > > > a, b = M(), M() > > a.name = u"Kevac" > > print M.name, a.name, b.name > > -> Marko Kevac Marko >

Re: Witch editor to use!

2007-11-30 Thread James Matthews
Eric On Nov 30, 2007 12:26 PM, Bruno Desthuilliers < [EMAIL PROTECTED]> wrote: > Carl Banks a écrit : > > On Nov 30, 4:40 am, Ant <[EMAIL PROTECTED]> wrote: > >> On Nov 30, 9:10 am, SMALLp <[EMAIL PROTECTED]> wrote: > > (snip) > > >>> And if editor is bether choice witch one to use! > >> One with

Re: Accessing a URL file Remotely

2007-11-30 Thread James Matthews
Once you use urlopen you can read the website like a file On Nov 30, 2007 10:58 AM, mcl <[EMAIL PROTECTED]> wrote: > On 29 Nov, 22:32, TheSeeker <[EMAIL PROTECTED]> wrote: > > On Nov 29, 3:13 pm, mcl <[EMAIL PROTECTED]> wrote: > > > > > > > > > I have been given a url ofCSVfile (http://hostname/d

Re: Crackly sound in pygame

2007-11-30 Thread alain
On Nov 30, 4:33 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hey guys I am running Windows XP and am having an issue with a game > that my team has created. Whenever an audio file is played it creates > a very distorted, crackly sound. Any ideas what could be the issue? > > Thanks No, an

Re: "Python" is not a good name, should rename to "Athon"

2007-11-30 Thread Hendrik van Rooyen
"John Machin" wrote: > Pythons are good snakes; they hypnotise the meaninglessly chattering > bandarlog and eat them. Beware! What is a bandarlog - I know the bandersnatch and the boojum, but bandarlog? If it is something you can knit - If I get you the wool, will you make me one? - Hendrik

Donloadin mail on the background

2007-11-30 Thread Francesco Pietra
Dennis: Why am I using web-based email? As I work on several machines scp linked. I find often useful to see the same mail on different machines around, without downloading anything, just to set up the files on-the-fly for local trial computation before sending a calculation to the mainframe. That

  1   2   >