Fwd: Re: AUTO EDITOR DIDN'T WORK

2023-06-12 Thread Alan Gauld via Python-list
On 12/06/2023 10:26, Real Live FootBall Tv via Python-list wrote: > I did it because I was going to use it with another application, A VIDEO > EDITING APP, Auto EDITOR but it didn't work for some reasons unknown to me. You need to define "didn't work" Did it work as a python interpreter? ie. Di

Fwd: Re: Long running process - how to speed up?

2022-02-19 Thread Alan Gauld
On 19/02/2022 11:28, Shaozhong SHI wrote: > I have a cvs file of 932956 row That's not a lot in modern computing terms. > and have to have time.sleep in a Python > script. Why? Is it a requirement by your customer? Your manager? time.sleep() is not usually helpful if you want to do things qui

Fwd: Re: sum() vs. loop

2021-10-12 Thread Alan Gauld
On 10/10/2021 09:49, Steve Keller wrote: > I have found the sum() function to be much slower than to loop over the > operands myself: > > def sum_products(seq1, seq2): > return sum([a * b for a, b in zip(seq1, seq2)]) > > def sum_products2(seq1, seq2): > sum = 0 > for a, b in zip(seq1, seq2): > s

Re: [Python-ideas] Fwd: Re: PEP: add a `no` keyword as an alias for `not`

2019-08-02 Thread DL Neil
A truly marvellous aspect of Python is its world-wide spread! Many people use Python with greater ease than they speak or write English, despite Python appearing to be a sub-set of the English language! Native English-speakers often* have difficulty following negatively-worded sentences, eg "

Re: [Python-ideas] Fwd: Re: PEP: add a `no` keyword as an alias for `not`

2019-08-02 Thread Andrew Barnert via Python-list
On Aug 1, 2019, at 13:38, Daniel Okey-Okoro wrote: > > > > not a strong enough justification for breaking any code that uses "no" in > > any other way. > > This is a very crucial point I didn't consider. > > > > What if we could le

Fwd: Re: Python on Android?

2018-02-18 Thread Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ -- Forwarded message -- From: "Abdur-Rahmaan Janhangeer" Date: 18 Feb 2018 14:17 Subject: Re: Python on Android? To: "Chris Angelico" Cc: mailed the developer sometimes back, told me to download a 3.4 included .apk on the

Re: [python-cffi] Fwd: Re: Progress migrating cffi and pycparser to libclang

2018-01-06 Thread Eli Bendersky
On Fri, Jan 5, 2018 at 1:15 AM, Etienne Robillard wrote: > Forwarding this thread to the CFFI developers... > > Re Paul: Thanks for your feedback. > > My intended audience are developers who can use hg to fetch/build source > code without pip. > > Best regards, > > Etienne > I'd like to underst

Fwd: Re: Progress migrating cffi and pycparser to libclang

2018-01-05 Thread Etienne Robillard
Forwarding  this thread to the CFFI developers... Re Paul: Thanks for your feedback. My intended audience are developers who can use hg to fetch/build source code without pip. Best regards, Etienne Message transféré Sujet : Re: Progress migrating cffi and pycparse

Re: Fwd: Re: Error 0*80070570

2016-04-21 Thread Stephen Hansen
On Thu, Apr 21, 2016, at 10:46 AM, Allan Leo wrote: > I need help with this setup error. > -- Forwarded message -- > From: "Allan Leo" > Date: Apr 21, 2016 10:06 AM > Subject: Re: Error 0*80070570 > To: > Cc: > > When running the setup for your 3.5.1(32-bit version), the setup >

Fwd: Re: Error 0*80070570

2016-04-21 Thread Allan Leo
I need help with this setup error. -- Forwarded message -- From: "Allan Leo" Date: Apr 21, 2016 10:06 AM Subject: Re: Error 0*80070570 To: Cc: When running the setup for your 3.5.1(32-bit version), the setup experiences error 0*80070570 and tells me to check the log file. What c

[Fwd: Re: Django-DMARC making it easier to manage DMARC reports - Beta 0.1.3 on PyPI]

2015-03-15 Thread Alan Hicks
Original Message Subject: Re: Django-DMARC making it easier to manage DMARC reports - Beta 0.1.3 on PyPI From:"Alan Hicks" Date:Sun, March 15, 2015 2:10 pm To: "Chris Angelico" -

Re: Fwd: Re: Comparisons and sorting of a numeric class....

2015-01-29 Thread Andrew Robinson
On 01/27/2015 02:04 AM, Gregory Ewing wrote: Andrew Robinson wrote: The spelling caveat is great -- and in Python the object named in bool's honor is spelled bool (lowercase too). ;) That doesn't change the fact that the man was called George Boole (not Charles!). If you're going to refer to

