Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Christopher Subich schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > >> Except when your default is a list >> >> class foo: >> x = [] # default >> >> a = foo() >> a.x += [3] >> >> b = foo() >> b.x >> >> This results in [3]. So in this case using a class variable x to >> pro

Is mod_python 3.1 good for commercial blogging/CMS?

2005-11-07 Thread Anthony L.
I am writing a web application that is comparable to a content management system used in blogging. I really want to use Python after having done some evaluation coding using Python 2.3.5 with mod_python 3.1.4 running on Apache 2.0 with the Publisher handler. However, I am still very hesitant to

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Steven D'Aprano schreef <[EMAIL PROTECTED]>: > On Fri, 04 Nov 2005 09:03:56 +, Antoon Pardon wrote: > >> Op 2005-11-03, Steven D'Aprano schreef <[EMAIL PROTECTED]>: >>> On Thu, 03 Nov 2005 13:01:40 +, Antoon Pardon wrote: >>> > Seems perfectly sane to me. > > Wha

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Christopher Subich schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Well I wonder. Would the following code be considered a name binding >> operation: >> >> b.a = 5 > > Try it, it's not. > > Python 2.2.3 (#1, Nov 12 2004, 13:02:04) > [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Magnus Lycka schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > > I have looked and didn't find it in the language reference. >> >> This is what I have found: >> >> An augmented assignment expression like x += 1 can be rewritten >> as x = x + 1 to achieve a similar, but not exa

Data Type Problem in Python / COM

2005-11-07 Thread Olav
I'm trying to use Python / COM to do some drawing automation. Here is a simple code example: This code uses a object made by the Opendwg-org. Autocad has a similar object with the same methods - and the same result. --- import win32com.client odaHost=win32com.client.dynamic.Dispatch("D

Re: gmpy 1.01 rc near... anybody wanna test>

2005-11-07 Thread Steve Holden
Alex Martelli wrote: > I have fixed almost all of the outstanding bugreports and feature > request for gmpy: divm doesn't leak memory any more, truediv and > floordiv are implemented for all types, etc -- in the current CVS > version (one thing I must still look at is divm's behavior when its args

RE: connect to a remote web server & upload data from Python using sshand scp

2005-11-07 Thread Tim Golden
[Swarna Pulavarty] > I need to upload data ( text & image data ) to a remote web > server from python. I came to know that i could do it using > ssh and scp.but am not sure of how to do it. Well, the only difference between "server" and "web server" is that the latter is guaranteed to be li

pls help me with strange result

2005-11-07 Thread eight02645999
hi i defined a func db = Sybase.connect(DSN) ... def x_dml(SQL,conn): ''' Connects to database specified, exec the SQL and returns value''' try: c = conn.cursor() try: c.execute(SQL) res = c.rowco

Notes 6.X not accessible with Python?

