On 2010-09-23, Lawrence D'Oliveiro wrote:
> In message
><4d76a2ad-bf85-472e-8c63-ef16f320a...@t11g2000vbc.googlegroups.com>, flebber
> wrote:
>
>> Has anyone had much success with python macro's. Or developing powerful
>> macro's in an language?
>
> I did an application for my own use recently, i
On Sep 22, 2:20 pm, de...@web.de (Diez B. Roggisch) wrote:
> vineet daniel writes:
> > On Sep 21, 9:47 pm, de...@web.de (Diez B. Roggisch) wrote:
> >> vineet daniel writes:
> >> > Hi
>
> >> > I have succesfully created daemon with python script and as next step
> >> > I am trying to give input to
On Sep 22, 3:39 pm, Baba wrote:
> On Sep 22, 9:18 pm, Baba wrote:
>
>
>
> > On Sep 22, 3:38 pm, nn wrote:
>
> > > On Sep 21, 6:39 pm, Baba wrote:
>
> > > > Hi
>
> > > > query level: beginner
>
> > > > as part of a learning exercise i have written code that:
>
> > wordlist = ['hello', 'bye']
On 2010-09-23, John Bokma wrote:
> Seebs writes:
>> I dunno. I like the "next if /^$/" idiom,
> I don't (as a Perl programmer), I prefer:
Huh, those are actually nicer. I didn't know that was possible; it
wouldn't have occurred to me to try to put "next" (which I think
of as a statement) into
Seebs writes:
> I dunno. I like the "next if /^$/" idiom,
I don't (as a Perl programmer), I prefer:
$line =~ /^$/ and next;
Or:
$line ne '' or next;
which I read as: line must not be empty
--
John Bokma j3b
Blog: http://johnbo
On 2010-09-23, Steven D'Aprano wrote:
> On Thu, 23 Sep 2010 01:49:44 +, Seebs wrote:
>> But I do think it's unfair to dismiss it as purely a matter of baby duck
>> syndrome. Consistency in ordering of corresponding idioms seems a
>> reasonable goal.
> I don't see anyone bitching about:
> fo
On Thu, 23 Sep 2010 01:49:44 +, Seebs wrote:
> But I do think it's unfair to dismiss it as purely a matter of baby duck
> syndrome. Consistency in ordering of corresponding idioms seems a
> reasonable goal.
I don't see anyone bitching about:
for x in seq:
if x:
f(x)
vs
[f(x)
In message
<4d76a2ad-bf85-472e-8c63-ef16f320a...@t11g2000vbc.googlegroups.com>, flebber
wrote:
> Has anyone had much success with python macro's. Or developing powerful
> macro's in an language?
I did an application for my own use recently, involving automatically
generating invoices in editabl
On Wed, Sep 22, 2010 at 9:35 PM, AMC wrote:
> Hi,
>
> >From last months I am using Python for making small but useful tools
> for my team members. I am doing my development in windows machine and
> running the program in Solaris machine where Python 2.6.2 is
> installed.
>
> In one of my program f
On 2010-09-23, Steven D'Aprano wrote:
> Yes, it certainly is. Describing it as "an ugly format" is also a matter
> of taste -- taste which in my opinion simply isn't justified by anything
> other than familiarity.
It may not be convincing to other people, but the logical inversion strikes
me as
Steven D'Aprano writes:
For completeness sake:
code = side == 'l' ? dir[int(num):] : dir[:-1*int(num)]
> code = if side == 'l' then dir[int(num):] else dir[:-1*int(num)]
> code = side == 'l' if dir[int(num):] else dir[:-1*int(num)]
> code = dir[int(num):] if side == 'l' else dir[:-1*int(num)]
Steven D'Aprano writes:
> You know, I'd give my right arm -- well, perhaps somebody else's right
> arm -- for the opportunity to some day to be interviewing an ex-RIAA
> executive, just so I can say:
>
> "I see from your CV that you took millions of customers and made them so
> mad at you that
On Sep 23, 10:41 am, flebber wrote:
> I have recently been looking at openoffice because I saw it had
> support to use python Macro's. I thought this would provide OOo with a
> great advantage a fully powerful high level language as compared to
> VBA in Excel.
>
> I have found few docs on the
> s
I have recently been looking at openoffice because I saw it had
support to use python Macro's. I thought this would provide OOo with a
great advantage a fully powerful high level language as compared to
VBA in Excel.
I have found few docs on the subject.
http://wiki.services.openoffice.org/wiki/Py
On Tue, 21 Sep 2010 12:26:29 -0400, Andreas Waldenburger wrote:
> On Sat, 18 Sep 2010 19:09:33 -0700 (PDT) Carl Banks
> wrote:
>
>> On Sep 17, 1:01 pm, Andreas Waldenburger
>> wrote:
>> > On Thu, 16 Sep 2010 16:20:33 -0400 AK wrote:
>> >
>> > > I also like this construct that works, I think, s
In message , Nobody wrote:
> And I can't think of any reason why you should use os.waitpid() or
> similar; use the .wait() method.
I have used WNOHANG to poll for completion of a subprocess while providing
progress updates to the user.
--
http://mail.python.org/mailman/listinfo/python-list
2010/9/19 Dennis Lee Bieber :
> On Sat, 18 Sep 2010 23:00:25 +0200, Vlastimil Brom
> declaimed the following in
> gmane.comp.python.general:
>
>> Thank you very much for detailed hints, I see, I should have mention
>> the specification with my initial post...
>> It is true, that nested tags of the
On Tue, 21 Sep 2010 16:17:48 +0200, Antoon Pardon wrote:
> On Tue, Sep 21, 2010 at 12:07:07AM +, Steven D'Aprano wrote:
>> On Mon, 20 Sep 2010 19:28:49 +0200, Antoon Pardon wrote:
>>
>> > Not necessarily. Some of us have the impression that Guido
>> > deliberatly chose an ugly format for the
On Tue, 21 Sep 2010 08:17:00 +, Duncan Booth wrote:
> I guess you have worked hard to forget the and-or hack. It was actually:
>
> condition and true-clause or false-clause
>
> so its not quite the same pattern.
So I did. Oops.
Thanks for the correction.
--
Steven
--
http://mail.pyt
On Mon, 20 Sep 2010 23:17:54 -0700, Dennis Lee Bieber wrote:
> On Mon, 20 Sep 2010 20:12:01 -0500, John Bokma
> declaimed the following in gmane.comp.python.general:
>
>
>> I never saw the point of the whole X-No-Archive: Yes thing. What
>> happens if I quote such a message? It's archived, righ
On Tue, 21 Sep 2010 00:51:20 -0700, Dennis Lee Bieber wrote:
> On 21 Sep 2010 05:01:45 GMT, Steven D'Aprano
> declaimed the following in
> gmane.comp.python.general:
>
>
>> Hey, that would be an *awesome* google bombing project... to get lmgtfy
>> to come up as the first link for "self-righteou
On Sep 22, 9:18 pm, Baba wrote:
> On Sep 22, 3:38 pm, nn wrote:
>
>
>
> > On Sep 21, 6:39 pm, Baba wrote:
>
> > > Hi
>
> > > query level: beginner
>
> > > as part of a learning exercise i have written code that:
>
> > > a) asks for a single letter input (assumption: only 1 letter wil be
> > > en
On Sep 22, 2:38 pm, Grant Edwards wrote:
> On 2010-09-22, Dani Valverde wrote:
>
> > Is there a way to automatically set the size of a wx.StaticText to fit
> > its content?
>
> According to the docs, it should do that by default:
>
> http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.Sta
On 9/21/10 10:03 PM, gburde...@gmail.com wrote:
Given
m=numpy.array([[1, 2, 3]])
I want to obtain
array([[1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3]])
One way I've found to do this is:
numpy.reshape(numpy.tile(m,(4,1)),(12,1),'f').T
Another way is:
numpy.reshape(numpy.tile(m,(4,1)).flatten(1),(1,
On Sep 22, 3:38 pm, nn wrote:
> On Sep 21, 6:39 pm, Baba wrote:
>
>
>
> > Hi
>
> > query level: beginner
>
> > as part of a learning exercise i have written code that:
>
> > a) asks for a single letter input (assumption: only 1 letter wil be
> > entered)
> > b) adds that letter to list1 and then
Hello,
I posted in regard to this in the past but it didn't go very far, no ones
fault, but I'm again atempting to make this work and could use some help.
I would like to use libraw.dll (http://www.libraw.org/ version 0.10) from
python and can access all the functions fine and produce images but
I'm looking for an audio library for Python. I googled and found a
few, but none of them seem to have a simple way to play a particular
sound file from a particular start-time to an end-time. Like, I'd want
to load a file and say "Play the section of this file from 10.25 seconds
to 11
> Any ideas?
Try running the postinstall script by hand.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-09-22, Dani Valverde wrote:
> Is there a way to automatically set the size of a wx.StaticText to fit
> its content?
According to the docs, it should do that by default:
http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.StaticText.html
Window Styles
Window Style D
Hello!
Is there a way to automatically set the size of a wx.StaticText to fit
its content?
Cheers!
Dani
--
Daniel Valverde Saubí
c/Joan Maragall 37 4 2
17002 Girona
Spain
Telèfon mòbil: +34651987662
e-mail: dani.valve...@gmail.com
http://www.acrocephalus.net
http://natupics.blogspot.com
Si no
Hello!
I have a table with some rows and cells (code at the end), and created a
function which searches for text inside the cells and returns the row
number where the text is (to simplify the example, only English Name is
working). Then, it should set the grid cursor focus to that row (I want
On 9/21/2010 11:03 PM, gburde...@gmail.com wrote:
Given
m=numpy.array([[1, 2, 3]])
I want to obtain
array([[1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3]])
One way I've found to do this is:
numpy.reshape(numpy.tile(m,(4,1)),(12,1),'f').T
Another way is:
numpy.reshape(numpy.tile(m,(4,1)).flatten(1),(
On 20/09/2010 22:42, Astley Le Jasper wrote:
I have a list of tuples that indicate a relationship, ie a is related
to b, b is related to c etc etc. What I want to do is cluster these
relationships into groups. An item will only be associated with a
single cluster.
Before I started, I wondered i
On Tue, 21 Sep 2010 19:38:06 -0700, Raphaël Plasson wrote:
> Actually, I more precisely extract my 2D array from much higher
> dimensions data (i.e. 10-20 fields of different data in 3 dimensions
> of space+1 dimension of time), contained in a hdf5 file. I typically
> would like to extract arbitra
cleaned up the previous post.
• 〈HTML6, Your HTML/XML Simplified〉
http://xahlee.org/comp/html6.html
plain text version follows
--
HTML6, Your HTML/XML Simplified
Xah Lee, 2010-09-21
Tired of the standard bodies telling us what to do and change the
On Wed, 22 Sep 2010 00:31:04 +0200, Hellmut Weber wrote:
> I'm looking for a possibility to access the partiton inforamtion of a
> hard disk of my computer from within a python program.
Have you considered parsing /proc/partitions?
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 21 Sep 2010 23:54:04 -0700, Dennis Lee Bieber wrote:
>> As your Traceback clearly indicates, the Popen() call has already
>> completed; it's *the os.waitpid() call* that's blocking, but that's
>> entirely to be expected given its defined behavior. If you don't want
>> to wait around for th
On Sep 21, 6:39 pm, Baba wrote:
> Hi
>
> query level: beginner
>
> as part of a learning exercise i have written code that:
>
> a) asks for a single letter input (assumption: only 1 letter wil be
> entered)
> b) adds that letter to list1 and then goes through list2 and checks:
>
> 1) if any it
Life
By
Daniel Daly
A series of, perhaps random thoughts, or if you take the time to try
and make some coherent sense of the whole, perhaps something deeper.
But probably not.
I was inspired to start this task by the book ‘By the Waters of
Galilee’ by Fr Luke Fay of Catholic faith. I
Hi,
>From last months I am using Python for making small but useful tools
for my team members. I am doing my development in windows machine and
running the program in Solaris machine where Python 2.6.2 is
installed.
In one of my program file I had to use the module "cx_Oracle".For that
I have ins
vineet daniel writes:
> On Sep 21, 9:47 pm, de...@web.de (Diez B. Roggisch) wrote:
>> vineet daniel writes:
>> > Hi
>>
>> > I have succesfully created daemon with python script and as next step
>> > I am trying to give input to that python script daemon from Apache
>> > Logshere I have got s
On Sep 22, 8:30 am, Peter Otten <__pete...@web.de> wrote:
> Arnaud Delobelle wrote:
> > I think I would go for the two-step approach of constructing the graph
> > first and then recursively building connected components. It sounds
> > more complicated at first but when you implement it it turns ou
hello Uli,
thanks, I think you hit the nail on it's head,
PyScripter indeed changes default encoding
but ..
On Wed, Sep 22, 2010 at 9:16 AM, Ulrich Eckhardt wrote:
> Stef Mientki wrote:
> > When running this python application from the command line ( or launched
> > from another Python program),
Lawrence D'Oliveiro a écrit :
Next we need an International Surfin’ Bird day, a day to go around and tell
everybody that the bird bird bird, the bird is the word.
+1
--
http://mail.python.org/mailman/listinfo/python-list
Arnaud Delobelle wrote:
> I think I would go for the two-step approach of constructing the graph
> first and then recursively building connected components. It sounds
> more complicated at first but when you implement it it turns out quite
> simple:
>
> from collections import defaultdict
> from
Stef Mientki wrote:
> When running this python application from the command line ( or launched
> from another Python program), the wrong character encoding (probably
> windows-1252) is used.
Rule #1: If you know the correct encoding, set it yourself. This
particularly applies to files you open you
46 matches
Mail list logo