[ANN] DOPAL 0.56 - Python library for Azureus

2006-03-13 Thread Allan Crooks
Summary: --- DOPAL is a library to allow programs written in Python to easily communicate the Java BitTorrent client Azureus, via the XML/HTTP plugin (allowing communication over a network). Changes: --- Version 0.56 is the third public release of DOPAL. One of the main changes is support

Champaign-Urbana (Central Illinois) Python User Group?

2006-03-13 Thread mbbx6spp
Hi, == Existence of Local User Groups == I am in the process of forming a Python User Group for Champaign-Urbana and surrounding areas, but I would like to make sure there is not already a very unpublicized (very, very hard to find) user group for Python in the area (Decatur, Bloomington or C-U

Announcing edupython list

2006-03-13 Thread Anna Ravenscroft
In order to facilitate small groups working on specific Python-in-Education projects, we have launched an edupython list on google groups(http://groups.google.com/group/edupython or [EMAIL PROTECTED]). We envision participation by people trying to coordinate work on the nuts and bolts

Re: __del__ not called?

2006-03-13 Thread Felipe Almeida Lessa
Em Seg, 2006-03-13 às 08:21 +0100, Gregor Horvath escreveu: Hi, I do not understand why __del__ does not get executed in the following example. It only collects when there are no references: class A(object): ... def __init__(self): ... print A's init ... def

Re: Class attributes newbie question (before I join a cargocult)

2006-03-13 Thread Peter Otten
EP wrote: This is likely a stupid question, There seems to be a cult believing that calling one's own question stupid magically diminishes its degree of stupidity. In reality, as a compiler would put it, code has no effect. but I am confused about what is going on with class attributes as

Re: python crashes in Komodo

2006-03-13 Thread Fredrik Lundh
swisscheese wrote: Using the Komodo IDE under XP I often get python.exe has encountered a problem and needs to close. Running python direct on the same app gives a list index out of bounds error. Any ideas how to get Komodo to give the proper error? is your application using any non-standard

Is this possible in Python?

2006-03-13 Thread alainpoint
Hi I wonder if Python is capable of the following: define a function which returns its argument. I mean: def magic_function(arg): .. some magic code ... that behaves the following way: assert magic_function(3+4)==3+4 assert magic_function([i for i in range(10)])==i for i in

Re: Is this possible in Python?

2006-03-13 Thread Paul Rubin
[EMAIL PROTECTED] writes: assert magic_function(3+4)==3+4 assert magic_function([i for i in range(10)])==i for i in range(10)] It is not trivial at all and might require some bytecode hacking that i am unable to do myself BUT you are the experts ;-) Guhhh... you'd want to use the traceback

Re: __del__ not called?

2006-03-13 Thread Gregor Horvath
Felipe Almeida Lessa schrieb: del B # We'll to tell him to collect the garbage here, but ... # usually it should not be necessary. Thanks. If I do del B then the __del__ of A gets called. That surprises me. I thought that B gets del'd by python when it goes out of scope? Do I manually

Re: generators shared among threads

2006-03-13 Thread Tim Peters
[Paul Rubin] It looks to me like you can't have two threads in the same generator: You can't even have one thread in a generator-iterator get away with activating the generator-iterator while it's already active. That's an example in PEP 255: Restriction: A generator cannot be resumed

Re: __del__ not called?

2006-03-13 Thread Duncan Booth
Gregor Horvath wrote: #!/usr/bin/python class A(object): def __init__(self): print init def __del__(self): print del test1.py #!/usr/bin/python import test class B(object): a = test.A() Running test1.py outputs: init the del is missing. I suppose

Re: __del__ not called?

2006-03-13 Thread Gregor Horvath
Duncan Booth schrieb: What is less obvious is that new style classes always include circular references, so a class is never detroyed until the garbage collector runs. Thanks. I tried the same example with old style classes and A.__del__ gets correctly called. Of course, if your __del__

Re: __del__ not called?

2006-03-13 Thread Tim Peters
[Duncan Booth] No, Python doesn't run the garbage collector when it is exiting. Actually, it does. What it doesn't do is call the garbage collector twice when it exits, although it used to ;-) What it does is to delete all the globals from each module in turn. So: Yup. The code is in

Re: Is this possible in Python?

