Re: Problem with algorithm

2007-04-13 Thread Paul McGuire
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**79 atoms in the observable

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

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 the works of

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. Maybe it has

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**79 atoms

Alessandra Ambrosio

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

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, as

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

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

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

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.   If I

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 function fun at 0x00CC1270 print

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 worked

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 the distro I

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

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

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 is

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 region work. Â If

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 before the

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 manger, you

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__ import

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. With the

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 Windows,

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 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: 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 files that you want

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

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 statement. In this

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

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 before the suite

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: 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 would better

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

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

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

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 ? holywar topic='editor'The

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
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. Everybody uses

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

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

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 still der

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: 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: 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: 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 looks

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 pointing to a

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: 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 in

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

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] : suite What is the

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, as long as its not

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

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

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: 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: 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 as

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

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):

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 know. On I was

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

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

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 local

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 the

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 do the

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
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 work? Martin How

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? Never mind, I think

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

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 uacute; which are apparently nonstandard.

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 given

deepcopy for object insertion

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

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

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

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

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: 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 about

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

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

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, line) if

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

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) match =

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 to me. --

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

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 NaN

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 'two'

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

[ python-Bugs-1699759 ] pickle example contains errors

2007-04-13 Thread SourceForge.net
Bugs item #1699759, was opened at 2007-04-13 02:22 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1699759group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1699853 ] locale.getlocale() output fails as setlocale() input

2007-04-13 Thread SourceForge.net
Bugs item #1699853, was opened at 2007-04-13 12:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1699853group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1698167 ] xml.etree document element.tag

2007-04-13 Thread SourceForge.net
Bugs item #1698167, was opened at 2007-04-11 08:25 Message generated for change (Comment added) made by effbot You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1698167group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1599254 ] mailbox: other programs' messages can vanish without trace

2007-04-13 Thread SourceForge.net
Bugs item #1599254, was opened at 2006-11-19 16:03 Message generated for change (Comment added) made by baikie You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1599254group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1599254 ] mailbox: other programs' messages can vanish without trace

2007-04-13 Thread SourceForge.net
Bugs item #1599254, was opened at 2006-11-19 16:03 Message generated for change (Comment added) made by baikie You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1599254group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1599254 ] mailbox: other programs' messages can vanish without trace

2007-04-13 Thread SourceForge.net
Bugs item #1599254, was opened at 2006-11-19 16:03 Message generated for change (Comment added) made by baikie You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1599254group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1700132 ] import and capital letters

2007-04-13 Thread SourceForge.net
Bugs item #1700132, was opened at 2007-04-13 15:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1700132group_id=5470 Please note that this message will contain a full copy of

<    1   2   3   >