Re: Fwd: Re: Comparisons and sorting of a numeric class....

2015-01-27 Thread Gregory Ewing
Andrew Robinson wrote: The spelling caveat is great -- and in Python the object named in bool's honor is spelled bool (lowercase too). ;) That doesn't change the fact that the man was called George Boole (not Charles!). If you're going to refer to him by name, it's only courteous to make some

Re: Fwd: Re: Comparisons and sorting of a numeric class....

2015-01-27 Thread Andrew Robinson
On 01/26/2015 02:22 PM, Ian Kelly wrote: On Jan 26, 2015 6:42 AM, "Andrew Robinson" > wrote: > ... If you're going to descend into insults and name-calling, then I'm not going to waste any more of my time on this thread. I don't believe I've actually, int

Re: Fwd: Re: Comparisons and sorting of a numeric class....

2015-01-26 Thread Ian Kelly
On Jan 26, 2015 6:42 AM, "Andrew Robinson" wrote: > ... If you're going to descend into insults and name-calling, then I'm not going to waste any more of my time on this thread. The restriction on inheriting from bool isn't likely to change. There have been several suggestions as to how you can d

Re: Fwd: Re: Comparisons and sorting of a numeric class....

2015-01-26 Thread Andrew Robinson
Hi Mark ! I hope you are well, and haven't been injured falling out of your chair laughing. There are probably 12 to 14 emails that I haven't been able to read in my inbox from the python list on the subject of this 'drivel', because I have a real life besides the semi-comedy act that goes on h

Re: Fwd: Re: Comparisons and sorting of a numeric class....

2015-01-26 Thread Mark Lawrence
On 26/01/2015 13:38, Andrew Robinson wrote: *plonk* -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Fwd: Re: Comparisons and sorting of a numeric class....

2015-01-26 Thread Andrew Robinson
Original Message Subject:Re: Comparisons and sorting of a numeric class Date: Mon, 26 Jan 2015 05:38:22 -0800 From: Andrew Robinson To: Steven D'Aprano On 01/24/2015 12:27 AM, Steven D'Aprano wrote: Andrew Robinson wrote: But let me explain a bit mo

Fwd: Re: Postfix conditionals

2014-01-05 Thread Göktuğ Kayaalp
This was sent to me as a private reply to a question that I have posted to python-list@python.org, so I am forwarding it to here. Chris, please send your messages to the list, and cc the OP. Original Message Subject:Re: Postfix conditionals Date: Sun, 5 Jan 2014 14:09

Fwd: Re: Wrapping around a list