2006-03-13 Thread Azolex
Paul Rubin wrote: [EMAIL PROTECTED] writes: assert magic_function(3+4)==3+4 assert magic_function([i for i in range(10)])==i for i in range(10)] It is not trivial at all and might require some bytecode hacking that i am unable to do myself BUT you are the experts ;-) Guhhh... you'd want

SSL/TLS - am I doing it right?

2006-03-13 Thread Frank Millman
Hi all I am writing a multi-user accounting/business application, which uses sockets to communicate between client and server. I want to offer the option of encrypting the traffic between the two. The main reason for this is to cater for wireless communication. I have read up on SSL, and more or

Re: Old Python Logo

2006-03-13 Thread Josef Meile
Can someone post a link or email me an image of the old Python logo? I'd like to save a copy of it, I rather liked it - very retro. the dot matrix logo ? you can get a copy from this page: That website is down. You could try the archive as well:

Re: Old Python Logo

2006-03-13 Thread Tim Parkin
Josef Meile wrote: Can someone post a link or email me an image of the old Python logo? I'd like to save a copy of it, I rather liked it - very retro. the dot matrix logo ? you can get a copy from this page: That website is down. You could try the archive as well:

Re: __del__ not called?

2006-03-13 Thread Duncan Booth
Gregor Horvath wrote: Of course, if your __del__ method actually does get invoked during program exit you have to be pretty careful what you do: the chances are any global variables you used in __del__ have already been destroyed in particular any modules you imported may have been deleted.

Re: Old Python Logo

2006-03-13 Thread Fredrik Lundh
Josef Meile wrote: you can get a copy from this page: That website is down. You could try the archive as well: http://web.archive.org/web/20050401015445/http://www.python.org/ it's down for maintenance, but it wasn't down when I posted that link... you don't have to use the archive, btw.

Re: __del__ not called?

2006-03-13 Thread Gregor Horvath
Duncan Booth schrieb: First off, never depend on __del__ to do anything critical. The only Thanks to all of you! Everything's clear now! -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this possible in Python?

