Re: list.__len__() or len(list)

2008-05-13 Thread [EMAIL PROTECTED]
On May 13, 6:57 pm, Nikhil <[EMAIL PROTECTED]> wrote: > which one is better? and why? > > __len__() is a built-in function of the list object and is updated along > with the list object elements and will be useful incase the list is very > huge. > > len() is an exter

Re: Install Python MySQL db module?

2008-05-13 Thread [EMAIL PROTECTED]
On May 13, 7:29 pm, Con <[EMAIL PROTECTED]> wrote: > Hi, how does properly install the Python MySQL db module for Mac OS > X?  I was only able to locate the Win32 modules. > > Thanks in advance, > > -Conrad I think the easiest way to would be to use macports. -- http:/

Re: Python and Flaming Thunder

2008-05-14 Thread [EMAIL PROTECTED]
On 14 mai, 00:41, John Machin <[EMAIL PROTECTED]> wrote: (snip) > IIRC the idea was so that managers could write programs in English. It > failed because nobody could write a parser that would handle something > like "The bottom line is that the stakeholder group requires t

Re: named tuple mutability

2008-05-14 Thread [EMAIL PROTECTED]
On 14 mai, 18:20, [EMAIL PROTECTED] wrote: > I'm concerned over the future of Python. Should tuples be named? Obviously not, unless they should. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class Methods Vs Any Other Callable

2008-05-14 Thread [EMAIL PROTECTED]
On 14 mai, 19:45, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > George Sakkis <[EMAIL PROTECTED]> writes: > > On May 14, 10:19 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > >> > An instance method works on the instance > >> &g

Re: Class Methods Vs Any Other Callable

2008-05-14 Thread [EMAIL PROTECTED]
On 14 mai, 16:30, George Sakkis <[EMAIL PROTECTED]> wrote: > On May 14, 10:19 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > > > An instance method works on the instance > > > A Static method is basically a function nested within a class obj

Re: HASH TABLES IN PYTHON

2008-05-14 Thread [EMAIL PROTECTED]
On 14 mai, 18:23, "Eduardo O. Padoan" <[EMAIL PROTECTED]> wrote: > On Wed, May 14, 2008 at 12:20 PM, Blubaugh, David A. > > <[EMAIL PROTECTED]> wrote: > > To Whom It May Concern, > > > I was wondering if anyone has ever worked with hash tables within

Re: Python and Flaming Thunder

2008-05-14 Thread [EMAIL PROTECTED]
On 14 mai, 08:08, Lie <[EMAIL PROTECTED]> wrote: > On May 14, 12:51 pm, Lie <[EMAIL PROTECTED]> wrote: > > > And your 8 by 8 cross compiler doesn't impress me at all, they're all > > based on x86/IA-32 architecture which is quite similar, no PowerP

Re: Python and Flaming Thunder

2008-05-14 Thread [EMAIL PROTECTED]
On 13 mai, 19:05, Dave Parker <[EMAIL PROTECTED]> wrote: > > Just to support this statement: PHP runs an order of magnitude slower than > > python. Yet a great deal (if not the majority) of dynamic sites out there > > run under PHP. All of these are unhappy customers? >

Re: Python and Flaming Thunder

2008-05-14 Thread [EMAIL PROTECTED]
> Dave Parker schrieb: > > All of the calculators and textbooks that elementary school students > > use, use "^" for powers. I've never seen this symbol in textbooks. In textbooks, powers are written using superscript. >> Just like Flaming Thunder does. I haven't > > seen "**" for powers since

Re: Python and Flaming Thunder

2008-05-14 Thread [EMAIL PROTECTED]
On 13 mai, 18:36, Dave Parker <[EMAIL PROTECTED]> wrote: (snip) > Also, in Python how do you assign a symbolic equation to a variable? > Like this? > > QuadraticEquation = a*x^2 + b*x + c = 0 quadratic_equation = lambda x, b, c : a*(x**2) + b*x + c == 0 or if x, b and c

Re: Class Methods Vs Any Other Callable

2008-05-14 Thread [EMAIL PROTECTED]
On 14 mai, 22:44, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > On 14 mai, 19:45, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > >> __new__ is a static method! > > > __new__ is a special-cased

