Re: [Tutor] [tutor] debug process

2006-06-12 Thread Wolfram Kraus
[EMAIL PROTECTED] schrieb: > Hello, > > Is there a way to debug (trace) the python code line by line? > > emily > Hi emily! You can use The Python Debugger or pdb, see: http://www.python.org/doc/2.4.2/lib/module-pdb.html HTH, Wolfram ___ Tutor mail

[Tutor] [tutor] debug process

2006-06-12 Thread emilia12
Hello, Is there a way to debug (trace) the python code line by line? emily - Поличба 666. Само в кината. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python related mags

2006-06-12 Thread Tracy R Reed
Andrew Robert wrote: > Does anyone know of any Python related magazines available that would be > worth subscribing to? > Why bother when there are many excellent websites with good python articles? I have found that my consumption of print media has fallen to practically zero not including thi

Re: [Tutor] Python related mags

2006-06-12 Thread Michael Sullivan
On Mon, 2006-06-12 at 21:13 -0400, Andrew Robert wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Now that is a real pity. > > Wish I were talented enough to do it myself. Someone could do something like Tux Magazine (http://www.tuxmagazine.org/) . Each month they put out a free Lin

Re: [Tutor] Wondering is there a pyQT list

2006-06-12 Thread Bill Burns
johnf wrote: > Hi, > I was wondering if there is a pyqt list like the > [EMAIL PROTECTED] list? > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python related mags

2006-06-12 Thread Andrew Robert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Now that is a real pity. Wish I were talented enough to do it myself. Mike Hansen wrote: > On Jun 12, 2006, at 5:53 AM, Andrew Robert wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hi everyone, >> >> Does anyone know of any Pyt

Re: [Tutor] Python related mags

2006-06-12 Thread Mike Hansen
On Jun 12, 2006, at 5:53 AM, Andrew Robert wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi everyone, > > Does anyone know of any Python related magazines available that would > be > worth subscribing to? > > Ideally, a free one, but I would not object to a reasonably priced one >

Re: [Tutor] Mod-python

2006-06-12 Thread Patricia G.
Hi, When you say you that you want to send this data via Apache do youmean that the web server you are sending to is running Apache  Yes. If you simply want to emulate a a web page with a submit button thatsends a Post you do it with code a bit like the following import urllib, urllib2url = "" hr

Re: [Tutor] Mod-python

2006-06-12 Thread Peter Jessop
> > I have about 17 lines of text (about system information) that I need to pass > to > a remote web server AND I've been asked to send this data via Apache. I have > to > write a python script that will fetch a URL to pass this text. I understand > that > if I want to use the POST method, I wou

Re: [Tutor] datetime: What happended yesterday? :-)

2006-06-12 Thread Kent Johnson
doug shawhan wrote: > Heh. Your example would look very, very nice in the timedelta > (http://docs.python.org/lib/datetime-timedelta.html) section of the > docs! :-) > > It makes perfect sense, the authors probably thought it was too easy to > need an explaination ... It is noted in the "Suppo

Re: [Tutor] datetime: What happended yesterday? :-)

2006-06-12 Thread doug shawhan
Heh. Your example would look very, very nice in the timedelta (http://docs.python.org/lib/datetime-timedelta.html) section of the docs! :-) It makes perfect sense, the authors probably thought it was too easy to need an explaination ...On 6/12/06, Kent Johnson < [EMAIL PROTECTED]> wrote:doug shawh

Re: [Tutor] datetime: What happended yesterday? :-)

2006-06-12 Thread Kent Johnson
doug shawhan wrote: > I've been looking at datetime and cannot figure out what was a very > simple operation with the time module. > > How does one add or subtract 24 (or any number) of hours from a given > date and time using the datetime module? Use a datetime.timedelta: In [1]: import datet

Re: [Tutor] Mod-python

2006-06-12 Thread Dustin Mitchell
Well, POST or PUT are the normal ways to do that. You need to interact with the person running the web server to see how they need it delivered - if they're expecting a GET and you give them a POST, it isn't going to work very well :) Dustin On Jun 12, 2006, at 2:48 PM, patricia wrote: > Hi!

[Tutor] Mod-python

2006-06-12 Thread patricia
Hi! I have about 17 lines of text (about system information) that I need to pass to a remote web server AND I've been asked to send this data via Apache. I have to write a python script that will fetch a URL to pass this text. I understand that if I want to use the POST method, I would need to hav

[Tutor] datetime: What happended yesterday? :-)

2006-06-12 Thread doug shawhan
I've been looking at datetime and cannot figure out what was a very simple operation with the time module. How does one add or subtract 24 (or any number) of hours from a given date and time using the datetime module? ___ Tutor maillist - Tutor@pytho

Re: [Tutor] please remove this address from list: [EMAIL PROTECTED]

2006-06-12 Thread Daniel McQuay
you will need to do it yourself.http://mail.python.org/mailman/listinfo/python-listOn 6/12/06, graphic design <[EMAIL PROTECTED]> wrote: not sure how i got on this list. please remove my email address from it.   thank you.   [EMAIL PROTECTED] ___Tutor

[Tutor] Python related mags

