Nobody has any help for me on this one?
Let me see if I can make it clearer by using something simpler:
+---+
---| Peter |---
| +---+ |
| |
V V
On Fri, Sep 5, 2008 at 3:06 PM, aha <[EMAIL PROTECTED]> wrote:
> Can you be more specific? What is the formatting criteria? Are you
> talking about formatting the string for display or are you talking
> about the source?
Apologies for the confusion.
My concern is both. Allow me to explain:
I
Hello,
I installed (manually) the last version of mimms -which is a python
program- on an Ubuntu (8.04-server) box.
I get that:
[EMAIL PROTECTED]:~/mimms-3.2$ mimms
Traceback (most recent call last):
File "/usr/bin/mimms", line 21, in
from libmimms.core import run
File "/usr/lib/python2.
Maric Michaud wrote:
Le Friday 05 September 2008 14:33:22 J. Clifford Dyer, vous avez écrit :
On Thu, 2008-09-04 at 18:48 -0500, Robert Dailey wrote:
Thanks everyone for your help. I'm not opposed to using [key.lower()
for key in stage_map] at all, I was just curious to see if there were
any
On Fri, Sep 5, 2008 at 12:36 PM, Fredrik Lundh <[EMAIL PROTECTED]>wrote:
> Maric Michaud wrote:
>
> I suspect you are coming to conclusions a bit quickly, without taking the
>> pain of understanding the whole discussion.
>>
>
> I'm pretty sure I was the first one to post an answer in this thread,
bukzor wrote:
I was trying to change the behaviour of print (tee all output to a
temp file) by inheriting from file and overwriting sys.stdout, but it
looks like print uses C-level stuff to do its writes which bypasses
the python object/inhertiance system. It looks like I need to use
composition
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
pysqlite 2.5.0 released
===
I'm pleased to announce the availability of pysqlite 2.5.0. This is
a release with major new features.
Go to http://pysqlite.org/ for downloads, online documentation and
reporting bugs.
What is pysqlit
On 5 sep, 22:15, kaer <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I installed (manually) the last version of mimms -which is a python
> program- on an Ubuntu (8.04-server) box.
> I get that:
>
> [EMAIL PROTECTED]:~/mimms-3.2$ mimms
> Traceback (most recent call last):
> File "/usr/bin/mimms", line 21
> I'm concerned about the formatting of the string in that I do not want the
> way I split the string up in source code to affect the way the string is
> displayed to the console. In other words, in source, if I break up a single
> string into multiple lines (using carriage returns), I would expect
On Sep 6, 2:45 am, [EMAIL PROTECTED] wrote:
> Michael Palmer:
>
> > why can't it be tuple already?
>
> Because if the input list L has tuples and lists, they end having the
> same hash value:
Perhaps the OP shouldn't be constructing the hash of a mutable object.
Perhaps he would be grateful if his
Stef Mientki <[EMAIL PROTECTED]> writes:
> From: Stef Mientki <[EMAIL PROTECTED]>
> Subject: Re: pdb bug and questions
> Newsgroups: comp.lang.python
> To: "[email protected]"
> Date: Fri, 05 Sep 2008 22:06:19 +0200
>
> R. Bernstein wrote:
>> Stef Mientki <[EMAIL PROTECTED]> writes:
>>
>>
Marco Bizzarri a écrit :
On Thu, Sep 4, 2008 at 10:47 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
(...as Bruno implies, setattr(), len() et al can be and should be viewed as
generic functions.
Just a question: "generic functions" are not meant in the sense of
"generic functions" of CLOS, am
On Sep 6, 5:07 am, aha <[EMAIL PROTECTED]> wrote:
> On Sep 5, 3:00 pm, aha <[EMAIL PROTECTED]> wrote:
>
> > Dose anyone know of a cross-platform method for determining the vendor
> > of a processor? Under linux I can check /proc/cpuinfo. What I'd like
> > to be able to do is determine if a proces
En Fri, 05 Sep 2008 16:24:08 -0300, Durand <[EMAIL PROTECTED]> escribió:
I'm wondering how I could render text with PIL in which different
parts of the text are different characters. This is for a game stats
script where names are written like:
^1Red ^2Green ^3Yellow, etc.
The problem is that I
R. Bernstein wrote:
Finally, I think rpdb2 is part of the winpdb project on Sourceforge
and again has a bug tracker. My sense is that Nir Aides is very good
about handling bugs reported in winpdb/rpdb.
Yes I started with rpdb2,
and indeed Nir Aides is very helpfull,
but I think interfa
On Fri, Sep 5, 2008 at 3:58 PM, Eric Wertman <[EMAIL PROTECTED]> wrote:
> > I'm concerned about the formatting of the string in that I do not want
> the
> > way I split the string up in source code to affect the way the string is
> > displayed to the console. In other words, in source, if I break
En Fri, 05 Sep 2008 09:56:02 -0300, tarun <[EMAIL PROTECTED]>
escribió:
import subprocess,time
cmdExe = "C:\\WINDOWS\\system32\\cmd.exe"
myProcess = subprocess.Popen(cmdExe,stdin=subprocess.PIPE)
time.sleep(2)
myProcess.stdin.write('cd Desktop\r\n')
I copied the above lines of code to a file
John Machin:
> Consider this:>>> hash(123) == hash(123.0) == hash(123L)
> True
Right... Can you explain me why Python designers have chosen to build
a hash() like that?
> Try "uses all the information that is relevant to the task".
My knowledge of hash data structures seems not enough to unders
Hi
I have a Natural Language Processing (NLP) code written in python that
reads into memory a large training file and then given a sentence tags
it, using the training data. I want to put this NLP code on a server
which handles all incoming client http requests via PHP. What I want
to do is to pro
En Fri, 05 Sep 2008 12:53:12 -0300, Benjamin Watine <[EMAIL PROTECTED]>
escribió:
I'm about to develop a small python application and I wonder how to
organize files in this application.
I'm familar to java, so I'm tempted to use the same convention : 1 file
per class and 1 folders per packa
> I want to learn Python so I can make simple games. What are some good
> books that'll help me do this?
I promise that I'm not posting this to be a 81+<#:
http://www.amazon.com/s/ref=nb_ss_gw?url=search-alias%3Daps&field-keywords=python+game
Chris
--
http://mail.python.org/mailman/listinfo/pyt
Ben Lee wrote:
> hi folks --
>
> a quick python and sqlite3 performance question. i find that
> inserting a million rows of in-memory data into an in-memory database
> via a single executemany() is about 30% slower than using the sqlite3
> CLI and the .import command (reading the same data from a
On Sep 6, 7:49 am, [EMAIL PROTECTED] wrote:
> John Machin:
>
> > Consider this:>>> hash(123) == hash(123.0) == hash(123L)
> > True
>
> Right... Can you explain me why Python designers have chosen to build
> a hash() like that?
I can't channel them; my rationalisation is this:
Following the Law of
pretty self-explanatory, here's what I put in:
while stat == 0 :
pgrid#ignore, A pre-defined function
print "what cell do you want?"
varcc = raw_input
grid[varc] = 'O'
And here's what I get back:
Traceback (most recent call last):
File "C:\py_prog\Ti
Lanny wrote:
Please don't tell me that "list indices must be integers" because I know
that, Why can't I put a varible thats an integer instead?
raw_input() always returns a string. You have to convert the string into
an integer using int().
Christian
--
http://mail.python.org/mailman/list
On Sep 6, 9:30 am, John Machin <[EMAIL PROTECTED]> wrote:
> On Sep 6, 7:49 am, [EMAIL PROTECTED] wrote:
>
> > John Machin:
>
> > > Consider this:>>> hash(123) == hash(123.0) == hash(123L)
> > > True
>
> > Right... Can you explain me why Python designers have chosen to build
> > a hash() like that?
Lanny:
> ...
> varcc = raw_input
> grid[varc] = 'O'
> ...
> Why can't I put a varible thats an integer instead?
'varcc' and 'varc' are different names.
'raw_input' isn't a function call, you may want to turn that into a
function call.
varc isn't an integer, you may have to conver
On 5 сент, 19:23, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Ivan Illarionov schrieb:
>
>
>
> > On 4 сент, 21:49, Bruno Desthuilliers
> > <[EMAIL PROTECTED]> wrote:
> >> Ivan Illarionov a écrit :
>
> >>> On 4 сент, 22:59, Carl Banks <[EMAIL PROTECTED]> wrote:
> You can write code to guard
Fett <[EMAIL PROTECTED]> writes:
> I am having trouble seeing how I would post the encrypted data to a
> website and get it back without it changing some.
I don't understand why it would change. I'm a little confused though,
I didn't realize you wanted to post the data to a web site. What
exact
Benjamin Watine a écrit :
Hi,
I'm about to develop a small python application and I wonder how to
organize files in this application.
I'm familar to java, so I'm tempted to use the same convention
http://dirtsimple.org/2004/12/python-is-not-java.html
: 1 file
per class and 1 folders per pa
On Fri, 05 Sep 2008 10:22:22 -0500, David C. Ullrich wrote about why max
and min shouldn't accept a default argument:
> Think about all the previously elected female or black presidents of the
> US. Which one was the tallest?
I know the answer to that one:
All of them!
--
Steven
--
http://
On Sep 5, 5:55 pm, peyman <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a Natural Language Processing (NLP) code written in python that
> reads into memory a large training file and then given a sentence tags
> it, using the training data. I want to put this NLP code on a server
> which handles all in
On Fri, Sep 5, 2008 at 1:04 PM, castironpi <[EMAIL PROTECTED]> wrote:
> On Sep 5, 3:28 am, "Manu Hack" <[EMAIL PROTECTED]> wrote:
>> On Thu, Sep 4, 2008 at 4:25 PM, castironpi <[EMAIL PROTECTED]> wrote:
>> > On Sep 4, 2:42 pm, [EMAIL PROTECTED] wrote:
>> >> David C. Ullrich:
>>
>> >> > At least in
> Lanny:
>> ...
>> varcc = raw_input
>> grid[varc] = 'O'
>> ...
>> Why can't I put a varible thats an integer instead?
>
> 'varcc' and 'varc' are different names.
>
> 'raw_input' isn't a function call, you may want to turn that into a
> function call.
>
> varc isn't an integer, you
In my ms-word documnet, there are some calculation whihc I have to
change due to different argumnet. is there any way to embed python
code in word, so that I can write the following as a macro or
something else, then the result (i.e. 2) is shown in the word
documnet?
def f(n):
if n<2:
return
On Fri, 05 Sep 2008 22:20:06 -0400, Manu Hack wrote:
> On Fri, Sep 5, 2008 at 1:04 PM, castironpi <[EMAIL PROTECTED]> wrote:
...
>>> >The reason sum([]) is 0 is that sum( [ x ] ) - x = 0.
>>>
>>> It doesn't make sense to me. What do you set x to?
>>
>> For all x.
>
> But then how can you conclud
On Fri, Sep 5, 2008 at 11:45 PM, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Fri, 05 Sep 2008 22:20:06 -0400, Manu Hack wrote:
>
>> On Fri, Sep 5, 2008 at 1:04 PM, castironpi <[EMAIL PROTECTED]> wrote:
> ...
>The reason sum([]) is 0 is that sum( [ x ] ) - x = 0.
It doesn't make s
On Sep 5, 9:20 pm, "Manu Hack" <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 5, 2008 at 1:04 PM, castironpi <[EMAIL PROTECTED]> wrote:
> > On Sep 5, 3:28 am, "Manu Hack" <[EMAIL PROTECTED]> wrote:
> >> On Thu, Sep 4, 2008 at 4:25 PM, castironpi <[EMAIL PROTECTED]> wrote:
> >> > On Sep 4, 2:42 pm, [EMAIL
Marco Bizzarri wrote:
(...as Bruno implies, setattr(), len() et al can be and should be viewed as
generic functions.
Just a question: "generic functions" are not meant in the sense of
"generic functions" of CLOS, am I right?
it's meant in exactly that sense: len(L) means "of all len()
imple
On Fri, Sep 5, 2008 at 9:16 PM, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Marco Bizzarri a écrit :
>>
>> Just a question: "generic functions" are not meant in the sense of
>> "generic functions" of CLOS, am I right?
>
> Nope. Just "generic" in the sense that they accept any object implementi
On Sat, Sep 6, 2008 at 7:52 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Marco Bizzarri wrote:
>
>>> (...as Bruno implies, setattr(), len() et al can be and should be viewed
>>> as
>>> generic functions.
>>
>> Just a question: "generic functions" are not meant in the sense of
>> "generic function
On Sep 6, 8:02 am, "Marco Bizzarri" <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 5, 2008 at 9:16 PM, Bruno Desthuilliers
>
> <[EMAIL PROTECTED]> wrote:
> > Marco Bizzarri a écrit :
>
> >> Just a question: "generic functions" are not meant in the sense of
> >> "generic functions" of CLOS, am I right?
>
101 - 142 of 142 matches
Mail list logo