From owner-freebsd-python@FreeBSD.ORG Wed Mar 31 09:51:31 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6CA416A4CE for ; Wed, 31 Mar 2004 09:51:31 -0800 (PST) Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4230043D45 for ; Wed, 31 Mar 2004 09:51:31 -0800 (PST) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 4.20) id 1B8js8-0002jN-Tk for freebsd-python@freebsd.org; Wed, 31 Mar 2004 18:51:28 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) i2VHpSuf085130 for ; Wed, 31 Mar 2004 18:51:28 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.10/8.12.6/Submit) id i2VHpSkt085129 for freebsd-python@freebsd.org; Wed, 31 Mar 2004 18:51:28 +0100 (BST) Date: Wed, 31 Mar 2004 18:51:28 +0100 From: Jonathon McKitrick To: freebsd-python@freebsd.org Message-ID: <20040331175128.GA82205@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Spam-Score: -4.9 (----) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1B8js8-0002jN-Tk*/.2.bKQNYJg* Subject: Need an example of brilliant python code X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 17:51:32 -0000 I've recently fallen in love with developing in Python on top of FreeBSD. It's a great combination. I'm working on a small app for accounting, and I've got a lot of the Python basics down pretty well. But is there an example of some python code that is just really amazing, and demonstrates the features of the language in a powerful way? I'm especially interested in the actual language features rather than just the library support, but either would be fine. NOTE: Please CC me, as I am not currently subscribed. Thanks. jm -- My other computer is your windows box. From owner-freebsd-python@FreeBSD.ORG Thu Apr 1 17:13:56 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9519C16A4CE; Thu, 1 Apr 2004 17:13:56 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B76443D39; Thu, 1 Apr 2004 17:13:56 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id 25DBB35369; Thu, 1 Apr 2004 20:13:55 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id 46BD8BD77; Thu, 1 Apr 2004 20:13:23 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Thu, 1 Apr 2004 20:13:22 -0500 User-Agent: KMail/1.6.1 References: <20040331175128.GA82205@dogma.freebsd-uk.eu.org> In-Reply-To: <20040331175128.GA82205@dogma.freebsd-uk.eu.org> X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404012013.22186.x@Vex.Net> cc: Jonathon McKitrick cc: freebsd-python@freebsd.org Subject: Re: Need an example of brilliant python code X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 01:13:56 -0000 On Wednesday 31 March 2004 12:51, Jonathon McKitrick wrote: > basics down pretty well. But is there an example of some python code that > is just really amazing, and demonstrates the features of the language in a Have you seen the Dive Into Python tutorial/book? http://diveintopython.org/toc/index.html It goes beyond just the basics... pretty much something for everyone in there. Even in the stuff that seems basic, there's often little tidbits that are good to know. Also it covers programming techniques which you may find interesting (if not useful) such as test driven development. -- Tim Middleton | Cain Gang Ltd | I care not much for a man's religion whose x@veX.net | www.Vex.Net | dog or cat are not the better for it. [A.L.] From owner-freebsd-python@FreeBSD.ORG Thu Apr 1 17:13:56 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9519C16A4CE; Thu, 1 Apr 2004 17:13:56 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B76443D39; Thu, 1 Apr 2004 17:13:56 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id 25DBB35369; Thu, 1 Apr 2004 20:13:55 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id 46BD8BD77; Thu, 1 Apr 2004 20:13:23 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Thu, 1 Apr 2004 20:13:22 -0500 User-Agent: KMail/1.6.1 References: <20040331175128.GA82205@dogma.freebsd-uk.eu.org> In-Reply-To: <20040331175128.GA82205@dogma.freebsd-uk.eu.org> X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404012013.22186.x@Vex.Net> cc: Jonathon McKitrick cc: freebsd-python@freebsd.org Subject: Re: Need an example of brilliant python code X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 01:13:56 -0000 On Wednesday 31 March 2004 12:51, Jonathon McKitrick wrote: > basics down pretty well. But is there an example of some python code that > is just really amazing, and demonstrates the features of the language in a Have you seen the Dive Into Python tutorial/book? http://diveintopython.org/toc/index.html It goes beyond just the basics... pretty much something for everyone in there. Even in the stuff that seems basic, there's often little tidbits that are good to know. Also it covers programming techniques which you may find interesting (if not useful) such as test driven development. -- Tim Middleton | Cain Gang Ltd | I care not much for a man's religion whose x@veX.net | www.Vex.Net | dog or cat are not the better for it. [A.L.] From owner-freebsd-python@FreeBSD.ORG Fri Apr 2 08:04:55 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A9EF16A4CE; Fri, 2 Apr 2004 08:04:55 -0800 (PST) Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE18D43D2D; Fri, 2 Apr 2004 08:04:54 -0800 (PST) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 4.20) id 1B9RA4-000CRI-9Q; Fri, 02 Apr 2004 17:04:52 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) i32G4puf069553; Fri, 2 Apr 2004 17:04:51 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.10/8.12.6/Submit) id i32G4pDC069552; Fri, 2 Apr 2004 17:04:51 +0100 (BST) Date: Fri, 2 Apr 2004 17:04:51 +0100 From: Jonathon McKitrick To: Tim Middleton Message-ID: <20040402160451.GC68803@dogma.freebsd-uk.eu.org> References: <20040331175128.GA82205@dogma.freebsd-uk.eu.org> <200404012013.22186.x@Vex.Net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404012013.22186.x@Vex.Net> User-Agent: Mutt/1.4i X-Spam-Score: -4.9 (----) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1B9RA4-000CRI-9Q*p1yPak41C2g* cc: python@freebsd.org cc: freebsd-python@freebsd.org Subject: Re: Need an example of brilliant python code X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 16:04:55 -0000 On Thu, Apr 01, 2004 at 08:13:22PM -0500, Tim Middleton wrote: : On Wednesday 31 March 2004 12:51, Jonathon McKitrick wrote: : > basics down pretty well. But is there an example of some python code that : > is just really amazing, and demonstrates the features of the language in a : : Have you seen the Dive Into Python tutorial/book? : : http://diveintopython.org/toc/index.html : : It goes beyond just the basics... pretty much something for everyone in there. : Even in the stuff that seems basic, there's often little tidbits that are : good to know. Also it covers programming techniques which you may find : interesting (if not useful) such as test driven development. That's actually where I started, and it was a great resource. I was just wondering if there were some really cool example programs or available code for other apps that could show python's power with less code and how its features can improve productivity and reduce debug time. jm -- My other computer is your Windows box. From owner-freebsd-python@FreeBSD.ORG Fri Apr 2 08:04:55 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A9EF16A4CE; Fri, 2 Apr 2004 08:04:55 -0800 (PST) Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE18D43D2D; Fri, 2 Apr 2004 08:04:54 -0800 (PST) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 4.20) id 1B9RA4-000CRI-9Q; Fri, 02 Apr 2004 17:04:52 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) i32G4puf069553; Fri, 2 Apr 2004 17:04:51 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.10/8.12.6/Submit) id i32G4pDC069552; Fri, 2 Apr 2004 17:04:51 +0100 (BST) Date: Fri, 2 Apr 2004 17:04:51 +0100 From: Jonathon McKitrick To: Tim Middleton Message-ID: <20040402160451.GC68803@dogma.freebsd-uk.eu.org> References: <20040331175128.GA82205@dogma.freebsd-uk.eu.org> <200404012013.22186.x@Vex.Net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404012013.22186.x@Vex.Net> User-Agent: Mutt/1.4i X-Spam-Score: -4.9 (----) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1B9RA4-000CRI-9Q*p1yPak41C2g* cc: python@freebsd.org cc: freebsd-python@freebsd.org Subject: Re: Need an example of brilliant python code X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 16:04:55 -0000 On Thu, Apr 01, 2004 at 08:13:22PM -0500, Tim Middleton wrote: : On Wednesday 31 March 2004 12:51, Jonathon McKitrick wrote: : > basics down pretty well. But is there an example of some python code that : > is just really amazing, and demonstrates the features of the language in a : : Have you seen the Dive Into Python tutorial/book? : : http://diveintopython.org/toc/index.html : : It goes beyond just the basics... pretty much something for everyone in there. : Even in the stuff that seems basic, there's often little tidbits that are : good to know. Also it covers programming techniques which you may find : interesting (if not useful) such as test driven development. That's actually where I started, and it was a great resource. I was just wondering if there were some really cool example programs or available code for other apps that could show python's power with less code and how its features can improve productivity and reduce debug time. jm -- My other computer is your Windows box. From owner-freebsd-python@FreeBSD.ORG Fri Apr 2 08:38:29 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3A4216A4CE for ; Fri, 2 Apr 2004 08:38:28 -0800 (PST) Received: from miffy.openlook.org (openlook.org [211.236.182.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id C69E043D55 for ; Fri, 2 Apr 2004 08:38:28 -0800 (PST) (envelope-from perky@miffy.openlook.org) Received: by miffy.openlook.org (Postfix, from userid 1000) id 091CEA98D; Sat, 3 Apr 2004 01:38:28 +0900 (KST) Date: Sat, 3 Apr 2004 01:38:27 +0900 From: Hye-Shik Chang To: python@FreeBSD.org Message-ID: <20040402163827.GB11759@i18n.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Accept-Language: ko, en User-Agent: Mutt/1.5.5.1i Subject: The zope port is updated to 2.7. [pav@FreeBSD.org: cvs commit: ports/Mk bsd.python.mk ports/www/zope Makefile distinfo pkg-deinstall pkg-install pkg-message pkg-plist ports/www/zope/files CREDITS Message apache.conf.Zope-Changes patch-lib-python-zdaemon-zdctl.py zope.conf_changes zope.sh X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 16:38:29 -0000 FYI, ----- Forwarded message from Pav Lucistnik ----- From: Pav Lucistnik Date: Thu, 1 Apr 2004 16:00:29 -0800 (PST) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/Mk bsd.python.mk ports/www/zope Makefile distinfo pkg-deinstall pkg-install pkg-message pkg-plist ports/www/zope/files CREDITS Message apache.conf.Zope-Changes patch-lib-python-zdaemon-zdctl.py zope.conf_changes zope.sh.in pav 2004/04/01 16:00:29 PST FreeBSD ports repository Modified files: Mk bsd.python.mk www/zope Makefile distinfo pkg-plist www/zope/files zope.sh.in Added files: www/zope pkg-message www/zope/files patch-lib-python-zdaemon-zdctl.py zope.conf_changes Removed files: www/zope pkg-deinstall pkg-install www/zope/files CREDITS Message apache.conf.Zope-Changes Log: - Update to 2.7.0 PR: ports/63265 Submitted by: Gerhard Schmidt Approved by: crowds on python@ via perky (in general) Revision Changes Path 1.46 +3 -3 ports/Mk/bsd.python.mk 1.55 +35 -113 ports/www/zope/Makefile 1.28 +2 -2 ports/www/zope/distinfo 1.2 +0 -6 ports/www/zope/files/CREDITS (dead) 1.2 +0 -57 ports/www/zope/files/Message (dead) 1.3 +0 -54 ports/www/zope/files/apache.conf.Zope-Changes (dead) 1.1 +14 -0 ports/www/zope/files/patch-lib-python-zdaemon-zdctl.py (new) 1.1 +10 -0 ports/www/zope/files/zope.conf_changes (new) 1.5 +6 -8 ports/www/zope/files/zope.sh.in 1.2 +0 -15 ports/www/zope/pkg-deinstall (dead) 1.2 +0 -34 ports/www/zope/pkg-install (dead) 1.1 +17 -0 ports/www/zope/pkg-message (new) 1.33 +956 -630 ports/www/zope/pkg-plist ----- End forwarded message ----- From owner-freebsd-python@FreeBSD.ORG Fri Apr 2 10:27:43 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4E4C16A4CE for ; Fri, 2 Apr 2004 10:27:43 -0800 (PST) Received: from danu.intersiege.com (dsl092-163-205.wdc2.dsl.speakeasy.net [66.92.163.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C33543D2D for ; Fri, 2 Apr 2004 10:27:43 -0800 (PST) (envelope-from reed@intersiege.com) Received: from webmail.intersiege.com (localhost [127.0.0.1]) by danu.intersiege.com (Postfix) with SMTP id 8086A25017 for ; Fri, 2 Apr 2004 13:31:21 -0500 (EST) Received: from 66.92.163.23 (SquirrelMail authenticated user reed) by webmail.intersiege.com with HTTP; Fri, 2 Apr 2004 13:31:21 -0500 (EST) Message-ID: <3574.66.92.163.23.1080930681.squirrel@webmail.intersiege.com> Date: Fri, 2 Apr 2004 13:31:21 -0500 (EST) From: "Reed L. O'Brien" To: freebsd-python@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: mod_python apache config weirdness X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 18:27:43 -0000 I am having trouble with this. Please help. The installs are all defaults from the ports section. I followed the instructions attached to them. They are usually pretty up to date. AddHandler mod_python .py Gives a full rendering of the page (home, about, products) if I manually add the .py extension With: SetHandler mod_python ( this is the one the mod_python docs say to use as there is no need for the .py extensions.) will render all the text and links but no images or menu colors, image links appears as broken image links. Although if I an add handler and load the default page (nothing after trailing slash) then change to SetHandler it will render and work fine. But it is pulling images and such from the cache. This is what tricked me into thinking it was solved earlier. As soon as I clear the cache or it expires it falls back to no images and noo menu highlighting. Ideas? Apache2.0.49 mod_python3.1.3 Python2.3.3 patchlevel 4 on freebsd 4.9 TIA reed 4.6692016090