2013-11-28 Thread Ricardo Aráoz
El 27/11/13 07:46, amjad...@gmail.com escribió: Hello, I am working on a problem (Bioinformatics domain) where all possible combinations of input string needs to be printed as sublist For example: Input string : "LEQN" Output= "[L","E","Q","N"]["LE","EQ","QN","NL"] ["LEQ","EQN","QNE","NLE"] ["

Fwd: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-05 Thread Νίκος Gr33k
Αρχικό μήνυμα Θέμα: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Ημερομηνία: Fri, 05 Jul 2013 15:16:45 +0300 Από:Νίκος Gr33k Προς: feedthetr...@gmx.de Στις 5/7/2013 3:06 μμ, ο/η feedthetr...@gmx.de έγραψε: Am

Fwd: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-04 Thread Νίκος Γκρ33κ
Αρχικό μήνυμα Θέμα: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Ημερομηνία: Thu, 04 Jul 2013 14:34:42 +0100 Από: MRAB Απάντηση: python-list@python.org Προς: python-list@python.org Ομάδες συζήτησης: comp.lang.python Αναφορές

Fwd: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-04 Thread Νίκος
Αρχικό μήνυμα Θέμα: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Ημερομηνία: Thu, 04 Jul 2013 06:29:25 -0400 Από: Dave Angel Προς: python-list@python.org Ομάδες συζήτησης: comp.lang.python Αναφορές: On 07/04/2013 06:0

Fwd: Re: python adds an extra half space when reading from a string or list

2013-07-04 Thread Νίκος
Στις 3/7/2013 8:23 μμ, ο/η Chris Angelico έγραψε: What are the file permissions (file modes) on all your home directories? Do you know what they mean? root@nikos [~]# ls -al /home total 88 drwx--x--x 22 root root 4096 Jul 3 20:03 ./ drwxr-xr-x 22 root root 4096 Jun 12 01:21 .

Fwd: Re: python script is not running

2013-05-18 Thread Vincent Vande Vyvre
Message original Sujet: Re: python script is not running Date : Sat, 18 May 2013 12:36:55 +0200 De :Vincent Vande Vyvre Pour : Avnesh Shakya Le 18/05/2013 12:12, Avnesh Shakya a écrit : hi, i want to run python script which generating data into json fromat, I

Re: Fwd: Re: distutils without a compiler

2013-04-05 Thread Colin J. Williams
On 04/04/2013 9:30 PM, Colin J. Williams wrote: Original Message Subject: Re: distutils without a compiler Date: Tue, 02 Apr 2013 16:26:59 -0700 From: Ned Deily To: pyth

Fwd: Re: [Python-Help] idle doesn't work

2013-03-11 Thread leonardo
sorry for that, that answer didn't help me.. regards Il 10/03/2013 23.59, Matthew Dixon Cowles ha scritto: Dear Leonardo, Sending the same message three times isn't likely to produce faster or better help. Is the reply that you got on the main Python list satisfactory? Regards,

Fwd: Re:

2013-02-14 Thread Matt Jones
Sending back to the maillist *Matt Jones* -- Forwarded message -- From: Date: Thu, Feb 14, 2013 at 1:42 PM Subject: Re: Re: To: Matt Jones thanks for replying Matt. I am using version 2.7.3. im not sure if this is right but here is the code from "/usr/local/lib/python2.7/d

Fwd: Re: Negative array indicies and slice()

2012-11-03 Thread Andrew Robinson
Forwarded to python list: Original Message Subject:Re: Negative array indicies and slice() Date: Sat, 03 Nov 2012 15:32:04 -0700 From: Andrew Robinson Reply-To: andr...@r3dsolutions.com To: Ian Kelly <> On 11/01/2012 05:32 PM, Ian Kelly wrote: On Thu,

Re: Fwd: Re: Article on the future of Python

2012-09-26 Thread Chris Angelico
On Thu, Sep 27, 2012 at 9:29 AM, Terry Reedy wrote: > On 9/26/2012 2:58 PM, Ian Kelly wrote: > >> You know, usually when I see software decried as America-centric, it's >> because it doesn't support Unicode. This must be the first time I've >> seen that label applied to software that dares to *ful

Re: Fwd: Re: Article on the future of Python

2012-09-26 Thread Terry Reedy
On 9/26/2012 2:58 PM, Ian Kelly wrote: You know, usually when I see software decried as America-centric, it's because it doesn't support Unicode. This must be the first time I've seen that label applied to software that dares to *fully* support Unicode. What is truly bizarre is the idea came f

Fwd: Re: Article on the future of Python

2012-09-26 Thread Ian Kelly
Resending to the list. -- Forwarded message -- From: "Ian Kelly" Date: Sep 26, 2012 12:57 PM Subject: Re: Article on the future of Python To: On Sep 26, 2012 12:42 AM, wrote: > Py 3.3 succeeded to somehow kill unicode and it has > been transformed into an "American" product for

Fwd: Re: Strange behavior

2012-08-14 Thread Virgil Stokes
Original Message Subject:Re: Strange behavior Date: Tue, 14 Aug 2012 21:32:16 +0200 From: Virgil Stokes To: light1qu...@gmail.com On 2012-08-14 17:38, light1qu...@gmail.com wrote: Hi, I am migrating from PHP to Python and I am slightly confused. I am maki

Fwd: Re: Different results for different versions of urllib2

2012-04-20 Thread Dave Angel
You forgot to include the list in your response. I don't normally respond to private messages, but I'll make an exception. On Fri, Apr 20, 2012 at 10:08 PM, Dave Angel wrote: > On 04/20/2012 06:47 PM, Diego Manenti Martins wrote: >> Hi. >> Anybody knows the data is sent in a different way for P

[Fwd: Re: about Pyclutter]

2011-04-03 Thread craf
Thanks for the answer. Regards. Cristian - Mensaje reenviado > De: Blockheads Oi Oi > Para: python-list@python.org > Asunto: Re: about Pyclutter > Fecha: Sun, 03 Apr 2011 11:41:32 +0100 > > On 02/04/2011 17:54, craf wrote: > > Hi > > > > Does anyone know how mature is Pyclutter

[Fwd: Re: Another location of the PyGTK tutorial]

2011-04-03 Thread craf
¡Thank you very much Dotan! Regards. Cristian - Mensaje reenviado > De: Dotan Cohen > Para: craf > Cc: Python Ingles > Asunto: Re: Another location of the PyGTK tutorial > Fecha: Sun, 3 Apr 2011 13:40:35 +0300 > > http://gitorious.org/pygtk-tutorial > > On Fri, Apr 1, 2011 a

[Fwd: Re: Calling function from another module]

2010-12-16 Thread craf
- Mensaje reenviado > De: Peter Otten <__pete...@web.de> > Para: python-list@python.org > Asunto: Re: Calling function from another module > Fecha: Thu, 16 Dec 2010 13:16:30 +0100 > Grupos de noticias: comp.lang.python > > craf wrote: > > > Hi. > > > > The query code is as follo

[Fwd: Re: Alternative to PIL in Python 3.1]

2010-12-14 Thread craf
- Mensaje reenviado > De: Emile van Sebille > Para: python-list@python.org > Asunto: Re: Alternative to PIL in Python 3.1 > Fecha: Tue, 14 Dec 2010 16:39:19 -0800 > > On 12/14/2010 3:17 PM craf said... > > Hi. > > > > I wonder if anyone knows any alternative to PIL library, as th

[Fwd: Re: Using a window style in a Toplevel window]

2010-12-09 Thread craf
- Mensaje reenviado > De: Eric Brunel > Para: python-list@python.org > Asunto: Re: Using a window style in a Toplevel window > Fecha: Thu, 09 Dec 2010 10:00:39 +0100 > Grupos de noticias: comp.lang.python > > In article , > craf wrote: > > > Hi. > > > > I use Python 3.1 and T

[Fwd: Re: Uso de variable Global]

2010-12-02 Thread craf
- Mensaje reenviado > De: Peter Otten <__pete...@web.de> > Para: python-list@python.org > Asunto: Re: Uso de variable Global > Fecha: Thu, 02 Dec 2010 23:06:25 +0100 > Grupos de noticias: comp.lang.python > > craf wrote: > > > Hola. > > > > > > Estoy probando Tkinter y escribí

[Fwd: Re: Uso de variable Global]

2010-12-02 Thread cristian abarzúa
- Mensaje reenviado > De: Peter Otten <__pete...@web.de> > Para: python-list@python.org > Asunto: Re: Uso de variable Global > Fecha: Thu, 02 Dec 2010 23:06:25 +0100 > Grupos de noticias: comp.lang.python > > craf wrote: > > > Hola. > > > > > > Estoy probando Tkinter y escribí

[Fwd: Re: Decorate un Frame with window managers title bar, etc en Tkinter 8.5]

2010-12-02 Thread craf
- Mensaje reenviado > De: Eric Brunel > Para: python-list@python.org > Asunto: Re: Decorate un Frame with window managers title bar, etc en > Tkinter 8.5 > Fecha: Thu, 02 Dec 2010 10:21:49 +0100 > Grupos de noticias: comp.lang.python > > In article , > craf wrote: > > > Hi. >

[Fwd: Re: [ANN] Pyjamas 0.5 Web Widget Set and python-to-javascript Compiler released]

2010-06-10 Thread Paul
The python-announce-list-ow...@python.org suggested you might have a solution to my problem. Please help if you can. Thanks, Paul Original Message Subject: Re: [ANN] Pyjamas 0.5 Web Widget Set and python-to-javascript Compiler released Date: Thu, 10 Jun 2010 17:43:48 -

Fwd: Re: Logging question

2009-12-16 Thread Vinay Sajip at Red Dove
Original Message Subject:Re: Logging question Date: Tue, 15 Dec 2009 18:28:54 + From: Vinay Sajip at Red Dove To: Yaroslav Molochko On 15/12/2009 14:29, Yaroslav Molochko wrote: > Hello Vinay Sajip, > > my name is Yaroslav, I'm trying to use your logging

Re: Fwd: Re: How to improve this code?

2009-09-16 Thread Duncan Booth
Hendrik van Rooyen wrote: > def are_elements_present(eleLocators): > elePresent=False > if not eleLocators: > return False > > for ele in eleLocators: > if selenium.is_element_present(ele): > elePresent=True > else: > elePresent=False

Re: Fwd: Re: How to improve this code?

2009-09-16 Thread Thomas Lehmann
> otherwise. Given this, I'm just trying to write a method > are_elements_present(aList) whose job is to return True if and only if > all elements in aList are present in page's HTML. So here is how > missingItems = [str(ele) for ele in eleLocators if not selenium.is_element_present(ele)] if len(m

Fwd: Re: How to improve this code?

2009-09-16 Thread Hendrik van Rooyen
>From a private email, forwarded to the list: -- Forwarded Message -- Subject: Re: How to improve this code? Date: Tuesday 15 September 2009 From: Oltmans To: hend...@microcorp.co.za On Sep 15, 1:13 pm, Hendrik van Rooyen wrote: > > (i) a True if All the elements in match

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-13 Thread David Lyon
On Thu, 14 May 2009 08:33:12 +1000, Mark Hammond wrote: > But if PYTHONPATH was set incorrectly it really doesn't matter how > Python was installed, it would still fail. The installer didn't set > PYTHONPATH, a human did. Hi Mark, Well I am just trying to write a package manager for python b

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-13 Thread Mark Hammond
On 13/05/2009 2:18 PM, David Lyon wrote: On Wed, 13 May 2009 05:32:16 +0200, "Martin v. Löwis" wrote: I think this was a case of obscure misconfiguration of the system. It is always possible to configure a system in such a way that even the most resilient installation procedure will break. Te

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-13 Thread David Lyon
On Wed, 13 May 2009 13:54:49 +0200, Thomas Heller > > Well, if you don't like the windows installer than you can always > install from the sources. Please go ahead and try it out. Thanks for the offer... but aren't python .eggs supposed to remove the need for doing that ? Regards David --

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-13 Thread Thomas Heller
David Lyon schrieb: > On Wed, 13 May 2009 05:32:16 +0200, "Martin v. Löwis" > wrote: > >> I think this was a case of obscure misconfiguration of the system. >> It is always possible to configure a system in such a way that even >> the most resilient installation procedure will break. > > Techni

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-12 Thread David Lyon
On Wed, 13 May 2009 05:32:16 +0200, "Martin v. Löwis" wrote: > I think this was a case of obscure misconfiguration of the system. > It is always possible to configure a system in such a way that even > the most resilient installation procedure will break. Technically, you are right.. but imho.

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-12 Thread Martin v. Löwis
> lol - so simple... > > Thankfully, we got a quick answer by the package writing master himself.. > > but imho - package installation shouldn't be that tricky.. it should be > click and shoot... which is what i'm working on doing.. > > I have to say that I don't mind being corrected because I

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-12 Thread David Robinow
> Thanks for the help.  I just got it to install for Python 2.6.  All I did > was change PYTHONPATH (as suggested by Mark) from > C:\Python25\Lib\site-packages to C:\Python26\Lib\site-packages Why do you have PYTHONPATH set at all? -- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-12 Thread David Lyon
On Tue, 12 May 2009 23:57:48 GMT, David Lees > Mark and David, > > Thanks for the help. I just got it to install for Python 2.6. All I > did was change PYTHONPATH (as suggested by Mark) from > C:\Python25\Lib\site-packages to C:\Python26\Lib\site-packages lol - so simple... Thankfully, we g

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-12 Thread David Lees
Mark Hammond wrote: Probably some import statement is finding a .pyd module built against Python 2.5 instead of Python 2.6; it might be that PYTHONPATH points somewhere wrong, or the registry for Python 2.6 is setup wrong, or something else entirely... Cheers, Mark On 12/05/2009 3:13 PM, Da

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-11 Thread Mark Hammond
Probably some import statement is finding a .pyd module built against Python 2.5 instead of Python 2.6; it might be that PYTHONPATH points somewhere wrong, or the registry for Python 2.6 is setup wrong, or something else entirely... Cheers, Mark On 12/05/2009 3:13 PM, David Lyon wrote: Hi,

Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-11 Thread David Lyon
Hi, hmmm... that's annoying.. Whilst I don't have an exact answer I have a few hunches... Perphaps what has happened is that the windows installer between the versions of pywin32 has installed newer versions of the same dlls over the top of older ones. Or, possibly, the installer hasn't wanted

Fwd: Re: 2.5/2.4 multiprocessing backport doc typo

2009-03-29 Thread messlinger
Please get me off this merry-go-round from hell i plead the blood of JESUS you guys need help your clogging my computor and all i wanted to do was know about a movie give me a break take my e-mail off all your links please i feel as tho a pytho has ahold of me and i will kill it! christ blo

Fwd: Re: 2.5/2.4 multiprocessing backport doc typo

2009-03-29 Thread messlinger
Please get me off this merry-go-round from hell i plead the blood of JESUS you guys need help your clogging my computor and all i wanted to do was know about a movie give me a break take my e-mail off all your links please i feel as tho a pytho has ahold of me and i will kill it! christ blo

Fwd: Re: 2.5/2.4 multiprocessing backport doc typo

2009-03-29 Thread messlinger
Please get me off this merry-go-round from hell i plead the blood of JESUS you guys need help your clogging my computor and all i wanted to do was know about a movie give me a break take my e-mail off all your links please i feel as tho a pytho has ahold of me and i will kill it! christ blo

Fwd: Re: 2.5/2.4 multiprocessing backport doc typo

2009-03-29 Thread messlinger
Please get me off this merry-go-round from hell i plead the blood of JESUS you guys need help your clogging my computor and all i wanted to do was know about a movie give me a break take my e-mail off all your links please i feel as tho a pytho has ahold of me and i will kill it! christ blo

Fwd: Re: 2.5/2.4 multiprocessing backport doc typo

2009-03-29 Thread messlinger
Please get me off this merry-go-round from hell i plead the blood of JESUS you guys need help your clogging my computor and all i wanted to do was know about a movie give me a break take my e-mail off all your links please i feel as tho a pytho has ahold of me and i will kill it! christ blo

[Fwd: Re: Pythonic way to determine if a string is a number]

2009-02-16 Thread Tim Golden
[Resending after a bounce from mailing list] pyt...@bdurham.com wrote: try: float (input) except ValueError: return False else: return True I follow the semantics, but I don't know why I would prefer the try/else technique over the simpler: try: float( input ) return True exc

[Fwd: Re: Python extension, where am I going wrong]

2008-09-10 Thread John Vines (CISD/HPCD)
Yes spelling things correctly does help, got it thanks for the help. --- Begin Message --- John Vines (CISD/HPCD) wrote: I am trying to create an extension module and keep getting an error, "/usr/local/lib/python2.5/site-packages/mytest.so: undefined symbol: PyInitModule" it's spelled Py_

Re: [Fwd: Re: How to make one program connect to more than one TCP?]

2008-06-09 Thread Laszlo Nagy
[EMAIL PROTECTED] wrote: i want to make one program that the steps like this: 1. download email from email account, for example: [EMAIL PROTECTED], saved in a file, for example: downloadedEmail.txt Can be done via the standard imaplib module. No need to use twisted. 2. parsing the downlo

Fwd: Re: [EMAIL PROTECTED]: Re: Compress a string]

2008-05-18 Thread python
> I'm trying to compress a string. > E.g: > > "BBBC" -> "ABC" Doesn't preserve order, but insures uniqueness: line = "BBBC" print ''.join( set( line ) ) Malcolm -- http://mail.python.org/mailman/listinfo/python-list

[Fwd: Re: Am I missing something with Python not having interfaces?]

2008-05-07 Thread J. Cliff Dyer
-- Oook, J. Cliff Dyer Carolina Digital Library and Archives UNC Chapel Hill --- Begin Message --- On Wed, 2008-05-07 at 21:19 +0200, Daniel Marcel Eichler wrote: > Am Dienstag 06 Mai 2008 16:07:01 schrieb Mike Driscoll: > > > If so, then it looks like an Interface is a generic class with method

Re: Fwd: Re: Problems installing Python on server

2008-01-31 Thread jim-on-linux
On Thursday 31 January 2008 09:46, jim-on-linux wrote: > > > Also be careful and setup all the > > > paths that is required for compiling > > > various Python modules etc. > > > > > > On Jan 29, 8:28 am, Yansky > > > > <[EMAIL PROTECTED]> wrote: > > > > I asked my hosting company if they > > > > w

Re: Fwd: Re: Problems installing Python on server

2008-01-31 Thread Steve Holden
jim-on-linux wrote: > > >>> Also be careful and setup all the paths >>> that is required for compiling various >>> Python modules etc. >>> >>> On Jan 29, 8:28 am, Yansky >> <[EMAIL PROTECTED]> wrote: I asked my hosting company if they would upgrade Python on my server to the latest

Fwd: Re: Problems installing Python on server

2008-01-31 Thread jim-on-linux
> > Also be careful and setup all the paths > > that is required for compiling various > > Python modules etc. > > > > On Jan 29, 8:28 am, Yansky > > <[EMAIL PROTECTED]> wrote: > > > I asked my hosting company if they > > > would upgrade Python on my server to > > > the latest version. They resp

[Fwd: Re: why doesn't have this list a "reply-to" ?]

2007-10-17 Thread Colin J. Williams
Original Message Subject: Re: why doesn't have this list a "reply-to" ? Date: Wed, 17 Oct 2007 11:13:49 +0900 From: Byung-Hee HWANG <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Organisation: InZealBomb To: python-list@python.org Newsgroups: gmane.comp.python.general Referenc

Re: Fwd: Re: Comparing Dictionaries

2007-07-30 Thread Steven D'Aprano
On Mon, 30 Jul 2007 14:06:29 -0500, Kenneth Love wrote: > >>From: "Steven D'Aprano" <[EMAIL PROTECTED]> >>Newsgroups: comp.lang.python >>Subject: Re: Comparing Dictionaries >>Date: Sat, 28 Jul 2007 10:21:14 +1000 >>To: python-list@python.org >> >>On Fri, 27 Jul 2007 14:11:02 -0500, Kenneth Love w

Fwd: Re: Comparing Dictionaries

2007-07-30 Thread Kenneth Love
>From: "Steven D'Aprano" <[EMAIL PROTECTED]> >Newsgroups: comp.lang.python >Subject: Re: Comparing Dictionaries >Date: Sat, 28 Jul 2007 10:21:14 +1000 >To: python-list@python.org > >On Fri, 27 Jul 2007 14:11:02 -0500, Kenneth Love wrote: > > > The published recipe (based on ConfigParser) did not h

Re: [Fwd: RE: Lists in classes]

2007-07-12 Thread Wildemar Wildenburger
Adam Pletcher wrote: > I'm curious (and somewhat new to Python)... What's the benefit of > inheriting from 'object'? > > The docs aren't clear on that, nor is that used in the class examples > I've seen. > Thanks in advance. > Well, they are, but they are just not well integrated. Which they, t

[Fwd: RE: Lists in classes]

2007-07-12 Thread Wildemar Wildenburger
Another one bitten by the 'missing' reply-to munging ;) You might want to ensure that you always reply to python-list@python.org intsead of the message author. Original Message Subject:RE: Lists in classes Date: Thu, 12 Jul 2007 16:58:50 -0500 From: Adam Pletcher <[E

[Fwd: Re: Trouble killing a process on windows]

2007-06-02 Thread Tim Golden
Tim Golden wrote: > Thomas Nelson wrote: [... re problem Terminating process ...] >> File "C:\Python24\warcraft\runwar3.py", line 7, in ? >> print win32api.TerminateProcess(int(war3game._handle),-1) >> error: (5, 'TerminateProcess', 'Access is denied.') >> >> I'm logged in as adminstrator.

Re: [Fwd: Re: managed lists?]

2007-05-24 Thread Jorgen Bodde
@ Larry, As much as I like to follow the idiom that Python has, I do not see the usefulness of making an add function that checks the interface that other objects might need. Besides the fact it is a bit overhead and not to mention performance draining, in an application that I develop myself, wit

Re: [Fwd: Re: managed lists?]

2007-05-22 Thread Bruno Desthuilliers
Jorgen Bodde a écrit : (snip) > class ObjListException(Exception): >pass > > class ObjListIterator(object): >def __init__(self, objlist): >self.__objlist = objlist >self.__idx = 0 You should use a single underscore here. -- http://mail.python.org/mailman/listinfo/python

Re: [Fwd: Re: managed lists?]

2007-05-22 Thread Bruno Desthuilliers
Jorgen Bodde a écrit : > Hi Bruno, > > Thanks for your answer. > > Well what I am after is a list of relations to some class type. And in > that list I do not wish to have accidentally put ints, strings, So don't do it !-) > only > one type of object, or interface. Now I can make the list inter

Re: [Fwd: Re: managed lists?]

2007-05-22 Thread Larry Bates
Jorgen Bodde wrote: > Hi Gabriel, > > Yep that basically covered my implementation as well. It was rather > trivial to make it, and even for a python newbie it was simple which > says enough about the language itself. ;-) > > Although I understand the opinions that you should not care about > typ

Re: [Fwd: Re: managed lists?]

2007-05-22 Thread Jorgen Bodde
Hi Gabriel, Yep that basically covered my implementation as well. It was rather trivial to make it, and even for a python newbie it was simple which says enough about the language itself. ;-) Although I understand the opinions that you should not care about types, I do believe putting a constrain