2006-03-13 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: Hi I wonder if Python is capable of the following: define a function which returns its argument. I mean: def magic_function(arg): .. some magic code ... that behaves the following way: assert magic_function(3+4)==3+4 assert magic_function([i for i

Implement EJBs in Python/Jython

2006-03-13 Thread reinsn
Hi, I'd like to know, if it's possible to implement EJB bean classes in Python. I mean, Jython provides to possible to create *.class files from python modules. How must my python module look like to create a valid enterprise bean class from it. Thanks in advance, --

Re: Cheese Shop: some history for the new-comers

2006-03-13 Thread Max M
A.M. Kuchling wrote: On Sat, 11 Mar 2006 16:50:26 +1100, richard [EMAIL PROTECTED] wrote: So I did what people always do in this situation, I asked Barry Warsaw to name. it. And he did, Cheese Shop. I liked the name, so it was done. When the new pydotorg machines went live last year, so

Newbie - Running Commands Interactively

2006-03-13 Thread Chris Bingham
Hi everyone, I'm new to python, and I was wondering if anyone could help me with a couple of problems I've hit please? I'm trying to write a wrapper script for the passwd command, so that we can log everytime someone uses it, which options they used with it and if they succeeded or cancelled the

Re: Cheese Shop: some history for the new-comers

2006-03-13 Thread Sybren Stuvel
A.M. Kuchling enlightened us with: Given the endless whiny complaints about the name, though, I think we should just give up and go back to PyPI (pronounced 'Pippy'). I love The Python Cheese Shop. It's original and distinctive. Besides that, it gives you more information that PyPI since Python

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Sybren Stuvel
Frank Millman enlightened us with: while 1: conn,addr = s.accept() c = TLSConnection(conn) c.handshakeServer(certChain=certChain,privateKey=privateKey) data = c.recv(1024) It's nice that you set up a TLS connection, but you never check the certificate of the other

Re: python crashes in Komodo

2006-03-13 Thread jimlewis
any non-standard (i.e. non-bundled) C extensions ? No. -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop: some history for the new-comers

2006-03-13 Thread Michael
Not every name has to fully reflect the named. I mean, Microsoft is the largest software company on the planet, but no way that you can guess that from the name. MICRO computer SOFTware. Seems pretty obvious to me and I'd expect the same from any tech person.pipi and cheese shop both

Re: Implement EJBs in Python/Jython

2006-03-13 Thread Diez B. Roggisch
reinsn wrote: Hi, I'd like to know, if it's possible to implement EJB bean classes in Python. I mean, Jython provides to possible to create *.class files from python modules. How must my python module look like to create a valid enterprise bean class from it. You have to compile a class

Environmental Variables

2006-03-13 Thread Sathyaish
In which physical file are the python environmental variables located? I know I can access them using the: os.environ.get('PYTHONSTARTUP') or os.environ.get('PYTHONPATH') to get their values. But out of the program, if I need to look at them and alter their values, where do I find them? Are

Re: Cheese Shop: some history for the new-comers

2006-03-13 Thread Sybren Stuvel
Michael enlightened us with: Microsoft is the largest software company on the planet, but no way that you can guess that from the name. MICRO computer SOFTware. Seems pretty obvious to me Where is the size of the company in that story? The fact that they make software is rather obvious

Re: Python IDE: great headache....

2006-03-13 Thread Joel Hedlund
Anyone knows if this platform is a good one? It's very good. It's comfortable, helpful and stable. Also looks good. Eclipse + Pydev does most, if not all, of your list - I am not sure what you mean by conditional pause - plus a whole lot more. Maybe he means conditional breakpoints?

Re: Environmental Variables

2006-03-13 Thread Diez B. Roggisch
Sathyaish wrote: In which physical file are the python environmental variables located? I know I can access them using the: os.environ.get('PYTHONSTARTUP') or os.environ.get('PYTHONPATH') to get their values. But out of the program, if I need to look at them and alter their

Anomalous behaviour when compiling regular expressions?

2006-03-13 Thread Harvey.Thomas
import re r = re.compile('(a|b*)+') Traceback (most recent call last): File stdin, line 1, in ? File c:\python24\lib\sre.py, line 180, in compile return _compile(pattern, flags) File c:\python24\lib\sre.py, line 227, in _compile raise error, v # invalid expression

Re: Environmental Variables

2006-03-13 Thread Fredrik Lundh
Sathyaish wrote: In which physical file are the python environmental variables located? I know I can access them using the: os.environ.get('PYTHONSTARTUP') or os.environ.get('PYTHONPATH') to get their values. But out of the program, if I need to look at them and alter their values,

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Frank Millman
Sybren Stuvel wrote: Frank Millman enlightened us with: while 1: conn,addr = s.accept() c = TLSConnection(conn) c.handshakeServer(certChain=certChain,privateKey=privateKey) data = c.recv(1024) It's nice that you set up a TLS connection, but you never check

Re: Please, I Have A Question before I get started

2006-03-13 Thread Diez B. Roggisch
Skipper wrote: Hi All, I am going to try and learn Python because I want to write at least one program to help my disabled son with communitation. I am not asking for anyone to do this for me I simply want to know if I can do what I need to do with Python Basically the program

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Paul Rubin
Frank Millman [EMAIL PROTECTED] writes: I was hoping to avoid this step. The point of the exercise for me is encryption. I am not too worried about authentication. The next step in my app is for the client to enter a user id and password, and the server will not proceed without verifying this.

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Frank Millman
Paul Rubin wrote: Frank Millman [EMAIL PROTECTED] writes: I was hoping to avoid this step. The point of the exercise for me is encryption. I am not too worried about authentication. The next step in my app is for the client to enter a user id and password, and the server will not proceed

Re: Python IDE: great headache....

2006-03-13 Thread 3KWA
Vim + iPython does most of it doesn't it? That's where I am after I became a bit frustrated with Idle (which I still use on odd occasions). EuGeNe -- http://mail.python.org/mailman/listinfo/python-list

Re: Environmental Variables

2006-03-13 Thread Sathyaish
Thanks for the replies. I am trying to have a startup file execute everytime I launch the interpreter. So, for a test, I wrote a small file I called Sathyaish.py. The contents of the file were simply: # ! This is my new start-up file. print Sathyaish is the best. Then, in the interpreter, on

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Sybren Stuvel
Frank Millman enlightened us with: The point of the exercise for me is encryption. I am not too worried about authentication. Encryption can't function fully without authenication. The next step in my app is for the client to enter a user id and password, and the server will not proceed

Re: Anomalous behaviour when compiling regular expressions?

2006-03-13 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: import re r = re.compile('(a|b*)+') Traceback (most recent call last): File stdin, line 1, in ? File c:\python24\lib\sre.py, line 180, in compile return _compile(pattern, flags) File c:\python24\lib\sre.py, line 227, in _compile raise error, v #

Re: Anomalous behaviour when compiling regular expressions?

2006-03-13 Thread Fredrik Lundh
Fredrik Lundh wrote: I have no time to sort out why your second example doesn't give the same error oh, it was there it went. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Environmental Variables

2006-03-13 Thread Diez B. Roggisch
was what I got. I checked the at DOS prompt (cmd) for PYTHONSTARTUP, and I got an 'unrecognized program/command/batch file' interrupt. What's the deal with environmental variables? Are they specific to an interpreter session? That shouldn't be. Yes they are - and yes, it should be that way.

Re: Environmental Variables

2006-03-13 Thread Duncan Booth
Sathyaish wrote: What's the deal with environmental variables? Are they specific to an interpreter session? That shouldn't be. If you think that then complain to Microsoft, or even the people who developed Unix since that is what Microsoft based their environment variables on. Environment

Re: Environmental Variables

2006-03-13 Thread Fredrik Lundh
Sathyaish wrote: What's the deal with environmental variables? Are they specific to an interpreter session? they're copied from the parent process when a new process is started, and any changes to them are local to the process. That shouldn't be. that's how environment variables work, on

Re: Anomalous behaviour when compiling regular expressions?

2006-03-13 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: import re r = re.compile('(a|b*)+') Traceback (most recent call last): File stdin, line 1, in ? File c:\python24\lib\sre.py, line 180, in compile return _compile(pattern, flags) File c:\python24\lib\sre.py, line 227, in _compile raise error, v #

Re: Please, I Have A Question before I get started

2006-03-13 Thread Skipper
Thank you all so much for your input. The feedback was perfect. I did not realizethis may be difficult under any circumstances. I am very familiar with PowerPoint and will try the open office thing... I can not believe that there isn't a GUI programing tool that will allow me to build GUI apps

Re: Environmental Variables

2006-03-13 Thread Sathyaish
I recall now, the shells in Unix - a child inherited the variables declared in its parent but not vice-versa. It works the same way in DOS. So, I wasn't seeing it clearly earlier. I am seeing it clearly now. I was imagining that the PYTHONPATH had some default value on installation and was

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Frank Millman
Sybren Stuvel wrote: Frank Millman enlightened us with: The point of the exercise for me is encryption. I am not too worried about authentication. Encryption can't function fully without authenication. Ok, I have been thinking about the replies from you and Paul, and I am confused

Re: __del__ not called?

2006-03-13 Thread bruno at modulix
Gregor Horvath wrote: Felipe Almeida Lessa schrieb: del B # We'll to tell him to collect the garbage here, but ... # usually it should not be necessary. Thanks. If I do del B then the __del__ of A gets called. That surprises me. Why ? I thought that B gets del'd by python when it

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Paul Rubin
Frank Millman [EMAIL PROTECTED] writes: What I have not understood is how to prevent this. How can the client distinguish between a valid server and a fraudulent one? If it obtains the server credentials dynamically, the fraudulent server can supply fraudulent credentials. If somehow the

Re: Please, I Have A Question before I get started

2006-03-13 Thread Sybren Stuvel
Skipper enlightened us with: I can not believe that there isn't a GUI programing tool that will allow me to build GUI apps There are plenty of them. just like I use Dreamweaver to build a web page Which produces horrible HTML. Sybren -- The problem with the world is stupidity. Not saying

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Sybren Stuvel
Frank Millman enlightened us with: If I understand correctly, a 'man-in-the-middle' attack would involve someone setting up a 'pseudo server', which gives the correct responses to the client's attempt to log in That's right. Usually it's done by proxying the data between the client and the

is hk_classes python interface good?

2006-03-13 Thread piotr maliński
Ive found hk_classes a C++/Python library/module for accesing databases. It works nice for me but I wonder if someone used hk_classes in a project, is this module good, etc. -- http://mail.python.org/mailman/listinfo/python-list

automatic from module import * expansion

2006-03-13 Thread Keith Jackson
Does anybody know of a tool that will take a module as input, look for any wildcard imports, and then identify what symbols in the module come from which wildcard import? It could then expand out the from module import * to from module import foo, bar. It might need to ask the user on this,

Re: Python IDE: great headache....

2006-03-13 Thread Don Taylor
Joel Hedlund wrote: If you install Eclipse and try to use it without reading the Workbench User Guide then you are not going to get anywhere. Woah, easy now! I never read any Workbench User Guide and I'm doing just fine with PyDev. Fabio Zadrozny (PyDev developer) wrote an excellent

mydate.strftime('%x') and cgi script

2006-03-13 Thread Sibylle Koczian
Hello, I'm writing a cgi script which only needs to run in a small LAN. I tried to show dates in a reasonable format by using import locale import datetime locale.setlocale(locale.LC_ALL, '') ... dt = datetime.date.today() print dt.strftime('%x') This works well in other scripts or at the

Re: Can't simultaneously read/write from ossaudio dsp device

2006-03-13 Thread Tito
I got it working! There was another thread http://tinyurl.com/pebqc on this group where someone had the same problem. I changed my code to the following: from twisted.internet.task import LoopingCall from twisted.internet import reactor import os, sys, wave, audioop While playing the contents

Re: SSL/TLS - am I doing it right?

2006-03-13 Thread Sybren Stuvel
Paul Rubin enlightened us with: for example, OpenSSL (www.openssl.org) comes with a simple Perl script that acts as a rudimentary CA. I never understood those CA scripts. I mean, creating a new CA certificate only has to be done once, and is: openssl req -new -x509 -key $KEY -out $OUT -days

Re: Speed of data structures in python

2006-03-13 Thread Dave
As the OP, i thought i'd follow up with my experience, in case anyone else is learning pyopengl and as mystified as i was (am?). Thank you to all the posters who responded, especially the one who mentioned display lists... Initially, i had built a very simple prototype, getting 5 fps. This

Global Threading Lock 2 - Re: RuntimeError: dictionary changed size during iteration..

2006-03-13 Thread robert
Raymond Hettinger wrote: Is a copy.deepcopy ( - cPickle.dump(copy.deepcopy(obj),f) ) an atomic opertion with a guarantee to not fail? No. It is non-atomic. It seems that your application design intrinsically incorporates a race condition -- even if deepcopying and pickling were atomic,

Re: How to best update remote compressed, encrypted archives incrementally?

2006-03-13 Thread robert
[EMAIL PROTECTED] wrote: Would rsync into a remote encrypted filesystem work for you? the sync (selection) is custom anyway. The remote filesystem is general/unknow. FTP(S) / SFTP is the only standard given. -- http://mail.python.org/mailman/listinfo/python-list

Re: automatic from module import * expansion

2006-03-13 Thread Diez B. Roggisch
Keith Jackson wrote: Does anybody know of a tool that will take a module as input, look for any wildcard imports, and then identify what symbols in the module come from which wildcard import? It could then expand out the from module import * to from module import foo, bar. It might need to

RE: Anomalous behaviour when compiling regular expressions?

2006-03-13 Thread Harvey.Thomas
Fredrik wrote: your definition of equivalent is a bit unusual: re.match((a|b*c*)+, abc).groups() ('',) re.match((a|b)*, abc).groups() ('b',) re.match((a|b|c)*, abc).groups() ('c',) that you don't get an error for r = re.compile('(a|b*c*)+') r.match('def').group() might be a

Re: Python IDE: great headache....

2006-03-13 Thread Joel Hedlund
Sorry to offend, I was just extrapoloating from personal experience. No worries, man. No offense taken :-) but I could not get going with Eclipse ... Even installing it the first time seemed to be a mystery. Yeah I felt the same too when I first installed it. I had in fact given up using

Re: automatic from module import * expansion

2006-03-13 Thread astyonax
Sorry but I doesn't understand your need. If you need a ''dinamic'' import, you can use __import__(module) -- http://mail.python.org/mailman/listinfo/python-list

Re: capturing stdout from lynx..

2006-03-13 Thread [EMAIL PROTECTED]
perfect! that worked great! thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: Which GUI toolkit is THE best?

2006-03-13 Thread Thomas Guettler
Am Fri, 10 Mar 2006 16:10:09 +0100 schrieb Sybren Stuvel: Thomas Guettler enlightened us with: The licence for QT is GPL, this means you cannot use it in commercial application. That is why I never looked at it. Ehmm... from their website: From

Re: How to find cause for Python/Pythonwin crash only on Dual Core Machines ?

2006-03-13 Thread darrenk
I believe the problem exists with any processor that supports hardware-based data execution prevention (DEP). Goto Control Panel - System - Advanced tab - Performance Settings - DEP tab. Turn on DEP for all ... except those I select: Add the Pythonwin.exe to the list. Now it should work. -D

doctest-alike for a unix shell?

2006-03-13 Thread Paddy
Hi, Anyone know of something that can turn an interactive bash or tcsh session into a test the way doctest does? - Cheers, Paddy. -- http://mail.python.org/mailman/listinfo/python-list

Re: Which GUI toolkit is THE best?

2006-03-13 Thread Sybren Stuvel
Thomas Guettler enlightened us with: There is a GPL version for Linux. But the GPL does not allow linking with closed source software. The availability of a GPL license does not negate the availability of a commercial license. You can write commercial, closed source software on Linux using Qt

Re: RuntimeError: dictionary changed size during iteration ; Good atomic copy operations?

2006-03-13 Thread anamax
robert wrote: Meanwhile I think this is a bug of cPickle.dump: It should use .keys() instead of free iteration internally, when pickling elementary dicts. I'd file a bug if no objection. What should happen if there's a delete between the time the .keys() runs and the time that the deleted

PEP 8 example of 'Function and method arguments'

2006-03-13 Thread Martin P. Hellwig
While I was reading PEP 8 I came across this part: Function and method arguments Always use 'self' for the first argument to instance methods. Always use 'cls' for the first argument to class methods. Now I'm rather new to programming and unfamiliar to some basic concepts of OOP.

Re: how exactly do binary files work in python?

2006-03-13 Thread Scott David Daniels
Steven D'Aprano wrote: [Generally fine stuff, I am elaborating rather than dis-agreeing.] On Sun, 12 Mar 2006 22:01:46 -0500, John Salerno wrote: Erik Max Francis wrote: You can use the struct module for converting fundamental types to a portable string representation for writing to binary

Re: Very, Very Green Python User

2006-03-13 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: ... Is the Python debugger fairly stable? Yes, but it is not massively featured. The Pythonic way is to rarely use a debugger (test first and straightforward code should lead to shallow bugs). Often for most of us judiciously placed print statements suffice. The one

Re: PEP 8 example of 'Function and method arguments'

2006-03-13 Thread Steven Bethard
Martin P. Hellwig wrote: While I was reading PEP 8 I came across this part: Function and method arguments Always use 'self' for the first argument to instance methods. Always use 'cls' for the first argument to class methods. Now I'm rather new to programming and unfamiliar to

Re: Please, I Have A Question before I get started

2006-03-13 Thread Scott David Daniels
Skipper wrote: ... I am not asking for anyone to do this for me I simply want to know if I can do what I need to do with Python Can python do this? I realize I am responsible for the menu sets, pictures attaching sounds etc As you have been told by many other respondents

Re: Very, Very Green Python User

2006-03-13 Thread Fredrik Lundh
Scott David Daniels wrote: ... Is the Python debugger fairly stable? Yes, but it is not massively featured. The Pythonic way is to rarely use a debugger (test first and straightforward code should lead to shallow bugs). Often for most of us judiciously placed print statements suffice.

Re: Environmental Variables

2006-03-13 Thread John Salerno
Sathyaish wrote: In which physical file are the python environmental variables located? I know I can access them using the: os.environ.get('PYTHONSTARTUP') or os.environ.get('PYTHONPATH') to get their values. But out of the program, if I need to look at them and alter their

Announcing edupython list

2006-03-13 Thread Anna Ravenscroft
In order to facilitate small groups working on specific Python-in-Education projects, we have launched an edupython list on google groups(http://groups.google.com/group/edupython or [EMAIL PROTECTED]). We envision participation by people trying to coordinate work on the nuts and bolts

Re: IOS-style command line interface module?

2006-03-13 Thread hugonz
Hell, this sounds interesting. Do you mean like matching commands when they are not yet complete, like sh tech instead of: show tech-support ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Love :)

2006-03-13 Thread rtilley
BWill wrote: and ixnay on the ubyray or else I'll tell you where to stick your endblock delimiter :P OK, I can't help it... which is more readable: a_string.reverse(ruby) a_string[::-1] (python) -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this possible in Python?

2006-03-13 Thread alainpoint
Kay Schluehr wrote: Storing arguments away before they are evaluated doesn't work in Python. You have to hack the compiler in order to access the parsetree. You might take a look at the compiler package of the standard library that enables access to ASTs. Thus you could define lazy evaluation

Re: Is this possible in Python?

2006-03-13 Thread Ron Garret
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hi I wonder if Python is capable of the following: define a function which returns its argument. I mean: def magic_function(arg): .. some magic code ... that behaves the following way: assert

Re: Python Love :)

