Re: graphical or flow charting design aid for python class development?

2005-09-01 Thread Paul McGuire
It's not free, but it is pretty cheap considering all it can do. Check out Enterprise Architect (with the free add-in for Python) from www.sparxsystems.com.au. Pro version license is US$180 or so, but they may have a student license for less that you could use. -- Paul -- http://mail.python.or

Python 2.4 decompiler

2005-09-01 Thread a a
A brand new python 2.4 bytecode decompiler has been released. The compiling service is now available and includes features to check the correctness of the output. Those who need the service can contact us at [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Well, Python is hard to learn...

2005-09-01 Thread wen
due to the work reason, i have to learn python since last month. i have spent 1 week on learning python tutorial and felt good. but i still don't understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/) as before. it sucks. anybody do the same thing as i am doing? i wanna seek a

cgi, reusing html. common problem?

2005-09-01 Thread John M. Gabriele
I'm putting together a small site using Python and cgi. (I'm pretty new to this, but I've worked a little with JSP/servlets/Java before.) Almost all pages on the site will share some common (and static) html, however, they'll also have dynamic aspects. I'm guessing that the common way to build si

Re: Adding bound methods dynamically... CORRECTED

2005-09-01 Thread Diez B. Roggisch
> > Yes, but rather than going through the contortions you do to bind a > new method into place, why not make the method in question act as a > proxy for the real method? After all, with first-class functions, > that's easy. Because you don't have to write that proxy. Pure lazyness :) Diez --

Re: Yielding a chain of values

2005-09-01 Thread viridia
This is why my original proposal used the '*' operator rather than a keyword. The reasoning behind this is as follows: When calling a function, a parameter of the form "*expression" expands to a list of arguments. From the Python reference manual: "If the syntax '*expression' appears in the functi

Re: cgi, reusing html. common problem?

2005-09-01 Thread Diez B. Roggisch
John M. Gabriele wrote: > I'm putting together a small site using Python and cgi. > > (I'm pretty new to this, but I've worked a little with > JSP/servlets/Java before.) > > Almost all pages on the site will share some common (and > static) html, however, they'll also have dynamic aspects. > I'm

Re: Well, Python is hard to learn...

2005-09-01 Thread James
I don't know about you but I would not learn ANY decent programming language for a week and expect to know the idioms enough to understand the source of a large software written in it. -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Bryan Olson
Fredrik Lundh wrote: > Bryan Olson wrote: >> import pydoc >> help is pydoc.help >> > >> > False >> >>Say Fredrik, if you're going to proclaim "False" > > oh, I didn't proclaim anything. Python 2.4 did. False. ;) That was all you. > let's see what > Python 2.2 has to say about

'isa' keyword

2005-09-01 Thread talin at acm dot org
Although I realize the perils of even suggesting polluting the Python namespace with a new keyword, I often think that it would be useful to consider defining an operator for testing whether or not an item is a member of a category. Currently, we have the 'in' operator, which tests for membership

Re: 'isa' keyword

2005-09-01 Thread Paul Rubin
"talin at acm dot org" <[EMAIL PROTECTED]> writes: > membership within a container -- instead we're testing for membership > with a type hierarchy, where 'type' can be defined to mean whatever the > programmer wants. Well, if "type" means a (possibly infinite) set of objects, then you can use "in"

Re: Epydoc - Documenting class members?

2005-09-01 Thread Miki Tebeka
Hello Terry, [Miki] >> Is there a way to document class members in Epydoc? [Terry] > Yes. See additions below: > > > Something like: > > > > class Point: > """ > @ivar x: This is where you document x. > @ivar y: This is where you document y. > """ I don't like thi

Extended Language c++ in pyhton

2005-09-01 Thread elho
I found serveral tool for using C++ as extended languate in python - but what's the best / easiest to use? With C I used wrappy - not sure if it's the wright name, it's included since Python 1.6 and it ist pretty ease to use. You know an example with this util for C++ or isn't it possible for C

Re: Considering moving from PowerBuilder to Python

2005-09-01 Thread Bryan Olson
Norm Goertzen wrote: > I've posted a previous question about IDEs [...] Python is a fine scripting language; it isn't centered on a particular IDE, and doesn't really serve the same market as Powerbuilder. Building an app in Python is a far lower-level process than building one in Powerbuilder, a

Re: command line arguments

2005-09-01 Thread Jon Hewer
>What's the purpose of this utility? Is it to do something with the URL? >And the URL must always be specified? What about the name? Also >mandatory, or optional? The relationship between the two? its just a simple rss reader. i'm writing it almost purely just to get me using language (i'm le

Re: Improving my text processing script

2005-09-01 Thread Miki Tebeka
Hello pruebauno, > import re > f=file('tlst') > tlst=f.read().split('\n') > f.close() tlst = open("tlst").readlines() > f=file('plst') > sep=re.compile('Identifier "(.*?)"') > plst=[] > for elem in f.read().split('Identifier'): > content='Identifier'+elem > match=sep.search(content) >

Re: HTML tags optimization [better learn CSS]

2005-09-01 Thread DENG
I know very well Tidy, sir Tidy do a nice job but it is writen in Java, and have Python ported my aim is to learn Python, learn how to program I know many people write "hello the world" in 2005, why I can not write this program in 2005? you are french, right? peut etre we can talk about it in e

Is my thread safe from premature garbage collection?

2005-09-01 Thread NutJob
Hello all, I'm aware that in Python an object is cleared for garbage collection as soon as the last reference to it disappears. Normally this is fine. However, in my current project I'm creating a bunch of threads which are supposed to run until they've completed their run() method, and I'm worrie

Re: Well, Python is hard to learn...

2005-09-01 Thread NutJob
Well, I reckon it all depends on how much experience you have with programming languages in general. If you're completely new to programming it's probably going to take a while to get to grips with it all, regardless of which language you're picking up, although I'd wager that Python is still one o

Re: Python Asynchronous I/O library (pyasynchio) [currently win-only]

2005-09-01 Thread Fredrik Lundh
Vladimir Sukhoy wrote: > This Python library is created to support asynchronous I/O > (Input/Output) operations. Unlike most platform-independent asynch I/O > libraries, pyasynchio is simple. You do not have to know much about > programming and anything about AIO in particular to use pyasynchio. >

Re: using python_ldap for authentication

2005-09-01 Thread jeanmarc.pouchoulon
> but it seems to succeed whatever the password I'm providing :-( > > How to simply assess the binding really occured ? It should work... If you are anxious have a look to your ldapserver logs, you can see the bind . Try with an account that have modify rights et do a modify request if it fails

Re: OpenSource documentation problems

2005-09-01 Thread Xah Lee
By the way, i have sent my criticisms to the proper python doc maintainer or mailing list several months ago. - i'm very sorry to say, that the Python doc is one of the worst possible in the industry. I'm very sick of Perl and its intentional obfuscation and juvenile drivel style of i

Re: Well, Python is hard to learn...

2005-09-01 Thread Alessandro Bottoni
wen wrote: > due to the work reason, i have to learn python since last month. i have > spent 1 week on learning python tutorial and felt good. but i still don't > understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/) > as before. > > it sucks. No, please, don't say that. It

Re: HTML tags optimization [ interesting problem]

2005-09-01 Thread DENG
I know very well Tidy, sir Tidy do a nice job but it is writen in Java, and have Python ported my aim is to learn Python, learn how to program I know many people write "hello the world" in 2005, why I can not write this program in 2005? you are french, right? peut etre we can talk about it in e

Win32: Possible to use Python to create Snap-Ins for MMC?

2005-09-01 Thread Harlin Seritt
Is it possible to use Python to create snapins for the MMC? Thanks, Harlin Seritt Internet Villa: www.seritt.org -- http://mail.python.org/mailman/listinfo/python-list

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-09-01 Thread Alan Kennedy
[Alan Kennedy] >> ... PCW ran a story this time last year >> about Michael Sparks, python and python's use in the BBC's future >> distribution plans for digital TV. [Paul Boddie] > Well, I didn't even notice the story! ;-) Here's the message I posted here at the time http://groups.google.com/gro

Re: Is my thread safe from premature garbage collection?

2005-09-01 Thread fraca7
[EMAIL PROTECTED] a écrit : > Anyway, if anyone could make a definite statement on whether threads > are safe from unwanted garbage collection, that'd be really great. > Thanks in advance for any helpful replies! As far as I know, the threading module keeps a reference around for each thread, un

Re: Is my thread safe from premature garbage collection?

2005-09-01 Thread Benjamin Niemann
[EMAIL PROTECTED] wrote: > Hello all, > > I'm aware that in Python an object is cleared for garbage collection as > soon as the last reference to it disappears. Normally this is fine. > However, in my current project I'm creating a bunch of threads which > are supposed to run until they've comple

Re: Is my thread safe from premature garbage collection?

2005-09-01 Thread NutJob
Splendid! =) Thanks guys! -- http://mail.python.org/mailman/listinfo/python-list

