From sandra@mitra.net.id Sat Jul 11 09:48:41 1998 From: sandra@mitra.net.id (Sandra) Date: Sat, 11 Jul 1998 01:48:41 -0700 Subject: [meta-sig] DATABASE Message-ID: <35A726E9.54DF@mitra.net.id> Dear All, I need a simple sample of CGI Database aplication written in Python, if all of you have it, please give me the source code ? complete with cgi script, html form, and the database file. Thank you a lots ! Best regards, sandra From tismer@appliedbiometrics.com Fri Jul 10 19:57:48 1998 From: tismer@appliedbiometrics.com (Christian Tismer) Date: Fri, 10 Jul 1998 20:57:48 +0200 Subject: [meta-sig] DATABASE References: <35A726E9.54DF@mitra.net.id> Message-ID: <35A6642C.4EFB5D3E@appliedbiometrics.com> Sandra wrote: > > Dear All, > > I need a simple sample of CGI Database aplication written in Python, if > all of you have it, please give me the source code ? complete with cgi > script, html form, and the database file. Thank you a lots ! > > Best regards, > sandra Yes, why not? And should we could install it for you? No problem. You just forgot to tell how much you pay by the hour. ciao - pirx -- Christian Tismer :^) Applied Biometrics GmbH : Have a break! Take a ride on Python's Kaiserin-Augusta-Allee 101 : *Starship* http://starship.skyport.net 10553 Berlin : PGP key -> http://pgpkeys.mit.edu we're tired of banana software - shipped green, ripens at home From fredrik@pythonware.com Fri Jul 10 22:14:47 1998 From: fredrik@pythonware.com (Fredrik Lundh) Date: Fri, 10 Jul 1998 22:14:47 +0100 Subject: [meta-sig] DATABASE Message-ID: <03dc01bdac47$c57e0db0$f29b12c2@pythonware.com> >> I need a simple sample of CGI Database aplication written in Python, if >> all of you have it, please give me the source code ? complete with cgi >> script, html form, and the database file. Thank you a lots ! Hey, here I go away for a three-day vacation, and when I come back, the Python universe is starting to look like comp.lang.perl.misc. Didn't take long to figure out why, though: -- comp.lang.perl.moderated just passed with 1127 yes, 46 no -- Python/XML hacker Lars Marius Garshol published the following little masterpiece: http://www.stud.ifi.uio.no/~larsga/download/artikler/perl.html Cheers /F From fleck@informatik.uni-bonn.de Sat Jul 11 00:11:53 1998 From: fleck@informatik.uni-bonn.de (Markus Fleck) Date: Sat, 11 Jul 1998 01:11:53 +0200 Subject: [meta-sig] DATABASE References: <03dc01bdac47$c57e0db0$f29b12c2@pythonware.com> Message-ID: <35A69FB9.EAF@informatik.uni-bonn.de> Fredrik Lundh wrote: > Hey, here I go away for a three-day vacation, and when I come back, > the Python universe is starting to look like comp.lang.perl.misc. > > Didn't take long to figure out why, though: > [...] > -- Python/XML hacker Lars Marius Garshol published the following > little masterpiece: > > http://www.stud.ifi.uio.no/~larsga/download/artikler/perl.html Heh. This is indeed a very nice piece of pro-Python advocacy. It should be noted, though, that setting $| is not the only way to achieve unbuffered output with Perl. Another way (and the more general way) would be STDOUT->autoflush(1); or STDOUT->autoflush(); And with Perl file handles not even needing "$" prefixes, the above in fact looks quite readable... -:^)) When including use English; it is also possible to refer to $| as $OUTPUT_AUTOFLUSH. Another nice quote from the "perlvar" manual page: "$| ... (Mnemonic: when you want your pipes to be piping hot.)" Yours, Markus. "But the possibility of abuse may be a good reason for leaving capabilities out of other computer languages, it's not a good reason for leaving capabilities out of Perl." -- Larry Wall in <199709251614.JAA15718@wall.org> -- //////////////////////////////////////////////////////////////////////////// Markus B Fleck - University of Bonn - CS Department IV - fleck@isoc.de UNIX Administrator - comp.lang.python.announce Moderator PINN Open Source Internet Groupware Project - http://cscw.net/pinn/ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ From da@skivs.ski.org Sat Jul 11 00:47:15 1998 From: da@skivs.ski.org (David Ascher) Date: Fri, 10 Jul 1998 16:47:15 -0700 (PDT) Subject: [meta-sig] DATABASE In-Reply-To: <35A69FB9.EAF@informatik.uni-bonn.de> Message-ID: > Heh. This is indeed a very nice piece of pro-Python advocacy. > It should be noted, though, that setting $| is not the only way > to achieve unbuffered output with Perl. Another way (and the > more general way) would be it should also be noted that output pipes *can* be unbuffered in python (python -u). --da nothing-meta-about-this-post! From klm@python.org Sat Jul 11 00:58:00 1998 From: klm@python.org (Ken Manheimer) Date: Fri, 10 Jul 1998 19:58:00 -0400 (EDT) Subject: [meta-sig] DATABASE In-Reply-To: Message-ID: I can't resist! On Fri, 10 Jul 1998, David Ascher wrote: > [Some responses to a misplaced beginners question.] > it should also be noted that output pipes *can* be unbuffered in python > (python -u). > > --da > > nothing-meta-about-this-post! Except, well, um, that's a meta comment. Hey, so's this! And self reflexive, at that! Oboy! might-as-well-try-a-fancy-self-reflexive-signoff-too'ly yrs, Ken Manheimer klm@python.org 703 620-8990 x268 (orporation for National Research |nitiatives # If you appreciate Python, consider joining the PSA! # # . # From fleck@xmailer.informatik.uni-bonn.de Sat Jul 11 03:06:23 1998 From: fleck@xmailer.informatik.uni-bonn.de (Markus Fleck) Date: Sat, 11 Jul 1998 04:06:23 +0200 (MET DST) Subject: [meta-sig] FYI: [comp.lang.python.*] Posting guidelines -- bi-weekly posting Message-ID: <199807110206.EAA26272@sokrates.informatik.uni-bonn.de> Archive-name: python-faq/python-newsgroup-faq Comp-lang-python-announce-archive-name: python-newsgroup-faq Comp-lang-python-archive-name: python-newsgroup-faq Posting-Frequency: biweekly Last-modified: 1998/07/10 Version: 1.0 > HOW TO post to comp.lang.python[.announce] < ------------------------------------------------ posted bi-weekly to comp.lang.python.announce, comp.lang.python, comp.answers, news.answers About Python ------------ From the Python FAQ: "Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C++. It is also usable as an extension language for applications that need a programmable interface. Finally, Python is portable: it runs on many brands of UNIX, on the Mac, and on PCs under MS-DOS, Windows, Windows NT, and OS/2. To find out more, the best thing to do is to start reading the tutorial from the documentation set at ." Example: "Hello World" in Python -------------------------------- The original task can be accomplished by a one-liner: print "Hello World!" Here is a longer example, a function that returns a string containing a series of multiple "Hello World!" greetings: def my_hello(how_often): retval = ( how_often * "Hello World! " ) # "multiply" string return retval[:-1] # strip off trailing space Usage: >>> my_hello(5) 'Hello World! Hello World! Hello World! Hello World! Hello World!' Note that block structure in Python is defined by indentation, rather than block delimiters (as used in many other programming languages such as Perl, Java and C/C++). comp.lang.python ---------------- comp.lang.python (or c.l.py for short) is the general discussion newsgroup for users of the Python language. It is also available as a mailing list; see below for instructions on subscribing to c.l.py through the mailing list. If you have questions regarding the use of Python, please take the time to consult the Python "Frequently Asked Questions" (FAQ) list first before posting to comp.lang.python: it's at . comp.lang.python.announce ------------------------- The comp.lang.python.announce newsgroup (or c.l.py.a for short) has been created in early 1998 as a companion newsgroup for comp.lang.python focused on Python-related announcements. The newsgroup charter is as follows: "comp.lang.python.announce is a moderated, low-volume newsgroup for announcements regarding the Python programming language, including: - new releases of the core distribution and contributed software - events (user group meetings, conferences, training, etc.) - periodic postings (FAQs) - other items of general interest to the Python community This is not a discussion group. Posts are expected to have Followup-To: headers set to "poster" or an appropriate newsgroup; posts that omit this header will have a Followup-To: comp.lang.python inserted by the moderator." comp.lang.python.announce posting guidelines -------------------------------------------- In addition to honoring the c.l.py.a charter (see above), you are asked to consider the following things when submitting announcements for comp.lang.python.announce: 1. It is often very helpful to INCLUDE SOME BACKGROUND INFORMATION if you are announcing a very specialized package or event. Submissions will be rejected by the moderators if a casual c.l.py.a reader cannot understand the utility or context of your announcement. 2. INCLUDE A URL (web address) for your announcement. Hint: a "real" web page often looks better than a mere FTP address and offers more possibilites to present your package "at a glance". 3. GIVE YOUR PACKAGE A VERSION NUMBER. If you give your package a version number from the start, it will be easier to identify different releases in the future. Even "small" packages should have version numbers. 4. Clarify the LICENSE that you release your package under. If you want to release something as free software, you might want to have a look at the "Open Source Definition", , and pick one of the licenses mentioned there under "Example Licenses". 5. You should INCLUDE YOUR E-MAIL ADDRESS in the body text of your posting or in the trailing .signature block. Please do *not* sign your announcement with PGP; most people would not know your public PGP key anyway and would get a warning message. 6. Avoid excessive cross-posting. Messages that are cross-posted to several moderated news groups will usually be approved by the moderator of the first group in the list. You can upload your program or module to , or become a PSA member and create a web page at the "Starship Python" server (see below). The Python main FTP site is being mirrored at serveral sites all around the world. Don't forget to send a short e-mail notification to and upload a corresponding .README file together with your announcement. Mailing list gateways --------------------- * comp.lang.python: There is a two-way gateway between the comp.lang.python news group and the "python-list" mailing list. You can subscribe to this list by sending an e-mail message to the following address: with the text "subcribe" in the e-mail body. You can unsubscribe by sending an e-mail message to the same address with the text "unsubscribe" in the e-mail body. There is a web archive of past comp.lang.python postings at FindMail, . * comp.lang.python.announce: There is also a mailing list gateway for comp.lang.python.announce. To subscribe or unsubscribe, send an e-mail to with a body content of "subscribe" or "unsubscribe", respectively. Please note that comp.lang.python is moderated; you cannot just post to this list. Please e-mail any announcements to the c.l.py.a submission address: or use your news reader to post to comp.lang.python.announce. In the latter case, your posting should be forwarded to the c.l.py.a moderators automatically by the news server software. A web archive of c.l.py.a postings is currently being prepared. Until it becomes available, you can look for c.l.py and c.l.py.a postings with DejaNews, , or FindMail, . Further Python Resources ------------------------ WWW: - Python Language Home Page - Python Language FAQ - Starship Python: User Pages Usenet: - Python Discussion Newsgroup - Python Announcements Newsgroup The PSA ------- About the "Python Software Activity" (PSA), cf. : "The continued, free existence of Python is promoted by the contributed efforts of many people. The Python Software Activity (PSA) supports those efforts by helping to coordinate them. The PSA operates web, ftp, and email services, organizes conferences, and engages in other activities that benefit the Python user community. In order to continue, the PSA needs the membership of people who value Python." Have a look at the PSA web pages for further information about the PSA and membership benefits. -- -------- comp.lang.python.announce (moderated) -------- Article Submission Address: python-announce@python.org Python Language Home Page: http://www.python.org/ ------------------------------------------------------- From da@skivs.ski.org Sat Jul 11 04:41:43 1998 From: da@skivs.ski.org (David Ascher) Date: Fri, 10 Jul 1998 20:41:43 -0700 (PDT) Subject: [meta-sig] FYI: [comp.lang.python.*] Posting guidelines -- bi-weekly posting In-Reply-To: <199807110206.EAA26272@sokrates.informatik.uni-bonn.de> Message-ID: > def my_hello(how_often): > retval = ( how_often * "Hello World! " ) # "multiply" string > return retval[:-1] # strip off trailing space why the ()'s? From fleck@informatik.uni-bonn.de Sat Jul 11 04:49:36 1998 From: fleck@informatik.uni-bonn.de (Markus Fleck) Date: Sat, 11 Jul 1998 05:49:36 +0200 Subject: [meta-sig] FYI: [comp.lang.python.*] Posting guidelines -- bi-weekly posting References: Message-ID: <35A6E0D0.7B60@informatik.uni-bonn.de> David Ascher wrote: > > > def my_hello(how_often): > > retval = ( how_often * "Hello World! " ) # "multiply" string > > return retval[:-1] # strip off trailing space > > why the ()'s? For readability - most people are probably not used to "multiplying" strings, and the ()'s should make it more clear that this is indeed "some kind of multiplication expression". But the parens are not strictly necessary, of course. Yours, Markus. -- "The difference between Perl and Python is that Python was designed, Perl was accumulated." From sandra@mitra.net.id Sat Jul 11 09:48:41 1998 From: sandra@mitra.net.id (Sandra) Date: Sat, 11 Jul 1998 01:48:41 -0700 Subject: [meta-sig] DATABASE Message-ID: <35A726E9.54DF@mitra.net.id> Dear All, I need a simple sample of CGI Database aplication written in Python, if all of you have it, please give me the source code ? complete with cgi script, html form, and the database file. Thank you a lots ! Best regards, sandra From tismer@appliedbiometrics.com Fri Jul 10 19:57:48 1998 From: tismer@appliedbiometrics.com (Christian Tismer) Date: Fri, 10 Jul 1998 20:57:48 +0200 Subject: [meta-sig] DATABASE References: <35A726E9.54DF@mitra.net.id> Message-ID: <35A6642C.4EFB5D3E@appliedbiometrics.com> Sandra wrote: > > Dear All, > > I need a simple sample of CGI Database aplication written in Python, if > all of you have it, please give me the source code ? complete with cgi > script, html form, and the database file. Thank you a lots ! > > Best regards, > sandra Yes, why not? And should we could install it for you? No problem. You just forgot to tell how much you pay by the hour. ciao - pirx -- Christian Tismer :^) Applied Biometrics GmbH : Have a break! Take a ride on Python's Kaiserin-Augusta-Allee 101 : *Starship* http://starship.skyport.net 10553 Berlin : PGP key -> http://pgpkeys.mit.edu we're tired of banana software - shipped green, ripens at home From fredrik@pythonware.com Fri Jul 10 22:14:47 1998 From: fredrik@pythonware.com (Fredrik Lundh) Date: Fri, 10 Jul 1998 22:14:47 +0100 Subject: [meta-sig] DATABASE Message-ID: <03dc01bdac47$c57e0db0$f29b12c2@pythonware.com> >> I need a simple sample of CGI Database aplication written in Python, if >> all of you have it, please give me the source code ? complete with cgi >> script, html form, and the database file. Thank you a lots ! Hey, here I go away for a three-day vacation, and when I come back, the Python universe is starting to look like comp.lang.perl.misc. Didn't take long to figure out why, though: -- comp.lang.perl.moderated just passed with 1127 yes, 46 no -- Python/XML hacker Lars Marius Garshol published the following little masterpiece: http://www.stud.ifi.uio.no/~larsga/download/artikler/perl.html Cheers /F From fleck@informatik.uni-bonn.de Sat Jul 11 00:11:53 1998 From: fleck@informatik.uni-bonn.de (Markus Fleck) Date: Sat, 11 Jul 1998 01:11:53 +0200 Subject: [meta-sig] DATABASE References: <03dc01bdac47$c57e0db0$f29b12c2@pythonware.com> Message-ID: <35A69FB9.EAF@informatik.uni-bonn.de> Fredrik Lundh wrote: > Hey, here I go away for a three-day vacation, and when I come back, > the Python universe is starting to look like comp.lang.perl.misc. > > Didn't take long to figure out why, though: > [...] > -- Python/XML hacker Lars Marius Garshol published the following > little masterpiece: > > http://www.stud.ifi.uio.no/~larsga/download/artikler/perl.html Heh. This is indeed a very nice piece of pro-Python advocacy. It should be noted, though, that setting $| is not the only way to achieve unbuffered output with Perl. Another way (and the more general way) would be STDOUT->autoflush(1); or STDOUT->autoflush(); And with Perl file handles not even needing "$" prefixes, the above in fact looks quite readable... -:^)) When including use English; it is also possible to refer to $| as $OUTPUT_AUTOFLUSH. Another nice quote from the "perlvar" manual page: "$| ... (Mnemonic: when you want your pipes to be piping hot.)" Yours, Markus. "But the possibility of abuse may be a good reason for leaving capabilities out of other computer languages, it's not a good reason for leaving capabilities out of Perl." -- Larry Wall in <199709251614.JAA15718@wall.org> -- //////////////////////////////////////////////////////////////////////////// Markus B Fleck - University of Bonn - CS Department IV - fleck@isoc.de UNIX Administrator - comp.lang.python.announce Moderator PINN Open Source Internet Groupware Project - http://cscw.net/pinn/ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ From da@skivs.ski.org Sat Jul 11 00:47:15 1998 From: da@skivs.ski.org (David Ascher) Date: Fri, 10 Jul 1998 16:47:15 -0700 (PDT) Subject: [meta-sig] DATABASE In-Reply-To: <35A69FB9.EAF@informatik.uni-bonn.de> Message-ID: > Heh. This is indeed a very nice piece of pro-Python advocacy. > It should be noted, though, that setting $| is not the only way > to achieve unbuffered output with Perl. Another way (and the > more general way) would be it should also be noted that output pipes *can* be unbuffered in python (python -u). --da nothing-meta-about-this-post! From klm@python.org Sat Jul 11 00:58:00 1998 From: klm@python.org (Ken Manheimer) Date: Fri, 10 Jul 1998 19:58:00 -0400 (EDT) Subject: [meta-sig] DATABASE In-Reply-To: Message-ID: I can't resist! On Fri, 10 Jul 1998, David Ascher wrote: > [Some responses to a misplaced beginners question.] > it should also be noted that output pipes *can* be unbuffered in python > (python -u). > > --da > > nothing-meta-about-this-post! Except, well, um, that's a meta comment. Hey, so's this! And self reflexive, at that! Oboy! might-as-well-try-a-fancy-self-reflexive-signoff-too'ly yrs, Ken Manheimer klm@python.org 703 620-8990 x268 (orporation for National Research |nitiatives # If you appreciate Python, consider joining the PSA! # # . # From fleck@xmailer.informatik.uni-bonn.de Sat Jul 11 03:06:23 1998 From: fleck@xmailer.informatik.uni-bonn.de (Markus Fleck) Date: Sat, 11 Jul 1998 04:06:23 +0200 (MET DST) Subject: [meta-sig] FYI: [comp.lang.python.*] Posting guidelines -- bi-weekly posting Message-ID: <199807110206.EAA26272@sokrates.informatik.uni-bonn.de> Archive-name: python-faq/python-newsgroup-faq Comp-lang-python-announce-archive-name: python-newsgroup-faq Comp-lang-python-archive-name: python-newsgroup-faq Posting-Frequency: biweekly Last-modified: 1998/07/10 Version: 1.0 > HOW TO post to comp.lang.python[.announce] < ------------------------------------------------ posted bi-weekly to comp.lang.python.announce, comp.lang.python, comp.answers, news.answers About Python ------------ From the Python FAQ: "Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C++. It is also usable as an extension language for applications that need a programmable interface. Finally, Python is portable: it runs on many brands of UNIX, on the Mac, and on PCs under MS-DOS, Windows, Windows NT, and OS/2. To find out more, the best thing to do is to start reading the tutorial from the documentation set at ." Example: "Hello World" in Python -------------------------------- The original task can be accomplished by a one-liner: print "Hello World!" Here is a longer example, a function that returns a string containing a series of multiple "Hello World!" greetings: def my_hello(how_often): retval = ( how_often * "Hello World! " ) # "multiply" string return retval[:-1] # strip off trailing space Usage: >>> my_hello(5) 'Hello World! Hello World! Hello World! Hello World! Hello World!' Note that block structure in Python is defined by indentation, rather than block delimiters (as used in many other programming languages such as Perl, Java and C/C++). comp.lang.python ---------------- comp.lang.python (or c.l.py for short) is the general discussion newsgroup for users of the Python language. It is also available as a mailing list; see below for instructions on subscribing to c.l.py through the mailing list. If you have questions regarding the use of Python, please take the time to consult the Python "Frequently Asked Questions" (FAQ) list first before posting to comp.lang.python: it's at . comp.lang.python.announce ------------------------- The comp.lang.python.announce newsgroup (or c.l.py.a for short) has been created in early 1998 as a companion newsgroup for comp.lang.python focused on Python-related announcements. The newsgroup charter is as follows: "comp.lang.python.announce is a moderated, low-volume newsgroup for announcements regarding the Python programming language, including: - new releases of the core distribution and contributed software - events (user group meetings, conferences, training, etc.) - periodic postings (FAQs) - other items of general interest to the Python community This is not a discussion group. Posts are expected to have Followup-To: headers set to "poster" or an appropriate newsgroup; posts that omit this header will have a Followup-To: comp.lang.python inserted by the moderator." comp.lang.python.announce posting guidelines -------------------------------------------- In addition to honoring the c.l.py.a charter (see above), you are asked to consider the following things when submitting announcements for comp.lang.python.announce: 1. It is often very helpful to INCLUDE SOME BACKGROUND INFORMATION if you are announcing a very specialized package or event. Submissions will be rejected by the moderators if a casual c.l.py.a reader cannot understand the utility or context of your announcement. 2. INCLUDE A URL (web address) for your announcement. Hint: a "real" web page often looks better than a mere FTP address and offers more possibilites to present your package "at a glance". 3. GIVE YOUR PACKAGE A VERSION NUMBER. If you give your package a version number from the start, it will be easier to identify different releases in the future. Even "small" packages should have version numbers. 4. Clarify the LICENSE that you release your package under. If you want to release something as free software, you might want to have a look at the "Open Source Definition", , and pick one of the licenses mentioned there under "Example Licenses". 5. You should INCLUDE YOUR E-MAIL ADDRESS in the body text of your posting or in the trailing .signature block. Please do *not* sign your announcement with PGP; most people would not know your public PGP key anyway and would get a warning message. 6. Avoid excessive cross-posting. Messages that are cross-posted to several moderated news groups will usually be approved by the moderator of the first group in the list. You can upload your program or module to , or become a PSA member and create a web page at the "Starship Python" server (see below). The Python main FTP site is being mirrored at serveral sites all around the world. Don't forget to send a short e-mail notification to and upload a corresponding .README file together with your announcement. Mailing list gateways --------------------- * comp.lang.python: There is a two-way gateway between the comp.lang.python news group and the "python-list" mailing list. You can subscribe to this list by sending an e-mail message to the following address: with the text "subcribe" in the e-mail body. You can unsubscribe by sending an e-mail message to the same address with the text "unsubscribe" in the e-mail body. There is a web archive of past comp.lang.python postings at FindMail, . * comp.lang.python.announce: There is also a mailing list gateway for comp.lang.python.announce. To subscribe or unsubscribe, send an e-mail to with a body content of "subscribe" or "unsubscribe", respectively. Please note that comp.lang.python is moderated; you cannot just post to this list. Please e-mail any announcements to the c.l.py.a submission address: or use your news reader to post to comp.lang.python.announce. In the latter case, your posting should be forwarded to the c.l.py.a moderators automatically by the news server software. A web archive of c.l.py.a postings is currently being prepared. Until it becomes available, you can look for c.l.py and c.l.py.a postings with DejaNews, , or FindMail, . Further Python Resources ------------------------ WWW: - Python Language Home Page - Python Language FAQ - Starship Python: User Pages Usenet: - Python Discussion Newsgroup - Python Announcements Newsgroup The PSA ------- About the "Python Software Activity" (PSA), cf. : "The continued, free existence of Python is promoted by the contributed efforts of many people. The Python Software Activity (PSA) supports those efforts by helping to coordinate them. The PSA operates web, ftp, and email services, organizes conferences, and engages in other activities that benefit the Python user community. In order to continue, the PSA needs the membership of people who value Python." Have a look at the PSA web pages for further information about the PSA and membership benefits. -- -------- comp.lang.python.announce (moderated) -------- Article Submission Address: python-announce@python.org Python Language Home Page: http://www.python.org/ ------------------------------------------------------- From da@skivs.ski.org Sat Jul 11 04:41:43 1998 From: da@skivs.ski.org (David Ascher) Date: Fri, 10 Jul 1998 20:41:43 -0700 (PDT) Subject: [meta-sig] FYI: [comp.lang.python.*] Posting guidelines -- bi-weekly posting In-Reply-To: <199807110206.EAA26272@sokrates.informatik.uni-bonn.de> Message-ID: > def my_hello(how_often): > retval = ( how_often * "Hello World! " ) # "multiply" string > return retval[:-1] # strip off trailing space why the ()'s? From fleck@informatik.uni-bonn.de Sat Jul 11 04:49:36 1998 From: fleck@informatik.uni-bonn.de (Markus Fleck) Date: Sat, 11 Jul 1998 05:49:36 +0200 Subject: [meta-sig] FYI: [comp.lang.python.*] Posting guidelines -- bi-weekly posting References: Message-ID: <35A6E0D0.7B60@informatik.uni-bonn.de> David Ascher wrote: > > > def my_hello(how_often): > > retval = ( how_often * "Hello World! " ) # "multiply" string > > return retval[:-1] # strip off trailing space > > why the ()'s? For readability - most people are probably not used to "multiplying" strings, and the ()'s should make it more clear that this is indeed "some kind of multiplication expression". But the parens are not strictly necessary, of course. Yours, Markus. -- "The difference between Perl and Python is that Python was designed, Perl was accumulated."