2005-11-07 Thread Marco Aschwanden
Hi Since my upgrade from Notes 5.X to Notes 6.X I can't access Notes anymore. The third line of the following code is already a show stopper in my case: from win32com.client import Dispatch session = Dispatch('Lotus.NotesSession') session.Initialize('my_secret_passwort') When started, ends: F

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Steven D'Aprano schreef <[EMAIL PROTECTED]>: > On Fri, 04 Nov 2005 08:08:42 +, Antoon Pardon wrote: > >> One other way, to implement the += and likewise operators would be >> something like the following. >> >> Assume a getnsattr, which would work like getattr, but would also >>

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Steven D'Aprano schreef <[EMAIL PROTECTED]>: > On Fri, 04 Nov 2005 09:07:38 +, Antoon Pardon wrote: > Now the b.a on the right hand side refers to A.a the first time through the loop but not the next times. I don't think it is sane that which object is refered to d

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Christopher Subich schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Well maybe because as far as I understand the same kind of logic >> can be applied to something like >> >> lst[f()] += foo >> >> In order to decide that this should be equivallent to >> >> lst[f()] = lst[f()

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-06, Steve Holden schreef <[EMAIL PROTECTED]>: > Steven D'Aprano wrote: > [...] >> >> But I can't understand the position of folks who want inheritance but >> don't want the behaviour that Python currently exhibits. >> instance.attribute sometimes reading from the class attribute is a fe

Re: Print to printer

2005-11-07 Thread Magnus Lycka
avnit wrote: > Do you know if there's a way to print a file? I'm trying to print an > HTML file, so your solution is good, but doesn't really work for me. > Just reading the HTML file and the printing the content obviously > wouldn't work. I also tried: > > >>> printer.write(file('path/to/file.ext

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Steven D'Aprano schreef <[EMAIL PROTECTED]>: > On Fri, 04 Nov 2005 10:48:54 +, Antoon Pardon wrote: > >> Please explain why this is illegal. >> >> x = 1 >> def f(): >> x += 1 > > Because names in function namespaces don't have inheritance. Your quibling about words. This cert

Re: how to present Python's OO feature in design?

2005-11-07 Thread Ben Sizer
Kay Schluehr wrote: > pcmanlin wrote: > > because i have a problem that python's oo feature is so great, but > > maybe when the project become larger, python's no-declaration cannot > > mapping the design to practice? > > > > I am not sure about it. I don't know if there are any tools that convert

Re: pls help me with strange result

2005-11-07 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > db = Sybase.connect(DSN) > ... > def x_dml(SQL,conn): > ''' Connects to database specified, exec the SQL and returns > value''' > try: > c = conn.cursor() > try: > c.execute(SQL) >

Re: pls help me with strange result

2005-11-07 Thread eight02645999
hi thanks! i used your method to rearrange the try,except clauses, and the problem is solved. I also redefined my funcs to get rid of the try/except clauses and leave it to the caller to do the job of try/except. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-05, Steven D'Aprano schreef <[EMAIL PROTECTED]>: > On Fri, 04 Nov 2005 12:10:11 +, Antoon Pardon wrote: > >>> There are good usage cases for the current inheritance behaviour. I asked >>> before what usage case or cases you have for your desired behaviour, and >>> you haven't answere

web interface

2005-11-07 Thread Ajar
Hi, I have a stand alone application which does some scientific computations. I want to provide a web interface for this app. The app is computationally intensive and may take long time for running. Can someone suggest me a starting point for me? (like pointers to the issues involved in this, or e

Re: strange sockets

2005-11-07 Thread Skink
Sion Arrowsmith wrote: > > conn.sendall(struct.pack("!i", len(data)) + data) > > or after creating conn > > conn.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1) > > to disable Nagle. > Sion, thank you for your help, it works but... it works when client & server is in python i tried both s

Re: PyFLTK - an underrated gem for GUI projects

2005-11-07 Thread egbert
PyFLTK is not a debian package - yet. Is nobody interested, or is there a more specific reason ? -- Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991 -- http://mail.python.org/mailman/listinfo/python-

help-I am new to python, I have some query could sombody help me out.

2005-11-07 Thread sumi
I am very new to python , I have small query could some one help me. every time I get a new load i need to do few things like creating some dir, changing some file contents and moving some files , i would like to know if i can write a python script to do all these operation . -- http://mail.pyth

Re: PyFLTK - an underrated gem for GUI projects

2005-11-07 Thread aum
On Mon, 07 Nov 2005 12:25:49 +0100, egbert wrote: > PyFLTK is not a debian package - yet. > Is nobody interested, or is there a more specific reason ? AFAIK, the maintainer feels it's still at release-candidate stage. When he's happy with it, I'm sure he could be persuaded to make arrangements t

Re: how to present Python's OO feature in design?

2005-11-07 Thread Jorge Godoy
"Ben Sizer" <[EMAIL PROTECTED]> writes: > I don't know if there are any tools that convert UML to Python code, > but that doesn't stop you working with UML diagrams if you choose, and Umbrello helps starting things using as a base UML diagrams. You'll probably have to draw your diagrams on it, t

can i tar and untar using python

2005-11-07 Thread sumi
can i tar and untar using python -- http://mail.python.org/mailman/listinfo/python-list

Re: can i tar and untar using python

2005-11-07 Thread Fredrik Lundh
"sumi" <[EMAIL PROTECTED]> wrote: > can i tar and untar using python http://docs.python.org/lib/module-tarfile.html -- http://mail.python.org/mailman/listinfo/python-list

Re: PyFLTK - an underrated gem for GUI projects

2005-11-07 Thread Jorge Godoy
aum <[EMAIL PROTECTED]> writes: > What I'm saying is that there are many basic projects being written for > these toolkits, whose functionality could be completely supported by > PyFLTK. When only a smaller set of widgets is needed, there's a stronger > case for using lighter widget libraries - es

Re: web interface

2005-11-07 Thread Jorge Godoy
"Ajar" <[EMAIL PROTECTED]> writes: > I have a stand alone application which does some scientific > computations. I want to provide a web interface for this app. The app > is computationally intensive and may take long time for running. Can > someone suggest me a starting point for me? (like pointe

ANN: eric3 3.8.0 released

2005-11-07 Thread Detlev Offenbach
Hi, this is to inform you about the release of eric3 3.8.0. It is available via http://www.die-offenbachs.de/detlev/eric3.html The list below summarizes the difference between eric3 3.7.x and 3.8.x - too long list of bugfixes to mention here - these usability enhancements DEBUGGER -- added

Re: help-I am new to python, I have some query could sombody help me out.

2005-11-07 Thread Jorge Godoy
"sumi" <[EMAIL PROTECTED]> writes: > I am very new to python , I have small query could some one help me. > every time I get a new load i need to do few things like creating some > dir, changing some file contents and moving some files , i would like > to know if i can write a python script to do

Re: Circe

2005-11-07 Thread Björn Lindström
"Sargun Dhillon" <[EMAIL PROTECTED]> writes: > Me and my friends are working on a project, Circe we'd like some people > to test it: I guess you weren't aware of this. http://www.emacswiki.org/cgi-bin/wiki/Circe -- Björn Lindström <[EMAIL PROTECTED]> Student of computational linguistics, Upps

Re: can i tar and untar using python

2005-11-07 Thread Jay Parlar
On Nov 7, 2005, at 3:00 AM, sumi wrote: > can i tar and untar using python The standard library does it again: http://docs.python.org/lib/module-tarfile.html Jay P. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class Variable Access and Assignment

2005-11-07 Thread Magnus Lycka
First of all, I've still not heard any sensible suggestions about a saner behaviour for augmented assignment or for the way Python searches the class scope after the instance scope. What do you suggest? Today, x += n acts just as x = x + n if x is immutable. Do you suggest that this should change

Re: how to present Python's OO feature in design?

2005-11-07 Thread Paul McGuire
"pcmanlin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > As I know java has many UML tools to design for its OO feature, is > there any tools or good concept for Python project Modeling? > Check out EnterpriseArchitect (http://www.sparxsystems.com.au ). They have a very good UML t

Re: gmpy 1.01 rc near... anybody wanna test>

2005-11-07 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: > gmpy users able to download and build from sourceforge's cvs are > encouraged to test the current CVS version. Oh cool, I wondered whether any gmpy maintenance was still going on. I'll see if I can give the new version a try. -- http://mail.python.org/m

Re: Using Which Version of Linux

2005-11-07 Thread Magnus Lycka
[EMAIL PROTECTED] wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold i use fedora, or Solaris.

Re: Class Variable Access and Assignment

2005-11-07 Thread Steve Holden
Antoon Pardon wrote: > Op 2005-11-05, Steven D'Aprano schreef <[EMAIL PROTECTED]>: > >>On Fri, 04 Nov 2005 12:10:11 +, Antoon Pardon wrote: >> >> There are good usage cases for the current inheritance behaviour. I asked before what usage case or cases you have for your desired behaviou

Re: strange sockets

2005-11-07 Thread Steve Holden
Skink wrote: > Sion Arrowsmith wrote: > >>conn.sendall(struct.pack("!i", len(data)) + data) >> >>or after creating conn >> >>conn.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1) >> >>to disable Nagle. >> > > > Sion, > > thank you for your help, > > it works but... > it works when client & se

Python and PL/SQL

2005-11-07 Thread vb_bv
Does Pyton PL/SQL programming language of Oracle support? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading-> Stopping

2005-11-07 Thread Antoon Pardon
Op 2005-11-04, Tuvas schreef <[EMAIL PROTECTED]>: > Is there a way to stop a thread with some command like t.stop()? Or any > other neat way to get around it? Thanks! What do you mean with stop? Pauze it or make it finish. In the latter case, if you really want it you could use the following. It

Re: Threading-> Stopping

2005-11-07 Thread Alan Kennedy
[Tuvas] > Is there a way to stop a thread with some command like t.stop()? Or any > other neat way to get around it? Thanks! Good question. And one that gets asked so often, I ask myself why it isn't in the FAQ? http://www.python.org/doc/faq/library.html It really should be in the FAQ. Isn't th

Re: Python and PL/SQL

2005-11-07 Thread infidel
vb_bv wrote: > Does Pyton PL/SQL programming language of Oracle support? > > Thx PL/SQL is only supported *inside* Oracle databases. Python can be used to call PL/SQL procedures (I recommend the cx_Oracle module), but you can't run Python inside the database like PL/SQL. -- http://mail.python.

Re: Python and PL/SQL

2005-11-07 Thread Gerhard Häring
vb_bv wrote: > Does Pyton PL/SQL programming language of Oracle support? Python supports calling Oracle PL/SQL procedures. Here's an example using the cx_Oracle database adapter: >>> import cx_Oracle >>> con = cx_Oracle.connect("outlinetest/[EMAIL PROTECTED]") >>> cur = con.cursor() >>> cur.

Re: Python gui

2005-11-07 Thread Magnus Lycka
Philippe C. Martin wrote: > Thanks, Tkinter it is. It really depends on what you want to achieve. If you want to make any advanced GUI application, you'll probably want some third party extension to Tkinter anyway, and then you might as well choose another tool kit from the beginning, whether it's

Re: strange sockets

2005-11-07 Thread Skink
Steve Holden wrote: > Skink wrote: > >> Sion Arrowsmith wrote: >> >>> conn.sendall(struct.pack("!i", len(data)) + data) >>> >>> or after creating conn >>> >>> conn.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1) >>> >>> to disable Nagle. >>> >> >> >> Sion, >> >> thank you for your help, >> >> it

Re: Python and PL/SQL

2005-11-07 Thread Gerhard Häring
infidel wrote: > vb_bv wrote: > >>Does Pyton PL/SQL programming language of Oracle support? >> > PL/SQL is only supported *inside* Oracle databases. Python can be used > to call PL/SQL procedures (I recommend the cx_Oracle module), but you > can't run Python inside the database like PL/SQL. If o

Re: Python and PL/SQL

2005-11-07 Thread Jorge Godoy
Gerhard Häring <[EMAIL PROTECTED]> writes: > In my not so humble opinion, instead of all this fancy stuff, you will be > better off writing your stored procedures in PL/SQL, which is a very good > language for manipulating data, and writing portable, efficient and > maintainable server-side databa

Tkinter and X11

2005-11-07 Thread Philippe C. Martin
Hi, Is there anything that prevents tkinter from running prior to login to an X11 session: as the X server is already up ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-07, Steve Holden schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Op 2005-11-05, Steven D'Aprano schreef <[EMAIL PROTECTED]>: >> >>>On Fri, 04 Nov 2005 12:10:11 +, Antoon Pardon wrote: >>> >>> >There are good usage cases for the current inheritance behaviour. I asked >

Re: Python and PL/SQL

2005-11-07 Thread vb_bv
Thanks for your answers. I would like to document with Python PL/SQL of programs, so similarly as javadoc for Java. I do not know whether it is possible. If yes, I would like to know how. Thx -- http://mail.python.org/mailman/listinfo/python-list

need help extracting data from a text file

2005-11-07 Thread nephish
Hey there, i have a text file with a bunch of values scattered throughout it. i am needing to pull out a value that is in parenthesis right after a certain word, like the first time the word 'foo' is found, retrieve the values in the next set of parenthesis (bar) and it would return 'bar' i think

[ANN] ASTNG 0.13.1

2005-11-07 Thread Sylvain Thénault
Hi there ! I'm pleased to announce a new bug fix release of ASTNG. This release fixes a lot of bugs detected by pylint users, the most popular application built on top of this package. What's new ? * fix bug on building from living module the same object in encountered more than o

[ANN] pylint 0.8.1

2005-11-07 Thread Sylvain Thénault
Hi there ! I'm pleased to announce a new bug fix release of PyLint. Notice that a lot of other bugs will be fixed by updating the logilab-astng package to 0.13.1. Almost all bugs noticed by pylint users since the 0.8 is out should be corrected by updating pylint and astng :) What's new ? ---

Re: Python and PL/SQL

2005-11-07 Thread Diez B. Roggisch
vb_bv wrote: > Thanks for your answers. > I would like to document with Python PL/SQL of programs, so similarly > as javadoc for Java. > I do not know whether it is possible. If yes, I would like to know how. Is it possible - yes. Has it been done? I doubt it. You can fetch the sourcecode of ora

Re: How to read all files in a directory

2005-11-07 Thread Hung Vo
Hello Larry,   Thanks a lot for your response. It helps me a lot.   I used your suggestion and got an error:     path=r'C:\datafiles\'    ^SyntaxError: EOL while scanning single-quoted string Then, I changed just a little bit and it works fine. I set path='C:\\datafile

ANN: python-ldap-2.0.11

2005-11-07 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g. p

Re: need help extracting data from a text file

2005-11-07 Thread Iain King
[EMAIL PROTECTED] wrote: > Hey there, > i have a text file with a bunch of values scattered throughout it. > i am needing to pull out a value that is in parenthesis right after a > certain word, > like the first time the word 'foo' is found, retrieve the values in the > next set of parenthesis (ba

RAW_INPUT

2005-11-07 Thread john boy
I am having trouble with the following example used in a tutorial:   print "Halt !" s = raw_input ("Who Goes there? ") print "You may pass,", s   I run this and get the following: Halt! Who Goes there?   --thats itif I hit enter again "You may pass," appears...   In the example after running y

Re: gmpy 1.01 rc near... anybody wanna test>

2005-11-07 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: > I downloaded and tried the CVS version. Division still didn't work as > expected. Now that's truly interesting... > >>> import gmpy > >>> gmpy.version() > '1.01' > >>> gmpy.mpz(9)//gmpy.mpz(4) > Traceback (most recent call last): > File "", line 1, in ? > TypeError

Re: gmpy 1.01 rc near... anybody wanna test>

2005-11-07 Thread Alex Martelli
Paul Rubin wrote: > [EMAIL PROTECTED] (Alex Martelli) writes: > > gmpy users able to download and build from sourceforge's cvs are > > encouraged to test the current CVS version. > > Oh cool, I wondered whether any gmpy maintenance was still going on. Only when I get g

A Tcl/Tk programmer learns Python--any advice?

2005-11-07 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm a Tcl/Tk developer who has been dabbling with Python for some time, but had not seen a compelling reason to really learn the language. Programming in Tkinter seemed redundant to me since I already have direct access to that toolkit via Tcl, and the

Re: need help extracting data from a text file

2005-11-07 Thread nephish
this is cool, it is only going to run about 10 times a day, the text is not written out like foo(bar) its more like foo blah blah blah (bar) the thing is , every few days the structure of the textfile may change, one of the reasons i wanted to avoid the re. thanks for the tip, -- http://mail.p

Re: gmpy 1.01 rc near... anybody wanna test>

2005-11-07 Thread Alex Martelli
Steve Holden <[EMAIL PROTECTED]> wrote: ... > I tried compiling it with the MS free toolkit but the C compile > complains about the absence of "gmp.h". Since I see such a header in my > Cygwin installation I presume it's something that a full VC7 > installation could expect to be present. gmp

Re: Tkinter and X11

2005-11-07 Thread jepler
There should be no problem with this. After all, even the "greeter" is just an X application. Depending on which login manager you use (xdm/kdm/gdm/whatever) the details of getting your Tkinter app to actually be run will vary, though. In gdm, it looks like adding it to the file /etc/X11/gdm/Init

Sending email in utf-8?

2005-11-07 Thread morphex
Hi, I have an email that's in the utf-8 encoding, and I'm getting this error message when I try to send it using smtplib: * Module smtplib, line 688, in sendmail * Module smtplib, line 485, in data * Module smtplib, line 312, in send * Module socket, line 1, in sendall UnicodeEnc

Re: need help extracting data from a text file

2005-11-07 Thread Iain King
[EMAIL PROTECTED] wrote: > this is cool, it is only going to run about 10 times a day, > > the text is not written out like foo(bar) its more like > foo blah blah blah (bar) > then I guess you worked this out, but just for completeness: keywordPos = textfile.find("foo") start = textfile.find("("

Re: Tkinter and X11

2005-11-07 Thread Philippe C. Martin
Thanks jeff, I actually want that Tkinter application to be the greater: replace gdm Still feasible as far as Tkinter is conserned ? Thanks and regards, Philippe [EMAIL PROTECTED] wrote: > There should be no problem with this. After all, even the "greeter" is > just an > X application.

Re: need help extracting data from a text file

2005-11-07 Thread nephish
um, wait. what you are doing here is easier than what i was doing after your first post. thanks a lot. this is going to work out ok. thanks again. sk -- http://mail.python.org/mailman/listinfo/python-list

Re: RAW_INPUT

2005-11-07 Thread A D
On Mon, 2005-11-07 at 07:57 -0800, john boy wrote: > I am having trouble with the following example used in a tutorial: > > print "Halt !" > s = raw_input ("Who Goes there? ") > print "You may pass,", s at this print line you need to do print "you may pass, %s" % s this will allow you to enter

RE: Python, COM Servers, and Multi-Threading

2005-11-07 Thread Stefan Schukat
Hi, you get best performance if you make your servers local servers, since then every interpreter runs in ist own process. If you make it an inproc server you synchronize all threads/CPUs with the GIL. Even better multithreading support you will get if you mark your server to run in an multithre

[OT] Map of email origins to Python list

2005-11-07 Thread Claire McLister
We've been working with Google Maps, and have created a web service to map origins of emails to a group. As a trial, we've developed a map of emails to this group at: http://www.zeesource.net/maps/map.do?group=668 This represents emails sent to the group since October 27. Would like to

Re: RAW_INPUT

2005-11-07 Thread Jean-Paul Calderone
On Mon, 07 Nov 2005 12:14:15 -0600, A D <[EMAIL PROTECTED]> wrote: >On Mon, 2005-11-07 at 07:57 -0800, john boy wrote: >> I am having trouble with the following example used in a tutorial: >> >> print "Halt !" >> s = raw_input ("Who Goes there? ") >> print "You may pass,", s > >at this print line y

RE: when and how do you use Self?

2005-11-07 Thread Tieche Bruce A MSgt USMTM/AFD
Well, thanx for all the ... useful information. I thought that I would try, but this has turned out to be a waist of my time. Have fun playing with your egos -Original Message- From: Bruno Desthuilliers [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 9:29 PM To: python-list

Re: RAW_INPUT

2005-11-07 Thread dataw0lf
john boy wrote: > > > --thats itif I hit enter again "You may pass," > appears... > ... > What am I doing wrong? raw_input accepts, that's right, input. So, when you get the line "Who goes there?" You don't hit enter; you type whatever you want to be printed with "You may pass,". Then y

Re: RAW_INPUT

2005-11-07 Thread jmdeschamps
The raw_input('Who Goes there?') function writes out the arg and then waits for *user input* , and that is considered terminated when you hit return. Since you only hit return without typing 'Josh' first you get an empty string "" which is then printed to screen... ('You may pass,'+"") Type somet

Re: Sending email in utf-8?

2005-11-07 Thread Fredrik Lundh
"morphex" <[EMAIL PROTECTED]> wrote: > I have an email that's in the utf-8 encoding, and I'm getting this > error message when I try to send it using smtplib: > >* Module smtplib, line 688, in sendmail >* Module smtplib, line 485, in data >* Module smtplib, line 312, in send >* Mod

Re: need help extracting data from a text file

2005-11-07 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey there, > i have a text file with a bunch of values scattered throughout it. > i am needing to pull out a value that is in parenthesis right after a > certain word, > like the first time the word 'foo' is found, retrieve the values in

Re: RAW_INPUT

2005-11-07 Thread Fredrik Lundh
"A D" <[EMAIL PROTECTED]> wrote: >> print "You may pass,", s > > at this print line you need to do > print "you may pass, %s" % s > > this will allow you to enter the string s into the output sentence where did you buy your python license ? >>> s = "josh" >>> print "hello,", s hello,

Re: Python doc problem example: gzip module (reprise)

2005-11-07 Thread jmdeschamps
(gulp! red-in-the-face) yes Steve, I meant "gist", sorry if I offended anyone, specially Fredrik since I was referring to the 'substance' of his post...certainly not as if it were a 'joke' . Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: RAW_INPUT

2005-11-07 Thread Fredrik Lundh
"john boy" <[EMAIL PROTECTED]> : >I am having trouble with the following example used in a tutorial: > > print "Halt !" > s = raw_input ("Who Goes there? ") > print "You may pass,", s > > I run this and get the following: > Halt! > Who Goes there? > > --thats itif I hit enter again "You may pa

Re: gmpy 1.01 rc near... anybody wanna test>

2005-11-07 Thread Steve Holden
Alex Martelli wrote: > Steve Holden <[EMAIL PROTECTED]> wrote: >... > >>I tried compiling it with the MS free toolkit but the C compile >>complains about the absence of "gmp.h". Since I see such a header in my >>Cygwin installation I presume it's something that a full VC7 >>installation coul

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Paul McGuire
"Claire McLister" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] We've been working with Google Maps, and have created a web service to map origins of emails to a group. As a trial, we've developed a map of emails to this group at: http://www.zeesource.net/maps/map.do?group=668

Re: help-I am new to python, I have some query could sombody help me out.

2005-11-07 Thread Magnus Lycka
sumi wrote: > I am very new to python , I have small query could some one help me. > every time I get a new load i need to do few things like creating some > dir, changing some file contents and moving some files , i would like > to know if i can write a python script to do all these operation .

Re: how to present Python's OO feature in design?

2005-11-07 Thread Magnus Lycka
pcmanlin wrote: > As I know java has many UML tools to design for its OO feature, is > there any tools or good concept for Python project Modeling? My favourite is whiteboard and digital camera. I don't generate any code from that though... ;) It's the approach suggested in Scott Ambler's "Agile M

Lie Hetland book: Beginning Python..

2005-11-07 Thread Vittorio
I am reading "Beginning Python from Novice to Professional" and the book is really awesome. Nonetheless on ch 13 "Database Support" I found this code to import data (in a txt file) into a SQLite Database: #this was corrected because original "import sqlite" does not work from pysqlite2 import db

python server

2005-11-07 Thread linuxpld
Hello I`m writing a program (server in future) in python. I would like to write it in such a way that I will be able to write gui in any language and connect to my python program and use functionality included with it. are there any libraries that I could use? I dont know if i wrote it understand

Re: Class Variable Access and Assignment

2005-11-07 Thread Bengt Richter
On Mon, 07 Nov 2005 12:05:40 +0100, Magnus Lycka <[EMAIL PROTECTED]> wrote: >First of all, I've still not heard any sensible suggestions >about a saner behaviour for augmented assignment or for the >way Python searches the class scope after the instance scope. A nit, but a sizeable one: For new-st

Tkinter- Building a message box

2005-11-07 Thread Tuvas
I've been trying to build a fairly simple message box in tkinter, that when a button is pushed, will pop up a box, that has a line of text, an entry widget, and a button, that when the button is pushed, will return the value in the line of text. However, while I can read the value of the button, I

Re: when and how do you use Self?

2005-11-07 Thread Fredrik Lundh
"Tieche Bruce A MSgt USMTM/AFD" <[EMAIL PROTECTED]> wrote: > Well, thanx for all the ... useful information. > > I thought that I would try, but this has turned out to be a waist of my time. did you perhaps miss that at least three people wrote proper replies to your post? http://article.gm

Re: Python and PL/SQL

2005-11-07 Thread infidel
> Thanks for your answers. > I would like to document with Python PL/SQL of programs, so similarly > as javadoc for Java. > I do not know whether it is possible. If yes, I would like to know how. All of the source code for procedures and packages in an oracle database can be retreived from the USE

Re: Class Variable Access and Assignment

2005-11-07 Thread Bengt Richter
On 7 Nov 2005 08:38:49 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: >Op 2005-11-04, Magnus Lycka schreef <[EMAIL PROTECTED]>: >> [...] >> Sure, Python has evolved and grown for about 15 years, and >> backward compatibility has always been an issue, but the >> management and development of Python

Re: Tkinter- Building a message box

2005-11-07 Thread Ron Adam
Tuvas wrote: > I've been trying to build a fairly simple message box in tkinter, that > when a button is pushed, will pop up a box, that has a line of text, an > entry widget, and a button, that when the button is pushed, will return > the value in the line of text. However, while I can read the v

Re: Sending email in utf-8?

2005-11-07 Thread morphex
That works, kinda. I get strange characters now like this """ Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) Message-Id: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Order confirmation Content-Type: text/plain; charset="utf-8" X-Bogosity: No, tests=bo

Re: python server

2005-11-07 Thread Bill Mill
On 7 Nov 2005 10:22:18 -0800, linuxpld <[EMAIL PROTECTED]> wrote: > Hello > > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with it. >

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Rocco Moretti
Paul McGuire wrote: > "Claire McLister" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > We've been working with Google Maps, and have created a web service to > map origins of emails to a group. As a trial, we've developed a map of > emails to this group at: > > http://www.zees

Re: Tkinter- Building a message box

2005-11-07 Thread Tuvas
Do you have any info on dialogs? I've been trying to find some, without alot of success... -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Steve Holden
Claire McLister wrote: > We've been working with Google Maps, and have created a web service to > map origins of emails to a group. As a trial, we've developed a map of > emails to this group at: > > http://www.zeesource.net/maps/map.do?group=668 > > This represents emails sent to the gro

Re: Threading-> Stopping

2005-11-07 Thread Bengt Richter
On Mon, 07 Nov 2005 13:49:35 +, Alan Kennedy <[EMAIL PROTECTED]> wrote: >[Tuvas] >> Is there a way to stop a thread with some command like t.stop()? Or any >> other neat way to get around it? Thanks! > >Good question. > >And one that gets asked so often, I ask myself why it isn't in the FAQ? >

  1   2   3   >