On 11/22/2011 09:14 AM, W. eWatson wrote:
> On 11/21/2011 7:00 PM, alex23 wrote:
>> "W. eWatson" wrote:
>>> Comments?
>>
>> Please don't start multiple threads on the same issue.
> Your joking, right, or do you just prefer 500 line threads wandering all
> over the place?
Most of us use threaded
On Thu, 24 Nov 2011 15:22:23 +1100, Chris Angelico wrote:
> On Thu, Nov 24, 2011 at 2:29 PM, Steven D'Aprano
> wrote:
>> Is there a way to catch SIGSTOP?
>
> In the strictest sense, no; SIGSTOP can't be caught. However, some
> systems have SIGTSTP which is sent when you hit Ctrl-Z, which would b
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 substantially. So I need to know; is This a myth or i
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 using
> Linux where Ctrl-Z stops the proces
On Thu, Nov 24, 2011 at 5:07 PM, Steven D'Aprano
wrote:
>> This looks like the classic "sigint handler sets a flag that the main
>> loop polls" structure.
>
> Exactly. I am open to alternative methods if they are lightweight.
Might be easiest to spin off a thread to do the work, and then have
the
On Thu, 24 Nov 2011 15:30:57 +1100, Chris Angelico wrote:
> On Thu, Nov 24, 2011 at 1:16 PM, Steven D'Aprano
> wrote:
>> On Wed, 23 Nov 2011 10:37:56 +, Tim Golden wrote:
>>
>>> The interpreter inherits the command shell's history function: Open a
>>> cmd window and then a Python session. Do
On Thu, 24 Nov 2011 15:20:09 +1100, Chris Angelico wrote:
> On Thu, Nov 24, 2011 at 2:55 PM, Steven D'Aprano
> wrote:
>> I'm looking for a way to interrupt a long-running function on a key
>> press, but without halting the function.
>
> I assume there's a reason for not using Ctrl-C and SIGINT w
Can someone help me on this please?
From: python-list-bounces+nikunj.badjatya=emc@python.org
[mailto:python-list-bounces+nikunj.badjatya=emc@python.org] On Behalf Of
nikunj.badja...@emc.com
Sent: Wednesday, November 23, 2011 11:15 AM
To: python-list@python.org
Subject: Thread problem
H
On Thu, Nov 24, 2011 at 1:16 PM, Steven D'Aprano
wrote:
> On Wed, 23 Nov 2011 10:37:56 +, 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
On Thu, Nov 24, 2011 at 2:29 PM, Steven D'Aprano
wrote:
> Is there a way to catch SIGSTOP?
In the strictest sense, no; SIGSTOP can't be caught. However, some
systems have SIGTSTP which is sent when you hit Ctrl-Z, which would be
what you're looking for.
http://www.gnu.org/s/hello/manual/libc/Job
On Thu, Nov 24, 2011 at 2:55 PM, Steven D'Aprano
wrote:
> I'm looking for a way to interrupt a long-running function on a key
> press, but without halting the function.
I assume there's a reason for not using Ctrl-C and SIGINT with the
signal module?
This looks like the classic "sigint handler s
Dear sir,
I am very happy to find this group.
Sir, i am new to Python. Currently i am working on text processing.
Can you give me some suggestions about Tree data structure
representation, where i require each node capable to handle: only one
child, or up to 3 children plus hold feature informat
This is an 'example string'
Don't for get to watch for things like:
Don't, Can't, Won't, I'll, He'll, Hor'davors, Mc'Kinly
--
http://mail.python.org/mailman/listinfo/python-list
I'm looking for a way to interrupt a long-running function on a key
press, but without halting the function.
E.g. if I have these two functions:
def handler(*args):
print "caught interrupt and continuing..."
def exercise_cpu():
for i in range(8):
print "working..."
for
I'd like to perform a task when the user interrupts my application with
Ctrl-Z on Linux. I tried installing a signal handler:
import signal
def handler(signalnum, stackframe):
print "Received signal %d" % signalnum
signal.signal(signal.SIGSTOP, handler)
But I got a RuntimeError:
Tracebac
btw if you like processing text outside of python (say using grep or
something)
python -c "help('modules')" > all_imports.log
which you might note on windows get's processed to:
python -c "help('modules')" 1> all_imports.log
on windows from within a batch file
--
http://mail.python.org/mailman/
Seems so far the common way to fully unload any import is to exit the
Python session.
Only if this is true do I offer this hackish idea:
Therefore you might wish to run an os script instead of a python
script right off.
Here is my hack at it... Something like this:
file myapp.bat
--
p
On Wed, 23 Nov 2011 10:37:56 +, 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 Pyth
In article <3f19e4c0-e010-4cb2-9f71-dd09e0d3c...@r9g2000vbw.googlegroups.com>,
Massi says...
>
>Hi everyone,
>
>I have to parse a string and splitting it by spaces. The problem is
>that the string can include substrings comprises by quotations which
>must mantain the spaces. What I need is to pass
I have installed ActiveState Python 32bit on my computer. There
are potentially five different ways that Idle can be run. Actually six
if you include activating a command window and typing in the command.
We will not do that here.
The first way is to use the shortcut put into the start menu by
Moving to C++ is _always_ a step backwards.
On Thu, Nov 24, 2011 at 9:29 AM, 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.
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 instantiation and seen a hundred cascading error
Arnaud Delobelle writes:
> On 23 November 2011 17:38, W. eWatson wrote:
> [...]
> > It may be time to move on to c++.
>
> Good Luck. Bye!
Sadly, IME it's most often the case that the person who threatens to
leave with just about every message will instead stick around a long
time, repeating th
Am 23.11.2011 04:45, schrieb Alan Meyer:
On 11/22/2011 3:05 PM, Dennis Lee Bieber wrote:
On Tue, 22 Nov 2011 14:29:18 -0500, Alan Meyer
declaimed the following in gmane.comp.python.general:
On 11/22/2011 1:55 PM, Alan Meyer wrote:
...
6. Select, or navigate to and select, the python IDLE inte
http://docs.python.org/library/shlex.html
--
http://mail.python.org/mailman/listinfo/python-list
In "Alemu Tadesse"
writes:
> I am saving it with .py extention
It would really help us answer your question if you identified
which editor you're using. IDLE? PyScripter? Eclipse? PyCharm?
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com
I am saving it with .py extention
-Original Message-
From: python-list-bounces+atadesse=sunedison@python.org
[mailto:python-list-bounces+atadesse=sunedison@python.org] On Behalf
Of MRAB
Sent: Wednesday, November 23, 2011 12:01 PM
To: python-list@python.org
Subject: Re: Python 2.7.
On 23/11/2011 15:40, Alemu Tadesse wrote:
I am new to python. I do not know why my python editor (for 2.7.2)
changes everything to just black and white after saving.
If you're using IDLE, are you saving the file without the .py
extension? That could be the problem.
No color for say the built
On Wed, Nov 23, 2011 at 12:10 PM, Massi wrote:
> Hi everyone,
>
> I have to parse a string and splitting it by spaces. The problem is
> that the string can include substrings comprises by quotations which
> must mantain the spaces. What I need is to pass from a string like:
>
> This is an 'exampl
On 23 November 2011 17:38, W. eWatson wrote:
[...]
> It may be time to move on to c++.
Good Luck. Bye!
--
Arnaud
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
I have the following code and I am quite satisfied with its design BUT I
have the feeling I can do better.
Basically the, main() execute the program (I did not put the parsing of
arguments function). I am opening
an Excel document and writing content in a CSV one w/ different format.
Alemu Tadesse wrote:
> Can we use rsplit function on an array or vector of strings ? it works
> for one not for vector
> ...
>
> I have to parse a string and splitting it by spaces. The problem is
> that the string can include substrings comprises by quotations which
> must mantain the spaces.
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++.
--
http://mail.python.org/mailman/listinfo/python-list
On 23 November 2011 17:10, Massi wrote:
> Hi everyone,
>
> I have to parse a string and splitting it by spaces. The problem is
> that the string can include substrings comprises by quotations which
> must mantain the spaces. What I need is to pass from a string like:
>
> This is an 'example string
On 11/23/2011 8:08 AM, John Gordon wrote:
In "Alemu
Tadesse" writes:
scientific package is not working and complaining about not able to
find/load DLL ... frustrating for the first day in the python world. ANY
tip ?
Post the exact error message you're getting. Also post your code, if it's
On 11/22/2011 10:43 PM, Dennis Lee Bieber wrote:
On Tue, 22 Nov 2011 19:46:01 -0800, "W. eWatson"
declaimed the following in
gmane.comp.python.general:
Of course, Dennis'
C:\Python26\Lib\site-packages\pythonwin\Pythonwin.exe
wouldn't work either.
If you didn't install an ActiveStat
Hi Everyone,
Can we use rsplit function on an array or vector of strings ? it works
for one not for vector
Alemu
-Original Message-
From: python-list-bounces+atadesse=sunedison@python.org
[mailto:python-list-bounces+atadesse=sunedison@python.org] On Behalf
Of Massi
Sent: Wednes
Hi everyone,
I have to parse a string and splitting it by spaces. The problem is
that the string can include substrings comprises by quotations which
must mantain the spaces. What I need is to pass from a string like:
This is an 'example string'
to the following vector:
["This", "is", "an", "ex
In "Alemu Tadesse"
writes:
> I am new to python. I do not know why my python editor (for 2.7.2)
> changes everything to just black and white after saving. No color for
What editor are you using? There are quite a lot of them.
--
John Gordon A is for Amy, who fell down the
In "Alemu Tadesse"
writes:
> scientific package is not working and complaining about not able to
> find/load DLL ... frustrating for the first day in the python world. ANY
> tip ?
Post the exact error message you're getting. Also post your code, if it's
not too long.
--
John Gordon
Dear All,
I am new to python. I do not know why my python editor (for 2.7.2)
changes everything to just black and white after saving. No color for
say the built in functions for loops defs they all look the same -
it is annoying for someone coming from another editors that help you
track/eas
zing!
On Thu, Nov 24, 2011 at 1:18 AM, Peter Otten <__pete...@web.de> wrote:
> Rob Richardson wrote:
>
>> Our customers are used to the rotating log file capability of the log4py
>> package. I did not see anything in that link that talks about rotating
>> log files (changing file name when the da
Rob Richardson wrote:
> Our customers are used to the rotating log file capability of the log4py
> package. I did not see anything in that link that talks about rotating
> log files (changing file name when the date changes, and saving a limited
> number of old log files). Is that possible using
Thank you for that link.
Our customers are used to the rotating log file capability of the log4py
package. I did not see anything in that link that talks about rotating log
files (changing file name when the date changes, and saving a limited number of
old log files). Is that possible using t
In article
<63e78437-c76b-4a9e-9a62-bfea8d078...@v5g2000yqn.googlegroups.com>,
snorble wrote:
> Is it reasonable to prototype an application in Python that will
> require performance?
Yes. Several observations:
1) The classic 80/20 rule. 80% of the time is spent running 20% of the
code. S
On Nov 21, 11:17 pm, Charlie Martin wrote:
> This is what seems like an odd bug, but in code I'd
> thing often-enough used it must be the expected behavior
> and I just don't understand. Please, sirs/mesdames, is
> this a bug?
It may be a bug, but if so, it's in the syslog daemon rather than
log
Am 23.11.2011 13:11, schrieb pyt...@bdurham.com:
> Looking for some tips on getting started with Cython development
> under Windows. I am using Python 2.7.2.
>
> After reading the Cython documentation [1] it appears that one
> has a choice of using either the MinGW or MS Visual C compiler.
>
> 1.
Dennis Lee Bieber writes:
>> c:\Python32 Start in, and for Target: Python 3.2.2 (64-bit)
>
> Which tells me that the TARGET field is garbaged, since THAT is what
> specifies the program (and arguments) that has to be run when the
> shortcut is double-clicked.
Actually, no, it's what I have
Looking for some tips on getting started with Cython development
under Windows. I am using Python 2.7.2.
After reading the Cython documentation [1] it appears that one
has a choice of using either the MinGW or MS Visual C compiler.
1. Are there any issues associated with using the MinGW compiler
On 23/11/2011 10:29, Steven D'Aprano wrote:
On Wed, 23 Nov 2011 11:23:19 +0200, Anssi Saari wrote:
goldtech writes:
Using Windows. Is there a python shell that has a history of typed in
commands?
Is there a shell that doesn't have history then? At least both the
vanilla shell and Idle both
On Wed, 23 Nov 2011 11:23:19 +0200, Anssi Saari wrote:
> goldtech writes:
>
>> Using Windows. Is there a python shell that has a history of typed in
>> commands?
>
> Is there a shell that doesn't have history then? At least both the
> vanilla shell and Idle both have basic history in Windows. I
Hello there,
I am in the midst of converting my application code from python 1.5.2 to python
2.7.1.
In the build of my python 2.7.1 on Itanium 64-bit HP11.3 platform, I noticed my
Tkinter module was built and linked successfully, that I am able to import the
module and use it. However, I just
goldtech writes:
> Using Windows. Is there a python shell that has a history of typed in
> commands?
Is there a shell that doesn't have history then? At least both the
vanilla shell and Idle both have basic history in Windows. IPython for
more fun.
--
http://mail.python.org/mailman/listinfo/pyt
"W. eWatson" writes:
> One thing I think no one has offered is whether their installation of
> 2.7.2 has the same IDLE oddity that I've described. That is, if you
> right-click on a py file, do you see a choice for the IDLE editor?
I don't have 2.7.2, but my Windows (7, 32 bit) machine has 3.2
54 matches
Mail list logo