generate all possible math expr of one term

2008-05-14 Thread [EMAIL PROTECTED]
tringMatchQ[#, "*x*"] && StringMatchQ[#, "*y*"]) &)@ [EMAIL PROTECTED]) &) /@ {arg1, arg2}) , SameQ[arg1, arg2 /. {x -> y, y -> x}], SameQ[arg1, arg2]] ] &)] &)@ [EMAIL PROTECTED]@(Table[(Times @@ # &) /@ KSubsets[#, i], {i, 1, 2}]

Re: Python and Flaming Thunder

2008-05-15 Thread [EMAIL PROTECTED]
On 15 mai, 19:30, Lie <[EMAIL PROTECTED]> wrote: > On May 15, 4:08 am, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > On 14 mai, 08:08, Lie <[EMAIL PROTECTED]> wrote: > > > > On May 14, 12:51 pm, Lie <[EMAIL PROTECTED]>

Re: Class Methods Vs Any Other Callable

2008-05-15 Thread [EMAIL PROTECTED]
On 15 mai, 17:53, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > > FWIW, I wonder why the BDFL choosed to implement __new__ as a > > staticmethod - there are probably some pretty good reasons, but not > > knowing

Re: send yield

2008-05-15 Thread [EMAIL PROTECTED]
On 15 mai, 16:40, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 9:26 am, "Dan Upton" <[EMAIL PROTECTED]> wrote: > > > On Thu, May 15, 2008 at 9:32 AM, castironpi <[EMAIL PROTECTED]> wrote: > > > Why can't I write this? > > > --

how to set python hosting !

2008-05-16 Thread [EMAIL PROTECTED]
Hi, i do have some basic python know-how. i want to tryout by actually implementing some python generated dynamic page etc. i am having websetup which runs with mysql on linux, and pythong is installed on it. so is there any ref. from where i can know how to configure my webserver for python.

Re: Thread killing - I know I know!

2008-05-16 Thread [EMAIL PROTECTED]
On May 16, 11:40 am, Roger Heathcote <[EMAIL PROTECTED]> wrote: > Hello everyone, this is my first post so hello & please be gentle! > > Despite many peoples insistence that allowing for the arbitrary killing > of threads is a cardinal sin and although I have no particular

Re: writing python extensions in assembly

2008-05-16 Thread [EMAIL PROTECTED]
On May 16, 12:24 pm, "inhahe" <[EMAIL PROTECTED]> wrote: > "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote in messagenews:[EMAIL PROTECTED] > > > > > 2. Once the code is functioning, benchmark it and find the > > bottlenecks. Replace the

Re: namespaces and eval

2008-05-16 Thread [EMAIL PROTECTED]
On 16 mai, 20:44, [EMAIL PROTECTED] wrote: > Suppose I have a function in module X that calls eval e.g, > > X.py > ___ > Def foo(bar): > Eval(bar) > ___ > > Now eval will be called using the default eval(bar,globals(),locals()) > and globals wil

Re: save dictionary for later use?

2008-05-16 Thread [EMAIL PROTECTED]
On 16 mai, 22:24, globalrev <[EMAIL PROTECTED]> wrote: > On 16 Maj, 21:22, jay graves <[EMAIL PROTECTED]> wrote: > > > On May 16, 2:17 pm, globalrev <[EMAIL PROTECTED]> wrote: > > > > i extract info from one file and put it into a dictionary. > > >

Re: can't delete from a dictionary in a loop

2008-05-16 Thread [EMAIL PROTECTED]
On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote: > Dan Upton wrote: > > for pid in procs_dict: > > if procs_dict[pid].poll() != None > ># do the counter updates > >del procs_dict[pid] > > > The problem: > > > RuntimeError: dictio

Re: can't delete from a dictionary in a loop

2008-05-16 Thread [EMAIL PROTECTED]
On 16 mai, 23:34, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote: > > > > Dan Upton wrote: > > > for pid in procs_dict: (snip) > >for pid in procs_dict.keys(): > > I'm

Re: namespaces and eval

2008-05-16 Thread [EMAIL PROTECTED]
On 16 mai, 23:23, [EMAIL PROTECTED] wrote: > Thanks for the responses. I'm well aware that the function can be > passed in the parameters, passing in the functino as an arg defeats > the purpose of what I'm going after. Why so ? > @ Arnaud - Nice. I'm not sure what

Re: Rpy Module

2008-05-16 Thread [EMAIL PROTECTED]
On May 16, 3:14 pm, Mike P <[EMAIL PROTECTED]> wrote: > Hi experts, > > I've just seen there is an R module, what i can't see easily is if you > can / how to import other modules for R into the Rpy module > > Can anyone advise on this? > > Cheers > >

Re: python script to windows exe

2008-05-19 Thread [EMAIL PROTECTED]
> but when i run the exe my program in not behaving as > it supposed to be.its generating some errors.i dont know why this > thing is happening as when i run my script it works fine.can some one > put some light here. There is nothing special in executables produced by py2exe. I mean that the debu

printing class __dict__

2008-05-19 Thread [EMAIL PROTECTED]
hi, i am a newbie. so bear wth me i wrote a program like this -- class H(object): def __init__( self): self.data =10 def e ( self ): pass def f ( self ): pass class H1(H): x2 = 11 def __init__(self): self.x = 10 class details(object): def data(self,className):

Re: Using Python for programming algorithms

2008-05-19 Thread [EMAIL PROTECTED]
On 19 mai, 15:30, Roel Schroeven <[EMAIL PROTECTED]> wrote: > Bruno Desthuilliers schreef: > > > 1/ being interpreted or compiled (for whatever definition of these > > terms) is not a property of a language, but a property of an > > implementation of a language. >

Re: Using Python for programming algorithms

2008-05-19 Thread [EMAIL PROTECTED]
On 19 mai, 18:11, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: > On May 19, 7:03 am, Bruno Desthuilliers > > > [EMAIL PROTECTED]> wrote: > > Vicent Giner a écrit : > > > > Hello. > > > > I am new to Python. It seems a very inter

Re: Using Python for programming algorithms

2008-05-19 Thread [EMAIL PROTECTED]
On 19 mai, 20:07, Vicent Giner <[EMAIL PROTECTED]> wrote: > On May 19, 6:11 pm, Henrique Dante de Almeida <[EMAIL PROTECTED]> > wrote: > (snip) > > The situation would be simpler if there were good well-known toolkits > > for optimization in python (like

Re: Using Python for programming algorithms

2008-05-19 Thread [EMAIL PROTECTED]
On 19 mai, 17:53, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: (snip) > Yes, I was actually referring to statically typed JIT-compiled > languages. Sorry about that, blame the beers that entered my digestive > system that night. :-P for beer

Re: Classmethods are evil

2008-05-19 Thread [EMAIL PROTECTED]
On 17 mai, 11:50, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > On Sat, 17 May 2008 02:33:13 -0300, Gabriel Genellina wrote: > > En Sat, 17 May 2008 01:01:50 -0300, Ivan Illarionov > > <[EMAIL PROTECTED]> escribió: > > >> After re-reading "Python is

Re: conventions/requirements for 'is' vs '==', 'not vs '!=', etc

2008-05-19 Thread [EMAIL PROTECTED]
On 19 mai, 22:29, Luis Zarrabeitia <[EMAIL PROTECTED]> wrote: (snip) > The main > concept here: identity [usually] implies equality, I really enjoyed the "usually" disclaimer !-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Write bits in file

2008-05-20 Thread [EMAIL PROTECTED]
On May 20, 12:14 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > Monica Leko <[EMAIL PROTECTED]> wrote: > > >I have a specific format and I need binary representation. Does > >Python have some built-in function which will, for instance, represent > >number 15 in

Running programs under a python program...

2008-05-20 Thread [EMAIL PROTECTED]
So I have a python program that runs a bunch of other programsit then loops forever, occasionally executing other programs. To run each of these programs my python code executes: subprocess.Popen(command_line, shell=True, stdout=fd, stderr=subprocess.STDOUT) where command_line is an appropria

Re: C-like assignment expression?

2008-05-21 Thread [EMAIL PROTECTED]
On May 21, 1:47 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > Although that solution is pretty, it is not the canonical solution > because it doesn't cover the important case of "if" bodies needing to > access common variables in the enclosing scope. (This wil

Re: Struct usage and varying sizes of h, l, etc

2008-05-21 Thread [EMAIL PROTECTED]
On May 21, 10:04 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > Yes, C defines "char" to be one byte, but it doesn't define the > size of a "byte" other than it's at least big enough to hold > one character (or something like that). In practice, a byte

Re: Python is slow

2008-05-22 Thread [EMAIL PROTECTED]
On 22 mai, 18:14, cm_gui <[EMAIL PROTECTED]> wrote: > Python is slow. Oh, a troll... > Almost all of the web applications written in > Python are slow. Zope/Plone is slow, sloow, so very slooow. Even > Google Apps is not faster. Neither is Youtube. > Facebook and

Re: Python and Flaming Thunder

2008-05-22 Thread [EMAIL PROTECTED]
On 22 mai, 18:56, Mensanator <[EMAIL PROTECTED]> wrote: > On May 22, 10:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > > > > Dave Parker <[EMAIL PROTECTED]> wrote: > > > But after getting input from children and teachers, etc, it started > &g

Re: 2 different versions of python compiling files.

2008-05-22 Thread [EMAIL PROTECTED]
On May 22, 3:56 pm, TkNeo <[EMAIL PROTECTED]> wrote: > On May 22, 2:44 pm, Hans Nowak <[EMAIL PROTECTED]> > wrote: > > > > > TkNeo wrote: > > > I am trying to upgrade from python 2.3 to 2.4 but not all machines can > > > be upgraded. Can you g

Re: Reloading function obtained via 'from xxx import yyy'

2008-05-23 Thread [EMAIL PROTECTED]
On 23 mai, 21:40, "Joel Koltner" <[EMAIL PROTECTED]> wrote: > How do I get Python to correctly re-load this function definition? > > In test.py: > > def testFunc(): > print 'My testFunc!' > > I execute... > > >>> from test im

Re: Python is slow

2008-05-23 Thread [EMAIL PROTECTED]
On 23 mai, 10:42, "inhahe" <[EMAIL PROTECTED]> wrote: > "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in > messagenews:[EMAIL PROTECTED] > > > Brad a écrit : > >> cm_gui wrote: > >>> Python is slow. > > >> It ain

Re: Storing objects in relational database

2008-05-23 Thread [EMAIL PROTECTED]
On 23 mai, 23:14, nayden <[EMAIL PROTECTED]> wrote: > and then I try to restore the object with the following code > > def success(rv): > print "success" > str = cStringIO.StringIO(libpq.PgUnQuoteBytea(rv[0][0])) > i = cPickle.load(str) > i.to

blogs, longbets.org, and education of sociology

2008-05-25 Thread [EMAIL PROTECTED]
/writ/responsible_license.html “On Microsoft Hatred” (2002-02-23) Xah Lee http://xahlee.org/UnixResource_dir/writ/mshatred155.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ ☄ -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Turn "Print" into "Print()"????

2008-05-25 Thread [EMAIL PROTECTED]
On May 25, 8:26 pm, Prisoner at War <[EMAIL PROTECTED]> wrote: > Hi, your friendly neighborhood n00b here, just wondering why on earth > the Py3K folks want to mess with a simple thing like the "print" > "command" (is that what it's called, a command?), turn

[ANN] The Python Papers is moving to use Open Journal System

2008-05-27 Thread [EMAIL PROTECTED]
Some of our readers may be wondering about the reason why we had not put up a call for interest for our next issue, Volume 3 Issue 2. The Python Papers will always welcome interests and submissions with or without a public call; just let us know by emails. The Python Papers is nearing the end of i

Re: tarfile.open(mode='w:gz'|'w|gz'|..., fileobj=StringIO()) fails.

2008-05-28 Thread [EMAIL PROTECTED]
That is right, only bz2 is affected. I am happy that i could help. ;) Regards Sebastian Noack -- http://mail.python.org/mailman/listinfo/python-list

Tuple of coordinates

2008-05-29 Thread [EMAIL PROTECTED]
Hi, i am using a software which uses python as its scripting language. I want to generate a list of coordinates more or less this way: for i in (beg, end, step): for j in (beg, end, step): for k in (beg, end, step): . Coords = ((i1,j1,k1), (i2,j2,k2), ...,(in,jn.kn)) Ca

bit parsing from file

2008-05-29 Thread [EMAIL PROTECTED]
Hello, I'm tring to make a cutting script. The problem is the following, i have a sample pattern, for example :'11101110' (0xEE) That is the sign of the data begining. How can i cut a file if the byte stepping is not the same, for example: file=open('test.bin','rb') data=file.read() print binasci

Re: bit parsing from file

2008-05-29 Thread [EMAIL PROTECTED]
On máj. 29, 18:26, Mensanator <[EMAIL PROTECTED]> wrote: > On May 29, 9:42�am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > Hello, > > > I'm tring to make a cutting script. > > The problem is the following, i have a

Re: compatability

2008-05-30 Thread [EMAIL PROTECTED]
On May 30, 8:32 pm, [EMAIL PROTECTED] wrote: > I'm currently using 3ds Max Design 2009 and Maya. Will Python and > Plone be compatible with my systems? I would really like to > incorporate this software. Thank You Bud   [EMAIL PROTECTED] Please be more specific as to what type of sy

Formatting Output

2008-06-02 Thread [EMAIL PROTECTED]
Hi, i am building a little script and i want to output a series of columns more or less like this: 1 5 6 2 2 8 2 9 5 The matter is that i don't know in advance how many columns there will be. By the way, each column will be actually FLOATs, not INTs. How can i do this ? Any help welcome. R

[Re] Checking each item in m.group()?

2008-06-02 Thread [EMAIL PROTECTED]
Hello I need to go through each line of a CSV file, and extract some fields using a regex. Then, I need to check each retrieved field, and if it looks like "", turn this into NULL so that it's correct SQL. I tried a few things, but still can't it working: #Second field might be empty ->

Re: Webpy vs Django?

2008-06-03 Thread [EMAIL PROTECTED]
> i played with webpy a bit and it is easy to get going with. but django > seems like once you have it all up and running it will be easier. > just that the barrier of entry is much higher. I can't comment on webpy, but yes, Django has a bit more of a learning curve in some areas, less in others.

[XP] Batch-print bunch of RTF files?

2008-06-04 Thread [EMAIL PROTECTED]
Hello, I have about two hundred individual RTF files to print from an XP host. Word 2000 doesn't seem to have this feature, so I'm looking for a way to print those RTF files from an ActivePython script. Would someone have some working code handy? Thank you. -- http://mail.python.org/mailm

Re: Batch-print bunch of RTF files?

2008-06-04 Thread [EMAIL PROTECTED]
On Jun 4, 12:26 pm, "[EMAIL PROTECTED]" wrote: > Hello, > > I have about two hundred individual RTF files to print from an > XP host. Word 2000 doesn't seem to have this feature, so I'm looking > for a way to print those RTF files from an ActivePytho

Re: [XP] Batch-print bunch of RTF files?

2008-06-04 Thread [EMAIL PROTECTED]
On Wed, 04 Jun 2008 11:37:30 -0500, Larry Bates <[EMAIL PROTECTED]> wrote: >Sure it does, just not the way you think. Thanks guys, that did it. I had to print in smaller batches because 200 in one shot caused Word to crash, but I got the job done. -- http://mail.python.org/mailman/listin

Re: Tuple of coordinates

2008-06-04 Thread [EMAIL PROTECTED]
On 29 mayo, 17:45, Gary Herron <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > i am using a software which uses python as its scripting language. I > > want to generate a list of coordinates more or less this way: > > > for i in (beg,

Tuples part 2

2008-06-04 Thread [EMAIL PROTECTED]
Hi Everyone, i have another question. What if i wanted to make n tuples, each with a list of coordinates. For example : coords = list() for h in xrange(1,11,1): for i in xrange(1, 5, 1) : for j in xrange(1, 5, 1) : for k in xrange(1,2,1) : coords.append((i,j,k))

Re: bit parsing from file

2008-06-04 Thread [EMAIL PROTECTED]
On May 30, 9:16 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Thu, 29 May 2008 09:37:54 -0700 (PDT), "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > Thank's for the reply, > > Yes, I have to searc

Looking for some good python learning resources on the web

2008-06-04 Thread [EMAIL PROTECTED]
What are the best sites to read to learn python? -- http://mail.python.org/mailman/listinfo/python-list

nike shoes jordans prada dunk

2008-06-05 Thread [EMAIL PROTECTED]
"China supply Nike_Air_Max_87,Nike_Air_Max_95,Nike_Air_Max_360,Nike_Air_Max_Ltd,Nike_Air_Max_TN,Nike_Air_Max_Rift,Nike_Shoes_R3,Nike_Shoes_R4,Nike_Shoes_R5,Nike_Shoes_R6,Nike_Shoes_NZ,Nike_Shoes_OZ,Nike_Shoes_TL,Nike_Shoes_Monster,Nike_Sho¬es_Energia,Nike_Shoes_Turob,Air_Force_1s etc.More please si

Re: Tuples part 2

2008-06-05 Thread [EMAIL PROTECTED]
On Jun 5, 1:37 am, [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED]: > > Do you mean something like this? (notice the many formatting > differences, use a formatting similar to this one in your code) > > coords = [] > > for i in xrange(1, 5): > for j in xrange(1, 5): >

Re: Tuples part 2

2008-06-05 Thread [EMAIL PROTECTED]
On Jun 5, 3:49 pm, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > On 5 ÉÀÎ, 01:57, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > Hi Everyone, > > > i have another question. What if i wanted to make n tuples, each with > >

Re: Why does python not have a mechanism for data hiding?

2008-06-05 Thread [EMAIL PROTECTED]
On 5 juin, 20:07, "Russ P." <[EMAIL PROTECTED]> wrote: > On Jun 5, 4:47 am, Bruno Desthuilliers > > > [EMAIL PROTECTED]> wrote: > > Antoon Pardon a écrit : > > > > On 2008-06-04, NickC <[EMAIL PROTECTED]> wrote: > > >> On Jun

Re: ClassName.attribute vs self.__class__.attribute

2008-06-05 Thread [EMAIL PROTECTED]
On 5 juin, 17:40, Gabriel Rossetti <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I had read somewhere that it is preferred to use > self.__class__.attribute over ClassName.attribute to access class (aka > static) attributes. It's even prefered to use self.attribute

Re: Assigning to __class__ : bad form?

2008-06-06 Thread [EMAIL PROTECTED]
On 6 juin, 19:51, The Pythonista <[EMAIL PROTECTED]> wrote: > I've been wondering for a while about whether assigning to __class__ is > bad form or not. Specifically, I mean doing so when some other method of > implementing the functionality you're after is available (i.

Re: noob question : library versus normal python files

2008-06-06 Thread [EMAIL PROTECTED]
On 6 juin, 19:36, रवींदर ठाकुर (ravinder thakur) <[EMAIL PROTECTED]> wrote: > hello friends, > > i have a python library(rdflib) that i am using in some project using > Google App Engine. I have developed everything using this on my local > machine and things work fine. But i

Trying to install mysql lib for python

2008-06-06 Thread [EMAIL PROTECTED]
Hi How do I install mysql db libray for python? I went to source forg and downloaded the following zip folder MySQL_python-1.2.2-py2.4-win32 I open the folder and looked inside did not see any directions. Help -- http://mail.python.org/mailman/listinfo/python-list

china supply nike shoes oz,nike air max 95,dunk...

2008-06-08 Thread [EMAIL PROTECTED]
"China (www.getvogue.com) supply Nike_Air_Max_87,Nike_Air_Max_95,Nike_Air_Max_360,Nike_Air_Max_Ltd,Nike_Air_Max_TN,Nike_Air_Max_Rift,Nike_Shoes_R3,Nike_Shoes_R4,Nike_Shoes_R5,Nike_Shoes_R6,Nike_Shoes_NZ,Nike_Shoes_OZ,Nike_Shoes_TL,Nike_Shoes_Monster,Nike_Sho¬es_Energia,Nike_Shoes_Turob,Air_Force_1s

Re: Newbie help (TypeError: int argument required)

2008-06-08 Thread [EMAIL PROTECTED]
On Jun 8, 1:43 pm, Iain Adams <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to python. I have been having trouble using the MysqlDB. I > get an error pointing from the line > > cursor.execute("UPDATE article SET title = %s, text = %s WHERE id = > %u", (self.ti

Re: Why does python not have a mechanism for data hiding?

2008-06-09 Thread [EMAIL PROTECTED]
On 9 juin, 20:43, "Russ P." <[EMAIL PROTECTED]> wrote: (snip argument about s/private/public/g on a whole source tree not being a fork, and not being by far a worse hack than monkeypatching a small specific part of a whole lib - what can I say ?) > How about some commo

Re: Separators inside a var name

2008-06-09 Thread [EMAIL PROTECTED]
On 9 juin, 20:05, "Sebastian \"lunar\" Wiesner" <[EMAIL PROTECTED]> wrote: > Rainy <[EMAIL PROTECTED]> at Montag 09 Juni 2008 19:29: > (snip) > > From what I understand, scheme can have variables like var-name. I'm > > curious about re

Re: Python doesn't understand %userprofile%

2008-06-10 Thread [EMAIL PROTECTED]
On Jun 10, 2:09 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > In xp when I try os.path.getmtime("%userprofile/dir/file%") Python > > bites back with "cannot find the path specified" Since my script has > > to run on mach

Re: Numpy array to gzip file

2008-06-11 Thread [EMAIL PROTECTED]
On Jun 11, 9:17 am, Sean Davis <[EMAIL PROTECTED]> wrote: > I have a set of numpy arrays which I would like to save to a gzip > file. Here is an example without gzip: > > b=numpy.ones(100,dtype=numpy.uint8) > a=numpy.zeros(100,dtype=numpy.uint8) > fd = file('

Re: does paramiko support python2.5?

2008-06-13 Thread [EMAIL PROTECTED]
On Jun 13, 3:49 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Praveena B" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > when i used paramiko in python2.5 i got the error below. > File "C:\praveena\python scripts\sshl

Re: Hard to understand 'eval'

2008-06-14 Thread [EMAIL PROTECTED]
On 14 juin, 10:31, TheSaint <[EMAIL PROTECTED]> wrote: > Hi, > > It seems to be strange that give me syntax error inside an eval statement. > I'm looking at it carefully but I can't see any flaw. > > Here it's part of the code: > > for nn in

Re: Comments on my first script?

2008-06-14 Thread [EMAIL PROTECTED]
On 13 juin, 13:39, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > On Fri, 13 Jun 2008 10:19:38 +0200 > > Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > Ok, since you asked for it, let's go: > > Good commentary. One small improveme

Re: Comments on my first script?

2008-06-14 Thread [EMAIL PROTECTED]
On 13 juin, 17:24, Lie <[EMAIL PROTECTED]> wrote: > On Jun 13, 3:19 pm, Bruno Desthuilliers [EMAIL PROTECTED]> wrote: > > Phillip B Oldham a écrit : > (snip) > > >try: > > >for line in rec.split("\n"): > > >

32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
Quick question: I have python code that does a lot of floating point arithmetic. How do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If I'll install a 64-bit operating system, will that do the trick? -- http://mail.python.org/mailman/listinfo/python-list

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 2:48 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Quick question: > > I have python code that does a lot of floating point arithmetic. How > > do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If > > I

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 5:05 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Does it mean that even now it does arithmetic in 64 bit? > > I'm not getting enough precision. Is there any way to increase it? > > Buy a good book about numerics or

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wrote: > > I do need speed. Is there an option? > > Mind telling us what you *actually* want to achieve? (What do you want to > calculate?) > > Christian Physical simulations of objects with near-l

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 7:43 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wrote: > >> > I do need speed. Is there an option? > > >> Mind telling us what you *actually* want to

randrange loops

2008-06-15 Thread [EMAIL PROTECTED]
Hi, I've created a method where the script defines twenty variables and several of them should be random having a maximum and a minimum value. What I did was this: from random import randrange as rr, random self.tr2_vezes = self.rr(self.d_tr2_vezes[0],self.d_tr2_vezes[-1], 1) # just an exa

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 10:01 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > |> How did you determine that standard python floats are not good enough? > > | I have a physical system set up in which a bo

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 8:52 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I have a physical system set up in which a body is supposed to > > accelerate and to get very close to lightspeed, while never really > > attaining it. After approx. 680 seconds,

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 9:31 pm, casevh <[EMAIL PROTECTED]> wrote: > > Not yet: I was kind of set back when I saw their homepage was last > > updated 2002. But I'll give it a try. You think it's the best thing > > there is? > > > Thanks, > > Ram. > > gmpy

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 9:41 pm, Mensanator <[EMAIL PROTECTED]> wrote: > On Jun 15, 12:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > On Jun 15, 7:43 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > > > > [EMAIL PROTECTED] wrote: >

Re: 32 bit or 64 bit?

2008-06-15 Thread [EMAIL PROTECTED]
On Jun 15, 11:30 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I have a physical system set up in which a body is supposed to > > accelerate and to get very close to lightspeed, while never really > > attaining it. After approx. 680 sec

Re: randrange loops

2008-06-15 Thread [EMAIL PROTECTED]
On 15 Jun, 21:05, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | Hi, > | > | > | I've created a method where the script defines twenty variables and > | several of them sh

Re: PEP 372 -- Adding an ordered directory to collections

2008-06-16 Thread [EMAIL PROTECTED]
On 16 juin, 10:37, Armin Ronacher <[EMAIL PROTECTED]> wrote: > Abstract > > > This PEP proposes an ordered dictionary as a new data structure for > the ``collections`` module, called "odict" in this PEP for short. The > proposed API incorporates the ex

Re: 32 bit or 64 bit?

2008-06-16 Thread [EMAIL PROTECTED]
On Jun 16, 12:57 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jun 15, 11:30 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > > > > > [EMAIL PROTECTED] wrote: > > > I have a physical system set up in which a body is supposed to > >

Re: 32 bit or 64 bit?

2008-06-17 Thread [EMAIL PROTECTED]
On Jun 17, 3:13 pm, Phil Hobbs <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Jun 15, 7:43 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> On Jun 15, 6:58 pm, Christian Meesters <[EMAIL PROTECTED]> wr

www.nikeadishoes.com

2008-06-18 Thread [EMAIL PROTECTED]
because our company open no long time,and we have some pro in deals with oredr please make you new order to us ,i think we will have a good beginning !! Our website: www.nikeadishoes.com Choose your favorite products please trust us ,have a good beginning Email:[EMAIL PROTECTED] MSN:[EMAIL

Re: 32 bit or 64 bit?

2008-06-18 Thread [EMAIL PROTECTED]
On Jun 17, 5:04 pm, "Richard Brodie" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > >That was suggested. Problem is, that sometimes the velocities are near > >zero. So this solution, by itself, is n

Re: 32 bit or 64 bit?

2008-06-18 Thread [EMAIL PROTECTED]
On Jun 18, 7:12 pm, Peter Pearson <[EMAIL PROTECTED]> wrote: > On Tue, 17 Jun 2008 08:13:40 -0400, Phil Hobbs wrote: > > [EMAIL PROTECTED] wrote: > [snip] > >> I have a physical system set up in which a body is supposed to > >> accelerate and to get very clo

Re: 32 bit or 64 bit?

2008-06-18 Thread [EMAIL PROTECTED]
On Jun 18, 3:02 am, Phil Hobbs <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > That was suggested. Problem is, that sometimes the velocities are near > > zero. So this solution, by itself, is not general enough. > > Are you sure?  I sort of doubt th

Re: 32 bit or 64 bit?

2008-06-18 Thread [EMAIL PROTECTED]
On Jun 18, 10:00 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jun 18, 3:02 am, Phil Hobbs > > <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > > That was suggested. Problem is, that sometimes the velocities are near > &

Re: PEP 372 -- Adding an ordered directory to collections

2008-06-18 Thread [EMAIL PROTECTED]
Wow, I was completely wrong about sorted dicts and odicts. On Jun 17, 4:21 am, [EMAIL PROTECTED] wrote: > mean. I think for this data structure it's important to keep all the > normal dict operations at the same speed. If you use a C Why keep the normal dict operations at the same s

<    39   40   41   42   43   44   45   46   47   48   >