Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Steven D'Aprano
On Wed, 30 Jan 2008 19:40:24 -0500, Blubaugh, David A. wrote: > I do not understand why no one has answered the following question: > > Has anybody worked with Gene Expression Programming Yes, people have worked with Gene Expression Programming. I don't know who. I don't know where. But I'm

Re: Removing Pubic Hair Methods

2008-01-30 Thread George Sakkis
On Jan 30, 5:03 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Wed, 30 Jan 2008 15:29:45 +0100, Wildemar Wildenburger wrote: > > Gerardo Herzig wrote: > >> I will use genital().extend(), thats for shure ^^ > > > Well, you never go wrong with apply(genital(), females), do you? > > `app

booleans, hash() and objects having the same value

2008-01-30 Thread Ryszard Szopa
Hi all, I've just read PEP 285 so I understand why bool inherits from int and why, for example, ((False - True)*True)**False==1. This was necessary for backwards compatibility and to give the beast some ability to do moral reasoning. For example, Python knows to value the whole truth more than ju

Re: Dictionary Keys question

2008-01-30 Thread Ryszard Szopa
On Jan 31, 12:08 am, Dustan <[EMAIL PROTECTED]> wrote: > The underlying order is a result, in part, of the key's hash codes*. > Integers are hash coded by their integer values, therefore, they > appear in numeric order. Strings, however, use an algorithm that > ensures as unique hash codes as poss

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Paul McGuire
On Jan 30, 6:40 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > I do not understand why no one has answered the following question: > > Has anybody worked with Gene Expression Programming   > > David Blubaugh > Sorry, I was too busy reading the posts about the pubic hair. And did you re

Re: Removing Pubic Hair Methods

2008-01-30 Thread Asun Friere
On Jan 31, 3:13 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Wildemar Wildenburger wrote: > > Well, you never go wrong with apply(genital(), females), do you? Never?! class PowerSocket () : def __init__ (self, plug=female, active=False) : self.plug = plug self.active = active females

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Tim Chase
> I do not understand why no one has answered the following question: > > Has anybody worked with Gene Expression Programming Well, my father's name is Gene, and he's expressed software wants that I've implemented in Python...so yes, I guess I've done some Gene Expression Programming... ;

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Grant Edwards
On 2008-01-31, Daniel Fetchinson <[EMAIL PROTECTED]> wrote: >> I do not understand why no one has answered the following question: >> >> Has anybody worked with Gene Expression Programming > > Hm, maybe because nobody did? Just a thought. It can also be that > everyone worked with it but ev

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread ajaksu
On Jan 30, 10:40 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > I do not understand why no one has answered the following question: > > Has anybody worked with Gene Expression Programming > > David Blubaugh I see. You don't understand. That's a fact. I'm sure there are free online resou

Re: Module/package hierarchy and its separation from file structure

2008-01-30 Thread Ben Finney
Peter Schuller <[EMAIL PROTECTED]> writes: > I *DON'T* want anything to depend on the physical location on disk. Importing the code in the first place will — unavoidably, it seems to me — depend on the file location from which to load the module. After that, nothing depends on the physical locat

python modules collection

2008-01-30 Thread J. Peng
Hello, Is there a site for python,which collects most kinds of python modules? like CPAN for Perl. Sometime I want to use a module,like the time/date modules,don't know where I should search from. Sorry if I have repeated this question on the list. Thanks! -- http://mail.python.org/mailman/listi

Re: python modules collection

2008-01-30 Thread Guilherme Polo
2008/1/30, J. Peng <[EMAIL PROTECTED]>: > Hello, > > Is there a site for python,which collects most kinds of python modules? > like CPAN for Perl. > Sometime I want to use a module,like the time/date modules,don't know > where I should search from. > Sorry if I have repeated this question on t

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Shane Geiger
The answer is here: http://www.google.com/search?q=gene+expression+programming+python Tim Chase wrote: >> I do not understand why no one has answered the following question: >> >> Has anybody worked with Gene Expression Programming >> > > Well, my father's name is Gene, and he's exp

Re: Python UML Metamodel

2008-01-30 Thread gagsl-py2
--- sccs cscs <[EMAIL PROTECTED]> escribió: > Gabriel Genellina <[EMAIL PROTECTED]> a écrit : > En Tue, 29 Jan 2008 21:25:26 -0200, sccs cscs > escribió: > > > I find an OPEN SOURCE tool > (http://bouml.free.fr/) that Recently > > generates Python code from UML model. > > Does it keep the mod

Re: Removing Pubic Hair Methods

2008-01-30 Thread MRAB
On Jan 31, 12:57 am, Asun Friere <[EMAIL PROTECTED]> wrote: > On Jan 31, 3:13 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > > Wildemar Wildenburger wrote: > > > Well, you never go wrong with apply(genital(), females), do you? > > Never?! > > class PowerSocket () : > def __init__ (self, plug=fem

Re: booleans, hash() and objects having the same value

2008-01-30 Thread Terry Reedy
"Ryszard Szopa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | | (Also, it is not completely clear what it means for two Python objects | to "have the same value". Objects of different types compare unequal unless provision is made otherwise. See http://docs.python.org/ref/compa

Re: booleans, hash() and objects having the same value

2008-01-30 Thread Steven D'Aprano
On Wed, 30 Jan 2008 17:14:32 -0800, Ryszard Szopa wrote: > Hi all, > > I've just read PEP 285 so I understand why bool inherits from int and > why, for example, ((False - True)*True)**False==1. And don't think that the choice was uncontroversial. > This was necessary for backwards compatibilit

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Grant Edwards
On 2008-01-31, ajaksu <[EMAIL PROTECTED]> wrote: > On Jan 30, 10:40 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> > wrote: >> I do not understand why no one has answered the following question: >> >> Has anybody worked with Gene Expression Programming >> >> David Blubaugh > > I see. You don't un

Re: Removing Pubic Hair Methods

2008-01-30 Thread MRAB
On Jan 31, 1:09 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Jan 30, 5:03 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > On Wed, 30 Jan 2008 15:29:45 +0100, Wildemar Wildenburger wrote: > > > Gerardo Herzig wrote: > > >> I will use genital().extend(), thats for shure ^^ > > > >

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Steve Holden
Grant Edwards wrote: > On 2008-01-31, Daniel Fetchinson <[EMAIL PROTECTED]> wrote: >>> I do not understand why no one has answered the following question: >>> >>> Has anybody worked with Gene Expression Programming >> Hm, maybe because nobody did? Just a thought. It can also be that >> ever

Re: REALLY simple xml reader

2008-01-30 Thread Ivan Illarionov
>>> from xml.etree import ElementTree as et >>> from decimal import Decimal >>> >>> root = et.parse('file/with/your.xml') >>> debits = dict((debit.attrib['category'], >>> Decimal(debit.find('amount').text)) for debit in root.findall('debit')) >>> >>> for cat, amount in debits.items(): ... print

small problem with re.sub

2008-01-30 Thread Astan Chee
Hi, I have a html text stored as a string. Now I want to go through this string and find all 6 digit numbers and make links from them. Im using re.sub and for some reason its not picking up the previously matched condition. Am I doing something wrong? This is what my code looks like: htmlStr = r

Re: Has Anyone Worked with Gene Expression Programming ???????????????????????????

2008-01-30 Thread Sergio Correia
Try contacting "Ryan O'Neil ryanjoneil at gmail.com". He is the author of pygep http://code.google.com/p/pygep/ , and is probably working here: http://www.gepsoft.com/ If you don't get an answer, it means that THEY found him first. This message will self destruct in ... range(3, 0, -1) ... On Jan

Re: writing Python in Emacs

2008-01-30 Thread alitosis
Rob Wolfe wrote: > The good news is that I managed to configure completion for Python > in Emacs using pymacs, python-mode.el, pycomplete.el and pycomplete.py. > For contents of my pycomplete.el, pycomplete.py and necessary > settings in .emacs see below. Thanks for that! I've been hoping someth

Re: Removing Pubic Hair Methods

2008-01-30 Thread Ben Finney
MRAB <[EMAIL PROTECTED]> writes: > On Jan 31, 12:57 am, Asun Friere <[EMAIL PROTECTED]> wrote: > > Ouch!! If on the other hand 'females' is populated by instances of > > (or merely includes instances of) class 'Human', I suggest you > > test for female.consent somewhere in your code! > > > The Pyt

Re: Removing Pubic Hair Methods

2008-01-30 Thread Sergio Correia
So in this case it is REALLY better to ask for permission rather than forgiveness? On Jan 30, 2008 10:30 PM, Ben Finney <[EMAIL PROTECTED]> wrote: > MRAB <[EMAIL PROTECTED]> writes: > > > On Jan 31, 12:57 am, Asun Friere <[EMAIL PROTECTED]> wrote: > > > Ouch!! If on the other hand 'females' is pop

Re: small problem with re.sub

2008-01-30 Thread Gabriel Genellina
En Thu, 31 Jan 2008 01:01:30 -0200, Astan Chee <[EMAIL PROTECTED]> escribió: > I have a html text stored as a string. Now I want to go through this > string and find all 6 digit numbers and make links from them. > Im using re.sub and for some reason its not picking up the previously > matched cond

A design problem

2008-01-30 Thread Dan Upton
Or: How to write Python like a Python programmer, not a Java programmer. This will be a little long-winded... So I just recently started picking up Python, mostly learning the new bits I need via Google and otherwise cobbling together the functions I've already written. It occurred to me though

Fwd: small problem with re.sub

2008-01-30 Thread Sergio Correia
See this: http://www.regular-expressions.info/python.html (the Search and Replace part) You are referring to the group as "(?P=id)", when you should be using r"\g". HTH, Sergio On Jan 30, 2008 10:01 PM, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I have a html text stored as a string. Now I w

Re: small problem with re.sub

2008-01-30 Thread Mark Tolonen
"Astan Chee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I have a html text stored as a string. Now I want to go through this > string and find all 6 digit numbers and make links from them. > Im using re.sub and for some reason its not picking up the previously > matched

Re: Why the HELL has nobody answered my question!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-01-30 Thread Dirk Collins
"Blubaugh, David A." wrote: > I do not understand why no one has answered the following question: > Has anybody worked with Gene Expression Programming Not me, and I'm not expecting too. In addition, I'm not actually trying to figure out if anyone else is working with Gene Expression Progra

Re: HI all

2008-01-30 Thread Nick J Chackowsky
[EMAIL PROTECTED] wrote: > I am shravan tiwari, i want to know that how i'll run any python > file(*.py) on command prompt r python GUI. > i tried this > > python test.py > > but i have got error, syntax error. so can i get the solution. I'm thinking you're running on a Windows computer, and that

Re: A design problem

2008-01-30 Thread Gabriel Genellina
En Thu, 31 Jan 2008 01:57:41 -0200, Dan Upton <[EMAIL PROTECTED]> escribió: > Or: How to write Python like a Python programmer, not a Java > programmer. This will be a little long-winded... > > So I just recently started picking up Python, mostly learning the new > bits I need via Google and ot

Re: Has Anyone Worked with Gene Expression Programming ???????????????????????????

2008-01-30 Thread Daniel Fetchinson
>> To Anyone, > > > > > > > > Has anyone worked with Gene Expression Programming??? Specifically, has > > anyone out there worked with pygep software package??? I have a few > > questions > > > > > > David Blubaugh > > -- Actually, it turns out I might say I'm a world known expert of Gene

Online Debugging

2008-01-30 Thread Yansky
I'm trying to debug a script on my server and it's taking forever using print to find the error. I've tried to use the debugging examples on this page http://webpython.codepoint.net/debugging but they don't seem to be working for me. Is there an easier/better way to debug online scripts? I was hop

Design question - Sharing of single object by multiple processes

2008-01-30 Thread Mike D
Hello, I've just picked up the Python language and am really enjoying it. I've just signed up to this mailing list and I'm looking forward to taking part in some discussions. My first post is a question I've been pondering for the last couple of days: For relatively static data (such as a list),

Re: Removing Pubic Hair Methods

2008-01-30 Thread Steven D'Aprano
(Top-posting corrected.) On Wed, 30 Jan 2008 22:38:30 -0500, Sergio Correia wrote: > On Jan 30, 2008 10:30 PM, Ben Finney > <[EMAIL PROTECTED]> wrote: >> MRAB <[EMAIL PROTECTED]> writes: >> >> > On Jan 31, 12:57 am, Asun Friere <[EMAIL PROTECTED]> wrote: >> > > Ouch!! If on the other hand 'female

Write Python like a Python programmer (was: A design problem)

2008-01-30 Thread Ben Finney
"Gabriel Genellina" <[EMAIL PROTECTED]> writes: > En Thu, 31 Jan 2008 01:57:41 -0200, Dan Upton <[EMAIL PROTECTED]> > escribió: > > > Or: How to write Python like a Python programmer, not a Java > > programmer. This will be a little long-winded... > > > > So I just recently started picking up Py

Re: A design problem

2008-01-30 Thread Paddy
On Jan 31, 3:57 am, "Dan Upton" <[EMAIL PROTECTED]> wrote: > Or: How to write Python like a Python programmer, not a Java > programmer. This will be a little long-winded... > > ... > > and so on. The way I was going to approach it was to every time > through the loop, read the data for one of th

RE: Has Anyone Worked with Gene Expression Programming???????????????????????????

2008-01-30 Thread Ryan Ginstrom
> On Behalf Of Daniel Fetchinson > Actually, it turns out I might say I'm a world known expert > of Gene Expression Programming. > The only thing is that some higher powers are preventing me > from telling you about it. > I'm really sorry, I hope you understand. Please don't ask > questions. It'

Re: Wo killed Benazir Bhutto of Pakistan = NEOCON/ZIOCON many layers of deception

2008-01-30 Thread Eddie Davis
A moron posting from google? How unusual! -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Sine Wave Curve Fit Question

2008-01-30 Thread Iain Mackay
Thanks folks - I'll have a think about both of these options. -- http://mail.python.org/mailman/listinfo/python-list

Re: Telnet Program

2008-01-30 Thread Tim Roberts
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Tue, 29 Jan 2008 16:23:28 -0800 (PST), "[EMAIL PROTECTED]" ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> Telnet(192.168.2.75,5000): send '\n\n' > > Should that be "\r\n" (or, if two lines is intended, "\r\n\r\n") I do

Re: Removing Pubic Hair Methods

2008-01-30 Thread George Sakkis
On Jan 30, 9:27 pm, MRAB <[EMAIL PROTECTED]> wrote: > On Jan 31, 1:09 am, George Sakkis <[EMAIL PROTECTED]> wrote:> On Jan 30, 5:03 > pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > > On Wed, 30 Jan 2008 15:29:45 +0100, Wildemar Wildenburger wrote: > > > > Gerardo Herzig wrote: > > >

Re: Dictionary Keys question

2008-01-30 Thread Marc 'BlackJack' Rintsch
On Wed, 30 Jan 2008 17:19:13 -0800, Ryszard Szopa wrote: > BTW, can anybody explain me how is the hash function implemented in > Python? It calls the `__hash__()` method on the object that was given as argument. So there's not *the* hash function, but every type implements its own. Fallback is t

list traversal and remove

2008-01-30 Thread [EMAIL PROTECTED]
I supposed the below code will print seven 2 and generate the list li without 2. Strangely it only print four 2. If you change the number of 2 in the list, the results are all beyond expectation. I know the other way to achieve the expected goal, but why this is happening? Could somebody enlight m

Do You Want a GSM Mobile with Amazing Features? Please click here

2008-01-30 Thread Farooq
www.enmac.com.hk GSM Mobile Phones, Digital iPods, Digital Clocks, Digital Pens, Digital Quran. Enjoy these products with Islamic Features (Complete Holy Quran with Text and Audio, Tafaseer books, Ahadees Books, Daily Supplications, Universal Qibla Direction, Prayer Timing and much more) visit our

Re: Telnet Program

2008-01-30 Thread Tim Roberts
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >Thank You for the response. I did set the debugging level. I get back >this. > >Telnet(192.168.2.75,5000): recv 'Password: ' >Telnet(192.168.2.75,5000): send '*\n' >Telnet(192.168.2.75,5000): recv '\r\x00\r\nlogged in successfully\r\n' >Telnet(1

<    1   2