2006-06-12 Thread Carroll, Barry
Hello, Andrew: > -Original Message- > Date: Mon, 12 Jun 2006 07:53:05 -0400 > From: Andrew Robert <[EMAIL PROTECTED]> > Subject: [Tutor] Python related mags > To: Python Tutor > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > -BEGIN PGP SIGNED MES

Re: [Tutor] XML: Expletive Deleted (OT)

2006-06-12 Thread Kent Johnson
Carroll, Barry wrote: > So here's my off-topic question: Ajax is being touted as the 'best-known > method' (BKM) for making dynamic browser-based applications, and XML is > the BKM for transferring data in Ajax land. If XML is a bad idea for > network data-transfer, what medium should be used inst

Re: [Tutor] XML: Expletive Deleted (OT)

2006-06-12 Thread Carroll, Barry
Alan, Ralph, et al: This is a little off-topic, I guess, being not directly related to Python. Oh, well. Here are a couple of personal opinions and a question about XML. > -Original Message- > Date: Sun, 11 Jun 2006 08:55:17 +0100 > From: "Alan Gauld" <[EMAIL PROTECTED]> > Subject: Re:

Re: [Tutor] sorting in python

2006-06-12 Thread Python
On Mon, 2006-06-12 at 11:26 -0400, Kermit Rose wrote: > # to insert 3 between 2 and 4 in > > B = [1,2,4,5] > > B.append(B[3:3]) >>> B[3:3] [] >>> B[3:4] [5] >>> B[0:1] [1] >>> B[:2] [1, 2] >>> B.append(B[3:3]) >>> B [1, 2, 4, 5, []] > > # I expected B[4] to have the value 5 at this point.

[Tutor] sorting in python

2006-06-12 Thread Kermit Rose
Message: 6 Date: Mon, 12 Jun 2006 05:59:16 -0400 From: Kent Johnson <[EMAIL PROTECTED]> Subject: Re: [Tutor] assignment statements in python Actually sorting doesn't require copying the values in the list, it just requires moving values to different locations of the list. * Yes. I w

Re: [Tutor] assignment statements in python

2006-06-12 Thread Python
On Mon, 2006-06-12 at 09:37 -0400, Kermit Rose wrote: > > From: Python > Date: 06/11/06 22:59:38 > To: Kermit Rose > Cc: Tutor Python > Subject: Re: [Tutor] assignment statements in python > > > The basic python objects: numbers, strings, and tuples are immutable and > can not be change

Re: [Tutor] XML: Expletive Deleted

2006-06-12 Thread doug shawhan
Kent, Danny, Lawrence, et. al. Thanks! I was kind of cringing as I sent this plaint/rant, but it seems I'm not the only one who has had trouble grokking DOM. I spanked the problem temporarily with regex, but can now actually fix it properly. Appreciate all the help!On 6/10/06, Kent Johnson <[

Re: [Tutor] assignment statements in python

2006-06-12 Thread Danny Yoo
>> Assignment in Python is not a copy, it is a name binding. Assignment >> creates a name for an object. If you assign the same object to two >> names, they both are bound to the same thing. If the object is mutable, >> like a list, changes to the object will be seen regardless of which >> name

[Tutor] Odd traceback - invalid token when extracting contents of XML data element

2006-06-12 Thread Andrew Robert
Hi Everyone, Attached are three scripts that I intend to use for transporting a file via IBM's WebSphere MQSeries middle-ware. The sender script uses a regular expression to replace characters not [a-z][A-Z][0-9] or white space with their hex value equivalents. The purpose of this is to make the

Re: [Tutor] assignment statements in python

2006-06-12 Thread Michael Sullivan
On Sun, 2006-06-11 at 22:14 -0400, Kermit Rose wrote: > Message: 1 > Date: Sun, 11 Jun 2006 06:58:39 -0400 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] buggy bug in my program > Cc: tutor@python.org > > Assignment in Python is not a copy, it is a name binding. Assignment > cr

[Tutor] Wondering is there a pyQT list

2006-06-12 Thread johnf
Hi, I was wondering if there is a pyqt list like the [EMAIL PROTECTED] list? Thanks John ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] connect to a remote machine - Linux

2006-06-12 Thread Patricia G.
Thank you for the great explanation, Danny.. I was confused... Thank you all for your help! PatriciaOn 6/11/06, Danny Yoo <[EMAIL PROTECTED]> wrote: > I'm sorry. I think I didn't explain myself well. My problem is not with> the database.. The part I'm not sure how to do is connect to the remote> c

[Tutor] Python related mags

2006-06-12 Thread Andrew Robert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, Does anyone know of any Python related magazines available that would be worth subscribing to? Ideally, a free one, but I would not object to a reasonably priced one either. I was able to find pyzine located at www.pyzine.com but it app

Re: [Tutor] assignment statements in python

2006-06-12 Thread Kent Johnson
Kermit Rose wrote: > > Message: 1 > Date: Sun, 11 Jun 2006 06:58:39 -0400 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] buggy bug in my program > Cc: tutor@python.org > > Assignment in Python is not a copy, it is a name binding. Assignment > creates a name for an object. If y