Strange result ffor object to bool

2011-11-24 Thread ZhouPeng
Hi all, In my program, I get a listen element by listen = graphics.find("listen") print listen is print type listen is I am sure listen is not None and can be accessed properly. But print bool(listen) is False if not listen is True -- Zhou Peng -- http://mail.python.org/mailman/listinfo/py

online form filling jobs

2011-11-24 Thread brisk brisk
online form filling jobs http://onlinejobsprocess.weebly.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Return of an old friend

2011-11-24 Thread Matt Joiner
I haven't heard of you before, but feel like I've missed out on something. Do you (or someone else) care to link to some of your more contentious work? On Fri, Nov 25, 2011 at 1:19 PM, Rick Johnson wrote: > Hello Fellow Pythonistas, > > I am very glad to be back after an unfortunate incident cau

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Steven D'Aprano
On Thu, 24 Nov 2011 20:06:24 -0500, Terry Reedy wrote: > On 11/24/2011 7:16 PM, Steven D'Aprano wrote: > >> As far as I can tell, nobody running the 64-bit version of Windows 7 >> has chimed in to either confirm or refute W. eWatson's claim that IDLE >> doesn't show up, > > On the contrary, back

Re: suitability of python

2011-11-24 Thread Alan Meyer
On 11/24/2011 07:31 AM, Rudra Banerjee wrote: Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on

Re: memory leaks - tools and docs

2011-11-24 Thread Christian Heimes
Am 25.11.2011 04:00, schrieb Aljosa Mohorovic: > i mostly used http://guppy-pe.sourceforge.net/#Heapy but found > http://pysizer.8325.org/ and http://code.google.com/p/pympler/ also > interesting. Guppy is a extremely powerful tool because it can also track non GC objects without a debug build of

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread alex23
Tim Golden wrote: > The interpreter inherits the command shell's history function: > Open a cmd window and then a Python session. Do some stuff. > > Ctrl-Z to exit to the surrounding cmd window. > Do some random cmd stuff: dir, cd, etc. > > Start a second Python session. up-arrow etc. will bring b

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread alex23
On Nov 24, 6:51 pm, Tim Golden wrote: > The > Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D > on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm constantly working across Windows & linux. > In short - on Windows, within one cmd shell you can open

Re: suitability of python

2011-11-24 Thread alex23
Terry Reedy wrote: > This lead to Numerical Python, now Numpy, SciPy, and later Sage and > other scientific and Python packages. I believe SciPy has an f2py > (fortran to py) module to help with running Fortran under Python (but it > has been years since I read the details). Andrew Dalke recently

Re: suitability of python

2011-11-24 Thread 88888 Dihedral
On Friday, November 25, 2011 8:51:10 AM UTC+8, Terry Reedy wrote: > On 11/24/2011 7:31 AM, Rudra Banerjee wrote: > > Dear friends, > > I am a newbie in python and basically i use python for postprocessing > > like plotting, data manipulation etc. > > Based on ease of programming on python I am wond

Re: memory leaks - tools and docs

2011-11-24 Thread Mike C. Fletcher
On 11-11-24 10:00 PM, Aljosa Mohorovic wrote: > i've been trying to find memory leaks in a wsgi application using > gunicorn to run it and after a lot of time invested in research and > testing tools i did find a lot of useful information (most really old) > but i'm left with a feeling that this sh

memory leaks - tools and docs

2011-11-24 Thread Aljosa Mohorovic
i've been trying to find memory leaks in a wsgi application using gunicorn to run it and after a lot of time invested in research and testing tools i did find a lot of useful information (most really old) but i'm left with a feeling that this should be easier, better documented and with tools that

Return of an old friend

2011-11-24 Thread Rick Johnson
Hello Fellow Pythonistas, I am very glad to be back after an unfortunate incident caused my Google account to be deleted. Unfortunately for those of you that have been following along and supporting my crusade to bring fairness and humility to the python community, my old posts under "rantingrick"

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Terry Reedy
On 11/24/2011 7:16 PM, Steven D'Aprano wrote: As far as I can tell, nobody running the 64-bit version of Windows 7 has chimed in to either confirm or refute W. eWatson's claim that IDLE doesn't show up, On the contrary, back when he first posted, I stated that 64-bit Python 3.2.2 on my 64-bit

Re: suitability of python

