btw
the code is just..
import ConfigParser
import zipfile
import os
import subprocess
import getopt, sys
import os.path
import _winreg
import pkg_resources
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to make an exe that uses pkg_resources.
Every time I try to run the compiled version it always fails complaining
that it is missing pkg_resources.
Traceback (most recent call last):
File "PythonPackageManager.py", line 6, in
import MainWindow
File "MainWindow.pyc", line
googler.1.webmas...@spamgourmet.com wrote:
>
>I just have a design problem and don't know how to solve it. I call a
>function which
>executes a simple "PyRun_String(...)" command.
>
>imagine the script while 1: pass is executed so the app would hang. Is
>there any chance to break out this PyRun_Str
janislaw wrote:
>
>I am currently doing a project in which I interface to a PCI card. To
>ease the prototyping, I call the API functions, which map the address
>space of the card to a process memory.
As a driver developer, I am obligated by the Driver Curmudgeon's Code of
Ethics to point out that
En Tue, 14 Apr 2009 18:42:32 -0300, norseman
escribió:
Gabriel Genellina wrote:
En Mon, 13 Apr 2009 15:13:53 -0300, norseman
escribió:
Gabriel Genellina wrote:
Below there is an attempt to reproduce the layout you describe in the
PDF:
from Tkinter import *
root = Tk()
pane = Fram
hi alll..
iam invoking a python script from a standalone client which looks lik this
String command="ln -s /usr/lib /tmp/lin"; //creating a soft link
URL url = new URL("http://server-name/cgi-bin/finalexec1.py?command=
"+command);
but iam not able to read this command in the python script
Hi,
On Tue, Apr 14, 2009 at 9:01 AM, wrote:
> 2) Gems - I've seen a bit about Eggs, but they don't seem to have
> anywhere near the official status gems do for Ruby. Are there any
> "package management" things like this for Python, or do you usually
> just grab the code you need as-is?
On a sid
On Apr 15, 2:25 pm, ookrin wrote:
>
>
> Seeing the errors - I changed the two classes to this:
>
> class offlineLoad():
> def loadXmlFile(self):
> print "Loading from File"
> xf = open('CharacterID.xml','r')
> xml = xmlHandler()
> saxparser = make_parser()
>
Hi,
On Mon, Apr 13, 2009 at 10:03 PM, Grant Edwards wrote:
> On 2009-04-13, SpreadTooThin wrote:
>
>> I want to compare two binary files and see if they are the same.
>> I see the filecmp.cmp function but I don't get a warm fuzzy feeling
>> that it is doing a byte by byte comparison of two files
On Apr 14, 3:01 am, blahemailb...@gmail.com wrote:
>
> 1) Rake - is there an equivalent of Rake? I've seen a bit about SCons,
> and it looks really nice, but it seems geared towards being a Make
> replacement for C/C++ rather than something that's used to work with
> Python itself. Is there anythin
Muddy Coder wrote:
> Hi Folks,
>
> I need to query the ID of GUI, in Tkinter, but don't know how to do
> it. This is my code:
>
> calss MyGUI:
>
>def make_menu(self):
> top = Menu(self)
> menObj = Menu(top)
> labels = read_from_database()
> for lab in label
On Apr 12, 12:04 pm, Gabriel wrote:
> r wrote:
> > On Apr 12, 8:07 am, Gabriel wrote:
>
> >> Hello,
>
> >> I'm python newbie and i need to write gui for my school work in python.
> >> I need to write it really quick,
>
> > [snip]
>
> > Tkinter is built-in, why not start there?
>
> > from Tkinter
On Tue, 14 Apr 2009 12:36:02 -0700, Eric.Le.Bigot wrote:
> I'll give more details, as David S. and David R. were asking for. The
> code could look like this:
>
> import crystals
> my_crystal = crystals.Crystal("Quartz 111")
>
> which would set some attributes of my_crystal as "floats with
>
Hi Folks,
I need to query the ID of GUI, in Tkinter, but don't know how to do
it. This is my code:
calss MyGUI:
def make_menu(self):
top = Menu(self)
menObj = Menu(top)
labels = read_from_database()
for lab in labels:
menObj.add_command(label=lab, c
On Apr 14, 8:15 pm, John Machin wrote:
> On Apr 15, 12:29 pm, ookrin wrote:
>
>
>
> > On Apr 12, 12:51 am, "Diez B. Roggisch" wrote:
>
> > > ookrin schrieb:
>
> > > > I'm in the process of learning python and PyQt4. I had decided to make
> > > > myself a simple app and soon discovered that I nee
Steven D'Aprano writes:
> On Tue, 14 Apr 2009 06:03:58 -0700, Eric.Le.Bigot wrote:
> > The goal is to maintain a list [x, y,…] of these float-like
> > objects, and to modify their value on the fly (with something like
> > x.value = 3.14) so that any expression like "x
> > +y" uses the new value.
On Apr 15, 12:39 am, sanket wrote:
> Hello All,
>
> I am dealing with this weird bug.
> I have a function in C and I have written python bindings for it using
> ctypes.
>
> I can call this function for couple of times and then suddenly it
> gives me seg fault.
> But I can call same function from a
Hello list!
I am a Python Beginner. I thought a good beginning project would be to
use the Portable Python environment http://www.portablepython.com/ with
Beautiful Soup http://www.crummy.com/software/BeautifulSoup/ and Scrape
'N' Feed http://www.crummy.com/software/ScrapeNFeed/ to create and
On Tue, 14 Apr 2009 06:03:58 -0700, Eric.Le.Bigot wrote:
> Hello,
>
> Is there a way to easily build an object that behaves exactly like a
> float, but whose value can be changed?
Yes, have a look at the source code for UserString.MutableString for some
ideas.
> The goal is to maintain a list
On Apr 15, 12:29 pm, ookrin wrote:
> On Apr 12, 12:51 am, "Diez B. Roggisch" wrote:
>
>
>
> > ookrin schrieb:
>
> > > I'm in the process of learning python and PyQt4. I had decided to make
> > > myself a simple app and soon discovered that I needed to crash into
> > > xml to use some of the data
>
>
> The path of your script is given by __file__.
thanks MRAB, and sorry for such a trivial question :)
cheers!
tiefeng wu
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 14 Apr 2009 14:42:32 -0700, norseman wrote:
> Grids are uniform! Same size, non-changing across whole backdrop. There
> is nothing in uniform that says X==Y. Units along axis need not be same.
> Corners don't even have to be 90degrees. (Spherical) But they must
> measure as same size cel
On Apr 14, 7:18 pm, Aaron Brady wrote:
> On Apr 14, 7:01 pm, Aaron Brady wrote:
>
>
>
> > On Apr 14, 12:37 pm, Ross wrote:
>
> > > On Apr 14, 10:34 am, Ross wrote:
>
> > > > On Apr 14, 5:57 am, a...@pythoncraft.com (Aahz) wrote:
>
> > > > > In article
> > > > > ,
>
> > > > > Ross wrote:
> >
On Apr 12, 12:51 am, "Diez B. Roggisch" wrote:
> ookrin schrieb:
>
>
>
> > I'm in the process of learning python and PyQt4. I had decided to make
> > myself a simple app and soon discovered that I needed to crash into
> > xml to use some of the data I was going to be getting off of the
> > server.
On Apr 14, 7:32 pm, John O'Hagan wrote:
> On Tue, 14 Apr 2009, Mark Dickinson wrote:
> > On Apr 14, 7:21 pm, Luis Alberto Zarrabeitia Gomez
>
> > wrote:
> > > It's more than that. Python's following the rules here. Maybe it could be
> > > documented better, for those without a background in logic
On Apr 14, 7:01 pm, Aaron Brady wrote:
> On Apr 14, 12:37 pm, Ross wrote:
>
>
>
> > On Apr 14, 10:34 am, Ross wrote:
>
> > > On Apr 14, 5:57 am, a...@pythoncraft.com (Aahz) wrote:
>
> > > > In article
> > > > ,
>
> > > > Ross wrote:
> > > > >On Apr 13, 9:08=A0am, a...@pythoncraft.com (Aahz) w
On Tue, 14 Apr 2009 14:27:59 +0100, Arnaud Delobelle wrote:
> In fact the doc is not just misleading, but plain wrong as the following
> shows:
>
def alwaystrue():
> ... while True: yield True
> ...
all(alwaystrue())
> [Python is stuck]
>
> The iterable alwaystrue() satisfies the p
On Tue, 14 Apr 2009 17:54:14 +, John O'Hagan wrote:
> Agreed; having absorbed the answers to my original question, I now
> understand why all('Robinson Crusoe' in books for books in []) - or with
> any object in place of the string, or indeed just all([]) - doesn't
> return False, but, vacuous
On Tue, 14 Apr 2009 14:45:47 -0400, Dave Angel wrote:
> The answer to your original question is no. If the value can be
> changed, then it doesn't behave like a float. And that's not just a
> pedantic answer, it's a serious consideration.
Oh nonsense. Many programming languages have mutable flo
On Apr 15, 5:35 am, Przemyslaw Kaminski wrote:
> You may want to try:
> import pydoc
> b = pydoc.render_doc(timedelta)
> print b
Isn't this exactly the same output you get from typing 'help
(timedelta)' though?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the help everyone. I'll take some time to go through these
and how they all work. I appreciate the feedback. :)
Dave
--
http://mail.python.org/mailman/listinfo/python-list
> Mark Dickinson (MD) wrote:
>MD> On Apr 14, 7:21 pm, Luis Alberto Zarrabeitia Gomez
>MD> wrote:
>>> It's more than that. Python's following the rules here. Maybe it could be
>>> documented better, for those without a background in logic/discrete
>>> mathematics,
>>> but not changed.
>MD>
Daniel Holm wrote:
> Hi everybody,
>
> I'm creating my first app (SixA @ http://www.launchpad/gsixaxis) and I have
> gtk.combobox to chose a profile. When a profile is chosen I save the
> profiles name as a variable, and now I want to combine a command with the
> variable.
>
> Lets say that the
Hi,
I just have a design problem and don't know how to solve it. I call a
function which
executes a simple "PyRun_String(...)" command.
imagine the script while 1: pass is executed so the app would hang. Is
there any chance
to break out this PyRun_String-function? I just searched the forums
for t
Kegan wrote:
> I use iPython installed from macport. When I am in the iPython shell,
> I do the following:
>
>
> In [8]: from datetime import timedelta
>
> In [9]: timedelta??
> Type: type
> Base Class:
> String Form:
> Namespace: Interactive
> File: /opt/local
On Tue, 14 Apr 2009, Mark Dickinson wrote:
> On Apr 14, 7:21 pm, Luis Alberto Zarrabeitia Gomez
>
> wrote:
> > It's more than that. Python's following the rules here. Maybe it could be
> > documented better, for those without a background in logic/discrete
> > mathematics, but not changed.
>
> Agr
At 10:59 PM 4/14/2009 +0200, M.-A. Lemburg wrote:
You are missing the point: When breaking up a large package that lives in
site-packages into smaller distribution bundles, you don't need namespace
packages at all, so the PEP doesn't apply.
The way this works is by having a base distribution bun
Steven D'Aprano wrote:
I have a subclass of int where I want all the standard arithmetic
operators to return my subclass, but with no other differences:
class MyInt(int):
def __add__(self, other):
return self.__class__(super(MyInt, self).__add__(other))
# and so on for __mul__,
On Apr 14, 6:45 pm, Aaron Brady wrote:
> On Apr 14, 6:04 pm, sanket wrote:
>
>
>
> > On Apr 14, 4:00 pm, MRAB wrote:
>
> > > sanket wrote:
> > > > Hello All,
>
> > > > I am dealing with this weird bug.
> > > > I have a function in C and I have written python bindings for it using
> > > > ctypes.
Aaron Brady wrote:
On Apr 14, 6:04 pm, sanket wrote:
On Apr 14, 4:00 pm, MRAB wrote:
sanket wrote:
Hello All,
I am dealing with this weird bug.
I have a function in C and I have written python bindings for it using
ctypes.
I can call this function for couple of times and then suddenly it
If this is the record, then you can use split to get a list of the
individual fields and then convert to int or float where necessary.
rec = "2NHST1 C1 56 3.263 2.528 16.345 "
rec_split = rec.split()
print rec_split
If you want to read two records at a time, then use
all_data = open(name,
On Apr 14, 12:37 pm, Ross wrote:
> On Apr 14, 10:34 am, Ross wrote:
>
>
>
> > On Apr 14, 5:57 am, a...@pythoncraft.com (Aahz) wrote:
>
> > > In article
> > > ,
>
> > > Ross wrote:
> > > >On Apr 13, 9:08=A0am, a...@pythoncraft.com (Aahz) wrote:
> > > >> In article
> > > >> > > >com>,
> > > >>
On Apr 13, 8:39 pm, Grant Edwards wrote:
> On 2009-04-13, Peter Otten <__pete...@web.de> wrote:
>
> > But there's a cache. A change of file contents may go
> > undetected as long as the file stats don't change:
>
> Good point. You can fool it if you force the stats to their
> old values after you
On Apr 14, 4:14 pm, Tino Wildenhain wrote:
> Hi,
>
>
>
> João Abrantes wrote:
> > Good evening,
>
> > I am making an online game that stores its data in a mysql database. The
> > thing is that I can't allow the players to interact directly with the
> > important tables of database (they could chea
On Apr 14, 6:04 pm, sanket wrote:
> On Apr 14, 4:00 pm, MRAB wrote:
>
>
>
> > sanket wrote:
> > > Hello All,
>
> > > I am dealing with this weird bug.
> > > I have a function in C and I have written python bindings for it using
> > > ctypes.
>
> > > I can call this function for couple of times an
sanket wrote:
On Apr 14, 4:00 pm, MRAB wrote:
sanket wrote:
Hello All,
I am dealing with this weird bug.
I have a function in C and I have written python bindings for it using
ctypes.
I can call this function for couple of times and then suddenly it
gives me seg fault.
But I can call same func
On Apr 14, 3:56 pm, "Diez B. Roggisch" wrote:
> sanket schrieb:
>
> > Hello All,
>
> > I am dealing with this weird bug.
> > I have a function in C and I have written python bindings for it using
> > ctypes.
>
> > I can call this function for couple of times and then suddenly it
> > gives me seg f
alejandro wrote:
I would like to import a pdf in a wxPython widget, but didn't find any
solution. The imported PDF should work like if it were open in IE or
Mozilla... Sugestions? Solutions?
P.S.
I would like to thank Dennis Lee Bieber for the help about parallel ports...
I forgot to do it
On Apr 14, 4:00 pm, MRAB wrote:
> sanket wrote:
> > Hello All,
>
> > I am dealing with this weird bug.
> > I have a function in C and I have written python bindings for it using
> > ctypes.
>
> > I can call this function for couple of times and then suddenly it
> > gives me seg fault.
> > But I ca
sanket wrote:
Hello All,
I am dealing with this weird bug.
I have a function in C and I have written python bindings for it using
ctypes.
I can call this function for couple of times and then suddenly it
gives me seg fault.
But I can call same function from a C code for any number of times.
I
sanket schrieb:
Hello All,
I am dealing with this weird bug.
I have a function in C and I have written python bindings for it using
ctypes.
I can call this function for couple of times and then suddenly it
gives me seg fault.
But I can call same function from a C code for any number of times.
Hello All,
I am dealing with this weird bug.
I have a function in C and I have written python bindings for it using
ctypes.
I can call this function for couple of times and then suddenly it
gives me seg fault.
But I can call same function from a C code for any number of times.
I cannot get what'
Gabriel Genellina wrote:
En Mon, 13 Apr 2009 15:13:53 -0300, norseman
escribió:
Gabriel Genellina wrote:
...(snip)
I can't visualize that working properly in my current need. The
...(snip)
Below there is an attempt to reproduce the layout you describe in the PDF:
from Tkinter import *
Matteo schrieb:
I need to playback a sound on a linux machine of a pre-determined
frequency like, say, 440 Hz. How can I do that with python? I found
the ossaudiodev package, but it says that the ossaudiodev.write()
method accepts data as a raw string. It doesn't explain what the
string should be
I need to playback a sound on a linux machine of a pre-determined
frequency like, say, 440 Hz. How can I do that with python? I found
the ossaudiodev package, but it says that the ossaudiodev.write()
method accepts data as a raw string. It doesn't explain what the
string should be like, and the oss
Hi,
João Abrantes wrote:
Good evening,
I am making an online game that stores its data in a mysql database. The
thing is that I can't allow the players to interact directly with the
important tables of database (they could cheat if I give them access) so
I only allow them to write on a table
On 2009-04-14 18:27, P.J. Eby wrote:
> At 05:02 PM 4/14/2009 +0200, M.-A. Lemburg wrote:
>> I don't see the emphasis in the PEP on Linux distribution support and the
>> remote possibility of them wanting to combine separate packages back
>> into one package as good argument for adding yet another s
Good evening,
I am making an online game that stores its data in a mysql database. The thing
is that I can't allow the players to interact directly with the important
tables of database (they could cheat if I give them access) so I only allow
them to write on a table named commands and then a
On Apr 14, 7:21 pm, Luis Alberto Zarrabeitia Gomez
wrote:
> It's more than that. Python's following the rules here. Maybe it could be
> documented better, for those without a background in logic/discrete
> mathematics,
> but not changed.
Agreed.
I'd like to guess that in 93.7% of cases, when a
Hello,
I'm making a statistics tracking application and was wondering how my
chosen data model design would affect performance. I'm not sure if
I'm breaking up my objects into too granular a level in the interests
of flexibility.
class ParentStats
"""Summary level groups of stats"""
class C
On 2009-04-12, Gabriel wrote:
> I'm python newbie and i need to write gui for my school work in python.
> I need to write it really quick, because i haven't much time .)
> So question is, which of gui toolkits should i pick and learn? I heard
> PyGTK and Glade are best for quick gui programming?
Thanks Dave for your thoughtful remarks, which you sent right when I
was writing a response to the previous posts.
I was wondering about a kind "mutable float"; so you're right, it's
not fully a float, because it's mutable. I'd like to have an object
that behaves like a float in numerical calcula
> 1) Rake - is there an equivalent of Rake? I've seen a bit about SCons,
> and it looks really nice, but it seems geared towards being a Make
> replacement for C/C++ rather than something that's used to work with
> Python itself. Is there anything like a Python build tool?
Depends on what you want
Thank you all for your input. It is not yet obvious how to achieve
the goal/need that I had in mind in the original post. Basically, I
would need to be able to calculate the derive() function of Peter, but
without knowing what arguments are passed to the function f under
study. Here is why:
I'
Kegan wrote:
> I use iPython installed from macport. When I am in the iPython shell,
> I do the following:
>
>
> In [8]: from datetime import timedelta
>
> In [9]: timedelta??
> Type: type
> Base Class:
> String Form:
> Namespace: Interactive
> File: /opt/local
alejandro wrote:
I would like to import a pdf in a wxPython widget, but didn't find any
solution. The imported PDF should work like if it were open in IE or
Mozilla... Sugestions? Solutions?
wxPython has several options, all shown in the wxPython demo !!
( IE activeX, pdf-activeX )
btw ther
On Tue, Apr 14, 2009 at 10:01 AM, Ritwik wrote:
> Hi all,
> I'm doing some work in programming languages and I'm looking for a
> short history of python development, from the point of view of the
> initial development of the syntax. I know I can go through the mailing
> lists and news groups (and
eric.le.bi...@spectro.jussieu.fr wrote:
It looks like what is needed here are a kind of "mutable float". Is
there a simple way of creating such a type? I don't mind changing the
value through x.value =.23 instead of x = 1.23... :)
On Apr 14, 3:03 pm, eric.le.bi...@spectro.jussieu.fr wrote:
On 4/14/2009 3:01 AM blahemailb...@gmail.com apparently wrote:
1) Rake - is there an equivalent of Rake? I've seen a bit about SCons,
and it looks really nice, but it seems geared towards being a Make
replacement for C/C++ rather than something that's used to work with
Python itself. Is there any
More info:
http://sourceforge.net/mailarchive/forum.php?thread_name=A46CBF978138744AAC019E6FF055EAB70F30AE%40apatlelsmail08.elsys.gtri.org&forum_name=tortoisehg-develop>
Alan Isaac
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 14, 2009 at 10:02 AM, Terry Reedy wrote:
> greg wrote:
[...]
fwiw, the following python script could be used, when run from the
Tests directory, to selectively run the numbered tests:
- runtests.py
import glob
import os
import subprocess
fr
Hi there, Ruby transfuge too.
> Although I'm not 100% new to Python, most of my experience using high-
> level languages is with Ruby. I had a job doing Rails web development
> a little ways back and I really enjoyed it. At my current workplace
> though, we're looking at using Python and I'm tryin
Hi
> > 1) Is there anything like a Python build tool? (Or do I
> > even need something like that?)
>
> If you're going to run the python source code, you don't need anything.
> Python builds what it needs automagically. Some tools exist to build
> stand-alone executables though, if you'd like to do
> I get the following error: "socket.error: [Errno 22] Invalid
> argument". So it complains about the multicast address.
The fragment
py> import socket
py> s = socket.inet_pton(socket.AF_INET6, "ff02::1")
py> sock = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
py> sock.bind(('', 9090))
py> s
Quoting John O'Hagan :
> An exception, or at least a specific mention of the case of empty iterables
> in the docs (as Tim Chase suggested), would have baffled me less than my
> program telling me that the same items were both ubiquitous and entirely
> absent from a list of sets!
Well, they _w
I would like to import a pdf in a wxPython widget, but didn't find any
solution. The imported PDF should work like if it were open in IE or
Mozilla... Sugestions? Solutions?
P.S.
I would like to thank Dennis Lee Bieber for the help about parallel ports...
I forgot to do it :-(
--
http://ma
On Tue, 14 Apr 2009, Carl Banks wrote:
> On Apr 12, 10:45 am, Tim Chase wrote:
> > > That's why you ask "Do you have any books called 'Robinson Crusoe'?"
> > > rather than "Are all your books called 'Robinson Crusoe'?".
> >
> > Mu. If I don't have any books..."Have you stopped beating all
> > you
On Apr 14, 10:34 am, Ross wrote:
> On Apr 14, 5:57 am, a...@pythoncraft.com (Aahz) wrote:
>
>
>
> > In article
> > ,
>
> > Ross wrote:
> > >On Apr 13, 9:08=A0am, a...@pythoncraft.com (Aahz) wrote:
> > >> In article
> > >> > >com>,
> > >> Ross =A0 wrote:
>
> > >>>I'm sorry...my example was pro
On Apr 14, 5:57 am, a...@pythoncraft.com (Aahz) wrote:
> In article ,
>
>
>
> Ross wrote:
> >On Apr 13, 9:08=A0am, a...@pythoncraft.com (Aahz) wrote:
> >> In article >com>,
> >> Ross =A0 wrote:
>
> >>>I'm sorry...my example was probably a bad one. A better example of
> >>>output I would like wou
ANNOUNCING Tahoe, the Least-Authority Filesystem, v1.4
The allmydata.org team is pleased to announce the release of version
1.4.1 of "Tahoe", the Lightweight-Authorization Filesystem. This is the
first release of Tahoe-LAFS which was created solely as a labor of love
by volunteers -- it is no lon
> I'm doing some work in programming languages and I'm looking for a
> short history of python development, from the point of view of the
> initial development of the syntax. I know I can go through the mailing
> lists and news groups (and I am doing that at the moment), and the
> python history bl
> I have a subclass of int where I want all the standard arithmetic
> operators to return my subclass, but with no other differences:
>
> class MyInt(int):
> def __add__(self, other):
> return self.__class__(super(MyInt, self).__add__(other))
> # and so on for __mul__, __sub__, e
Hi all,
I'm doing some work in programming languages and I'm looking for a
short history of python development, from the point of view of the
initial development of the syntax. I know I can go through the mailing
lists and news groups (and I am doing that at the moment), and the
python history blog
greg wrote:
Terry Reedy wrote:
Does it work with 3.0?
As it stands, almost certainly not. But you're welcome
to try running it through 2to3 and see what happens.
Relevant libraries would have to be available for
3.0 as well -- not sure what the state of play is
there.
Probably something is
On Apr 14, 12:32 am, Steven D'Aprano
wrote:
> On Tue, 14 Apr 2009 00:15:18 -0700, Eduardo wrote:
> > Hello all,
>
> > I googled a lot but couldn't find anything that i could consider a
> > possible solution (though i am fairly new to the language and i think
> > this is the main cause of my failur
giohappy wrote:
Hello everyone.
I'm trying to use subprocess module to launch a Windows console
application. The application prints some results to standard output
and then waits for the user to press any key to terminte. I can't
control this behaviour, as the application is not mine...
I'm stuck
eric.le.bi...@spectro.jussieu.fr wrote:
> Alternatively, I'd be happy with a way of handling numerical
> uncertainties in Python calculations (such as in "calculate the value
> and uncertainty of a*sin(b) knowing that a=3.0 +/- 0.1 and b=1.00 +/-
> 0.01").
Naive no warranties implementation:
fr
At 05:02 PM 4/14/2009 +0200, M.-A. Lemburg wrote:
I don't see the emphasis in the PEP on Linux distribution support and the
remote possibility of them wanting to combine separate packages back
into one package as good argument for adding yet another separate hierarchy
of special files which Pytho
Christian Heimes wrote:
eric.le.bi...@spectro.jussieu.fr wrote:
Hello,
Is there a way to easily build an object that behaves exactly like a
float, but whose value can be changed? The goal is to maintain a list
[x, y,…] of these float-like objects, and to modify their value on the
fly (with som
Hello everyone.
I'm trying to use subprocess module to launch a Windows console
application. The application prints some results to standard output
and then waits for the user to press any key to terminte. I can't
control this behaviour, as the application is not mine...
I'm stuck at the very first
eric.le.bi...@spectro.jussieu.fr wrote:
> Hello,
>
> Is there a way to easily build an object that behaves exactly like a
> float, but whose value can be changed? The goal is to maintain a list
> [x, y,…] of these float-like objects, and to modify their value on the
> fly (with something like x.v
eric.le.bi...@spectro.jussieu.fr wrote:
> It looks like what is needed here are a kind of "mutable float". Is
> there a simple way of creating such a type? I don't mind changing the
> value through x.value = 1.23 instead of x = 1.23... :)
>
> On Apr 14, 3:03 pm, eric.le.bi...@spectro.jussieu.fr
On Tue, Apr 14, 2009 at 9:03 AM, wrote:
> Hello,
>
> Is there a way to easily build an object that behaves exactly like a
> float, but whose value can be changed? The goal is to maintain a list
> [x, y,…] of these float-like objects, and to modify their value on the
> fly (with something like x.
Hi everybody,
I'm creating my first app (SixA @ http://www.launchpad/gsixaxis) and I have
gtk.combobox to chose a profile. When a profile is chosen I save the
profiles name as a variable, and now I want to combine a command with the
variable.
Lets say that the user choses th profile firefox. This
It looks like what is needed here are a kind of "mutable float". Is
there a simple way of creating such a type? I don't mind changing the
value through x.value = 1.23 instead of x = 1.23... :)
On Apr 14, 3:03 pm, eric.le.bi...@spectro.jussieu.fr wrote:
> Hello,
>
> Is there a way to easily build
Tim Chase wrote:
I still prefer "Return False if any element of the iterable is not
true" or "Return False if any element in the iterable is false"
because that describes exactly what the algorithm does. Granted,
anybody with a mote of Python skills can tell that from the algorithm,
but if you
On 2009-04-07 19:46, P.J. Eby wrote:
> At 04:58 PM 4/7/2009 +0200, M.-A. Lemburg wrote:
>> On 2009-04-07 16:05, P.J. Eby wrote:
>> > At 02:30 PM 4/7/2009 +0200, M.-A. Lemburg wrote:
>> >> >> Wouldn't it be better to stick with a simpler approach and look for
>> >> >> "__pkg__.py" files to detect na
On Apr 12, 10:45 am, Tim Chase wrote:
> > That's why you ask "Do you have any books called 'Robinson Crusoe'?" rather
> > than "Are all your books called 'Robinson Crusoe'?".
>
> Mu. If I don't have any books..."Have you stopped beating all
> your wives?" The question makes the presumption that
Arnaud Delobelle wrote:
> "andrew cooke" writes:
>> Arnaud Delobelle wrote:
>>> class MyInt(int):
>>> for op in binops:
>>> exec binop_meth % (op, op)
>>> for op in unops:
>>> exec unop_meth % (op, op)
>>> del op
>>
>> what's the "del" for?
>
> Without it, 'op
I use iPython installed from macport. When I am in the iPython shell,
I do the following:
In [8]: from datetime import timedelta
In [9]: timedelta??
Type: type
Base Class:
String Form:
Namespace: Interactive
File: /opt/local/Library/Frameworks/Python.framework/
1 - 100 of 139 matches
Mail list logo