Re: [Fwd: Re: managed lists?]

2007-05-22 Thread Gabriel Genellina
En Tue, 22 May 2007 04:13:38 -0300, Jorgen Bodde <[EMAIL PROTECTED]> escribió: > Thanks. I agree that it is only 'me' that is the one doing it wrong. > But consider this scenario: > > - Somewhere in my app I add a wrong type to an open regular list > - The app continues like it should > - After

Re: [Fwd: Re: managed lists?]

2007-05-22 Thread Jorgen Bodde
Hi, Thanks. I agree that it is only 'me' that is the one doing it wrong. But consider this scenario: - Somewhere in my app I add a wrong type to an open regular list - The app continues like it should - After a (long) while I need to perform some search on the list, or whatever - Exception occurs

Re: [Fwd: Re: managed lists?]

2007-05-21 Thread Stargaming
Jorgen Bodde schrieb: > Hi Bruno, > > Thanks for your answer. > > Well what I am after is a list of relations to some class type. And in > that list I do not wish to have accidentally put ints, strings, only > one type of object, or interface. Now I can make the list interface > safe, but it is o

Re: [Fwd: Re: managed lists?]

2007-05-21 Thread Jorgen Bodde
Hi Bruno, Thanks for your answer. Well what I am after is a list of relations to some class type. And in that list I do not wish to have accidentally put ints, strings, only one type of object, or interface. Now I can make the list interface safe, but it is only meant for relational purposes only

Re: [Fwd: Re: managed lists?]

2007-05-21 Thread Bruno Desthuilliers
(snip - I suppose I'm answering to Jorgen, but being another idiot myself I may be wrong... anyway:) > Thanks for the answer. I did make something myself after i could not > find anything, just because it was fun to do :-) I did saw array but > it was not for object, only for small types like int

[Fwd: Re: managed lists?]

2007-05-21 Thread Wildemar Wildenburger
I answered off list (because besically I'm an idiot). So if you like, read up the current news. :) Original Message Subject:Re: managed lists? Date: Mon, 21 May 2007 21:30:37 +0200 From: Jorgen Bodde <[EMAIL PROTECTED]> To: Wildemar Wildenburger <[EMAIL PROTECTED

[Fwd: Re: ez_setup.py]

2007-02-26 Thread Tim Golden
OK. He's solved it. For the historical record... Tim Golden wrote: > Nader Emami wrote: >> Tim Golden wrote: >>> Nader Emami wrote: Tim Golden wrote: > Nader Emami wrote: > How can do the second solution, (take off the home from Python path)? >>> >>> Depends

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-22 Thread Steve Holden
Martin v. Löwis wrote: > Kenneth Long schrieb: > >>> Okay if one builds such from sources... but us poor >>>Windows flunkies >>>without a build environment have to wait for some >>>kindly soul to build >>>the installer compatible with the new Python >>>version. >>> >> >>especially since I have

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread casevh
> > The link for pexports-0.42h.zip is broken so I cant > test it on an extension. > pexports is only needed for Python 2.3. It is not required for 2.4 or 2.5. casevh -- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Kenneth Long
> > mingw32 is supported and can compile many > extensions. See the following > post: > > http://groups.google.com/group/comp.lang.python/msg/8e2260fe4d4b7de9 > > If you meant something else with your comment, > please explain. > thanks for the reference.. I just got the latest source for pyt

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread casevh
Anthony Baxter wrote: > On 21 Oct 2006 21:39:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > mingw32 is supported and can compile many extensions. See the following > > post: > > > > http://groups.google.com/group/comp.lang.python/msg/8e2260fe4d4b7de9 > > > > If you meant something else

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Martin v. Löwis
Kenneth Long schrieb: >> Okay if one builds such from sources... but us poor >> Windows flunkies >> without a build environment have to wait for some >> kindly soul to build >> the installer compatible with the new Python >> version. >> > especially since I havent got MS visual studio... > and

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Anthony Baxter
On 21 Oct 2006 21:39:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > mingw32 is supported and can compile many extensions. See the following > post: > > http://groups.google.com/group/comp.lang.python/msg/8e2260fe4d4b7de9 > > If you meant something else with your comment, please explain.

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread casevh
Kenneth Long wrote: > > Okay if one builds such from sources... but us poor > > Windows flunkies > > without a build environment have to wait for some > > kindly soul to build > > the installer compatible with the new Python > > version. > > > especially since I havent got MS visual studio...

Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Kenneth Long
> Okay if one builds such from sources... but us poor > Windows flunkies > without a build environment have to wait for some > kindly soul to build > the installer compatible with the new Python > version. > especially since I havent got MS visual studio... and mingw is not supported... :-(

Fwd: RE: [Python-Help] Python Help

2006-09-28 Thread Gabriel Genellina
Forwarding full message to the Python list: Hello, I am trying to create a script. I have most of it wrote, but it isn't working like it should. Could you please take a look and let me know whats wrong with it? What happens is that there is an array that is created and I verified the information

Fwd: Re: Cannot remove this program from my computer

2006-08-21 Thread ERNEST SMITH
Note: forwarded message attached.--- Begin Message --- Please send to the correct address: [EMAIL PROTECTED] On 08/14/2006 08:21 AM, ERNEST SMITH wrote: > Everytime I try to remove this Python program from my Add or Remove > Program List, the error comes up saying could not open INSTALL.Log > File

Re: [Fwd: Re: hex string to hex value]

2005-11-22 Thread tim
Brett g Porter wrote: > tim wrote: > >> >> I end up with 66 again, back where I started, a decimal, right? >> I want to end up with 0x42 as being a hex value, not a string, so i >> can pas it as an argument to a function that needs a hex value. >> (i am trying to replace the 0x42 in the line >>

  1   2   >