2011-11-24 Thread Terry Reedy
On 11/24/2011 7:31 AM, Rudra Banerjee wrote: Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on f

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Alexander Kapps
On 25.11.2011 01:04, Steven D'Aprano wrote: So by your reasoning, that's at least 20 ways to infect my Linux system. I never realised just how insecure Linux must be! Yes, there are 20+ ways to "infect" your (and mine) Linux system. You cannot trust *any* kind of 3rd party code. Period. Hav

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Steven D'Aprano
On Fri, 25 Nov 2011 00:18:44 +0100, Alexander Kapps wrote: > Now, we are talking about Python 3.2.* on Win7, correct? I only have > Win7 32bit in a VBox VM, but still. I believe that W. eWatson's problems occurred when he installed a 32-bit version of Python 3.2 on a 64-bit version of Windows 7.

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Steven D'Aprano
On Thu, 24 Nov 2011 17:25:23 -0600, Tony the Tiger wrote: > On Wed, 23 Nov 2011 17:43:20 -0800, Dennis Lee Bieber wrote: > >> Windows PowerShell includes more than one hundred basic core cmdlets, >> and you can write your own cmdlets and share them with other users. > > Oh, goodie! They've found

Re: [oi-dev] DTrace probes in Python 2.7 (and next 3.3)

2011-11-24 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/11/11 19:49, Andrzej Szeszo wrote: > Hi Jesus > > Just noticed that there is a python 2.7 package in Oracle's > userland repo here: > > > >

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Alexander Kapps
On 25.11.2011 00:18, Alexander Kapps wrote: Do you get an "Edit with IDLE" then? And even if not. Why are you so obsessive about IDLE? I mean, seriously, IDLE is just a bare-level if-nothing-else-is-available editor/IDE. It's better than notepad, OK. I really don't buy it, that your are wi

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread Alexander Kapps
On 24.11.2011 22:22, W. eWatson wrote: Whoops, I thought I was replying to Matt Meyers just above you. Above who? As said by somebody already, most people use a mail-client (Thunderbird/Outlook) or a Usenet client to read this forum. Google Groups is (In My Opinion at least) just crap (and s

Re: reading optional configuration from a file

2011-11-24 Thread Ben Finney
Ulrich Eckhardt writes: > I have a few tests that require a network connection. Typically, the > target will be localhost on port 2. However, sometimes these > settings differ, so I want to be able to optionally set them. I subscribe to the view that an application's user-configurable settin

Re: Does py2app improves speed?

2011-11-24 Thread Dominic Binks
On 11/23/2011 10:36 PM, Ricardo Mansilla wrote: Hi everyone.. My question is exactly as in the subject of This Mail. I have made a Python script which is to slow and i have heard (and common sense also suggest) that if you use some libraries to "frozen" the script the performance improves subs

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread W. eWatson
On 11/23/2011 10:29 AM, Arnaud Delobelle wrote: On 23 November 2011 17:38, W. eWatson wrote: [...] It may be time to move on to c++. Good Luck. Bye! "We, pardn meee." -- Steve Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread W. eWatson
Whoops, I thought I was replying to Matt Meyers just above you. However, I think he chimed in above about ActiveState back on the 22nd. In any case, I think this thread has ceased to be productive. -- http://mail.python.org/mailman/listinfo/python-list

Re: What I do and do not know about installing Python on Win 7 with regard to IDLE.

2011-11-24 Thread W. eWatson
On 11/23/2011 2:29 PM, Alan Meyer wrote: On 11/23/2011 12:38 PM, W. eWatson wrote: So unless Alan Meyer has further interest in this, it looks like it's at an end. It may be time to move on to c++. C++ is a ton of fun. You haven't lived until you've made a syntax error in a template instanti

Re: [oi-dev] DTrace probes in Python 2.7 (and next 3.3)

2011-11-24 Thread Andrzej Szeszo
Hi Jesus Just noticed that there is a python 2.7 package in Oracle's userland repo here: It includes DTrace patch. Did you see/use that? Andrzej On 24/11/2011 16:46, Jesus Cea wrote:

YOU MUST KNOW THIS MAN !!!!!!!!!!!!!!!

2011-11-24 Thread BV
In The Name Of Allah, Most Gracious, Most Merciful YOU MUST KNOW THIS MAN MUHAMMAD You may be an atheist or an agnostic; or you may belong to anyone of the religious denominations that exist in the world today. You may be a Communist or a believer in democracy and freedom. No matter what you are,

Re: Tree data structure with: single, double and triple children option along with AVM data at each node

2011-11-24 Thread Miki Tebeka
There a many ways to do this, here's one: from collections import namedtuple Tree = namedtuple('Tree', ['feature', 'children']) t = Tree(1, [Tree('hello', []), Tree(3, [])]) -- http://mail.python.org/mailman/listinfo/python-list

DTrace probes in Python 2.7 (and next 3.3)

2011-11-24 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all. I have spend some time trying to integrate DTrace probes in official Python: Currently I have a patch to python 2.7, and my plan in to integrate officially in 3.3. The initial probes were based on previous work from OpenSolaris, and similar,

WAVE file writing, confused about setsampwidth(n)

2011-11-24 Thread Alex van der Spek
I am confused about the Wave_write object setsampwidth(n). Is the sample width n the total sample width, i.e. for a stereo sample consisting of short (2 byte) integers; n=4 or is the sample width the number of bytes in either the left or the right channel? Regards, Alex van der Spek -- htt

Re: Does py2app improves speed?

2011-11-24 Thread Dave Angel
On 11/24/2011 09:02 AM, Ricardo Mansilla wrote: Most of méthods for improving the speed are related to efficient memory management and using specific structures for a specific tasks... But i have already optimized my code (which is very short actually) following all these rules and it is very

Re: reading optional configuration from a file

2011-11-24 Thread Matt Joiner
   REMOTE_HOST = 'localhost'    REMOTE_PORT = 2    try: from .settings import *    except ImportError:        pass This works? If you're using an old version of Python you may need to mess about with __future__. On Thu, Nov 24, 2011 at 10:56 PM, Ulrich Eckhardt wrote: > Hi! > > I have a few

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread Ulrich Eckhardt
Am 17.11.2011 00:59, schrieb Ben Finney: David Robinow writes: but your code works fine on Windows. Thanks. I'm glad to know that. Perhaps you could investigate why, and suggest an update to the above documentation if it's wrong? The bug tracker at http://bugs.python.org/> would be the appro

Re: Does py2app improves speed?

2011-11-24 Thread Matt Joiner
Yes. Try posting your code. On Fri, Nov 25, 2011 at 1:02 AM, Ricardo Mansilla wrote: > Most of méthods for improving the speed are related to efficient memory > management and using specific structures for a specific tasks... But i have > already optimized my code (which is very short actually)

Re: Does py2app improves speed?

2011-11-24 Thread Ricardo Mansilla
Most of méthods for improving the speed are related to efficient memory management and using specific structures for a specific tasks... But i have already optimized my code (which is very short actually) following all these rules and it is very slow yet. Do you think there is another way to do

Re: Does py2app improves speed?

2011-11-24 Thread Dave Angel
On 11/24/2011 08:26 AM, Ricardo Mansilla wrote: Well, that's sad... I think Im gonna end getting back to C++ for This. But anyway, thanks a lot for the quick answer... Bye. Just because Py2app doesn't improve speed doesn't mean there aren't other ways to gain speed, while still using the Pytho

Re: Does py2app improves speed?

2011-11-24 Thread Ricardo Mansilla
Well, that's sad... I think Im gonna end getting back to C++ for This. But anyway, thanks a lot for the quick answer... Bye. -- http://mail.python.org/mailman/listinfo/python-list

Re: suitability of python

2011-11-24 Thread Dave Angel
On 11/24/2011 07:31 AM, Rudra Banerjee wrote: Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on

Re: suitability of python

2011-11-24 Thread Laurent Claessens
Le 24/11/2011 13:31, Rudra Banerjee a écrit : Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on

suitability of python

2011-11-24 Thread Rudra Banerjee
Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on fortran) runs for weeks and quite CPU intensive.