2006-03-13 Thread Paul Rubin
rtilley [EMAIL PROTECTED] writes: a_string.reverse (ruby) a_string[::-1](python) reversed(a_string) (python) -- http://mail.python.org/mailman/listinfo/python-list

trying to find repeated substrings with regular expression

2006-03-13 Thread Robert Dodier
Hello all, I'm trying to find substrings that look like 'FOO blah blah blah' in a string. For example give 'blah FOO blah1a blah1b FOO blah2 FOO blah3a blah3b blah3b' I want to get three substrings, 'FOO blah1a blah1b', 'FOO blah2', and 'FOO blah3a blah3b blah3b'. I've tried numerous variations

Re: Python Love :)

2006-03-13 Thread gregarican
Paul Rubin wrote: reversed(a_string) (python) Which version of Python offers this function? It doesn't seem to be available in the 2.3 version I have installed... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Love :)

2006-03-13 Thread Paul Rubin
gregarican [EMAIL PROTECTED] writes: reversed(a_string) (python) Which version of Python offers this function? It doesn't seem to be available in the 2.3 version I have installed... I think it's new in 2.4. -- http://mail.python.org/mailman/listinfo/python-list

Re: Which GUI toolkit is THE best?

2006-03-13 Thread Paul Boddie
Thomas Guettler wrote: Have you read all the text? Two qualities of the Qt Commercial License should be emphasized: You need it before you start development of proprietary software. You must purchase a Qt Commercial License from Trolltech or from any of its authorized resellers before

