On 2009-07-09, Alex Rosslyn wrote:
> I would like to learn a way of changing the colour of a particular
> part of the output text. I've tried the following
http://catb.org/esr/faqs/smart-questions.html
> import os
> os.system("color 17")
> print "This should be white on blue"
I assume that you
On 2009-07-09 12:34, Sebastian Schabe wrote:
Hello everybody,
I want to concatenate 2 numpy array which in fact are RGB images:
def concat_images(im1,im2):
rows1 = im1.shape[0]
rows2 = im2.shape[0]
if rows1 < rows2:
im1 = concatenate((im1,zeros((rows2-rows1,im1.shape[1],3), int)), axis=0)
elif
On Jul 9, 12:45 pm, Tim Harig wrote:
> On 2009-07-09, DuaneKaufman wrote:
>
> > On Jul 9, 12:18 pm, Tim Harig wrote:
> >> On 2009-07-09, TheSeeker wrote:
> >> > Specifically, I have a WinForms application I will be wanting to
> >> > automate. Does anyone have some Python examples of driving Mic
On Jul 9, 8:42 pm, Piet van Oostrum wrote:
> > Lacrima (L) wrote:
> >L> Thank you for really useful and detailed explanation. Now I can test
> >L> my code usingEmacs.
> >L> But I think it works for me in a little bit different way.
> >L> My file contains only the print 'hello world'.
> >L> If
On Jul 9, 1:09 pm, DuaneKaufman wrote:
> The application I wish to interact with is not my own, but an ERP
> system GUI front-end.
>
I have used pywinauto to drive a Flash game running inside of an
Internet Explorer browser - that's pretty GUI!
-- Paul
--
http://mail.python.org/mailman/listinfo
On Wed, 08 Jul 2009 22:05:57 -0700, Simon Forman wrote:
>> persistent idea "out there" that programming is a very accessible
>> skill, like cooking or gardening, anyone can do it, and even profit
>> from it, monetarily or otherwise, etc., and to some extent I am
>
> Programming is not like any ot
On Jul 9, 1:29 pm, Paul McGuire wrote:
> On Jul 9, 1:09 pm, DuaneKaufman wrote:
>
> > The application I wish to interact with is not my own, but an ERP
> > system GUI front-end.
>
> I have used pywinauto to drive a Flash game running inside of an
> Internet Explorer browser - that's pretty GUI!
>
Hi Rhodri,
It's only really a pitfall if you try to use the built-in after you've
redefined it. That's the thing to keep an eye open for.
You're right, but in cases where you're editing a codebase which you
didn't author entirely by yourself you may not be aware of that.
That said, if the
Paul Simon wrote:
> "Peter Otten" <__pete...@web.de> wrote in message
> news:h3481q$d95$0...@news.t-online.com...
>> Paul Simon wrote:
>>
>>> "Chris Rebert" wrote in message
>>> news:mailman.2863.1247095339.8015.python-l...@python.org...
>>> On Wed, Jul 8, 2009 at 4:18 PM, Paul Simon wrote:
kj wrote:
My scientific code is jam-packed with assertions. I can't count
the number of times that one such lowly assertion saved me from a
silent but potentially disastrous bug.
Now imagine that asserts had been disabled for that run...
The issue is not "should you validate your inputs", t
I have a huge list, 10,000,000+ items. Each item is a dictionary with
fields used to sort the list. When I have completed sorting I want to
grab a page of items, say 1,000 of them which I do easily by using
list_data[x:x+1000]
Now I want to add an additional key/value pair to each dictionary in
On Jul 9, 1:16 pm, Sean wrote:
> I have a huge list, 10,000,000+ items. Each item is a dictionary with
> fields used to sort the list. When I have completed sorting I want to
> grab a page of items, say 1,000 of them which I do easily by using
> list_data[x:x+1000]
>
> Now I want to add an addit
Howdy,
On Thu, Jul 9, 2009 at 15:16, Sean wrote:
> I have a huge list, 10,000,000+ items. Each item is a dictionary with
> fields used to sort the list. When I have completed sorting I want to
> grab a page of items, say 1,000 of them which I do easily by using
> list_data[x:x+1000]
>
> Now I wa
On Jul 9, 1:50 pm, DuaneKaufman wrote:
> > I have used pywinauto to drive a Flash game running inside of an
> > Internet Explorer browser - that's pretty GUI!
>
> > -- Paul
>
> Hi,
>
> Could you share some code examples?
>
> Thanks,
> Duane (duanek (at) chorus (dot) net)
I just went on a brief fi
On Thu, Jul 9, 2009 at 4:16 PM, Sean wrote:
> I have a huge list, 10,000,000+ items. Each item is a dictionary with
> fields used to sort the list. When I have completed sorting I want to
> grab a page of items, say 1,000 of them which I do easily by using
> list_data[x:x+1000]
>
> Now I want to
On Thu, 2009-07-09 at 18:10 +, Steven D'Aprano wrote:
> If programming is symbol manipulation, then you should remember that
> the
> user interface is also symbol manipulation, and it is a MUCH harder
> problem than databases, sorting, searching, and all the other
> problems
> you learn abou
On Jul 9, 1:16 pm, Sean wrote:
> I have a huge list, 10,000,000+ items. Each item is a dictionary with
> fields used to sort the list. When I have completed sorting I want to
> grab a page of items, say 1,000 of them which I do easily by using
> list_data[x:x+1000]
>
> Now I want to add an addit
On Jul 9, 1:16 pm, Sean wrote:
> I have a huge list, 10,000,000+ items. Each item is a dictionary with
> fields used to sort the list. When I have completed sorting I want to
> grab a page of items, say 1,000 of them which I do easily by using
> list_data[x:x+1000]
>
> Now I want to add an addit
DuaneKaufman wrote:
> With MS utilities like UISpy and the like, I can 'see' the controls in
> the application, but I
> do not seem to be able to manipulate them programatically, and I
> believe it us simply due
> to my not understanding of the UI Automation API.
You're probably better off using a
TheSeeker wrote:
> Alternatives to Microsoft's UI Automation are welcome too, but I have
> tried using winguiauto and watsup (along with AutoIt), and there seems
> to be severe limitations when using these tools with WinForm
> applications.
http://www.autoitscript.com/forum/index.php?showtopic=967
On Jul 9, 7:30 pm, Lie Ryan wrote:
> brasse wrote:
> > Hello!
> > I have been thinking about how write exception safe constructors in
> > Python. By exception safe I mean a constructor that does not leak
> > resources when an exception is raised within it. The following is an
> > example of one po
On Jul 10, 3:54 am, Robert Kern wrote:
> On 2009-07-09 01:27, Helvin wrote:
>
>
>
>
>
> > On Jul 9, 11:29 am, Robert Kern wrote:
> >> On 2009-07-08 18:10, Helvin wrote:
>
> >>> Thanks for the fast replies! I will look into how to use VTK now.
> >>> Where would I find VTK's explicit support for Py
On Jul 9, 4:12 pm, Michael Torrie wrote:
> TheSeeker wrote:
> > Alternatives to Microsoft's UI Automation are welcome too, but I have
> > tried using winguiauto and watsup (along with AutoIt), and there seems
> > to be severe limitations when using these tools with WinForm
> > applications.
>
> ht
Steven D'Aprano wrote:
There is some evidence that 30-60% of people simply cannot learn to
program, no matter how you teach them:
http://www.codinghorror.com/blog/archives/000635.html
http://www.cs.mdx.ac.uk/research/PhDArea/saeed/
I'm sympathetic to the idea, but not entirely convinced. Per
tt-industries wrote:
Hi,
I am programming a oscilloscope module in Python. For this reason, I
want to plot very many data points as fast as possible. This can be
more than 100 000 at once.
At once is impossible ;-)
So far I have been using the ploting module
of wxPython.
which plotting modul
Hi,
I am programming a oscilloscope module in Python. For this reason, I
want to plot very many data points as fast as possible. This can be
more than 100 000 at once. So far I have been using the ploting module
of wxPython. However, it becomes unstable for more than 25000 points.
Can someone reco
Or maybe he meant if you can have both Python and assembler code in
the same source file, but I haven't heard of it. If what you are
trying to do is write a faster version of some part of your code, try
SWIG: http://www.swig.org/
Playing the guessing game is a time sink, and since nobody has done
On Jul 9, 2009, at 9:20 AM, Lie Ryan wrote:
Michael Mossey wrote:
I want to understand better what the "secret" is to responding to a
ctrl-C in any shape or form.
Are you asking: "when would the python interpreter process
KeyboardInterrupt?"
...
In single threaded python program, the currentl
On Thu, Jul 9, 2009 at 3:17 AM, m.reddy prasad reddy wrote:
>
> can any one tell me how to write assembly language programs in python...if
> no is there any other way to write the programs in python
>
> Reddi prasad reddy
> ph.no:09958083797
>
> --
> http://mail.python.org/mailman/listinfo/python-l
Hi,
There is a behaviour I do not understand of PyRun_SimpleFileExFlags(),
normally when it executes a python script containing a sys.exit(), it
results by ending the calling application.
I have got this behaviour with PyRun_SimpleFileExFlags() when I call it
from the main thread of a GUI ap
Simon Forman:
> Examine CorePyhttp://www.corepy.org
>
> "CorePy is a complete system for developing machine-level programs in
> Python. CorePy lets developers build and execute assembly-level
> programs interactively from the Python command prompt, embed them
> directly in Python applications, or e
On Thu, Jul 9, 2009 at 3:03 PM,
tt-industries wrote:
> Hi,
>
> I am programming a oscilloscope module in Python. For this reason, I
> want to plot very many data points as fast as possible. This can be
> more than 100 000 at once. So far I have been using the ploting module
> of wxPython. However,
On Thu, Jul 9, 2009 at 9:42 AM, Nick wrote:
> fields = line.split()
> for i in range(len(fields)):
> fields[i] = float(fields[i])
instead of the above code you could say:
fields = [float(n) for n in in line.split()]
Have fun getting back into python! :] (A lot has changed in the
Nick writes:
> text = file.readlines()
> len = len(text)
> fields = text[1].split()
Is that intended to split the first line of the file? Remember
that arrays in python begin at index 0.
--
http://mail.python.org/mailman/listinfo/python-list
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April, 2009. Supporters of the site claim it is better than rival
Google upon which platform it
In message , kj wrote:
> .., Lundh writes:
>
> Assignment statements modify namespaces, not objects.
>>> a = [3]
>>> b = a
These may indeed modify a namespace, not any object. However:
>>> a[:] = [4]
>>> a
[4]
>>> b
[4]
What change has happened to the namespace
Tony Houghton writes:
> I've looked through the manual but I can't find any hooks in distutils
> for generating files at install time other than extension modules and
> .pyc files. Should I just run the script from somewhere in my setup.py
> before calling distutils' setup function?
Indirectly r
On Jul 9, 6:03 pm, Musatov wrote:
> Los Angeles (AP) -- MeAmI.org now has users in 50 countries following
> its adopted use in Pakistan. The search engine has grown in
> popularity 10,000 fold following its Beta test launch three months ago
> in April, 2009. Supporters of the site claim it is bett
tt-industries writes:
> I am programming a oscilloscope module in Python. For this reason, I
> want to plot very many data points as fast as possible. This can be
> more than 100 000 at once.
I think you will find good results using Numpy for your arrays of data
http://numpy.scipy.org/> and Matp
In article
<0734dc45-d8a0-4f28-b945-f9e179f30...@h11g2000yqb.googlegroups.com>,
tt-industries wrote:
> I am programming a oscilloscope module in Python.
Sigh. I guess I'm showing my age, but I still can't get used to the idea
that the right tool to build an oscilloscope is no longer a solder
Hi all,
For one of my projects, I came across the need to check if one of many
items from a list of strings could be found in a long string. I came
up with a pretty quick helper function to check this, but I just want
to find out if there's something a little more elegant than what I've
cooked up
On Thu, Jul 9, 2009 at 6:36 PM, inkhorn wrote:
> Hi all,
>
> For one of my projects, I came across the need to check if one of many
> items from a list of strings could be found in a long string. I came
> up with a pretty quick helper function to check this, but I just want
> to find out if there'
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April, 2009. Supporters of the site claim it is better than rival
Google upon
I'll be the first to admit it. The point of writing a fake story by
Associated Press and publishing it on a programming mailing list is
totally beyond me.
Confoundedly yours,
Friðrik Már
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 9, 6:41 pm, David Bernier wrote:
> Musatov wrote:
> > Los Angeles (AP) --MeAmI.org now has users in 50 countries following
> > its adopted use in Pakistan. The search engine has grown in
> > popularity 10,000 fold following its Beta test launch three months ago
> > in April, 2009. Supporte
In article ,
Joshua Kugler wrote:
>Joshua Kugler wrote:
>>
>> Sorry about that...since pysqlite and APSW are both discusses on the
>> pysqlite list, I had made an incorrect assumption. Oops.
>
>"are both discusses?" Yeef, I must have been out of it. Discussed, thank
>you. :)
Who's Yeef? ;-)
-
Hello, I administer the Informatica ETL tool at my company. Part of
that role involves creating and enforcing standards. I want the
Informatica developers to add comments to certain key objects and I want
to be able to verify (in an automated fashion) that they have done so.
I cannot merely
Thank you.
Martin Musatov
2009/7/9 Friðrik Már Jónsson
> I'll be the first to admit it. The point of writing a fake story by
> Associated Press and publishing it on a programming mailing list is totally
> beyond me.
>
> Confoundedly yours,
> Friðrik Már
--
http://mail.python.org/mailman/listin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
jacopo mondi wrote:
> Hi all, I need to patch socketmodule.c (the _socket module) in order to
> add support to an experimental socket family.
You may find it considerably easier to use ctypes since that will avoid
the need for any patching. You'll al
On Thu, 09 Jul 2009 04:57:15 -0300, Gabriel Genellina wrote:
> Nobody says you shouldn't check your data. Only that "assert" is not the
> right way to do that.
"assert" is not the right way to check your *inputs*. It's a perfectly
reasonable way to check data which "should" be valid, as well as
On Fri, 10 Jul 2009 02:06:35 +, Jason S. Friedman wrote:
> Hello, I administer the Informatica ETL tool at my company. Part of
> that role involves creating and enforcing standards. I want the
> Informatica developers to add comments to certain key objects and I want
> to be able to verify (
Where do you get this beta? I heard that Psyco V2 is coming out but
can't find anything on their site to support this.
--
Zachary Burns
(407)590-4814
Aim - Zac256FL
Production Engineer (Digital Overlord)
Zindagi Games
On Sat, Jul 4, 2009 at 5:26 AM, larudwer wrote:
> just out of curiosity i've
Fred Atkinson wrote:
>
>I wonder why they don't just have a function to return it instead of
>putting you through all of that?
In CGI, EVERYTHING gets communicated through environment variables. That
(and the stdin stream) is really the only option, since you get a new
process for every reques
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April, 2009. Supporters of the site claim it is better than rival
Google upon
On Thu, 09 Jul 2009 18:36:05 -0700, inkhorn wrote:
> For one of my projects, I came across the need to check if one of many
> items from a list of strings could be found in a long string.
If you need to match many strings or very long strings against the same
list of items, the following should (
On Fri, 10 Jul 2009 03:28:04 +0100, Nobody wrote:
> On Thu, 09 Jul 2009 04:57:15 -0300, Gabriel Genellina wrote:
>
>> Nobody says you shouldn't check your data. Only that "assert" is not
>> the right way to do that.
>
> "assert" is not the right way to check your *inputs*. It's a perfectly
> rea
Steven D'Aprano wrote:
And speaking of binary search:
[quote]
I was shocked to learn that the binary search program that Bentley PROVED
CORRECT and SUBSEQUENTLY TESTED [emphasis added] in Chapter 5 of
"Programming Pearls" contains a bug. Once I tell you what the it is, you
will understand wh
On Jul 9, 7:54 pm, David Bernier wrote:
> Musatov wrote:
> > Los Angeles (AP) --MeAmI.org now has users in 50 countries following
> > its adopted use in Pakistan. The search engine has grown in
> > popularity 10,000 fold following its Beta test launch three months ago
> > in April, 2009. Supporte
"Jason S. Friedman" wrote in message
news:mailman.2927.1247192026.8015.python-l...@python.org...
> Hello, I administer the Informatica ETL tool at my company. Part of that
> role involves creating and enforcing standards. I want the Informatica
> developers to add comments to certain key obj
On Jul 10, 1:25Â pm, scribe...@yahoo.com wrote:
> On Jul 9, 7:54Â pm, David Bernier wrote:
>
>
>
>
>
> > Musatov wrote:
> > > Los Angeles (AP) --MeAmI.org now has users in 50 countries following
> > > its adopted use in Pakistan. Â The search engine has grown in
> > > popularity 10,000 fold follow
wrote in message
news:defacf35-6149-485a-8f03-15472d63d...@a39g2000pre.googlegroups.com...
Oh, puh-LEEZ, Martin! A two-year-old wouldn't be fooled by this!
--
http://mail.python.org/mailman/listinfo/python-list
Hello Daniel,
> Can someone recommend me a faster plotting library?
I found out gnuplot to be blazing fast for many many points.
I usually just call it using subprocess but there are Python bindings
to it somewhere as well.
HTH,
--
Miki
http://pythonwise.blogspot.com
--
http://mail.python.org
inkhorn writes:
> def list_items_in_string(list_items, string):
> for item in list_items:
> if item in string:
> return True
> return False
You could write that as (untested):
def list_items_in_string(list_items, string):
return any(item in string for item in l
On Thu, 09 Jul 2009 18:36:05 -0700, inkhorn wrote:
> def list_items_in_string(list_items, string):
> for item in list_items:
> if item in string:
> return True
> return False
...
> Any ideas how to make that function look nicer? :)
Change the names. Reverse the order o
On Jul 10, 12:53 pm, Nobody wrote:
> On Thu, 09 Jul 2009 18:36:05 -0700, inkhorn wrote:
> > For one of my projects, I came across the need to check if one of many
> > items from a list of strings could be found in a long string.
>
> If you need to match many strings or very long strings against th
On Thu, 09 Jul 2009 23:07:34 -0400, Terry Reedy wrote:
> Steven D'Aprano wrote:
>
>> And speaking of binary search:
>>
>> [quote]
>> I was shocked to learn that the binary search program that Bentley
>> PROVED CORRECT and SUBSEQUENTLY TESTED [emphasis added] in Chapter 5 of
>> "Programming Pearl
On Jul 9, 7:54Â pm, David Bernier wrote:
> Musatov wrote:
> > Los Angeles (AP) --MeAmI.org now has users in 50 countries following
> > its adopted use in Pakistan. Â The search engine has grown in
> > popularity 10,000 fold following its Beta test launch three months ago
> > in April, 2009. Suppor
Peter wrote:
>
>Any help would be appreciated :-)
>
>I want to write an auction sniping tool in Python.
Please don't.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list
TheSeeker wrote:
>
>I am embarking on teaching myself Microsoft UI Automation using Python
>as the scripting language.
The University of North Carolina at Chapel Hill has a great Python package
called pyAA that does exactly this:
http://www.cs.unc.edu/Research/assist/developer.shtml
http://mindt
I am trying to implement a simple client that can do the following:
1)to send the following kinds of HTTP requests and validate responses
1.1 GET
1.2 POST with application/x-www-form-urlencoded encoding
1.3 POST with multipart/form-data encoding
2)to set any number of (even duplicate) headers. Fo
Musatov wrote:
On Jul 9, 7:54 pm, David Bernier wrote:
Musatov wrote:
Los Angeles (AP) --MeAmI.org now has users in 50 countries following
its adopted use in Pakistan. The search engine has grown in
popularity 10,000 fold following its Beta test launch three months ago
in April, 2009. Support
On Jul 9, 8:33Â pm, "Bruce C. Baker"
wrote:
> wrote in message
>
> news:defacf35-6149-485a-8f03-15472d63d...@a39g2000pre.googlegroups.com...
>
>
>
> Oh, puh-LEEZ, Martin! A two-year-old wouldn't be fooled by this!
Any reason "ka"-snip?
Binomial Theorem: page 3. http://MeAmI.org/pversusnp.pdf
is there a way for a function to understand whether it's being run
through a OnCreate callback or not?
I have working functions that I want to recycle through the OnCreate
but need to catch the "nuke.thisNode()" bit inside them so they can
still function when called manually through other scripts f
"Floetry" wrote in message
news:803a7f06-8e43-4ff5-86a6-9fd9d2eee...@2g2000prl.googlegroups.com...
On Jul 9, 8:33 pm, "Bruce C. Baker"
wrote:
> wrote in message
>
> news:defacf35-6149-485a-8f03-15472d63d...@a39g2000pre.googlegroups.com...
>
>
>
> Oh, puh-LEEZ, Martin! A two-year-old wouldn't
On Thu, Jul 9, 2009 at 11:18 PM, slamdunk wrote:
> is there a way for a function to understand whether it's being run
> through a OnCreate callback or not?
> I have working functions that I want to recycle through the OnCreate
> but need to catch the "nuke.thisNode()" bit inside them so they can
>
101 - 175 of 175 matches
Mail list logo