> What you can't do (that I really miss) is have a tree of assign-and-test
> expressions:
>
> import re
> pat = re.compile('some pattern')
>
> if m = pat.match(some_string):
> do_something(m)
> else if m = pat.match(other_string):
> do_other_t
On 21 fév, 23:19, John Henry <[EMAIL PROTECTED]> wrote:
> On Feb 21, 2:06 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote:
>
>
>
> > John Henry wrote:
> > > On Feb 21, 1:48 pm, John Henry <[EMAIL PROTECTED]> wrote:
> > >> On Feb 21, 1:43 pm, mrste
On 21 fév, 23:06, Jeff Schwab <[EMAIL PROTECTED]> wrote:
> John Henry wrote:
> > On Feb 21, 1:48 pm, John Henry <[EMAIL PROTECTED]> wrote:
> >> On Feb 21, 1:43 pm, mrstephengross <[EMAIL PROTECTED]> wrote:
>
> >>> Hi all. In C, an assignment state
On 21 fév, 13:57, Paul Boddie <[EMAIL PROTECTED]> wrote:
> On 21 Feb, 13:04, [EMAIL PROTECTED] wrote:
>
> > re DLing source
>
> > As a "solution" to the problem of wanting a program on my computer, it
> > sucks.
>
> It doesn't suck if you
I'm opening up a subprocess like this where slave.py is a text based
app that receives commands and responds with output:
r, w, e = popen2.popen3('python slave.py')
I need to send slave.py a command and see the output,
so I'll do something like:
w.write("command here")
then i'll try this:
w.flus
On Feb 21, 7:35 pm, "Bronner, Gregory" <[EMAIL PROTECTED]>
wrote:
you can do this using numpy and scipy
> fairly easily, and you can transform PIL arrays into Numpy arrays pretty
> quickly as well.
>
i can use numpy ndarray or matrix once i have a PIL array with
elements
hi guys
i am trying out PCA analysis using python.I have a set of
jpeg(rgbcolor) images whose pixel data i need to extract and make a
matrix .( rows =num of images and cols=num of pixels)
For this i need to represent an image as an array.
i was able to do this using java's BufferedImage as below
I am working on a PEP and would appreciate comment. The proposal is
available at
http://python.timehorse.com/PEP_-_Application_Priority.reST
and is repeated below:
-
:PEP:
:Title: Adding Priority Scheduling feature to the subprocess module
:Version: $Rev: 93 $
:Last Modified: $Date: 2
On Feb 19, 9:49 pm, Kay Schluehr <[EMAIL PROTECTED]> wrote:
> Building a
> Python VM in a high level language is certainly not harder than
> creating a Scheme interpreter.
Does VM = interpreter?
Are you saying implementing a toy Python interpreter is not any harder
than implementi
hi, i get this error while using
web.py and cheetah.
how to fix this? happens everytime regularly
thanks
Traceback (most recent call last):
File "/home/mark/work/pop/web/webapi.py", line 313, in wsgifunc
result = func()
File "/home/mark/work/pop/web/request.py", line 131, in
func = lambd
On 19 fév, 21:49, [EMAIL PROTECTED] wrote:
> On Feb 19, 5:17 am, Bruno Desthuilliers
>
>
> [EMAIL PROTECTED]> wrote:
> > Diez B. Roggisch a écrit :> [EMAIL PROTECTED] schrieb:
> > >> I'm a little dissatisfied, and just thinking aloud.
>
> >
On Feb 8, 4:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
> When signal is caught handle_shutdown_signal is called. At that point
> SHUTDOWN_PERFORMED will ALWAYS be False. Normally all you do in this function
> is to set SHUTDOWN_PERFORMED to True and have a test somewhe
http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#what-is-...
>
> George
I'm very excited about PyPy. It would still be nice to see a
nice succinct list of major design principles of Python
implementations somewhere.
chris
--
http://mail.python.org/mailman/listinfo/python-list
I'm learning Scheme and I am amazed how easy it is to start building a
half baked Scheme implementation that somewhat works.
After knowing Python for *years* I have no idea how to actually
implement the darn thing.
Does this have to be true? Beneath the more complex syntax are there
a few core d
I will be presenting a tutorial on matplotlib a this year's pycon. If
you are coming to the conference, are are already in the Chicago area,
you may want to consider signing up for the tutorial
http://us.pycon.org/2008/tutorials/
Tomorrow (Monday Feb 18th) is the deadline for registration. He
Most of the other questions have already been answered, so I'll tackle
this one:
On Feb 17, 8:36 pm, [EMAIL PROTECTED] wrote:
> Google's great, but it has no truth meter. Do I inherit from Frame? Or
> is that a big mistake. (Both positions repeated frequently.)
Inherit from F
On Feb 18, 5:30 am, "W. Watson" <[EMAIL PROTECTED]> wrote:
> I wonder why he uses it?
He uses it because Pmw does a lot of heavy lifting for you when
designing Tkinter apps. Pmw adds things like widgets pre-populated
with scrollbars and labels and automatic widget/label align
On 17 fév, 20:38, [EMAIL PROTECTED] wrote:
(snip)
> What's not in the instructions is what directory should I be in when I
> download? Where should I put the ".bz2" file? What dir for running the
> make files?
Neither are the basic shell commands like cd, tar etc. Nothi
On 16 fév, 11:35, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
(snip)
> If
> you're not a native English speaker, please say so
Actually, from looking at the OP's GoogleGroup profile, I think we can
safely assert he's not a native English spe
On Feb 17, 9:29 am, Francesco Bochicchio <[EMAIL PROTECTED]> wrote:
>
> Anyway, Tk() already opens a frame, so in the first example the buttons
> are created inside that frame, while in the second example two frames
> are created: the one creaded by Tk() il left empty but
If you don't care about the address of the sender, e.g. you are not
going to send anything back, is there an advantage to using recv()?
Or, as a matter of course should you always use recvfrom() with udp
sockets?
I don't know of a reason why you couldn't use recvfrom() all the time,
and that is w
Hi,
I just got a new computer with windows vista, big mistake,
I install python 2.4 ok, but the win32 package keeps saying it cannot
find the python instaltion in the registry, help!
-Ted
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 16, 6:50�pm, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Feb 16, 5:51 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote:
>
> > Carl Banks wrote:
> > > On Feb 16, 3:03 pm, Lie <[EMAIL PROTECTED]> wrote:
> > >> Although rationals have its limitations
On Feb 16, 12:35�pm, Lie <[EMAIL PROTECTED]> wrote:
> Would all these problems with floating points be a rational reason to
> add rational numbers support in Python or Py3k? (pun not intended)
>
> I agree, there are some numbers that is rationals can't represent
> (
On Feb 16, 6:21 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
> Please use a mailer/news-agent that preserves whitespace on the
> beginning of the line, and make sure you don't use tabs but spaces to
> indent.
>
> Apart from that - why don't
Here is the example above converted to a more straightforward udp
client that isolates the part I am asking about:
import socket, sys
host = 'localhost' #sys.argv[1]
port = 3300
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM
> See Subject. It's a simple txt file, each line is a Python stmt, but I need
> up to four digits added to each line with a space between the number field
> and the text. Perhaps someone has already done this or there's a source on
> the web for it. I'm not yet into files with Python. A sudden need
On Feb 13, 10:50 pm, Lalit <[EMAIL PROTECTED]> wrote:
> I need to write a program which would transfer files under one folder
> structure (there are sub folders) to single folder.
find /fromdir -exec mv {} /todir \; -print
Pete
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 13, 12:53 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Wed, 2008-02-13 at 10:40 -0800, [EMAIL PROTECTED] wrote:
> > But why doesn't it work when you make that change?
>
> I can't answer that question, because it *does* work when you make that
> chang
On Feb 13, 9:48 am, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Wed, 2008-02-13 at 07:31 -0800, [EMAIL PROTECTED] wrote:
> > return re.match("^1?$|^(11+?)\1+$", convert)
>
> That needs to be either
>
> return re.match(r"^1?$|^(11+?)\1+$", conve
Hey!
I installed a few python modules through the freebsd ports, but
when I try to import them in the interpreter it says "module xxx not
found". This seems to happen for some modules and not for the others.
ex:- I installed psyco and parallel python which seem to be found but
then scipy, PIL a
On 12 fév, 21:35, Dennis Kempin <[EMAIL PROTECTED]> wrote:
> Santiago Romero schrieb:
(snip - others already answered)
> > PS: I need it for a concrete case in a game scripting language I'm
> > writing, so that I can call functions like "CHANGE_PLAYER_VALUES( "
On Feb 12, 1:52 am, Michael Robertson <[EMAIL PROTECTED]> wrote:
> Where is the python equivalent of:
>
> http://search.cpan.org/~fxn/Algorithm-Combinatorics-0.16/Combinatoric...
>
> combinations (with and without repetition)
> variations (with and without repetition)
>
On Feb 11, 11:15�pm, "W. Watson" <[EMAIL PROTECTED]> wrote:
> I thought I try to step through some simple Python code I wrote with IDLE
> using Debug. I'm at the early stages of learning Python. I used the shell to
> Run, then clicked on Debug->Debugger. That bro
On Feb 11, 9:34 am, ibloom <[EMAIL PROTECTED]> wrote:
> I've been trying for a couple days to build a program using pyObjC on
> a mac, I'm stuck on this error:
>
> : inconsistent use of tabs and spaces in indentation
> Traceback (most recent call last):
&
On Feb 10, 4:30 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > I want to make a little Python utility where a user can enter the
> > unicode numerical code and get the actual symbol back in utf-8.
>
> > For example, a user could enter something like u22
I want to make a little Python utility where a user can enter the
unicode numerical code and get the actual symbol back in utf-8.
For example, a user could enter something like u221E
And get back ∞
Now, this does seem to work:
>>> print u"\u221E"
∞
However how can I change it so it works with a
Would a wrapper function be out of the question here?
def MyDivision(num, denom):
if denom==0:
return "NaN"
else
return num / denom
--
http://mail.python.org/mailman/listinfo/python-list
I'm replacing all occurrences of the character in the string with '!',
which in turn is the new string, s2.
I'm also not allowed to use rfind or rindex or replace() because we
are supposed to be learning about for loops.
Thanks for the advices so far, I will try some more on my own.
--
http://ma
On Feb 10, 12:06 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi, I'm trying to write a for loop in place of the string
> method .replace() to replace a character within a string if it's
> found.
>
> So far, I've got
>
> s = raw_inpu
Hi, I'm trying to write a for loop in place of the string
method .replace() to replace a character within a string if it's
found.
So far, I've got
s = raw_input("please enter a string: ")
c = raw_input("please enter a character: ")
b_s = s[::-1] #string backwards
found = False #character's exist
On Feb 8, 2:53�pm, Lou Pecora <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> �Grant Edwards <[EMAIL PROTECTED]> wrote:
>
> > On 2008-02-08, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>
> > > � � � A Parsec is a fixed value (whic
On Feb 8, 4:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
> When signal is caught handle_shutdown_signal is called. At that point
> SHUTDOWN_PERFORMED will ALWAYS be False. Normally all you do in this function
> is to set SHUTDOWN_PERFORMED to True and have a test somewhe
On Feb 8, 7:04 am, Larry Bates <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I'm developing a program that runs using an asyncore loop. Right now
> > I can adequately terminate it using Control-C, but as things get
> > refined I need a better way to
On Feb 7, 3:13 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Thu, 07 Feb 2008 16:16:11 -0200, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribió:
>
> > On Feb 7, 11:38 am, [EMAIL PROTECTED] wrote:
> > I don't see why you should get eit
I'm developing a program that runs using an asyncore loop. Right now
I can adequately terminate it using Control-C, but as things get
refined I need a better way to stop it. I've developed another
program that executes it as a child process using popen2.Popen4(). I
was attempting to use signals
On 7 fév, 22:16, Steve Holden <[EMAIL PROTECTED]> wrote:
> Diez B. Roggisch wrote:
> >> self.tasks[:] = tasks
>
> >> What I do not fully understand is the line "self.tasks[:] = tasks". Why
> >> does
> >> the guy who coded this d
On Feb 7, 11:38 am, [EMAIL PROTECTED] wrote:
> Hallo,
>
> I'm after
>
> [[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]]]
>
> (NxN 'grid', 5x5 in that example, and while typing this up i figured out
> how to get it, but
On Feb 7, 9:06 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> Ryszard Szopa wrote:
> > On Feb 5, 9:30 am, [EMAIL PROTECTED] wrote:
>
> >> I don't know the exact details but I think the issue is the dynamic
> >> nature of Python makes it impossible to c
On Feb 7, 2:37 am, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> Hi folks, just went through this thread and a related one from 2006
> and I was wondering what the best solution is for using these string
> metrics in a database search. If I want to query the database fo
Hi, All:
Many thanks for the excellent leads. I've also found several
functions to find phonetic similarity between English names: the
mentioned above soundex, then, also, one called metaphone. I'm now
thinking of the best way to use some combination of these functions.
--
http://mail.python.or
On Feb 5, 9:14 pm, Bernard <[EMAIL PROTECTED]> wrote:
> On 5 fév, 10:09, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Are there any good approaches of doing this kind of thing that I've
> > missed, or am I resigned to having HTML and Pyt
On 6 fév, 21:06, [EMAIL PROTECTED] wrote:
> Hi all,
>
> So I understand that properties belong to a class not an instance, but
> nonetheless I want to add properties to an instance.
While this is technically possible (I tried a couple years ago), it
requires hacking the __getattrib
Are there any Python libraries implementing measurement of similarity
of two strings of Latin characters?
I'm writing a script to guess-merge two tables based on people's
names, which are not necessarily spelled the same way in both tables
(especially the given names). I would like some function
Use full info and intelligent games and etc. just click
www.freeonlinegames.c-o.in
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 5, 10:04 pm, xkenneth <[EMAIL PROTECTED]> wrote:
> All,
>
> I'm trying to build a simple web application, but i still need
> things like sessions and Ajax. I tried to create a Zope product, but I
> honestly can't think of anything more cryptic. I reall
On Feb 5, 4:54 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> Okay, you know how hard it is to create a software JIT compiler for a
> language as dynamic as Python? It's REALLY HARD, which is why it hasn't
> already been done[1]. Now you want tha
On Feb 5, 3:56 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
> On Feb 5, 8:01 pm, Istvan Albert <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Feb 5, 12:31 pm, dmitrey <[EMAIL PROTECTED]> wrote:
>
> > > Hi all,
> > > the urlhttp://torq
On Feb 5, 11:44 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> >> Why not a Python COMPILER?
>
> > What about a Python JIT hardware chip, so the CPU doesn't have to
> > translate. Although it seems to me that with today's dual a
> Why not a Python COMPILER?
What about a Python JIT hardware chip, so the CPU doesn't have to
translate. Although it seems to me that with today's dual and quad
core processors that this might be a mute point because you could just
use one of the cores.
--
http://mail.python.org/mailman/listi
Hi,
This isn't a strictly Python question but I wonder if someone could
give me some clues here. I've been writing a number of stand-alone
apps that use CherryPy as an embedded web server for displaying
processed data and interacting with the application. To go along with
this I've also been usi
On 4 fév, 18:26, Kay Schluehr <[EMAIL PROTECTED]> wrote:
> On Feb 3, 7:17 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > I'm considering writing a little interpreter for a python-like
> > language and I'm looking for name suggestions. :-)
>
> > Basically
I can understand that. But look at the bright side, you don't have to
rely on windows authentication, you just need an open port. Now i
don't know what you are building, but with a client/server setup you
can also get to other data that you might need, like mouse movement to
detect for activity, us
Well, i guess you will need a process on each machine you need to
monitor, and then you do have a client server setup.
This can be easily accomplished with fx Pyro (http://
pyro.sourceforge.net/) for communication, and the Win32 Python library
(https://sourceforge.net/projects/pywin32/) for creati
On 4 Feb, 18:45, USCode <[EMAIL PROTECTED]> wrote:
> Wouldn't it be handy if there was a web framework that allowed you to
> create pages and control the interface like you would using a
> client-side GUI framework such as Tkinter?
>
> The framework would need a small,
Hi all,
I apologize if this question was already answered before but I was
unable to find a proper solution to my problem. Anyways, I am trying
to run shaderobjects.py on Windows (Python 2.5.1) by just double-
clicking, and I got the following error:
[...]
File "/usr/lib/python2.5/site-packages/O
hi all
I'm now meeting some problem when using threading to test whether or
not a proxy is good or not
and the total number of proxies is just 60
but each time my programme stopped just at approaching the end,
say,
for each proxy I made a proxy
but it just stopped working at maybe 58 or 59 or some
Hi David
I am not familiar with ImpulseC.
I think it may be unlikely for Python to replace MATLAB - maybe Python
has less specialized libraries than MATLAB but Python has the width of
applications. I will be hardpressed to think of a convincing argument
to teach MATLAB as a replacement of Python/
On 31 jan, 02:57, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> 2008/1/30, J. Peng <[EMAIL PROTECTED]>:
>
> > Hello,
>
> > Is there a site for python,which collects most kinds of python modules?
> > like CPAN for Perl.
> > Sometime I wan
On Jan 31, 3:09 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> > mysets = [set(range(x[2],x[1])) for x in mylist]
>
> This is pretty horrible, each set can be arbitrarily large,
> i.e. if x[2] and x[1] a
On Jan 31, 2:48 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On Jan 31, 8:12 am, erikcw <[EMAIL PROTECTED]> wrote:
>
> One way would be to use sets and check for intersection:
>
> for idx, s in enumerate(mysets):
> for next_idx, next_s in
On Jan 31, 8:12 am, erikcw <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a list of numbers each with a +/- margin of error. I need to
> identify which ones overlab each other.
>
> For example:
> 55 +/- 3
> 20 +/- 2
> 17 +/- 4
> 60 +/- 3
>
> #base, max, mi
Hello,
Is there any chance that i could compile python programs to java (.jar
[java bytecode]) so that i could run them with full support (no
interpreter) in a wireless device (talking about mobiles eg. nokia,
ericsson).
I am aware of jython, however i am not elegible of finding a proper
article c
Thank you very much for the great anwsers. You guys save my sleep
today.
--
http://mail.python.org/mailman/listinfo/python-list
I supposed the below code will print seven 2 and generate the list li
without 2.
Strangely it only print four 2. If you change the number of 2 in the
list, the results are all beyond expectation.
I know the other way to achieve the expected goal, but why this is
happening? Could somebody enlight m
On Jan 29, 12:27 pm, Rob Wolfe <[EMAIL PROTECTED]> wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> > I am having some issues writing a telnet program, using telnetlib. I
> > am not sure if it is the telnet on the connections end or it is my
> >
On 28 jan, 11:21, "Russ P." <[EMAIL PROTECTED]> wrote:
> On Jan 28, 1:53 am, Bruno Desthuilliers
>
>
> [EMAIL PROTECTED]> wrote:
> > Russ P. a écrit :
>
> > > On Jan 27, 5:03 pm, Paddy
>
> > >> If static typing is optional then a
On 29 jan, 21:23, epsilon <[EMAIL PROTECTED]> wrote:
> All:
>
> I'm running into trouble figuring this one out. It seems that my
> decision routine is not working as intended. Does anyone know why my
> output continues to utilize the "else" portion of the
I am having some issues writing a telnet program, using telnetlib. I
am not sure if it is the telnet on the connections end or it is my
program.
A little background, when I log in straight from the Linux Command
prompt. The only thing I get is a blinking cursor. Then I type in my
command 'FOO' ent
On Jan 29, 8:34 am, William McBrine <[EMAIL PROTECTED]> wrote:
> Look at this -- from Python 2.5.1:
>
> >>> a = [1, 2, 3, 4, 5]
> >>> for x in a:
>
> ... if x == 3:
> ... a.remove(x)
> ... print x
> ...
> 1
> 2
> 3
hello,
i have problem manipulating mySQL data. When i add values in a Table,
i can recieve them instantly but when i check the table from another
script, the new values dont exist.
i'm not experienced in sql dbses so the problem might be something
outside python.
example (i do this to add values,
On 28 jan, 22:32, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> 1. yes i've tried that technique but its annoying, the user can easily
> stop the redirection and not "elegant".
It's a very canonical technique with HTTP (at least after a successful
PO
On 28 jan, 22:28, Yansky <[EMAIL PROTECTED]> wrote:
> I asked my hosting company if they would upgrade Python on my server
> to the latest version. They responded with:
>
> "Sorry no. We tend to stick with what comes packaged with the unix
> distribution to ease mainte
1. yes i've tried that technique but its annoying, the user can easily
stop the redirection and not "elegant".
2. yes i'm aware of that, however what i've mentioned above is just an
example, it's actually way more serious.
guess i'll have to bare with it.
--
http://mail.python.org/mailman/listin
sorry for creating a new post but this is totally different from the
previous one.
Here is the problem (which is very hard to explain, so i will use a
paradigm): i submit a form and the post variable is being sent to the
page test.py. then the test.py retrieves the POST and print it to the
page. n
Thanks for that! i found the variable in "ALL_HTTP" and it's working
now.
Thanks again..
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the reply.
1) CGI so i'm doing it right.
2) this is impossible as i'm doing the exact same thing with another
language and it utterly works.
3) the same as above
4) no..
this gets nerve breaking!
--
http://mail.python.org/mailman/listinfo/python-list
Hello all!
I was wondering, if there is a way to retrieve the referer url with
python (web-based).
I tried this:
import os
print os.getenv('HTTP_REFERER')
but it's not working, even thought other http variables do function,
this one is always a None.
Thanks in advance.
--
http://mail.python.or
Hello -
I'm still using Python 2.4. In my code, I want to encrypt a password
and at another point decrypt it. What is the standard way of doing
encryption in python? Is it the Pycrypto module?
Roger
--
http://mail.python.org/mailman/listinfo/python-list
On 25 jan, 12:50, [EMAIL PROTECTED] wrote:
> Can someone tell me the minimum requitements for Python as I can't
> find it anwhere on the site. I have 3 PC's which are only 256mb RAM,
> wanted to know if this was sufficenent.
The first machine I installed Python on was a penti
e website at:
http://www.eurosis.org/cms/index.php?q=node/461
We are looking forward to see you in Porto next April.
Kind regards,
João Manuel R. S. Tavares
University of Porto
[EMAIL PROTECTED]
www.fe.up.pt/~tavares
--
http://mail.python.org/mailman/listinfo/python-list
Hello all,
I have two thing I wish to accomplish, First, put an icon in a gtk.Entry as in
many search boxes. Second put a gtk.Checkbox in a gtk.ComboboxEntry. On the
later I thought I could get a handle to the Combobox tree and then add a column
and then column span column 1 back into column
I have a goal function that returns the fitness of a given solution. I
need to wrap that function with a class or a function to keep track of
the best solution I encounter. Which of the following would best serve
my purpose and be the most pythonic?
class Goal:
def __init__(self, goal):
On Jan 24, 9:55 am, [EMAIL PROTECTED] wrote:
>
> If your variable contains a list, then you can copy it like this:
>
> >>> l1 = [1, 2, 3]
> >>> l2 = l1[:]
> >>> l2[1] = 4
>
> As you can see now they are two distinct lists:
>
> >>>
On Jan 24, 9:36 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I have run into a bit of a subtle problem. How do I go about
> duplicating a variable (particularly a list of lists) in python. I
> was surprised when simple assignment didn't work. For example, l
I have run into a bit of a subtle problem. How do I go about
duplicating a variable (particularly a list of lists) in python. I
was surprised when simple assignment didn't work. For example, let y =
[1,2,3]
>>> x = y
>>> x[2] = 5
>>> y
[1,2,5]
It seems that simply assigning x to y allows furthe
On Jan 23, 6:12 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> sys.stdout.write("foo")
> sys.stdout.write("bar")
Diez
Thanks. Beautiful! I <3 Python!
Chris
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 23, 5:12 pm, Stef Mientki <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] wrote:
> > Hello! I am currently working on writing a simulation engine for
> > special relativity physics. I'm writing it in Python, of course. I'm
> > doing fine with the engine,
Hello! I am currently working on writing a simulation engine for
special relativity physics. I'm writing it in Python, of course. I'm
doing fine with the engine, but I want a GUI framework in which I
could use it conveniently, and test different setups on it. I'm not so
strong with GUI programming.
print "foo"
print "bar"
has a newline in between "foo" and "bar"
print "foo",
print "bar"
has a space in between "foo" and "bar"
How prevent ANYTHING from going in between "foo" and "bar" ??
(Without defining a string variable.)
Chris
--
http://mail.python.org/mailman/listinfo/python-list
601 - 700 of 4915 matches
Mail list logo