Re: Environmental Variables

2006-03-13 Thread Diez B. Roggisch
Dennis Lee Bieber wrote: The Amiga did have a means for such... It differentiated between local and global environment variables. Locals were kept in a process memory structure and behaved as they do on most other OSs... Globals, however, were short files maintained in ENV: (a logical name to

Re: Is this possible in Python?

2006-03-13 Thread Terry Reedy
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I wonder if Python is capable of the following: define a function which returns its argument. I mean: def magic_function(arg): .. some magic code ... that behaves the following way: assert magic_function(3+4)==3+4

Re: Is this possible in Python?

2006-03-13 Thread Caleb Hattingh
Hi I don't think this is what you want (a string representation of the argument passed to a function as that argument is at runtime is way beyond my abilities), but this can retrieve the literal text in the function call as it appears in the .py file, assuming you have the .py file available

Re: Which GUI toolkit is THE best?

2006-03-13 Thread Paul Rubin
Paul Boddie [EMAIL PROTECTED] writes: What people don't usually understand (or rather complain about loudly) is that Trolltech can refuse to license Qt to you under the commercial licence, as is their right as the owner of the copyrighted work. What is the deal here? Why would they refuse, to

Re: suse linux 10 and wx.listctrl display issues

2006-03-13 Thread ianaré
Well that definitly works, thanks. Is there any way to keep the themes though? -- http://mail.python.org/mailman/listinfo/python-list

Re: Please, I Have A Question before I get started

2006-03-13 Thread JW
Skipper wrote: I can not believe that there isn't a GUI programing tool that will allow me to build GUI apps - just like I use Dreamweaver to build a web page ... a WYSIWYG builder that does a few simplet things and calls other programs ... Oh well no silver bullet! If you are

Re: IOS-style command line interface module?

2006-03-13 Thread David Wilson
Doh, I am indeed referring to the standard cmd module - thanks! To [EMAIL PROTECTED], the above module does what you describe. Thanks again, David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Please, I Have A Question before I get started

2006-03-13 Thread Kent Johnson
Ravi Teja wrote: I do not think that technology has gone backwards. Hyper card alternatives still exist. http://www.metacard.com/ At $995 per seat it's not likely to be used for a home project. Kent -- http://mail.python.org/mailman/listinfo/python-list

No more then 1 Instance of Application..

2006-03-13 Thread Math
Hello, Pardon my English... Does anybody know what I have to do to run only 1 instance of my Python Application? How do I check if I'm running more instances of a Application? Thank you all -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >