PyChecker lives, version 0.8.15 released

2005-09-01 Thread Neal Norwitz
Special thanks to Ken Pronovici. He did a lot of work for this release and helped ensure it occurred. Version 0.8.15 of PyChecker is available. It's been over a year since the last release. Wow, time really does fly. Since it's been so long I'm sure I screwed something up, treat it

ANN: FarPy GUIE v0.0.1 - Python GUI Editor

2005-09-01 Thread [EMAIL PROTECTED]
I named this tool - FarPy GUIE, and is available at: http://farpy.holev.com/ This is a quote from the site: GUIE (GUI Editor) provides a simple WYSIWYG GUI editor for wxPython. The program was made in C# and saves the GUI that was created to a XML format I called GUIML. This GUIML is a pretty

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

2005-09-01 Thread Vladimir Sukhoy
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. Unlike, for example, famous

Re: change date format

2005-09-01 Thread Paul McGuire
Oh, please! Even the most lopsided, opinionated, um, person could have tried, oh, maybe, time as a possible module for this function? What next? Is there a module or class that will convert 'I have no shame. ' to upper case, AND trim the trailing whitespace? (Hint: it has to do with 'string'

Re: global interpreter lock

2005-09-01 Thread Bryan Olson
Mike Meyer wrote: Bryan Olson writes: System support for threads has advanced far beyond what Mr. Meyer dealt with in programming the Amiga. I don't think it has - but see below. In industry, the two major camps are Posix threads, and Microsoft's Win32 threads (on NT or better). Some

Re: global interpreter lock

2005-09-01 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: Sure. I tried to be helpful there, but maybe I need to be more specific. The ref from my previous post, Google-able as The C10K problem is good but now a little dated. That appears to be a discussion on squeezing the most out of a network server,

Re: Improving my text processing script

2005-09-01 Thread Paul McGuire
Even though you are using re's to try to look for specific substrings (which you sort of fake in by splitting on Identifier, and then prepending Identifier to every list element, so that the re will match...), this program has quite a few holes. What if the word Identifier is inside one of the

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 --

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

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

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 function

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 this: $ python2.2

'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. E.g, 3

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 this, I want to

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

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,

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

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) if

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

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

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

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

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 is

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

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

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,

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 completed

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.exitstatus

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, you're

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

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 cryptography

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 run gpg

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,

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-click

Re: Decrypting GPG/PGP email messages

2005-09-01 Thread Benjamin Niemann
posted mailed 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

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

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.expect('XXX')

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

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 non

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 defined

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 p-tags) and not pure whitespace, as html ignores these. I am sending text message as a paragraph

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)) ? /F -- 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) --

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 you're

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 be

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 return queue).

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 you're

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 get me

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

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, however,

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 member of

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, negative

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. joking I have spent 1 week on

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't

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 how

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

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 these thread

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

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

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

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 thread

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 a

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 Communication

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 depending on

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

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 main

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

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 / 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 help

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:

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 PyMol

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 at

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:

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 system

  1   2   3   >