I have spent some time googling and on wiki and came up with
pyFSA in python. It may end up being useful, but it is not directly
what I am looking for, as there is no GUI that I can see.
I know about SMC, but it is not Python, and I can't find the gui.
This looks good, but it seems to be in a La
Benoit wrote:
> I got myself into programming late in the summer and have dabbled in
> python for the most part in that time, recently beginning work on a
> music player. In January, I start my minor in Information
> Technology. I'd like to get ahead a bit, however, and over the break
> would lik
On Sat, 15 Dec 2007 17:42:26 -0800, Dennis Lee Bieber wrote:
> On Sun, 16 Dec 2007 00:42:56 -, Steven D'Aprano
> <[EMAIL PROTECTED]> declaimed the following in
> comp.lang.python:
>
>> In the real world, people use fractions all the time, e.g. plumbers.
>> (Not that I'm expecting plumbers to
On Dec 15, 10:14 pm, SMALLp <[EMAIL PROTECTED]> wrote:
> Hy. I need help. I'm using BoxSizer and i put TextCtrl and StaticText
> next to each other and they gor alligned by top of TextCtrl and it looks
> terrible. How can i make thm to be alligned by center of each controll.
>
> Thn
On Dec 16, 2:34 pm, [EMAIL PROTECTED] wrote:
> > If it is a one-shot (spawn sub, wait, retrieve results) you could
> > generate a temporary file name in the parent, pass that name to the sub
> > when invoking it, wait for the sub to complete (giving you a status
> > code) and then read the
--- [EMAIL PROTECTED] wrote:
> TCP/IP sounds good but isn't it a bit too heavy?
It depends on your judgment, of course. On a
simplistic level, using TCP/IP shouldn't be any more
work than what you'd do if you were reading and
writing files, especially if everything you're doing
is on the same bo
On Dec 16, 2:42 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>
> Have you perused and been perplexed by the "Is Python a Scripting
> Language" thread?
Oh, no!! Script as in "shell script".
>
> Question: Are you creating both scripts from scratch?
> Yes?
Yes.
Then you can de
Python Google Chart is a complete wrapper to the Google Chart API.
http://pygooglechart.slowchop.com/
* Added more examples
* Fixed pie labels encoding
* Fixed MANIFEST.in to allow examples and COPYING in the source
distribution
* Added more metadata in setup.py
--
Gerald Kaszuba
http://gera
On 15 dic, 04:30, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> i am trying out tkinter to make a gui..i want to have a frame with an
> embedded file explorer next to a 'open directory' label..i tried out
> FileDialog and tkFileDialog methods but they open as pop up dialogs..
> how do i make thi
On Dec 15, 6:52 pm, greg <[EMAIL PROTECTED]> wrote:
> So while rationals might be useful to have available for
> some things, you should have to explicitly ask for them.
> Returning rationals from '/' applied to integers would
> be a bad idea, for example.
>From my reading of the PEP, it doesn't
The simple/obvious way is click a "save" button which appends the
files selected into a list. Then move on to the next directory and
repeat. Is there a reason why this won't work?
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 15 Dec 2007 16:46:38 -0800, Dennis Lee Bieber wrote:
> ... this becomes trivial... So trivial I'm going to include a solution,
> even though it is a homework assignment...
>
inp = raw_input("Enter the sequence of 1 and 0: ") print inp
> 1001101011101011101
print "The count is %s
Hi,
I am working on a thick-client application that serves
a lot of content as locally generated and modified
web pages.
I'm beginning to look at serving (and updating, via AJAX)
these pages from a web server running within the client
(mostly to provide a more natural and powerful way of
interact
Hi,
let's say I have two scripts: one does some computations and the other
one is a graphical front end for launching the first one. And both run
in separate processes (front end runs and that it spawns a subprocess
with the computation). Now, if the computation has a result I would
like to display
On Sat, 15 Dec 2007 15:44:26 -0800, Arnaud Delobelle wrote:
> Rationals are not that simple.
>
> * Unless you are working under very controlled conditions, rationals
> very quickly grow enormous numerators and denominators, hence require
> arbitrary precision integers (which, I concede, are part
On 14 dic, 23:44, Joshua Kugler <[EMAIL PROTECTED]> wrote:
> I'm using HTTPlib to construct some functional tests for a web app we're
> writing. We're not using urllib2 because we need support for PUT and
> DELETE methods, which urllib2 does not do.
>
> We also need client-side cookie handling.
I think the main objection to rationals is that extensive
computation with them tends to result in numbers requiring
larger and larger amounts of storage. I believe that ABC
made routine use of rationals, and this caused programs
to get bogged down for no apparent reason, as rationals
were being us
[EMAIL PROTECTED] wrote:
>map(append, arrays, tupl)
> except there is no unbound append() (List.append() does not exist,
> right?).
Er, no, but list.append does:
>>> list.append
so you should be able to do
map(list.append, arrays, tupl)
provided you know that all the elements of 'arra
On Dec 15, 10:38 pm, Lie <[EMAIL PROTECTED]> wrote:
[...]
>
> Yeah, that's why I consider them too complex for being included as a
> core of a general programming language like Python. Nevertheless,
> fraction datatype _IS_ elementary enough to be included as core
> language feature.
Rationals are
John Nagle wrote:
> Eric S. Johansson wrote:
>> John Nagle wrote:
>>> Yes. One of the basic design flaws of UNIX was that interprocess
>>> communication was originally almost nonexistent, and it's still not
>>> all that
>>> great. It's easy to run other programs, and easy to send command li
On Dec 16, 4:55 am, "Fredrik Johansson" <[EMAIL PROTECTED]>
wrote:
> On Dec 15, 2007 10:05 PM, Lie <[EMAIL PROTECTED]> wrote:
>
> > Random ramble past here:
> > Actually, my vision would be not only fractions, but also rooted
> > number (square root, cube root, etc), it could be possible to
> > imp
On Dec 15, 2007 10:05 PM, Lie <[EMAIL PROTECTED]> wrote:
> Random ramble past here:
> Actually, my vision would be not only fractions, but also rooted
> number (square root, cube root, etc), it could be possible to
> implement a type where a number consist of a rooted number times a
> multiplier pl
The easiest implementation of using fractional datatype is probably to
add a new operator. Some scientific calculators provide a special
operator to signify a fraction (somewhat on the shape of a small L in
mine) and I strongly believe that their internal calculation probably
used fractions even w
On Dec 15, 2:00 pm, Lie <[EMAIL PROTECTED]> wrote:
> I'm very surprised actually, to see that Python rejected the use of
> fractional/rational numbers. However, when I read the PEP, I know
> exactly why the proposal was rejected: People compared fractions with
> integers, while it should be more fa
csvutils is a single Python module for easily transforming csv (or csv-
like) generated rows. The release is available at
http://pypi.python.org/pypi/csvutils/0.1.
Regards,
George
What is csvutils?
The standard csv module is very useful for parsing tabular data in CSV
fo
Hy. I need help. I'm using BoxSizer and i put TextCtrl and StaticText
next to each other and they gor alligned by top of TextCtrl and it looks
terrible. How can i make thm to be alligned by center of each controll.
Thnaks!
--
http://mail.python.org/mailman/listinfo/python-list
Eric S. Johansson wrote:
> John Nagle wrote:
>> Yes. One of the basic design flaws of UNIX was that interprocess
>> communication was originally almost nonexistent, and it's still not
>> all that
>> great. It's easy to run other programs, and easy to send command line
>> parameters, but all
I'm very surprised actually, to see that Python rejected the use of
fractional/rational numbers. However, when I read the PEP, I know
exactly why the proposal was rejected: People compared fractions with
integers, while it should be more fairly compared to floats.
Arguments against:
- When I use t
I got myself into programming late in the summer and have dabbled in
python for the most part in that time, recently beginning work on a
music player. In January, I start my minor in Information
Technology. I'd like to get ahead a bit, however, and over the break
would like to do some reading. I
The grid method of these widgets returns None. When you say something like:
ent = Entry(root, fg = '#3a3a3a', bg = 'white', relief =
'groove').grid(row = 0, padx = 3, pady = 3)
You're actually assigning the value of the last method on the right
hand side (in this case, grid) to the variable on th
On Dec 15, 11:04 am, Fabian Braennstroem <[EMAIL PROTECTED]>
wrote:
>
> thanks for your ideas! I actually thought of something like
> a python parser, which just converts the nsf structure to an
> mbox; could that work!?
>
Well, If you wish to go that route, I believe you will have to reverse
eng
http://comp-hardware.blogspot.com/
If you looking for computer hardware...
--
http://mail.python.org/mailman/listinfo/python-list
Hello all
I am a python "n00b", however I can't find a solution to this problem
anywhere.
I am using a simple setup - entry box, button and list box, the contents of
the entry being inserted into the list box:
from Tkinter import *
def insert():
name = ent.get()
box.insert(0, name)
Hi,
today I released version 4.0.4 of the eric4 Python IDE. This is a bug fix
release.
As usual it is available via http://www.die-offenbachs.de/eric/index.html
What is eric?
-
eric is a Python (and Ruby) IDE written using PyQt. It comes with all
batteries included. Please see the ab
Hi to both,
Dan Poirier schrieb am 12/15/2007 02:00 PM:
> On Dec 15, 5:18 am, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
>> I am wondering, if anyone tried to convert lotus nsf mails
>> to a mbox format using python!? It would be nice, if anyone
>> has an idea, how to do it on a linux machine.
On Dec 15, 4:45 am, Gary Herron <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hi folks,
>
> > Thanks, for all the help. I tried running the various options, and
> > here is what I found:
>
> > from array import array
> > from time import time
>
> > def f1(recs, cols):
> > for r in r
On Dec 15, 10:39�am, [EMAIL PROTECTED] wrote:
> First of all I'd like to thank you all for your advices. Before I check all
> your hints I want to clarify what I'm trying to do. The question says
> "write a function that takes a sequence of bits as an input and return how
> many 1s are in the seque
On Sat, 15 Dec 2007 16:39:32 +, te509 wrote:
> So what I want
> to do is to write a generic version of a function that takes as an input
> a sequence of 1s and 0s in any format.
Given that there is an infinite number of possible formats, I suggest you
lower your sights to something more prac
First of all I'd like to thank you all for your advices. Before I check all
your hints I want to clarify what I'm trying to do. The question says
"write a function that takes a sequence of bits as an input and return how
many 1s are in the sequence", nothing more. This is quite simple for string
I have some Tkinter programs that I run on two different machines. On Machine
W, which runs Python 2.5.1 on Windows XP, these programs run just fine. On
Machine H, which runs Python 2.5.1 on Windows XP, however, the same programs
crash regularly. The crashes are not Python exceptions, but rat
On Dec 15, 8:33�am, [EMAIL PROTECTED] wrote:
> Hi guys,
> does anybody know how to convert a long
> sequence of bits to a bit-string? I want to avoid this:
>
> >>> bit=0011010111011101011�11001
> >>> str(bit)
>
> '949456129574336313917039111707606
On Sat, 15 Dec 2007 14:33:04 +, te509 wrote:
> Hi guys,
> does anybody know how to convert a long sequence of bits to a
> bit-string?
Can you explain what you actually mean?
For instance...
x = 1234567890
x is now a long sequence of bits.
> I want to avoid this:
>
bit=001101
On 2007-12-15, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>> does anybody know how to convert a long sequence of bits to a
>>> bit-string?
>>
>>Yes!
>
> Would you like to help, please?
You'll have to define 'sequence of bits' and 'bit string' for
us. The example you showed didn't really make
>> does anybody know how to convert a long
>> sequence of bits to a bit-string?
>
>Yes!
Would you like to help, please?
>> I would appreciate a prompt reply because I have a python assessment to
>> submit.
>
>Good luck, you're lucky you've got the whole weekend :)
That's not the only assignment I
> does anybody know how to convert a long
> sequence of bits to a bit-string? I want to avoid this:
>
bit=00110101110111010001
I do not think this does what you think it does...
http://docs.python.org/ref/integers.html
The lead
On Dec 15, 9:05 am, [EMAIL PROTECTED] wrote:
> On Dec 15, 8:33 am, Carl Banks <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 14, 4:15 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote:
>
> > > When implementing the rich comparison operators for some sort of
> > > container, it's tempting to save code by doin
On Dec 15, 2:33 pm, [EMAIL PROTECTED] wrote:
> Hi guys,
Hi
> does anybody know how to convert a long
> sequence of bits to a bit-string?
Yes!
>
> I would appreciate a prompt reply because I have a python assessment to
> submit.
Good luck, you're lucky you've got the whole weekend :)
> Thanks,
On Dec 14, 8:06 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
> > The executable runs,
>
> how do you know it runs?
>
because the program's GUI appears on-screen.
> > but no argument appears to get passed into it.
>
> appears??
>
Since the TO field doesn't get populated with the email addres
Hi guys,
does anybody know how to convert a long
sequence of bits to a bit-string? I want to avoid this:
>>> bit=00110101110111010001
>>>
>>> str(bit)
'949456129574336313917039111707606368434510426593532217946399871489'
I would appreciate
Hi guys,
does anybody know how to convert a long
sequence of bits to a bit-string? I want to avoid this:
>>> bit=00110101110111010001
>>>
>>> str(bit)
'949456129574336313917039111707606368434510426593532217946399871489'
I would appreciate
On Dec 15, 2:05 pm, [EMAIL PROTECTED] wrote:
> My reasoning is (I hope) that the container ought to support every
> comparison operation supported by the contained objects. This can be
> ensured by being careful in the implementation.
>
If you're traversing two containers in parallel to compare t
On Dec 15, 8:03 am, Lee Harr <[EMAIL PROTECTED]> wrote:
> I thought of several ways to add another name for
> a method in a subclass ...
>
> #alias.py
> class Foo(object):
> def nod(self):
> print "nodding"
>
> class Bar(Foo):
> def __init__(self):
> self.agree = self.nod
>
John Nagle wrote:
> Yes. One of the basic design flaws of UNIX was that interprocess
> communication was originally almost nonexistent, and it's still not all that
> great. It's easy to run other programs, and easy to send command line
> parameters, but all you get back is a status code, plu
On Dec 15, 8:33 am, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Dec 14, 4:15 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote:
>
> > When implementing the rich comparison operators for some sort of
> > container, it's tempting to save code by doing something like:
>
> > class LarchTree:
> >...
> >
On Dec 15, 5:18 am, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
> I am wondering, if anyone tried to convert lotus nsf mails
> to a mbox format using python!? It would be nice, if anyone
> has an idea, how to do it on a linux machine.
I've used jython to access notes databases through the Notes
Lee Harr a écrit :
> I thought of several ways to add another name for
> a method in a subclass ...
>
>
> #alias.py
> class Foo(object):
> def nod(self):
> print "nodding"
>
> class Bar(Foo):
> def __init__(self):
> self.agree = self.nod
Will create an instance attribute
On Sat, 15 Dec 2007 13:03:33 +, Lee Harr wrote:
> I thought of several ways to add another name for a method in a subclass
...
> class Bar2(Foo):
> agree = Foo.nod
...
> I am leaning towards Bar2 since it has the least code.
Sure, why not?
Out of curiosity, what's wrong with just calli
On Dec 14, 4:15 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> When implementing the rich comparison operators for some sort of
> container, it's tempting to save code by doing something like:
>
> class LarchTree:
>...
>def __gt__(self, other):
> # A lot of code to traverse the tree
>
I thought of several ways to add another name for
a method in a subclass ...
#alias.py
class Foo(object):
def nod(self):
print "nodding"
class Bar(Foo):
def __init__(self):
self.agree = self.nod
class Bar2(Foo):
agree = Foo.nod
class Bar3(Foo):
def agree(self):
On Dec 14, 11:04 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Fri, 14 Dec 2007 21:15:44 +, Neil Cerutti wrote:
> > When implementing the rich comparison operators for some sort of
> > container, it's tempting to save code by doing something like:
>
> > class LarchTree
Jair Trejo wrote:
> I was wondering how and if it's possible to write a
> loop in python
> which updates two or more variables at a time. For
> instance, something
> like this in C:
>
> for (i = 0, j = 10; i < 10 && j < 20; i++, j++) {
> printf("i = %d, j = %d\n", i, j);
> }
>>> for i,j in z
Fabian Braennstroem pisze:
> I am wondering, if anyone tried to convert lotus nsf mails
> to a mbox format using python!? It would be nice, if anyone
> has an idea, how to do it on a linux machine.
You can try to read NSF databases using Lotus ActiveX controls. I am
sure I saw an example few year
Gluon was made at my school? I seriously gotta start talking to the
CTI department.
--
http://mail.python.org/mailman/listinfo/python-list
On 15 Dec, 02:40, hi and hello <[EMAIL PROTECTED]> wrote:
> thx.
What OS?
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 14, 5:41 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 14 Dec 2007 12:19:41 -0300, Hans Müller <[EMAIL PROTECTED]> escribió:
>
> > I cannot read a binary file into a mysql database. Everything I tried
> > did not succeed.
>
> > What I tried (found from various google lookups
On Sat, 15 Dec 2007 01:07:17 -0800, tuom.larsen wrote:
...
> later in the library I would like to expose the
> simplified interface as well:
>
> _machine = StateMachine()
> function0 = _machine.function0
> function1 = _machine.function1
> function2 = _machine.function2
> ...
>
> Is there a way t
[EMAIL PROTECTED] wrote:
> Hi folks,
>
> Thanks, for all the help. I tried running the various options, and
> here is what I found:
>
>
> from array import array
> from time import time
>
> def f1(recs, cols):
> for r in recs:
> for i,v in enumerate(r):
> cols[i].append(v)
>
> > > XYZDEFAAcdAA --> XYZ8ADEF2Acd2A
> (RLE), that saved a lot of googles
I have written a rle in my first years in school. It compresses a bitmap
image %50 compression is achivied :) The link :
http://arilaripi.org/index.php?option=com_remository&Itemid=26&func=fileinfo&id=273
And i
> John Nagle <[EMAIL PROTECTED]> (JN) wrote:
>JN> There's CORBA, for example, and in theory
>JN> you can script OpenOffice and Gnome via CORBA. But nobody does that.
>JN> Exercise: write a Python program to convert a ".doc" file to a ".pdf"
>JN> file by invoking OpenOffice via CORBA. At
Hi folks,
Thanks, for all the help. I tried running the various options, and
here is what I found:
from array import array
from time import time
def f1(recs, cols):
for r in recs:
for i,v in enumerate(r):
cols[i].append(v)
def f2(recs, cols):
for r in recs:
Hi,
I am wondering, if anyone tried to convert lotus nsf mails
to a mbox format using python!? It would be nice, if anyone
has an idea, how to do it on a linux machine.
Regards!
Fabian
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 15, 1:50 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Fri, 14 Dec 2007 23:06:28 +0100, Bruno Desthuilliers wrote:
> > Now the question is: why do you think it's so important for your users
> > to only see functions ? What's so wrong with:
>
> > from state_machine im
> Steven D'Aprano <[EMAIL PROTECTED]> (SD) wrote:
>SD> I have repeatedly argued in the past that we do ourselves a disservice by
>SD> describing Python as an interpreted language. Python is compiled. It has
>SD> a compiler. It even has a built-in function "compile". It's just not
>SD> compi
On Sat, 15 Dec 2007 01:59:16 +, Steven D'Aprano wrote:
> In any case, I would say that your exercise is the Wrong Way to go about
> it. A task as simple as "produce PDF output from this file" shouldn't
> need access to the internals of the OpenOffice GUI application. The Right
> Way (in som
Stargaming <[EMAIL PROTECTED]> wrote:
>
>Even though you have the assignment operator *in both cases*, it does
>**not** issue the same thing.
>
>As Bruno pointed out, in the first case ``y = [3,4]`` it is *rebinding*
>the name `y`.
There have been two good replies to this, but I would like to p
75 matches
Mail list logo