pexpect.exitstatus not working?

2005-09-01 Thread Laszlo Zsolt Nagy
This function: def scp(from_path,to_path,pwd): """Copy a file with scp.""" cmd = '/bin/csh -c "scp -q %s %s ; echo XXX"' %(from_path,to_path) print cmd child = pexpect.spawn(cmd) child.expect('Password:') child.sendline(pwd) child.expect('XXX') return child.exi

Re: To the python-list moderator

2005-09-01 Thread Fredrik Lundh
Terry Hancock wrote: > I got one of these too, recently. Maybe somebody is turning up the > screws to get rid of spam that's been appearing on the list? I've been getting these about once a day lately. at first, I suspected some kind of "you're posting to quickly"-filter with a manual "okay, yo

Decrypting GPG/PGP email messages

2005-09-01 Thread Alessandro Bottoni
I know you will shake you head sadly but... I really have to perform such a suicidal task (even if for a short time and just for internal use). I have to send by email (over the open internet) a XML file containing _system commands_ (yes: the kind of stuff like "rm -dfr /") to a server and have a

Re: Extended Language c++ in pyhton

2005-09-01 Thread Roman Yakovenko
Decide your self: http://seal.web.cern.ch/seal/snapshot/work-packages/scripting/evaluation-report.html My recomendation is boost.python. If you choose boost.python then there are a few code generator tools for it. One of them is pyplusplus ( see http://pygccxml.sourceforge.net/pyplusplus/pyplusp

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-09-01 Thread Alan Kennedy
[Alan Kennedy] >>IMHO, there is a great opportunity here for the python community: > > [...] > >>Surely that's worth a simple team name, for mnemonic purposes >>if nothing else. Something different or unusual, like one of my >>favourites, "Legion of the Bouncy Castle", who are a group of Java

Re: Decrypting GPG/PGP email messages

2005-09-01 Thread Paul Rubin
Alessandro Bottoni <[EMAIL PROTECTED]> writes: > 1) What would you use to decrypt the messages? The GPG module created by > Andrew Kuchling is declared "incomplete" and "no more maintained" on his > web pages (http://www.amk.ca/python/code/gpg) so I think it is out of the > game. I think I'd just

Open-Office ; Python & Win (plain/text)

2005-09-01 Thread Do Re Mi chel La Si Do
Open-Office 2.0 bêta-2 français pour Windows (en fait, la 1.9.125 ) est sortie. Vous la trouverez là : http://oootranslation.services.openoffice.org/pub/OpenOffice.org/2.0beta2rc/OOo_2.0beta2_Win32Intel_install_fr.zip Je cite ce lien, car j'ai réussi à piloter Open-Office, depuis Python, avec

Re: Code run from IDLE but not via double-clicking on its *.py

2005-09-01 Thread Richie Hindle
[n00m] > D:\>python23\python d:\python23\socket6.py [Enter] > > It's OK so far. Python code is launched and starts listening > to port 1434 (see the code below; it's the same code as in my > neibouring topic). > Now I launch a vbs script (which will connect to port 1434). > I.e. I just double-cli