reading optional configuration from a file

2011-11-24 Thread Ulrich Eckhardt
Hi! I have a few tests that require a network connection. Typically, the target will be localhost on port 2. However, sometimes these settings differ, so I want to be able to optionally set them. What I'm currently doing is this: try: from settings import REMOTE_HOST, REMOTE_

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread Tim Golden
On 24/11/2011 06:22, Chris Angelico wrote: On Thu, Nov 24, 2011 at 5:11 PM, Steven D'Aprano wrote: One of us is confused, and I'm pretty sure it's you :) Tim went on to say "Obviously this only applies when an underlying cmd session persists", which I understood as implying that he too is usi

Re: Capturing SIGSTOP

2011-11-24 Thread Chris Angelico
On Thu, Nov 24, 2011 at 5:36 PM, Steven D'Aprano wrote: >    os.kill(os.getpid(), signal.SIGSTOP)  # Hit myself with a brick. > > > It seems to work for me (on Linux), but is it the right way? And - if your system has SIGTSTP, it'll have SIGSTOP and this will be how it works. (Windows has neither

Re: Capturing SIGSTOP

2011-11-24 Thread Chris Angelico
On Thu, Nov 24, 2011 at 5:36 PM, Steven D'Aprano wrote: >    os.kill(os.getpid(), signal.SIGSTOP)  # Hit myself with a brick. > Sometimes there'll be a raise() function but it's going to do the same thing. Yep, that would be the way to do it. ChrisA -- http://mail.python.org/mailman/listinfo/py

Re: Does py2app improves speed?

2011-11-24 Thread Ian Kelly
On Wed, Nov 23, 2011 at 11:36 PM, Ricardo Mansilla wrote: > Hi everyone.. > My question is exactly as in the subject of This Mail. > I have made a Python  script which is to slow and i have heard (and common > sense also suggest) that if you use some libraries to "frozen" the script the > perfor