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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: Dictionary Keys question

2008-01-30 Thread FireNWater
On Jan 30, 3:09 pm, Berteun Damman <[EMAIL PROTECTED]> wrote: > On Wed, 30 Jan 2008 14:47:36 -0800 (PST), FireNWater <[EMAIL PROTECTED]> > wrote: > > I'm curious why the different outputs of this code. If I make the > > dictionary with letters as the keys, they are not listed in the > > dictionar

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

2008-01-30 Thread alex23
Hey Si, The PEAK lib Trellis (http://peak.telecommunity.com/DevCenter/Trellis) is worth checking out. I haven't had a chance to use it yet but am keen to. There are several other modules that may apply, I recommend searching on the Python Package Index (http://pypi.python.org/pypi), for "observer

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

2008-01-30 Thread Daniel Fetchinson
> 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 everyone is part of a big conspiracy not to answer any of your emails

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

2008-01-30 Thread Sergio Correia
is this some kind of joke? if you get no answers, then the answer is no On Jan 30, 2008 7: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 > >

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

2008-01-30 Thread Blubaugh, David A.
I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming David Blubaugh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 6:1

Re: writing Python in Emacs

2008-01-30 Thread Ryszard Szopa
Thanks Rob. Your code should basically do the trick. -- Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to understand Python web-development

2008-01-30 Thread Paul Boddie
On 30 Jan, 21:27, walterbyrd <[EMAIL PROTECTED]> wrote: > Thanks for all that posts. This thread has been helpful. > > I have seen a lot of posts about the importance of decoupling the > deployment technologies from the framework technologies. This is how I > have done that in PHP. I develop on my

Re: Dictionary Keys question

2008-01-30 Thread Berteun Damman
On Wed, 30 Jan 2008 14:47:36 -0800 (PST), FireNWater <[EMAIL PROTECTED]> wrote: > I'm curious why the different outputs of this code. If I make the > dictionary with letters as the keys, they are not listed in the > dictionary in alphabetical order, but if I use the integers then the > keys are in

Re: Dictionary Keys question

2008-01-30 Thread Dustan
On Jan 30, 4:47 pm, FireNWater <[EMAIL PROTECTED]> wrote: > I'm curious why the different outputs of this code. If I make the > dictionary with letters as the keys, they are not listed in the > dictionary in alphabetical order, but if I use the integers then the > keys are in numerical order. > >

Re: Dictionary Keys question

2008-01-30 Thread Gabriel Genellina
En Wed, 30 Jan 2008 20:47:36 -0200, FireNWater <[EMAIL PROTECTED]> escribió: > I'm curious why the different outputs of this code. If I make the > dictionary with letters as the keys, they are not listed in the > dictionary in alphabetical order, but if I use the integers then the > keys are in n

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

2008-01-30 Thread Peter Schuller
> It what sense will it not be? Why do you care so much about where the > source code for Monkey is defined? If you actually want to read the > source, you might need to follow the chain from "animal", see that Monkey > is imported from "monkey", and go look at that. But the rest of the time, >

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

2008-01-30 Thread Peter Schuller
> Well, all I will say is that many people on this list, myself > included, do know Python internals, and we use the method we've been > suggesting here, without problems. Ok. That is useful to know (that it is being done in practice without problems). Thanks! -- / Peter Schuller PGP userID: 0

Re: Dictionary Keys question

2008-01-30 Thread Christian Heimes
FireNWater wrote: > I'm curious why the different outputs of this code. If I make the > dictionary with letters as the keys, they are not listed in the > dictionary in alphabetical order, but if I use the integers then the > keys are in numerical order. > > I know that the order of the keys is no

Dictionary Keys question

2008-01-30 Thread FireNWater
I'm curious why the different outputs of this code. If I make the dictionary with letters as the keys, they are not listed in the dictionary in alphabetical order, but if I use the integers then the keys are in numerical order. I know that the order of the keys is not important in a dictionary, b

dynamically set up ssh -r & paramiko?

2008-01-30 Thread washakie
Hello, I'm trying to write a script which will allow me to initiate (spawn?) an SSH reverse tunnel from an internal box (inside a firewall) to an external box, while logged into the external box. I posted to another list and was pointed in the direction of paramiko. I've read the tutorials, but

Re: Events in Python

2008-01-30 Thread Ivan Illarionov
> Compared to what, did you measure something? As example, instantiation of Model classes in Django (Model.__init__) sends two signals (pre_init and post_init) - they are rarely used in practice - but they make instantiation about two times slower. Yes, I measured that. The creator of Louie (Patr

Re: Events in Python

2008-01-30 Thread Bjoern Schliessmann
Ivan Illarionov wrote: > Note that all those signals/events are very slow in Python. Compared to what, did you measure something? Regards, Björn -- BOFH excuse #38: secretary plugged hairdryer into UPS -- http://mail.python.org/mailman/listinfo/python-list

Re: Events in Python

2008-01-30 Thread Ivan Illarionov
You may need Louie (http://louie.berlios.de) Django (http://djangoproject.com) does the same in django.dispatch - and Django version works about 33% faster. Note that all those signals/events are very slow in Python. --Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing Pubic Hair Methods

2008-01-30 Thread Marc 'BlackJack' Rintsch
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? `apply()` is deprecated. And ``genital(*females)`` looks a bit odd. :-) Ciao,

Re: Fw: Undeliverable Message

2008-01-30 Thread Bart Kastermans
On Jan 25, 5:05 am, [EMAIL PROTECTED] wrote: > Hallo pyPeople, > > I wrote a little snippet of code that takes a list representing some > 'digits', and according to a list of symbols, increments the digits through > the symbol list. > > so for example, > > digits=["a","a","a"] > symbols=["a","b","

Re: Q: paramiko/SSH/ how to get a remote host_key

2008-01-30 Thread Charles_hans
Thank you, Guilherme. I was running demo_sftp.py included in paramiko download. It seems that '.ssh/known_hosts' should be the path of a key file on my working directory on local PC. (Right?) I replaced this with 'test_rsa.key' in C:\paramiko-1.7.2\demos and this did not generate error. But the r

Re: Trying to understand Python web-development

2008-01-30 Thread walterbyrd
Thanks for all that posts. This thread has been helpful. I have seen a lot of posts about the importance of decoupling the deployment technologies from the framework technologies. This is how I have done that in PHP. I develop on my home box. When I get something working the way I want, I ftp thos

Re: Web Interface Recommendations

2008-01-30 Thread PurpleServerMonkey
On Jan 30, 8:08 pm, Bruno Desthuilliers wrote: > PurpleServerMonkey a écrit : > (snip) > > > Out of the major frameworks is there one that stands out as being > > particularly well suited for what I'm trying to do? > > > Django and CherryPy are on the short list so I'll give them a detailed > > lo

Events in Python

2008-01-30 Thread Simon Pickles
Hi, I have a stackless python app, using twisted in parts (.internet and .adbapi). I need a little help getting pythonic after years of c++ hell. I'd like to use a system of events and observers, like c++ boost.signal. I'd like to be able to subscribe multiple callbacks to a single function a

[no subject]

2008-01-30 Thread 7146031596
17146031598 -- http://mail.python.org/mailman/listinfo/python-list

Re: "Code Friendly" Blog?

2008-01-30 Thread Stefan Behnel
Hai Vu wrote: > Why don't you try to use Code Colorizer: > http://www.chamisplace.com/colorizer/cc.asp Looks like it lacks support for one important language, though... Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Q: paramiko/SSH/ how to get a remote host_key

2008-01-30 Thread Guilherme Polo
2008/1/30, Charles_hans <[EMAIL PROTECTED]>: > > I tried to get what host_key has been aquired after AutoPolicy is set. I > added the following code just before client.close() in rosty's final code: > > try: > host_keys = > paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))

Re: Sine Wave Curve Fit Question

2008-01-30 Thread Helmut Jarausch
Iain Mackay wrote: > Python Folks > > I'm a newbie to Python and am looking for a library / function that can help > me fit a 1D data vector to a sine wave. I know the frequency of the wave, > so its really only phase and amplitude information I need. > > I can't find anything in the most wi

Re: Q: paramiko/SSH/ how to get a remote host_key

2008-01-30 Thread Charles_hans
I tried to get what host_key has been aquired after AutoPolicy is set. I added the following code just before client.close() in rosty's final code: try: host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts')) except IOError: try: host_keys = paramiko.uti

Re: event handling

2008-01-30 Thread Mike Driscoll
On Jan 30, 11:16 am, Peter Nemeth <[EMAIL PROTECTED]> wrote: > Hi , > > I am working on a stellar spectral analysis pipeline in Python. My OS is > Suse 10.0, and i use Python 2.5 . I have found difficulties with keyboard > event handling. My code communicates with the user through an xterm window

Re: Python UML Metamodel

2008-01-30 Thread Gabriel Genellina
En Tue, 29 Jan 2008 21:25:26 -0200, sccs cscs <[EMAIL PROTECTED]> escribió: > I find an OPEN SOURCE tool (http://bouml.free.fr/) that Recently > generates Python code from UML model. Does it keep the model synchronized when you modify the Python code? > I like to model the Python language met

Updating documents in PyLucene

2008-01-30 Thread gefafwisp
Hi all, The way that Lucene (and by extension, PyLucene) seems to work is that updates to documents are implemented by the user as a document addition (of the new version) and subsequent deletion (of the old version). My problem is that I'd like to update a number of documents which have their Sto

Re: Sine Wave Curve Fit Question

2008-01-30 Thread marek . rocki
Iain Mackay napisal(a): > Python Folks > > I'm a newbie to Python and am looking for a library / function that can help > me fit a 1D data vector to a sine wave. I know the frequency of the wave, > so its really only phase and amplitude information I need. > > I can't find anything in the most w

event handling

2008-01-30 Thread Peter Nemeth
Hi , I am working on a stellar spectral analysis pipeline in Python. My OS is Suse 10.0, and i use Python 2.5 . I have found difficulties with keyboard event handling. My code communicates with the user through an xterm window and shows graphs in a Gnuplot window. At a certain point i start a

Re: Python plugins for netbeans 6 IDE?

2008-01-30 Thread dzizes
Did you managed to work out NetBeans and Python? Ken McDonald wrote: > > Do any such exist? And do you find them worthwhile? I couldn't see any > browsing the netbeans pages, but that doesn't mean they're not out > there... > > Thanks, > Ken > -- > http://mail.python.org/mailman/listinfo/py

Re: MySQLdb and column names

2008-01-30 Thread beef
change: I would prefer to have the key names consistent, so that event the to: I would prefer to have the key names consistent, so that *even* the -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb and column names

2008-01-30 Thread beef
Hello all, I am using MySQLdb 1.2.2 and have a question about the construction of the dictionary keys of a result set. Here is an example query, from which you may intuit some of the structure of the tables: SELECT shots.*, users.*, sequences.*, jobs.* FROM shots LEFT JOIN users ON

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

2008-01-30 Thread Carl Banks
On Jan 30, 4:31 am, Peter Schuller <[EMAIL PROTECTED]> wrote: > I don't know Python internals enough to state of believe with any > authority wither, let's say, stomping __module__ and hacking > sys.modules would be enough to *truly* do it correctly in a proper way > such that it is entirely transp

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-30 Thread grflanagan
On Jan 29, 5:39 pm, kj <[EMAIL PROTECTED]> wrote: [...] > It's not the Python syntax that I'm having problems with, but rather > with larger scale issues such as the structuring of packages, > techniques for code reuse, test suites, the structure of > distributions,... Python and Perl seem to come

Re: Trouble loading dll via ctypes

2008-01-30 Thread Helmut Jarausch
subopt inTheVicinityOf geemail.com wrote: > I'm trying to load a dll via ctypes by doing this: > > cdll.LoadLibrary('/path/to/mylib.so') > > But i'm getting this: > > /path/to/mylib.so: cannot open shared object file: No such file or > directory What am i doing wrong? > > The dll in

Re: Removing Pubic Hair Methods

2008-01-30 Thread Steve Holden
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? > > /W That's enough genitalia [ed] -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC

Re: Tkinter - incremental input ?

2008-01-30 Thread Eric Brunel
On Wed, 30 Jan 2008 13:32:00 +0100, Helmut Jarausch <[EMAIL PROTECTED]> wrote: [snip] > While I can bind '' to a callback, I haven't figured out how > to get (and later on set) the cursor within the Entry widget. > In other words I need to know at which character position the last > character was

SV: Unicode literals to latin-1

2008-01-30 Thread David.Reksten
On 30. januar 2008 14:31, Gabriel Genellina wrote: >On 30 ene, 07:54, <[EMAIL PROTECTED]> wrote: >> On 30. januar 2008 10:48, Marc 'BlackJack' Rintsch wrote: >> >> >On Wed, 30 Jan 2008 09:57:55 +0100, David.Reksten wrote: >> >> >> How can I convert a string read from a database containing unicode >

Re: find nearest time in datetime list

2008-01-30 Thread washakie
Thanks all! This is terrific, and a quick response... I have to go with the 2.4 version, but thanks to everyone... Tim Golden-4 wrote: > > washakie wrote: >> Hello, >> >> I have a list of datetime objects: DTlist, I have another single datetime >> object: dt, ... I need to find the nearest DT

Re: Removing Pubic Hair Methods

2008-01-30 Thread Wildemar Wildenburger
Gerardo Herzig wrote: > I will use genital().extend(), thats for shure ^^ Well, you never go wrong with apply(genital(), females), do you? /W -- http://mail.python.org/mailman/listinfo/python-list

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

2008-01-30 Thread Gabriel Genellina
On 30 ene, 12:00, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > I call that a bug in the inspect module. In fact, looking at the source > for the findsource() function, I can see no fewer than two bugs, just in > the way it handles classes: > > (1) it assumes that the only way to

Sine Wave Curve Fit Question

2008-01-30 Thread Iain Mackay
Python Folks I'm a newbie to Python and am looking for a library / function that can help me fit a 1D data vector to a sine wave. I know the frequency of the wave, so its really only phase and amplitude information I need. I can't find anything in the most widely known libraries (they seem t

Re: optional static typing for Python

2008-01-30 Thread Wildemar Wildenburger
Kay Schluehr wrote: > On Jan 30, 12:38 am, Wildemar Wildenburger > <[EMAIL PROTECTED]> wrote: >>> Python has a JIT right no >> You mean in the Java-sense (outputting native machine code)? >> >> /W > > Sure. > > http://psyco.sourceforge.net/ > Oh, switcheroo! :) /W -- http://mail.python.org/ma

Re: Removing Pubic Hair Methods

2008-01-30 Thread Gerardo Herzig
Sion Arrowsmith wrote: >Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > >>On Tue, 29 Jan 2008 11:48:38 -0800, Tobiah wrote: >> >> >>>class genital: >>> def pubic_hair(self): >>> pass >>> def remove(self): >>> del(self.pubic_hair) >>> >>> >>I thi

Re: Removal of element from list while traversing causes the next element to be skipped

2008-01-30 Thread cokofreedom
Anyone else noticed that the OP has not actually replied to any of the suggestions... -- http://mail.python.org/mailman/listinfo/python-list

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

2008-01-30 Thread Steven D'Aprano
On Tue, 29 Jan 2008 06:48:59 -0600, Peter Schuller wrote: >> You can also put, in animal/__init__.py: >> from monkey import Monkey >> and now you can refer to it as org.lib.animal.Monkey, but keep the >> implementation of Monkey class and all related stuff into >> .../animal/monkey.py > > The pr

Re: find nearest time in datetime list

2008-01-30 Thread Tim Chase
Boris Borcic wrote: > min(DTlist,key=lambda date : abs(dt-date)) In Python2.4: Traceback (most recent call last): File "", line 1, in ? TypeError: min() takes no keyword arguments Looks like min() only started taking keywords (key) from Python2.5 forward. But the min() solution is g

  1   2   >