Re: Decrypting GPG/PGP email messages

2005-09-01 Thread Benjamin Niemann
Alessandro Bottoni wrote: > I know you will shake you head sadly but... I really have to perform such > a suicidal task (even if for a short time and just for internal use). > > I have to send by email (over the open internet) a XML file containing > _system commands_ (yes: the kind of stuff li

Re: OpenSource documentation problems

2005-09-01 Thread Xah Lee
On Python's Documentation Xah Lee, 20050831 I'm very sorry to say, that the Python doc is one of the worst possible in the industry. I'm very sick of Perl and its intentional obfuscation and juvenile drivel style of its docs. I always wanted to learn Python as a replacement of Perl, and this year

Re: pexpect.exitstatus not working?

2005-09-01 Thread Laszlo Zsolt Nagy
Laszlo Zsolt Nagy wrote: >This function: > >def scp(from_path,to_path,pwd): >"""Copy a file with scp.""" >cmd = '/bin/csh -c "scp -q %s %s ; echo XXX"' %(from_path,to_path) >print cmd >child = pexpect.spawn(cmd) >child.expect('Password:') >child.sendline(pwd) >child

Re: Python doc problems example: gzip module

2005-09-01 Thread Xah Lee
nothing personal my friend. But just in case you are interested about getting it: the question here is about quality of documentation, not about whether you got it. http://xahlee.org/UnixResource_dir/writ/python_doc.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ Sybren Stuvel wrote: > Xah Le

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-09-01 Thread Stefan Rank
> [snipped alot from others about indexing, slicing problems, > and the inadequacy of -1 as Not Found indicator] on 31.08.2005 16:16 Ron Adam said the following: > The problem with negative index's are that positive index's are zero > based, but negative index's are 1 based. Which leads to a no

py2exe and output executable name

2005-09-01 Thread Miki Tebeka
Hello All, Is there a way to tell py2exe to create an executable with arbirary name? Currently the executable name is the script name with .exe suffix. Thanks. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The

Re: py2exe and output executable name

2005-09-01 Thread Thomas Heller
Miki Tebeka <[EMAIL PROTECTED]> writes: > Hello All, > > Is there a way to tell py2exe to create an executable with arbirary name? > Currently the executable name is the script name with .exe suffix. See the advanced sample in lib/site-packages/py2exe/samples/advanced. The executable name is defi

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-09-01 Thread Richie Hindle
[Alan] > SpamBayes has won the Personal Computer World (pcw.co.uk) Editors Choice > award for anti-spam software Yay! Do we get one of those cheesy medals to put on our website? 8-) -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: py to exe: suggestions?

2005-09-01 Thread Fredrik Lundh
Ivan Shevanski wrote: > Not sure if you already got the answer to this lol but since this is one > thing about python i do know how to do, use CXFreeze. Its basicly a > combination of all the programs you have already tryed. Works great for me > =D sorry I dont have a link, just google it. it's

Re: Python built email message doesn't support OutLook Express

2005-09-01 Thread praba kar
--- "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > That is not what Sybren requested - we need the > message text. If you > send html, make sure your paragraphs are html > paragraphs (enclosed in > -tags) and not pure whitespace, as html ignores > these. > I am sending text message as a paragra

Re: how to join two Dictionary together?

2005-09-01 Thread Terry Reedy
Read the list of dict methods at http://docs.python.org/lib/typesmapping.html Every Pythoneer should read LibRef c.2 at least once and either refer back to it or use help() to refresh memory of available methods. Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: Sockets: code works locally but fails over LAN

2005-09-01 Thread Fredrik Lundh
"n00m" <[EMAIL PROTECTED]> wrote: > PEOPLE, WHY ON THE EARTH IT DOES NOT WORK OVER LAN ??? what happens if you change s1.bind((host, port)) to s1.bind(("", port)) ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Bicycle Repair Man usability

2005-09-01 Thread Gregory Piñero
How would you setup BRM in VIM?  And bonus points for explaining it for Windows users ;-)  > I recently got PyDev for Eclipse, which comes with BRM.I use it from VIM. -- Gregory PiñeroChief Innovation OfficerBlended Technologies(www.blendedtechnologies.com) -- http://mail.python.org/mailman/list

