Re: How to get a forum for your free site?

2007-04-13 Thread [EMAIL PROTECTED]
On Apr 13, 9:38 pm, "Ann" <[EMAIL PROTECTED]> wrote: > If you have something good and want to show or share it with > eachother ,what would you do then? > Send it one by one ?It's so slow and boring that you will be tired and > have no interested to do that again.The buoyant you will be lost,are

Re: File DB instead of real database?

2007-04-13 Thread Pierre Quentel
On 14 avr, 06:14, "Jia Lu" <[EMAIL PROTECTED]> wrote: > Hello all > > I donot want to use a real DB like MySQL ... But I need something to > save about more than 1000 articles. > Is there any good ways? > Hi, For small sets of data PyDbLite is a good alternative to full-blown db engines >>> im

Re: tuples, index method, Python's design

2007-04-13 Thread Hendrik van Rooyen
"Donn Cave" <[EMAIL PROTECTED]> wrote: > > Well, yes - consider for example the "tm" tuple returned > from time.localtime() - it's all integers, but heterogeneous > as could be - tm[0] is Year, tm[1] is Month, etc., and it > turns out that not one of them is alike. The point is exactly > that w

Re: Append data to a list within a dict

2007-04-13 Thread Tina I
Michael Bentley wrote: > > On Apr 14, 2007, at 12:39 AM, Tina I wrote: > >> Say I have the following dictionary: >> >> ListDict = { >> 'one' : ['oneone' , 'onetwo' , 'onethree'], >> 'two' : ['twoone' , 'twotwo', 'twothree'], >> 'three' : ['threeone' , 'threetwo', threethree']} >> >> Now I want to

Re: Append data to a list within a dict

2007-04-13 Thread Tina I
Paul Rubin wrote: > Tina I <[EMAIL PROTECTED]> writes: >> ListDict = { >> 'one' : ['oneone' , 'onetwo' , 'onethree'], >> 'two' : ['twoone' , 'twotwo', 'twothree'], >> 'three' : ['threeone' , 'threetwo', threethree']} >> >> Now I want to append 'twofour' to the list of the 'two' key but I >> can't f

Re: tuples, index method, Python's design

2007-04-13 Thread Hendrik van Rooyen
"Carsten Haese" <[EMAIL PROTECTED]> wrote: 8< > sense in its context. Nobody seems to be complaining about "+" behaving > "inconsistently" depending on whether you're adding numbers or > sequences. I would If I thought it would do some good - the plus sign as a joiner was, I think,

Re: Append data to a list within a dict

2007-04-13 Thread Michael Bentley
On Apr 14, 2007, at 12:51 AM, Paul Rubin wrote: > Is this a class exercise? Hint: > 1) figure out how to access the list of the 'two' key > 2) append 'twofour' to it. damn. -- http://mail.python.org/mailman/listinfo/python-list

Re: Append data to a list within a dict

2007-04-13 Thread 7stud
On Apr 13, 11:39 pm, Tina I <[EMAIL PROTECTED]> wrote: > Hello group, > > Say I have the following dictionary: > > ListDict = { > 'one' : ['oneone' , 'onetwo' , 'onethree'], > 'two' : ['twoone' , 'twotwo', 'twothree'], > 'three' : ['threeone' , 'threetwo', threethree']} > > Now I want to append 'tw

Re: Append data to a list within a dict

2007-04-13 Thread Paul Rubin
Tina I <[EMAIL PROTECTED]> writes: > ListDict = { > 'one' : ['oneone' , 'onetwo' , 'onethree'], > 'two' : ['twoone' , 'twotwo', 'twothree'], > 'three' : ['threeone' , 'threetwo', threethree']} > > Now I want to append 'twofour' to the list of the 'two' key but I > can't figure out how to that? Is

Re: Append data to a list within a dict

2007-04-13 Thread Michael Bentley
On Apr 14, 2007, at 12:39 AM, Tina I wrote: > Say I have the following dictionary: > > ListDict = { > 'one' : ['oneone' , 'onetwo' , 'onethree'], > 'two' : ['twoone' , 'twotwo', 'twothree'], > 'three' : ['threeone' , 'threetwo', threethree']} > > Now I want to append 'twofour' to the list of the

Re: Portably generating infinity and NaN

2007-04-13 Thread Martin v. Löwis
> I don't know. On I was just asking. On unixoid systems I sort of assume > you could add tests to the configure script to detect what worked. If > converting the strings works you're done. If not, maybe Robert Kern's numpy > code could be run in the configure script to generate constants for N

Append data to a list within a dict

2007-04-13 Thread Tina I
Hello group, Say I have the following dictionary: ListDict = { 'one' : ['oneone' , 'onetwo' , 'onethree'], 'two' : ['twoone' , 'twotwo', 'twothree'], 'three' : ['threeone' , 'threetwo', threethree']} Now I want to append 'twofour' to the list of the 'two' key but I can't figure out how to that?

Re: tuples, index method, Python's design

2007-04-13 Thread Paul Rubin
"Rhamphoryncus" <[EMAIL PROTECTED]> writes: > > i = s.index(e) => s[i] = e > > Then this algorithm is no longer guaranteed to work with strings. > It never worked correctly on unicode strings anyway (which becomes the > canonical string in python 3.0). What?! Are you sure? That sounds broken

Re: how to strip the domain name in python?

2007-04-13 Thread Michael Bentley
On Apr 13, 2007, at 11:49 PM, [EMAIL PROTECTED] wrote: > Hi, > > I have a list of url names like this, and I am trying to strip out the > domain name using the following code: > > http://www.cnn.com > www.yahoo.com > http://www.ebay.co.uk > > pattern = re.compile("http:(.*)\.(.*)", re.S) > ma

Re: File DB instead of real database?

2007-04-13 Thread fumanchu
On Apr 13, 9:14 pm, "Jia Lu" <[EMAIL PROTECTED]> wrote: > I do not want to use a real DB like MySQL ... > But I need something to save about more than > 1000 articles. Is there any good ways? The latest version of Dejavu includes a filesystem backend. See "Folders" at http://projects.amor.org/docs

Re: how to strip the domain name in python?

2007-04-13 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: > Hi, > > I have a list of url names like this, and I am trying to strip out the > domain name using the following code: > > http://www.cnn.com > www.yahoo.com > http://www.ebay.co.uk > > pattern = re.compile("http:(.*)\.(.*)", re.S) > match = re.findall(pattern,

Re: File DB instead of real database?

2007-04-13 Thread Richard Jones
Jia Lu wrote: > I donot want to use a real DB like MySQL ... But I need something to > save about more than 1000 articles. > Is there any good ways? import anydbm Richard -- http://mail.python.org/mailman/listinfo/python-list

how to strip the domain name in python?

2007-04-13 Thread Marko . Cain . 23
Hi, I have a list of url names like this, and I am trying to strip out the domain name using the following code: http://www.cnn.com www.yahoo.com http://www.ebay.co.uk pattern = re.compile("http:(.*)\.(.*)", re.S) match = re.findall(pattern, line) if (match): s1, s2 = match[0]

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jack
That's a good one. I got to find out what's special with Emacs :) > I'll let you in on a little secret. We all use Emacs. Those who claim to > use vim are just trying to prevent you from ever becoming a successful > Python programmer, and therefore reduce competition. > -- > Michael Hoffman

Re: Python editor/IDE on Linux?

2007-04-13 Thread Michael Bentley
>> >> Everybody uses vim. >> > Except for real programmers... Who instead use emacs ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in a strange land: IronPython and ASP.NET at the next PyGTA

2007-04-13 Thread Scott David Daniels
Mike C. Fletcher wrote: > IronPython is a native implementation of Python on the Microsoft .NET > platform. The implementation is from Microsoft and the language is well > supported by the Visual Studio development environment which has always > been one of the Microsoft platform's strengths.

Re: File DB instead of real database?

2007-04-13 Thread Paul McNett
Jia Lu wrote: > I donot want to use a real DB like MySQL ... But I need something to > save about more than 1000 articles. > Is there any good ways? (in Python 2.5): #-- begin import sqlite3.dbapi2 as sqlite con = sqlite.connect("path/to/new/filename.db") cur = con.cursor() cur.executescript("

Re: Python editor/IDE on Linux?

2007-04-13 Thread Ben Finney
Michael Hoffman <[EMAIL PROTECTED]> writes: > Jack wrote: > > I wonder what everybody uses for Python editor/IDE on Linux? > > I'll let you in on a little secret. We all use Emacs. Those who > claim to use vim are just trying to prevent you from ever becoming a > successful Python programmer, and

Re: favourite IDE

2007-04-13 Thread Ben Finney
"azrael" <[EMAIL PROTECTED]> writes: > Some time ago I posted a question about the favourite IDE. I finally > found it. I presume you mean "the favourite IDE of me, azrael". The threads that result, if they show anything, show that there is no one favourite IDE. -- \ "You've got to think

File DB instead of real database?

2007-04-13 Thread Jia Lu
Hello all I donot want to use a real DB like MySQL ... But I need something to save about more than 1000 articles. Is there any good ways? Thanx Jia Lu -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-13 Thread Parthan SR
OMG, all of you forgot IDLE ? http://www.python.org/idle/ It is very good for the starters and it looks simple. There are also Eric http://www.die-offenbachs.de/detlev/eric.html and SPE IDE http://pythonide.stani.be/ And there is always the uber cool editor (aka OS), Emacs :) -- With Regards

How to get a forum for your free site?

2007-04-13 Thread Ann
If you have something good and want to show or share it with eachother ,what would you do then? Send it one by one ?It's so slow and boring that you will be tired and have no interested to do that again.The buoyant you will be lost,are you ? http://www.forumgogo.com this is the place where can pr

Which is the best FREE forum?

2007-04-13 Thread Ann
Free Unlimited Storage Free Unlimited Bandwidth Free Free Subdomain Free More Skins Free No annoying pop-ups Free 99% Uptime Free Daily Backups Free Fast, Friendly Tech Support So,what's that? That's our free forum named http://www.forumgogo.com. We have the human_based management also provide yo

deepcopy for object insertion

2007-04-13 Thread Youngha Yoon
Hello! I wrote next code. I intended to insert class object to Pool list. == import random,copy class Particle: Dimension = 2 CurrentPosition = {} def __init__(self, dimension): self.Dimension = dimension for i in range(self.Dimensi

Re: tuples, index method, Python's design

2007-04-13 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > This is just a bald restatement of the same argument you feel makes it > desirable to add an index() method to tuples. If taken to its logical > (and ridiculous) extreme there should only be one sequence type in > Python. That doesn't sound ridiculous giv

nonstandard XML character entities?

2007-04-13 Thread Paul Rubin
I'm new to xml mongering so forgive me if there's an obvious well-known answer to this. It's not real obvious from the library documentation I've looked at so far. Basically I have to munch of a bunch of xml files which contain character entities like ú which are apparently nonstandard. They ap

Re: Python editor/IDE on Linux?

2007-04-13 Thread Sebastian Bassi
On 4/13/07, Jack <[EMAIL PROTECTED]> wrote: > I wonder what everybody uses for Python editor/IDE on Linux? > I use PyScripter on Windows, which is very good. Not sure if > there's something handy like that on Linux. I need to do some > development work on Linux and the distro I am using is Xubuntu.

Re: Python editor/IDE on Linux?

2007-04-13 Thread Michael Hoffman
Jack wrote: > I wonder what everybody uses for Python editor/IDE on Linux? I'll let you in on a little secret. We all use Emacs. Those who claim to use vim are just trying to prevent you from ever becoming a successful Python programmer, and therefore reduce competition. -- Michael Hoffman --

Re: BaseHTTPServer and Apache

2007-04-13 Thread Luis M. González
On Apr 13, 8:44 pm, Ron Garret <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Ron Garret <[EMAIL PROTECTED]> wrote: > > > Does > > anyone know of a straightforward way to get Apache to "forward" requests > > to a given path to another HTTP server running on a different port? > > Ne

Re: Portably generating infinity and NaN

2007-04-13 Thread Michael Hoffman
Michael Hoffman wrote: > [EMAIL PROTECTED] wrote: >> >> (Note the absence of a demonstration on Windows.) Can't the >> above be >> >> blessed as the One True Way and wormed around in floatmodule.c for >> >> those platforms where float'ing "NaN" or "Inf" doesn't currently >> >> wor

ieShoes.com Shop nike air jordan air force 1 dunk sb bape sta shoes

2007-04-13 Thread www_ieshoes_com
Main Menu Search Basket Content Checkout Customer Service Order Tracking AddFavorite Member Login Login Name: Password: Register Forget your password? Categories Nike Shoes Air Force I Air Jordan 1-10 Air Jordan 11-22 Air Max TN Air Max 95

Re: Portably generating infinity and NaN

2007-04-13 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: > >> (Note the absence of a demonstration on Windows.) Can't the above be > >> blessed as the One True Way and wormed around in floatmodule.c for > >> those platforms where float'ing "NaN" or "Inf" doesn't currently > >> work? > > Martin> How would you

Re: vocab question

2007-04-13 Thread Terry Reedy
"Alan G Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Pardon the vocab question; | I'm not a computer science type. | According to the Reference Manual, | a class defintion has the structure:: | | classdef ::= "class" classname [inheritance] ":" suite | | What is

Re: mod_python & Cookie - unexpected dictionary value

2007-04-13 Thread Jan Danielsson
Jan Danielsson wrote: [---] Never mind. Cookie objects have a "value" attribute -- that's what I was doing wrong. -- Kind regards, Jan Danielsson And now a word from our sponsor -- Want to have instant messaging, and chat rooms, and discussion groups for your loca

Re: BaseHTTPServer and Apache

2007-04-13 Thread Ron Garret
In article <[EMAIL PROTECTED]>, Ron Garret <[EMAIL PROTECTED]> wrote: > Does > anyone know of a straightforward way to get Apache to "forward" requests > to a given path to another HTTP server running on a different port? Never mind, I think I figured it out. Apparently what I need is the Pr

BaseHTTPServer and Apache

2007-04-13 Thread Ron Garret
I have a fairly large web app written in Python as a CGI fairly elaborate CGI. All of the requests go through a single CGI script which does authentication and session management and then dispatches to one of a number of handlers that generate the various pages. There is one page that is a per

Re: Portably generating infinity and NaN

2007-04-13 Thread skip
>> (Note the absence of a demonstration on Windows.) Can't the above be >> blessed as the One True Way and wormed around in floatmodule.c for >> those platforms where float'ing "NaN" or "Inf" doesn't currently >> work? Martin> How would you do the worming-around? I don't kno

mod_python & Cookie - unexpected dictionary value

2007-04-13 Thread Jan Danielsson
Hello all, I'm sure I'm not using this right, but I don't understand what I'm doing wrong. What I want is to get all the cookies from the request, then extract the 'sessId' cookie. I'm using this code: - from mod_python import Cookie [---] def index(req, sessId = None): c

Re: Portably generating infinity and NaN

2007-04-13 Thread Martin v. Löwis
> (Note the absence of a demonstration on Windows.) Can't the above be > blessed as the One True Way and wormed around in floatmodule.c for those > platforms where float'ing "NaN" or "Inf" doesn't currently work? How would you do the worming-around? Regards, Martin -- http://mail.python.org/ma

Re: Portably generating infinity and NaN

2007-04-13 Thread skip
Michael> What's the best way to portably generate binary floating point Michael> infinity and NaNs? I take it this isn't portable even though it works on Mac, Linux and Solaris across a number of different Python versions and a couple GCC versions: % python Python 2.4.2 (#1, Feb

Re: help

2007-04-13 Thread Bruno Desthuilliers
Bruno Desthuilliers a écrit : > pierre-yves guido a écrit : > >> hello (I hope my english is not so bad), > > > De ce point de vue là, ça peut aller... > Oh, yes, while we're at it, I forgot to mention: there's also a french Python newsgroup, fr.comp.lang.python. It's far from being as active

Re: Any way to refactor this?

2007-04-13 Thread bearophileHUGS
James Stroud: > Probably best is to code the parameters as > a set of tuples and iterate over them. I agree. Before: def _create_3D_xhatches(...pass more parameters here...): for x in xrange(-axis_length, axis_length + 1): if x == 0: continue visual.cylinder(pos=(x

Re: Python editor/IDE on Linux?

2007-04-13 Thread Bruno Desthuilliers
Greg Donald a écrit : > On 4/13/07, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: > >> Except for real programmers... > > That's correct. We use: > > # dd if=/dev/tty of=/dev/hda1 > > and such. > Hear hear !-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Question About Creating Lists

2007-04-13 Thread Scott
> And that's a really sideways way to take a swipe at someone while > pretending to be too high-minded to do it (plus see James's comments about > other possible explanations). If you kiddies would take this fight out > into the playground perhaps the rest of the class can continue. It wasn't m

RE: Any way to refactor this?

2007-04-13 Thread John Krukoff
Bruno Desthuilliers wrote: > John Salerno a écrit : > > Setting aside, for the moment, the utility of this method or even if > > there's a better way, I'm wondering if this is an efficient way to do > > it. I admit, there was some copying and pasting, which is what prompts > > me to ask the questio

Re: vocab question

2007-04-13 Thread Steven Bethard
James Stroud wrote: > Alan G Isaac wrote: >> According to the Reference Manual, >> a class defintion has the structure:: >> >> classdef ::= "class" classname [inheritance] ":" suite >> >> What is the entire part before the suite called? >> (Just pointing to a reference is fine & helpful,

Re: vocab question

2007-04-13 Thread Bruno Desthuilliers
Steven Bethard a écrit : > Bruno Desthuilliers wrote: > >> Alan G Isaac a écrit : >> >>> Pardon the vocab question; >>> I'm not a computer science type. >>> According to the Reference Manual, >>> a class defintion has the structure:: >>> >>> classdef ::= "class" classname [inheritance] "

Re: Any way to refactor this?

2007-04-13 Thread Bruno Desthuilliers
John Salerno a écrit : > Setting aside, for the moment, the utility of this method or even if > there's a better way, I'm wondering if this is an efficient way to do > it. I admit, there was some copying and pasting, which is what prompts > me to ask the question. Here's the method. (I hope it l

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jarek Zgoda
Jack napisał(a): >> pida because it embeds the 'vim' editor which I love and adds useful >> features without really getting in my way. And it's the only IDE I found >> that supports bazaar-ng (bzr) repositories. > > pida screenshots look neat. It's not in xubuntu's repository though. Not > even

Re: Python editor/IDE on Linux?

2007-04-13 Thread king kikapu
I experiment with Ubuntu nowadays, and i find my Windows combination a realy win also there, Eclipse and PyDev. -- http://mail.python.org/mailman/listinfo/python-list

Re: vocab question

2007-04-13 Thread James Stroud
Alan G Isaac wrote: > Pardon the vocab question; > I'm not a computer science type. > According to the Reference Manual, > a class defintion has the structure:: > > classdef ::= "class" classname [inheritance] ":" suite > > What is the entire part before the suite called? > (Just pointi

Re: Any way to refactor this?

2007-04-13 Thread James Stroud
John Salerno wrote: > Setting aside, for the moment, the utility of this method or even if > there's a better way, I'm wondering if this is an efficient way to do > it. I admit, there was some copying and pasting, which is what prompts > me to ask the question. Here's the method. (I hope it look

Re: function/method assigment

2007-04-13 Thread 7stud
On Apr 13, 10:14 am, [EMAIL PROTECTED] wrote: > what is the > meaning of 'None'? > It's a value just like any other python value: 2, 7.5, "red", and it evaluates to false in a conditional: my_var = None if not my_var: print "bad data" -- http://mail.python.org/mailman/listinfo/python-list

Re: vocab question

2007-04-13 Thread Alan G Isaac
Steven Bethard wrote: > As far as I > know, there's no official term for the first four elements of a class > statement. I'd probably call it the class statement header. That will have to do for now. Thanks! Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-13 Thread Greg Donald
On 4/13/07, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Except for real programmers... That's correct. We use: # dd if=/dev/tty of=/dev/hda1 and such. -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jarek Zgoda
Greg Donald napisał(a): >> Thanks God > > No problem. > >> , there's no "PIDA for Emacs". > > Pet Industry Distributors Association ? Pfscking Ifscking Dfscking Afscking beste Editor unter die Sun ist der Vim! (they would try to convince you die PIDA means something mehr enjoyable, aber it's

Re: help

2007-04-13 Thread Bruno Desthuilliers
pierre-yves guido a écrit : > hello (I hope my english is not so bad), De ce point de vue là, ça peut aller... > I'm doing a training course and I'm a newbie in Python. My problem : > I have a form, HTML form ? GUI form ? In both cases, using which environment/libs/framework ? > and when I cl

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jack
> We should do a weekly poll. :) Seriously - this question is coming up > very frequently and everybody has their preference. Maybe a web page, something like pythonidepoll.com :) I apologize for bringing up this FAQ once again ;-p > My (current) favorite: > pida (exists as a ready package on D

Re: Python editor/IDE on Linux?

2007-04-13 Thread Bruno Desthuilliers
7stud a écrit : > Jack wrote: > >>I wonder what everybody uses for Python editor/IDE on Linux? >>I use PyScripter on Windows, which is very good. Not sure if >>there's something handy like that on Linux. I need to do some >>development work on Linux and the distro I am using is Xubuntu. > > > Ev

Re: Problem with algorithm

2007-04-13 Thread Robert Kern
Paul McGuire wrote: > If I see farther, it is because I stand on the shoulders of an > infinite number of monkeys. If I ever get around to writing a book on numerical methods/computational science/whatever, this will be the chapter quote for my chapter on Monte Carlo algorithms. -- Robert Kern

Re: Python editor/IDE on Linux?

2007-04-13 Thread Bruno Desthuilliers
Jack a écrit : > I wonder what everybody uses for Python editor/IDE on Linux? Strange as it might be, not everybody's using the same editor. > I use PyScripter on Windows, which is very good. Not sure if > there's something handy like that on Linux. Oh yes ? Why so ? The best code editor ever i

Any way to refactor this?

2007-04-13 Thread John Salerno
Setting aside, for the moment, the utility of this method or even if there's a better way, I'm wondering if this is an efficient way to do it. I admit, there was some copying and pasting, which is what prompts me to ask the question. Here's the method. (I hope it looks ok, because it looks real

Re: Python editor/IDE on Linux?

2007-04-13 Thread Greg Donald
On 4/13/07, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Thanks God No problem. > , there's no "PIDA for Emacs". Pet Industry Distributors Association ? -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-13 Thread Erik Johnson
"7stud" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jack wrote: > > I wonder what everybody uses for Python editor/IDE on Linux? > > I use PyScripter on Windows, which is very good. Not sure if > > there's something handy like that on Linux. I need to do some > > development work

Re: attribute save restore

2007-04-13 Thread Bruno Desthuilliers
Carl K a écrit : > Is there a more elegant way of coding this: > > x=o.p # save .p > o.p=0 > o.m() > o.p=x # restore .p > > seems very push/pop to me - like there should be a way that doesn't need > a var (x) or the save/set lines should be done in one command. > > (personally I think .m woul

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jack
Thanks but...I'm looking for something free :) > try wing ide. i tried it and i love it. it's available for windows as > well for linux -- http://mail.python.org/mailman/listinfo/python-list

Re: vocab question

2007-04-13 Thread Steven Bethard
Bruno Desthuilliers wrote: > Alan G Isaac a écrit : >> Pardon the vocab question; >> I'm not a computer science type. >> According to the Reference Manual, >> a class defintion has the structure:: >> >> classdef ::= "class" classname [inheritance] ":" suite >> >> What is the entire part b

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jarek Zgoda
Greg Donald napisał(a): >> try wing ide. i tried it and i love it. it's available for windows as >> well for linux > > Good thing those are the only two operating system out there.. err.. > I meant, good thing there's Emacs. Thanks God, there's no "PIDA for Emacs". -- Jarek Zgoda http://jpa.b

Re: vocab question

2007-04-13 Thread Bruno Desthuilliers
Alan G Isaac a écrit : > Pardon the vocab question; > I'm not a computer science type. > According to the Reference Manual, > a class defintion has the structure:: > > classdef ::= "class" classname [inheritance] ":" suite > > What is the entire part before the suite called? A statemen

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jarek Zgoda
7stud napisał(a): >> I wonder what everybody uses for Python editor/IDE on Linux? >> I use PyScripter on Windows, which is very good. Not sure if >> there's something handy like that on Linux. I need to do some >> development work on Linux and the distro I am using is Xubuntu. > > Everybody uses

Re: Shebang or Hashbang for modules or not?

2007-04-13 Thread Bruno Desthuilliers
Jorgen Grahn a écrit : > On Thu, 12 Apr 2007 00:24:12 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> > wrote: > >>Chris Lasher a écrit : >> >>>Should a Python module not intended to be executed have shebang/ >>>hashbang (e.g., "#!/usr/bin/env python") or not? >> >>The shebang is only useful for f

Re: Python editor/IDE on Linux?

2007-04-13 Thread Greg Donald
On 13 Apr 2007 12:54:08 -0700, azrael <[EMAIL PROTECTED]> wrote: > try wing ide. i tried it and i love it. it's available for windows as > well for linux Good thing those are the only two operating system out there.. err.. I meant, good thing there's Emacs. -- Greg Donald http://destiney.com/

Re: Problem with algorithm

2007-04-13 Thread azrael
Are you maybe trying to create a rainbow table, or a very big dictionary -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-13 Thread azrael
try wing ide. i tried it and i love it. it's available for windows as well for linux On Apr 13, 9:11 pm, Christoph Haas <[EMAIL PROTECTED]> wrote: > On Fri, Apr 13, 2007 at 11:20:23AM -0700, Jack wrote: > > I wonder what everybody uses for Python editor/IDE on Linux? > > I use PyScripter on Wind

Re: attribute save restore

2007-04-13 Thread Carl K
Steven Bethard wrote: > Carl K wrote: >> Is there a more elegant way of coding this: >> >> x=o.p # save .p >> o.p=0 >> o.m() >> o.p=x # restore .p >> >> seems very push/pop to me - like there should be a way that doesn't >> need a var (x) or the save/set lines should be done in one command. > >

Re: attribute save restore

2007-04-13 Thread Carsten Haese
On Fri, 2007-04-13 at 14:08 -0500, Carl K wrote: > Is there a more elegant way of coding this: > > x=o.p # save .p > o.p=0 > o.m() > o.p=x # restore .p In Python 2.5, you could leverage the new "with" statement with a properly crafted context manager along these lines: """ from __future__ impo

Re: attribute save restore

2007-04-13 Thread Steven Bethard
Carl K wrote: > Is there a more elegant way of coding this: > > x=o.p # save .p > o.p=0 > o.m() > o.p=x # restore .p > > seems very push/pop to me - like there should be a way that doesn't need > a var (x) or the save/set lines should be done in one command. With the appropriate context mange

Re: vocab question

2007-04-13 Thread kyosohma
On Apr 13, 2:06 pm, Alan G Isaac <[EMAIL PROTECTED]> wrote: > Pardon the vocab question; > I'm not a computer science type. > According to the Reference Manual, > a class defintion has the structure:: > > classdef ::= "class" classname [inheritance] ":" suite > > What is the entire part

Re: mac IDLE problems

2007-04-13 Thread Kevin Walzer
7stud wrote: > On Apr 13, 10:27Â am, Kevin Walzer <[EMAIL PROTECTED]> wrote: >> 7stud wrote: >>> Hi, >>> In the IDLE, I can't get most shortcut keys that are listed next to >>> the menu items to work. Â For instance, under the Format menu item only >>> the shortcuts for "indent region" and "undent

Re: Python editor/IDE on Linux?

2007-04-13 Thread Christoph Haas
On Fri, Apr 13, 2007 at 11:20:23AM -0700, Jack wrote: > I wonder what everybody uses for Python editor/IDE on Linux? > I use PyScripter on Windows, which is very good. Not sure if > there's something handy like that on Linux. I need to do some > development work on Linux and the distro I am using i

attribute save restore

2007-04-13 Thread Carl K
Is there a more elegant way of coding this: x=o.p # save .p o.p=0 o.m() o.p=x # restore .p seems very push/pop to me - like there should be a way that doesn't need a var (x) or the save/set lines should be done in one command. (personally I think .m would better be implemented by passing in a

Re: Automated email response

2007-04-13 Thread tonydevlin
I am only guessing as I have never done python code before, but i have had another look at the code and was wondering if anyone knew if the below code needs a for loop to look through members in plone and email out members with a certain permission like Manager instead of just emailing 1 member li

Re: Python editor/IDE on Linux?

2007-04-13 Thread Paddy
On Apr 13, 7:27 pm, "7stud" <[EMAIL PROTECTED]> wrote: > Jack wrote: > > I wonder what everybody uses for Python editor/IDE on Linux? > > I use PyScripter on Windows, which is very good. Not sure if > > there's something handy like that on Linux. I need to do some > > development work on Linux and

Re: tuples, index method, Python's design

2007-04-13 Thread Rhamphoryncus
On Apr 13, 1:32 am, Antoon Pardon <[EMAIL PROTECTED]> wrote: > Suppose someone writes a function that acts on a sequence. > The algorithm used depending on the following invariant. > > i = s.index(e) => s[i] = e > > Then this algorithm is no longer guaranteed to work with strings. It never worke

Re: function/method assigment

2007-04-13 Thread 7stud
On Apr 13, 10:14 am, [EMAIL PROTECTED] wrote: > I have a confusion when I do some practice, the code and output are as > following, > > >>> def fun(): > > print 'In fun()' > > >>> testfun = fun() > In fun() > >>> print testfun > None > >>> testfun2 = fun > >>> print testfun2 > > >>>

Re: mac IDLE problems

2007-04-13 Thread 7stud
On Apr 13, 10:27 am, Kevin Walzer <[EMAIL PROTECTED]> wrote: > 7stud wrote: > > Hi, > > > In the IDLE, I can't get most shortcut keys that are listed next to > > the menu items to work.  For instance, under the Format menu item only > > the shortcuts for "indent region" and "undent region" work.  

Re: Python editor/IDE on Linux?

2007-04-13 Thread 7stud
Jack wrote: > I wonder what everybody uses for Python editor/IDE on Linux? > I use PyScripter on Windows, which is very good. Not sure if > there's something handy like that on Linux. I need to do some > development work on Linux and the distro I am using is Xubuntu. Everybody uses vim. -- http:

Python editor/IDE on Linux?

2007-04-13 Thread Jack
I wonder what everybody uses for Python editor/IDE on Linux? I use PyScripter on Windows, which is very good. Not sure if there's something handy like that on Linux. I need to do some development work on Linux and the distro I am using is Xubuntu. -- http://mail.python.org/mailman/listinfo/pyth

"HTTP error -1" from urllib2

2007-04-13 Thread John Nagle
I'm getting a wierd error from urllib2 when opening certain URLs. The code works for most sites, but not all of them. Here's the traceback: [Thread-2] InfoSitePage EXCEPTION while processing page "http://www.fourmilab.ch": Problem with page "http://www.fourmilab.ch": HTTP error -1 - .. Tra

vocab question

2007-04-13 Thread Alan G Isaac
Pardon the vocab question; I'm not a computer science type. According to the Reference Manual, a class defintion has the structure:: classdef ::= "class" classname [inheritance] ":" suite What is the entire part before the suite called? (Just pointing to a reference is fine & helpful,

Alessandra Ambrosio

2007-04-13 Thread A - A
Alessandra Ambrosio www.alphasearch.gr-- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with algorithm

2007-04-13 Thread Steve Holden
Paul McGuire wrote: > On Apr 13, 8:53 am, Steve Holden <[EMAIL PROTECTED]> wrote: >> I'm pretty sure you could give a separate name to each atom ont he known >> universe with a scheme like this. Do you really need 20-byte strings? >> > > Steve, > > Based on the Wikipedia article's estimate of 10

Re: Inconsistent result from urllib.urlopen

2007-04-13 Thread junkdump2861
Laszlo Nagy wrote: > > Any ideas why I don't get the same result from the python script as I > > do from a web browser? This problem seems to be a recent > > development. The scripts I wrote like this worked fine for a while > > and then stopped working within the past couple of weeks. > > > May

Re: Problem with algorithm

2007-04-13 Thread Paul McGuire
On Apr 13, 10:41 am, "Paul McGuire" <[EMAIL PROTECTED]> wrote: > On Apr 13, 10:22 am, Michael Bentley <[EMAIL PROTECTED]> > wrote: > > > > > > > On Apr 13, 2007, at 9:19 AM, Paul McGuire wrote: > > > > If you just expand the length to five million* or so, one of those > > > strings will contain all

Re: Class Dependancy Injection

2007-04-13 Thread Steven Bethard
Robert Rawlins - Think Blue wrote: > For instance, in my application I have a configuration bean which > contains all the applications configuration information. Now in one of > other classes I need access to those configuration settings. What I > would have done in my ColdFusion/JAVA type appli

  1   2   >