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

[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

[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

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

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

[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

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. # It is empty. Why?

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: [Tutor]

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

[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 tutor@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 -BEGIN PGP SIGNED

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

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!

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 datetime

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

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 Supported

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

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

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

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

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

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