Re: Sockets: code works locally but fails over LAN

2005-09-01 Thread John Hazen
* n00m <[EMAIL PROTECTED]> [2005-08-31 05:45]: > import socket, thread > host, port = '192.168.0.3', 1434 > s1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s2 = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > s2.connect((host, 1433)) > s1.bind((host, port)) I think the problem is that

Re: OpenSource documentation problems

2005-09-01 Thread Fredrik Lundh
Steve Holden wrote: > I agree that maintaining documentation is a generic problem of the open > source world, but it's a sad fact of life that generally people are > better-motivated to complain about documentation (and almost everything > else) than to help improve it. another problem is that to

Re: Extended Language c++ in pyhton

2005-09-01 Thread Phil Thompson
> Decide your self: > > http://seal.web.cern.ch/seal/snapshot/work-packages/scripting/evaluation-report.html A shame that it's so out of date. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: global interpreter lock

2005-09-01 Thread Peter Hansen
Dennis Lee Bieber wrote: > On Thu, 01 Sep 2005 06:15:38 GMT, Bryan Olson <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: >>With Python threads/queues how do I wait for two queues (or > > Why have two queues? Use one queue and tag the items with the > sender's "id" (or retu

Re: OpenSource documentation problems

2005-09-01 Thread Paul Boddie
Xah Lee wrote: > The "Language Reference" section (subtitled "for language > lawyers") needs to be replaced by human-readible descriptions of > Python's functions. For exapmle, in the style of official Java doc > (http://java.sun.com/j2se/1.4.2/docs/api/index.html). Nope. The Java documentation yo

Re: command line arguments

2005-09-01 Thread Peter Hansen
Jon Hewer wrote: >>What's the purpose of this utility? Is it to do something with the URL? >>And the URL must always be specified? What about the name? Also >>mandatory, or optional? The relationship between the two? > > > its just a simple rss reader. i'm writing it almost purely just to >

Extend Python

2005-09-01 Thread Tommy . Ryding
Hi All I have a problem with extentions of Python. Background: I'm workin within a large industrial control system and I have created a Port for VxWorks. In the system we have different permissions depending on which state the controller is in. To perform some actions in some states may even injur

Re: cgi, reusing html. common problem?

2005-09-01 Thread Fuzzyman
On Thu, 01 Sep 2005 03:10:07 -0400, "John M. Gabriele" <[EMAIL PROTECTED]> wrote: >I'm putting together a small site using Python and cgi. > >(I'm pretty new to this, but I've worked a little with >JSP/servlets/Java before.) > >Almost all pages on the site will share some common (and >static) html

Re: Considering moving from PowerBuilder to Python

2005-09-01 Thread Wolfgang Keller
> Also, can I use Sybase's SQL Anywhere with Python? > > I'm really only interested in programming for Windows XP. But I also really > would like to find something very close to Sybase's patented datawindow > technology -- it's a real time-saver. > > Finally, is there any (realistic) way to mix

Re: 'isa' keyword

2005-09-01 Thread Fuzzyman
On 1 Sep 2005 00:52:54 -0700, "talin at acm dot org" <[EMAIL PROTECTED]> wrote: >Although I realize the perils of even suggesting polluting the Python >namespace with a new keyword, I often think that it would be useful to >consider defining an operator for testing whether or not an item is a >mem

The penis is way too delicate for masturbation

2005-09-01 Thread dgr140
. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in string.find

2005-09-01 Thread Fredrik Lundh
Ron Adam wrote: > The problem with negative index's are that positive index's are zero > based, but negative index's are 1 based. Which leads to a non > symmetrical situations. indices point to the "gap" between items, not to the items themselves. positive indices start from the left end, negat

Re: Well, Reading is hard to learn...

2005-09-01 Thread bruno modulix
wen wrote: > due to the work reason, i have to learn python since last month. i have > spent 1 week on learning python tutorial and felt good. but i still don't > understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/) > as before. > > it sucks. > I have spent 1 week on learn

Re: Inline::Python, pyperl, etc.

2005-09-01 Thread Felix Schwarz
Eli Stevens (WG.c) wrote: > PyPerl 1.0.1 > http://wiki.python.org/moin/PyPerl > > The interest in these projects seems to have died off about 2001, > however. That, or they simply haven't needed to be updated for the last > few Python versions. > > I've bumped into some snags with pyperl (can

Re: HTML tags optimization [better learn CSS]

2005-09-01 Thread bruno modulix
DENG wrote: > I know very well Tidy, sir > > Tidy do a nice job but it is writen in Java, Seems like we're not talking about the same program here. Tidy (aka HTMLTidy) is written in C. You must be talking about it's Java port JTidy. > and have Python ported > > my aim is to learn Python, learn

Creating custom event in WxPython

2005-09-01 Thread NutJob
Hello, I'm faced with the following problem: I have a (secondary) thread that monitors a socket for incoming message traffic using the select.select() function. Besides that I also have the main thread of my WxPython application. So far so good. Now when my socket thread detects an incoming mess

Re: Code run from IDLE but not via double-clicking on its *.py

2005-09-01 Thread n00m
It's soo pity I'm too buzy at my work today. I'll reply a bit later. Thank you, guys! PS Port 1433 SQL Server listens to. PPS SQL Server is a rdbms from M$. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is my thread safe from premature garbage collection?

2005-09-01 Thread Sion Arrowsmith
In article <[EMAIL PROTECTED]>, Benjamin Niemann <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> However, in my current project I'm creating a bunch of threads which >> are supposed to run until they've completed their run() method, and I'm >> worried that if I do not keep references to th

Re: Well, Reading is hard to learn...

2005-09-01 Thread Paul Boddie
bruno wrote: > > I have spent 1 week on learning reading and felt good. but I still don't > understand most part of Emmanuel Kant's writings. > Monty Python really missed out there: cut to a sketch featuring three year olds discussing Kant. ;-) Paul -- http://mail.python.org/mailman/listinfo/

Re: Extend Python

2005-09-01 Thread tooper
PyQT is using SIP to wrap Qt : looks nice and works great for PyQt which is a quite big wrapping. Never had the occation to use it myself however, except for this. -- http://mail.python.org/mailman/listinfo/python-list

scroll a frame to display several lines of widgets at a time

2005-09-01 Thread William Gill
I need to display a couple of labels and a checkbox from each entry in my database. Simple enough, but there are several hundred records, and I only want to display 5 or 10 at a time. Can this be accomplished by putting everything in a Frame(), using width, height, grid_propagate(0) , and a s

Re: Creating custom event in WxPython

2005-09-01 Thread Sion Arrowsmith
<[EMAIL PROTECTED]> wrote: >Now when my socket thread detects an incoming message, I need my main >thread to interpret the message and react to it by updating the GUI. >IMO the best way to achieve this is by having my socket thread send a >custom event to my application's event loop for the main t

Re: Considering moving from PowerBuilder to Python

2005-09-01 Thread malv
Norm Goertzen wrote: > I've posted a previous question about IDEs and got some good feedback, > thanks, but it does seem that everyone has their own favourite IDE -- in > other words, no IDE was repeatedly recommended. > > So, is there any data on the popularity of IDEs (most users), or is > there

pickling the objects returned by array.array()

2005-09-01 Thread John Machin
Googling for "pickle array" in comp.lang.python yields old messages that show a PickleError -- plus one message where Alex Martelli writes "I am but an egg" :O) Looks like arrays are NOW (2.4.1) pickleable but not unpickleable -- see below. I appreciate that arrays are inherently not pickleable

Re: Extend Python

2005-09-01 Thread Tommy . Ryding
What is Qt? I have looked at PyQT and I can´t use it. I haven't tried it but the PyQT license makes the program useless. :( Any other suggestions? -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Asbjørn Sæbø
"Xah Lee" <[EMAIL PROTECTED]> writes: > I'm very sorry to say, that the Python doc is one of the worst possible > in the industry. [...] I suppose you are going to volounteer to fix it, then. Right? Asbjørn -- Asbjørn Sæbø, post.doc. Centre for Quantifiable Quality of Service in Communicatio

Re: OpenSource documentation problems

2005-09-01 Thread A.M. Kuchling
On 1 Sep 2005 05:04:33 -0700, Paul Boddie <[EMAIL PROTECTED]> wrote: > Please note that I'm not labelling you as a troll. No, he's simply barking mad. I was amused by a rec.arts.sf.written discussion [1] where Lee complains that Jonathan Swift (1667-1745)'s writing was unclear in style;

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

Re: graphical or flow charting design aid for python class development?

2005-09-01 Thread William Gill
Thanks everyone. I will explore all the suggestions, but it looks like SPE is the immediate answer. Bill William Gill wrote: > Being somewhat new to Python, and having a tendency to over complicate > things in my class design, I was wondering if anyone can suggest a > simple graphical or flow

Re: Creating custom event in WxPython

2005-09-01 Thread fraca7
[EMAIL PROTECTED] a écrit : > Now when my socket thread detects an incoming message, I need my main > thread to interpret the message and react to it by updating the GUI. > IMO the best way to achieve this is by having my socket thread send a > custom event to my application's event loop for the m

Python 2.2.1 DLL extension causes "abnormal program termination"

2005-09-01 Thread Hugh
Hello, Apologies if this has already been answered in here and I can't find it, but can anyone help with this problem? I hope the example code and comments state clearly enough what is happening, but if not, please ask me for further information. Thank in advance for any help. :-) Hugh #!/usr/bi

Error managment question (Trace Backs ?)

2005-09-01 Thread vpr
Hi This is a noob question, but here goes. I have a class that calls a function. class test: def __init__(self): if foo(): print "it worked" else: print "error" def foo(): some test returns 1 or 0 Now in other langs like C /

Re: OpenSource documentation problems

2005-09-01 Thread A.M. Kuchling
On Wed, 31 Aug 2005 19:57:00 GMT, Bryan Olson <[EMAIL PROTECTED]> wrote: > Since "help *is* pydoc.help, or at least...", the call could > show the same thing as help(pydoc.help), or at least inform the > user that more of the story is available from help(pydoc.help). But, given that the h

Re: Error managment question (Trace Backs ?)

2005-09-01 Thread Fredrik Lundh
"vpr" <[EMAIL PROTECTED]> wrote: > This is a noob question, but here goes. I have a class that calls a > function. > However I suspect in python that I can raise it and the class can catch > it ? the "errors and exceptions" chapter in the tutorial might be helpful: http://docs.python.org/tu

Re: OpenSource documentation problems

2005-09-01 Thread Rocco Moretti
Steve Holden wrote: > Every page of the docs links to "About this document", which contains > the following: """If you are able to provide suggested text, either to > replace existing incorrect or unclear material, or additional text to > supplement what's already available, we'd appreciate the

Re: Well, Python is hard to learn...

2005-09-01 Thread Rocco Moretti
wen wrote: > due to the work reason, i have to learn python since last month. i have > spent 1 week on learning python tutorial and felt good. but i still don't > understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/) > as before. Well, last time I checked, a good chunk of PyMo

Re: Python 2.2.1 DLL extension causes "abnormal program termination"

2005-09-01 Thread Fredrik Lundh
Hugh wrote: > Apologies if this has already been answered in here and I can't find > it, but can anyone help with this problem? > I hope the example code and comments state clearly enough what is > happening, but if not, please ask me for further information. > Thank in advance for any help. > #

Re: Extend Python

2005-09-01 Thread Ravi Teja
SIP is not a commercial product and is released on a different license than PyQt. >From the SIP docs (http://www.river-bank.demon.co.uk/docs/sip/sipref.html#license) 1.1 License SIP is licensed under the same terms as Python itself. SIP places no restrictions on the license you may apply to the

Re: OpenSource documentation problems

2005-09-01 Thread Fredrik Lundh
Rocco Moretti wrote: > Something a simple as allowing doc bugs to be submitted from a webform > w/o login would reduce the barrier to contribute. - Increasing the size > of the "About" text wouldn't hurt either. (To be honest, I've never > noticed that text before, and it never occurred to me look

Re: Python 2.2.1 DLL extension causes "abnormal program termination"

2005-09-01 Thread Hugh
Thank you very much. -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Rich Teer
On Thu, 1 Sep 2005, Asbjørn Sæbø wrote: > I suppose you are going to volounteer to fix it, then. Right? I wish he'd just volunteer to shut up--permanently. -- Rich Teer, SCNA, SCSA, OpenSolaris CAB member President, Rite Online Inc. Voice: +1 (250) 979-1638 URL: http://www.rite-group.com/ric

Re: OpenSource documentation problems

2005-09-01 Thread Paul Boddie
A.M. Kuchling wrote: > I was amused by a rec.arts.sf.written discussion [1] where Lee complains that > Jonathan Swift (1667-1745)'s writing was unclear in style; apparently he's > not aware > that conventions and styles change over time. Still, ill-founded assumptions about language could be much

Re: Extend Python

2005-09-01 Thread Jake Gittes
Try looking at ctypes - http://starship.python.net/crew/theller/ctypes/ On 1 Sep 2005 05:12:21 -0700, [EMAIL PROTECTED] wrote: >Hi All I have a problem with extentions of Python. > >Background: >I'm workin within a large industrial control system and I have created >a Port for VxWorks. In the sys

Re: Bug in string.find

2005-09-01 Thread Terry Reedy
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [slice] indices point to the "gap" between items, not to the items > themselves. > > positive indices start from the left end, negative indices from the > righept end. > > straight indexing returns the item just to th

Re: graphical or flow charting design aid for python class development?

2005-09-01 Thread gene tani
There's also this about giving source/class browsers a hand by sprinkling "isinstance()"'s in http://wingware.com/doc/intro/tutorial-sassist-with-classes I always encourage people to write up their experience/improessions in the python wiki: http://wiki.python.org/moin/PythonEditors (or the sepa

Re: Arguement error

2005-09-01 Thread Jeffrey Maitland
Found the error.  It was not in the code at all it has to do with the fact that the String module has a translate method and it was being used not the one I wrote. Thanks again.On 8/31/05, Terry Reedy <[EMAIL PROTECTED]> wrote: "Jeffrey Maitland" <[EMAIL PROTECTED]> wrote in messagenews:[EMAIL PR

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,wasRe: Bug in slice type

2005-09-01 Thread Terry Reedy
"Stefan Rank" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > on 31.08.2005 16:16 Ron Adam said the following: >> The problem with negative index's are that positive index's are zero >> based, but negative index's are 1 based. Which leads to a non >> symmetrical situations. > > Hea

Re: Is my thread safe from premature garbage collection?

2005-09-01 Thread Benjamin Niemann
Sion Arrowsmith wrote: > In article <[EMAIL PROTECTED]>, Benjamin Niemann <[EMAIL PROTECTED]> > wrote: >>[EMAIL PROTECTED] wrote: >>> However, in my current project I'm creating a bunch of threads which >>> are supposed to run until they've completed their run() method, and I'm >>> worried that i

Re: Code run from IDLE but not via double-clicking on its *.py

2005-09-01 Thread n00m
Dennis; Richie; >That sounds impossible, so I must be misunderstanding something. YOU - BOTH - UNDERSTAND ME ABSOLUTELY RIGHT! >1. >Start a new Command Prompt via Start / Programs / Accessories / Command >Prompt (or the equivalent on your machine) >2. >Type the following: d:\python23\python d:\pyt

Re: Python Asynchronous I/O library (pyasynchio) [currently win-only]

2005-09-01 Thread Vladimir Sukhoy
> (but I'm not sure writing large if-else trees and state machines is that > much easier than implementing hook methods, Yes, but the decision about how exactly to do that is up to library user. I tried to build library which can be easily plugged into existing code w/o need for serious reengineer

  1   2   3   >