Your win 10, 000$ in my groups Pls register your name and address in below of the website http://www.geocities.com/cathrina39

2008-07-18 Thread hot rathi
Your win 10,000$ in my groups Pls register your name and address in below of the website http://www.geocities.com/cathrina39 -- http://mail.python.org/mailman/listinfo/python-list

"proper"/best way to hack SimpleXmlRpcServer to support datetime?

2008-07-18 Thread Russell Warren
I'm running python 2.5.1 and it seems that SimpleXmlRpcServer is not setup to support the base datetime module in the same way xmlrpclib has been with "use_datetime". I see that someone (Virgil Dupras) has recently submitted a fix to address this, but I don't want to patch my python distro. I wan

Re: trying to match a string

2008-07-18 Thread John Machin
On Jul 19, 12:04 pm, Andrew Freeman <[EMAIL PROTECTED]> wrote: > To show if valid: > > if re.search(r'^[LRM]*$', 'LM'): > print 'Valid' > A couple of points: (1) Instead of search(r'^blahblah', ...) use match(r'blahblah', ...) (2) You need to choose your end-anchor correctly; your pattern is p

Re: Change PC to Win or Windows

2008-07-18 Thread Timothy Grant
On Fri, Jul 18, 2008 at 4:32 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Calling Windows PC seems to be something that Apple did so they would > > not have to directly mention Windows. Could all the places that say PC > > that are not referring to Personal Computers in general be changed

hi this is very romantic actress photes

2008-07-18 Thread kick
hi this is very romantic actress photes http://lovegroup341.blogspot.com/ *** use this and enjoy each moments -- http://mail.python.org/mailman/l

Re: Any Game Developers here?

2008-07-18 Thread Stephen Johnson
Yes, I will put the demo up on my web site (www.steveasleep.com) with fully commented source code and will probably spend a couple more months on it making it into a proper game. -Steve Johnson On Jul 18, 2008, at 10:51 PM, Michael Lubker wrote: PyOhio sounds fun... I've been wanting to ge

Re: Change PC to Win or Windows

2008-07-18 Thread Grant Edwards
On 2008-07-18, Martin v. Löwis <[EMAIL PROTECTED]> wrote: >> Calling Windows PC seems to be something that Apple did so >> they would not have to directly mention Windows. Could all the >> places that say PC that are not referring to Personal >> Computers in general be changed to Win or Windows. >

Re: Change in Decimal repr in Python 2.6

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:12 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > If answers here do not satisfy, the pydev list would be the place to > request that this change be put off until 3.0, when changes that break are > more permissible. I do not remember any discussion of this issue. You can

Re: Any Game Developers here?

2008-07-18 Thread Michael Lubker
PyOhio sounds fun... I've been wanting to get some sort of Barcamp or GameJam running where I live (in Austin, so you'd think there would be people interested) but no-one will bite. :/ Escort Wing was a fun project... I did a few mods for EW1. Will you release this demo anywhere? Just curious. T

Re: Any Game Developers here?

2008-07-18 Thread Michael Lubker
I also know about Panda. ~Michael On Jul 18, 6:05 pm, "Michael Lubker" <[EMAIL PROTECTED]> wrote: > I'm interested in general... I know about PyGame and Pyglet, and have > used both. We're currently using Python-Ogre. In the end, I am looking > to find people interested in my project ( > seehttp:

Re: Change in Decimal repr in Python 2.6

2008-07-18 Thread Terry Reedy
Karen Tracey wrote: I noticed when trying out Python's 2.6b2 release that the repr of Decimal has changed since 2.5. On 2.5: Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license"

Re: trying to match a string

2008-07-18 Thread Andrew Freeman
oj wrote: Why not just use * instead of + like: if re.search(r'^[^LRM]*$', var): # note: ^ outside [] is start of string; $ means end of string print "Invalid" This will *only* print invalid when there is a character other than L, R, or M or a empty string. Sorry, forge

Re: singletons

2008-07-18 Thread Craig Allen
On Jul 17, 9:04 pm, Paddy <[EMAIL PROTECTED]> wrote: > On Jul 16, 11:20 pm, Craig Allen <[EMAIL PROTECTED]> wrote: > > > Hey, forgive me for just diving in, but I have a question I was > > thinking of asking on another list but it really is a general question > > so let me ask it here. It's about

Re: new itertools functions in Python 2.6

2008-07-18 Thread Mensanator
On Jul 16, 5:05 am, Mark Dickinson <[EMAIL PROTECTED]> wrote: > On Jul 16, 7:20 am, Mensanator <[EMAIL PROTECTED]> wrote: > > > > > ## Combinations with replacement > > > > ## - > > > > ## aaa aab aac aad aae abb abc abd abe acc acd ace > > > > ## add ade aee bbb bbc

Re: Any Game Developers here?

2008-07-18 Thread Stephen Johnson
Yes, I wrote the music, the GUI, and bits of code here and there.. Will Hogben is working on EW 2 for Freeverse right now. But that was in BlitzMax, and I'm in greener pastures now, working on my demo for PyOhio. -Steve Johnson On Jul 18, 2008, at 7:05 PM, Michael Lubker wrote: I'm inter

Re: Importing different versions of a module

2008-07-18 Thread mercado mercado
Thanks norseman for the reply. You're right that I didn't like it though. :-) Also note that my original question has to do with importing modules from different locations. If all I had to do was use different paths within the script (e.g. for sending to os.path.join or whatever), then I could

Re: Trickiness with unittesting

2008-07-18 Thread Ben Finney
[EMAIL PROTECTED] writes: > Basically, I'm trying to implement a setUp() and TearDown() for a > python TestSuite (as opposed to an individual test within the suite). > > Sort of. I think your described requirements are well met by the 'nose' extension http://somethingaboutorange.com/mrl/projects

paypal wholesale evisu jeans(paypal accept)(www power-saler cn )

2008-07-18 Thread 128
paypal wholesale evisu shirt (paypal accept)(www power-saler cn ) paypal wholesale evisu hat (paypal accept)(www power-saler cn ) paypal wholesale evisu hoody (paypal accept)(www power-saler cn ) paypal wholesale evisu jeans(paypal accept)(www power-saler cn ) paypal wholesale evisu sunn

Re: __del__ methods

2008-07-18 Thread Miles
On Fri, Jul 18, 2008 at 2:31 PM, Jason Baker <[EMAIL PROTECTED]> wrote: > I have a class that I need to do some finalization on when it dies. I > know I can use the __del__ method, but I seem to recall that it > impedes garbage collection. Is this the case? Yes. "Objects that have __del__() met

paypal wholesale 5ive jungle jeans(paypal accept)(www power-saler cn )

2008-07-18 Thread 128
paypal wholesale 5ive jungle shirt (paypal accept)(www power-saler cn ) paypal wholesale 5ive jungle hat (paypal accept)(www power-saler cn ) paypal wholesale 5ive jungle hoody (paypal accept)(www power-saler cn ) paypal wholesale 5ive jungle jeans(paypal accept)(www power-saler cn ) payp

Re: __del__ methods

2008-07-18 Thread Raymond Hettinger
On Jul 18, 11:31 am, Jason Baker <[EMAIL PROTECTED]> wrote: > I have a class that I need to do some finalization on when it dies.  I > know I can use the __del__ method, but I seem to recall that it > impedes garbage collection.  Is this the case? FWIW, I know a good number of top notch Python pro

Re: Change PC to Win or Windows

2008-07-18 Thread Martin v. Löwis
> Calling Windows PC seems to be something that Apple did so they would > not have to directly mention Windows. Could all the places that say PC > that are not referring to Personal Computers in general be changed to > Win or Windows. That's bikeshedding. If the name stops you from building you

Re: Question on Joining of list

2008-07-18 Thread John Machin
On Jul 18, 11:42 pm, ptn <[EMAIL PROTECTED]> wrote: [snip] > Remember C, where i, j, > k are indices, p, q, r are pointers, s, t are strings and x, y, z are > integers. Only by convention (even-K&R-v1 C required explicit declarations almost everywhere), and x etc being used for integers is news t

Re: round function error???

2008-07-18 Thread John Machin
On Jul 19, 8:05 am, Mark Dickinson <[EMAIL PROTECTED]> wrote: > On Jul 18, 10:17 pm, Anthony <[EMAIL PROTECTED]> wrote: > > > Isn't this a mistake??? > > Which 'this'? That is, what were you expecting? > > If you're objecting to the fact that the second result > produces 3499.34999 instead

Re: Having trouble with some lists in BeautifulSoup

2008-07-18 Thread John Nagle
Alexnb wrote: Okay, what I want to do with this code is to got to thesaurus.reference.com and then search for a word and get the syns for it. Now, I can get the syns, but they are still in html form and some are hyperlinks. But I can't get the contents out. I am not that familiar with BeautifulSo

Re: Change PC to Win or Windows

2008-07-18 Thread Derek Martin
On Fri, Jul 18, 2008 at 03:46:13PM -0700, Joel Teichroeb wrote: > Calling Windows PC seems to be something that Apple did so they would > not have to directly mention Windows. Actually it's something IBM did when they created the IBM PC. Of course, all IBM PCs ran MS-DOS, since that's how IBM s

Re: Any Game Developers here?

2008-07-18 Thread Michael Lubker
I'm interested in general... I know about PyGame and Pyglet, and have used both. We're currently using Python-Ogre. In the end, I am looking to find people interested in my project ( see http://youtube.com/watch?v=E0QQ9JuclxE ), but I also want to find people experienced with Python in general, not

Re: Any Game Developers here?

2008-07-18 Thread conman5525
On Jul 18, 2:38 pm, Michael Lubker <[EMAIL PROTECTED]> wrote: > Any people that use Python as the predominant language for their game > development here? > > ~Michael The Panda3d engine supports the development of 3d simulations in python. Disney uses the engine in two of their MMO games (toontown

Change PC to Win or Windows

2008-07-18 Thread Joel Teichroeb
In trunk of the svn there is a folder called PCbuild. Now lets say that I am running linux on my Personal Computer and want to build python. I go into the PCbuild directory, but wait. This is for windows not for any personal computer. Calling Windows PC seems to be something that Apple did so

Re: round function error???

2008-07-18 Thread Mark Dickinson
On Jul 18, 11:15 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > No, round() return binary floats that, in general, cannot represent > decimal floats exactly.  Formatted printing gives what you expect. >  >>> '%8.2f' % x > ' 3499.35' Sure. But it's still true that the second printed value (printed a

Re: round function error???

2008-07-18 Thread Terry Reedy
Anthony wrote: Isn't this a mistake??? round(3499.349439034,44) 3499.3494390340002 round(_,2) 3499.34999 round(_,1) 3499.40001 My Python 2.5.1 spat that out.. No, round() return binary floats that, in general, cannot represent decimal floats exactly. Formatted printi

Re: Any Game Developers here?

2008-07-18 Thread Gary Herron
Michael Lubker wrote: Any people that use Python as the predominant language for their game development here? You can find several whole (and reasonably large) communities of Python/Game developers associated with some Open Source projects: These two come to mind immediately. (Both have

Re: Any Game Developers here?

2008-07-18 Thread Stephen Johnson
I use the Pyglet library to make games. You want to look at the pyglet and pygame mailing lists, not this one. Use Google. In my opinion, PyGame is clunky and Pyglet is elegant, simple, and comprehensive. PyGame has more examples available, but Pyglet has great documentation and enough exam

Re: round function error???

2008-07-18 Thread Mark Dickinson
On Jul 18, 10:17 pm, Anthony <[EMAIL PROTECTED]> wrote: > Isn't this a mistake??? Which 'this'? That is, what were you expecting? If you're objecting to the fact that the second result produces 3499.34999 instead of 3499.35, then no, that's not a mistake; see http://www.python.org/doc/

Re: Core Dump - Segmentation Fault -Newbie

2008-07-18 Thread Terry Reedy
[EMAIL PROTECTED] wrote: Hi - I am very new to python. I get this random core dump and am looking for a good way to catch the error. I know the function my core dump occurs. Is there any error catching/handling that I could use in python? When posting such questions, please supply Python vers

Re: Importing different versions of a module

2008-07-18 Thread norseman
mercado mercado wrote: I have two versions of a script on my machine. One version is for new development and the other version is a production version. This script imports a module from a different directory, and this module again has two versions (a development version and a production version)

Re: Any Game Developers here?

2008-07-18 Thread David M Lemcoe Jr.
Hello Michael, Any people that use Python as the predominant language for their game development here? ~Michael Well, I make little CLI games that are extremely basic and have no actual graphics, but i'm sure a few people actually use them in video games. David -- http://mail.python.org

Re: Multiple variable control in for loops. Doable in Python?

2008-07-18 Thread Derek Martin
On Fri, Jul 18, 2008 at 05:28:32PM -0400, Derek Martin wrote: > def control(i, j): > print i,j > if not (i < 5 or j < 10): Rather, if not (i < 5 and j < 10): > return > else: > control(some_increment_function(i), other_increment_function(j)) -- Derek D. M

Any Game Developers here?

2008-07-18 Thread Michael Lubker
Any people that use Python as the predominant language for their game development here? ~Michael -- http://mail.python.org/mailman/listinfo/python-list

Change in Decimal repr in Python 2.6

2008-07-18 Thread Karen Tracey
I noticed when trying out Python's 2.6b2 release that the repr of Decimal has changed since 2.5. On 2.5: Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>

Re: wxPython code giving strange errors.

2008-07-18 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Jul 13, 10:18 am, teh_sAbEr <[EMAIL PROTECTED]> wrote: > > I'm busy trying to learn wxPython, and i'm trying to run the following > > piece of code (its from the wxPyWiki tutorial): > > > > import wx > > [...] > > > >

Re: Multiple variable control in for loops. Doable in Python?

2008-07-18 Thread Derek Martin
On Fri, Jul 18, 2008 at 12:21:49PM -0700, mark floyd wrote: > I'm new to Python and have been doing work converting a few apps > from Perl to Python. I can not figure out the comparable Python > structures for multi-variable for loop control. [...] > I spent a good part of yesterday looking for a

Re: __del__ methods

2008-07-18 Thread Marc 'BlackJack' Rintsch
On Fri, 18 Jul 2008 12:26:35 -0700, Jason Baker wrote: > I don't necessarily need deterministic cleanup. And I plan on doing > something like a close() method as well. But I'd just like to make > sure nothing slips between the cracks. :) `__del__()` isn't guaranteed to be called *at all*, so c

round function error???

2008-07-18 Thread Anthony
Isn't this a mistake??? >>> round(3499.349439034,44) 3499.3494390340002 >>> round(_,2) 3499.34999 >>> round(_,1) 3499.40001 My Python 2.5.1 spat that out.. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to avoid line return when using python -c 'print "foo"'

2008-07-18 Thread Marc 'BlackJack' Rintsch
On Fri, 18 Jul 2008 23:04:06 +0200, TP wrote: > All my problem is in the title. > If I try: > > $ python -c 'print "foo",' > > It does not change anything, surely because the line return is added > by "python -c". It is added by the interpreter at exit time. The interpreter tries to be smart h

how to avoid line return when using python -c 'print "foo"'

2008-07-18 Thread TP
Hi everybody, All my problem is in the title. If I try: $ python -c 'print "foo",' It does not change anything, surely because the line return is added by "python -c". Thanks in advance Julien -- TP (Tribulations Parallèles) "Allez, Monsieur, allez, et la foi vous viendra." (D'Alembert). --

Re: Writing a program under GNU/Linux for MS Windows.

2008-07-18 Thread Mike Driscoll
On Jul 18, 3:26 pm, Levi Campbell <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to write a program for a friend of mine who uses > windows but I use GNU/Linux. I know you can use mingw and link to the > python dll, but is there a way to create a win32 service under Linux? Technically, you can probab

Re: checking if an object IS in a list

2008-07-18 Thread Terry Reedy
Peter Otten wrote: So, precisely, you mean that if hash(a) != hash(b), a and b are considered distinct, and else [ie. if hash(a) == hash(b)], a and b are the same if and only if a == b ? Correct for set, dict. For lists etc. the hash doesn't matter: Since CPython saves strings hashes as pa

Re: Question on Joining of list

2008-07-18 Thread Terry Reedy
SUBHABRATA wrote: Sorry if I didn't say that. The input is a string "Petrol Helium Heaven Sky" Now, in a3 it is "God Goddess Heaven Sky" is there, > ...I was looking for an output of "H S Petrol Helium" Meaningful names, splitting the target string, and using 'in' makes the code much easier

RE: Writing a program under GNU/Linux for MS Windows.

2008-07-18 Thread Neuberger, Sheldon N.
If you're just writing Python code then it will run unmodified on his Windows machine. Are you planning on using other languages too? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Levi Campbell Sent: Friday, July 18, 2008 4:27 PM To: python-list@python.

Writing a program under GNU/Linux for MS Windows.

2008-07-18 Thread Levi Campbell
Hi, I'm trying to write a program for a friend of mine who uses windows but I use GNU/Linux. I know you can use mingw and link to the python dll, but is there a way to create a win32 service under Linux? -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing Python App

2008-07-18 Thread Mike Driscoll
On Jul 18, 2:35 pm, KDawg44 <[EMAIL PROTECTED]> wrote: > Hi, > > I am very new to Python but find it very interesting (from what I know > of it) and am considering writing an application.  However, I have a > question regarding distribution of the app once it is done.  Is there > a way to package e

Re: Distributing Python App

2008-07-18 Thread K-Dawg
On Fri, Jul 18, 2008 at 3:43 PM, Stephen Johnson <[EMAIL PROTECTED]> wrote: > Look up py2app and py2exe, for OS X and Windows, respectively. They are > extensively documented and easy to use. > On Jul 18, 2008, at 3:35 PM, KDawg44 wrote: > > Hi, > > I am very new to Python but find it very interes

Confused about error: invalid Python installation: unable to open ..../python2.4/config/Makefile

2008-07-18 Thread Looney, James B (N-ULA)
I built and installed Python 2.4 on 12/12/2007. Recently, I tried installing python-ldap-2.3.4. The error I received was: error: invalid Python installation: unable to open /usr/local/openSource/architectureIndependent:/usr/local/openSource/IRIX 6/lib/python2.4/config/Makefile (No such file or di

Re: Trickiness with unittesting

2008-07-18 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Basically, I'm trying to implement a setUp() and TearDown() for a > python TestSuite (as opposed to an individual test within the suite). > > Sort of. > > I have a few different test suites (call them SuiteA, SuiteB,...). For > one of the test suites (SuiteA), I need t

Re: Distributing Python App

2008-07-18 Thread Stephen Johnson
Look up py2app and py2exe, for OS X and Windows, respectively. They are extensively documented and easy to use. On Jul 18, 2008, at 3:35 PM, KDawg44 wrote: Hi, I am very new to Python but find it very interesting (from what I know of it) and am considering writing an application. However, I

Distributing Python App

2008-07-18 Thread KDawg44
Hi, I am very new to Python but find it very interesting (from what I know of it) and am considering writing an application. However, I have a question regarding distribution of the app once it is done. Is there a way to package everything a user needs to run the app or will they have to install

Re: Multiple variable control in for loops. Doable in Python?

2008-07-18 Thread Eduardo O. Padoan
On Fri, Jul 18, 2008 at 4:21 PM, mark floyd <[EMAIL PROTECTED]> wrote: > I'm new to Python and have been doing work converting a few apps from Perl > to Python. I can not figure out the comparable Python structures for > multi-variable for loop control. > > Examples: > > # In Perl > for($i = 0, j

Re: __del__ methods

2008-07-18 Thread Jason Baker
On Jul 18, 2:10 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Fri, 18 Jul 2008 11:31:20 -0700, Jason Baker wrote: > > I have a class that I need to do some finalization on when it dies.  I > > know I can use the __del__ method, but I seem to recall that it > > impedes garbage collect

Multiple variable control in for loops. Doable in Python?

2008-07-18 Thread mark floyd
I'm new to Python and have been doing work converting a few apps from Perl to Python. I can not figure out the comparable Python structures for multi-variable for loop control. Examples: # In Perl for($i = 0, j = 0; $i < I_MAX && $j < J_MAX; $i+=5, $j += 10) { . do something } // In Java

Trickiness with unittesting

2008-07-18 Thread arockstar
Basically, I'm trying to implement a setUp() and TearDown() for a python TestSuite (as opposed to an individual test within the suite). Sort of. I have a few different test suites (call them SuiteA, SuiteB,...). For one of the test suites (SuiteA), I need to execute a bit of code (say startFoo())

bsddb - help needed with btflags values for Python

2008-07-18 Thread sconnoll
import bsddb bsddb.btopen(file, flag='c', mode=438, btflags=0, cachesize=None, maxkeypage=None, minkeypage=None, pgsize=None, lorder=None) Can anyone help me with the values to use for btflags? I'd like to tell the database manager that I want to allow duplicate values. The ORACLE Berkeley docu

Re: interpreter vs. compiled

2008-07-18 Thread Dan
On Jul 18, 2:17 pm, castironpi <[EMAIL PROTECTED]> wrote: > On Jul 17, 11:39 pm, Kay Schluehr <[EMAIL PROTECTED]> wrote: > > > > > On 18 Jul., 01:15, castironpi <[EMAIL PROTECTED]> wrote: > > > > On Jul 17, 5:37 pm, I V <[EMAIL PROTECTED]> wrote: > > > > > On Thu, 17 Jul 2008 15:08:17 -0700, castir

Re: __del__ methods

2008-07-18 Thread Marc 'BlackJack' Rintsch
On Fri, 18 Jul 2008 11:31:20 -0700, Jason Baker wrote: > I have a class that I need to do some finalization on when it dies. I > know I can use the __del__ method, but I seem to recall that it > impedes garbage collection. Is this the case? `__del__()` is not a deterministic destructor. So for

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
Thank you so much for the reply, but alas: I get the same results. (urllib2 makes the initial request, Squid replies "Error 407: Proxy Authentication Required", which urllib2 dutifully fails on/raises said error...) I do appreciate your time, though! :) -Larry On Jul 18, 3:08 am, Chris <[EMAIL

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
Thank you so much for the reply, but alas: I get the same results. (urllib2 makes the initial request, Squid replies "Error 407: Proxy Authentication Required", which urllib2 dutifully fails on/raises said error...) I do appreciate your time, though! :) -Larry On Jul 18, 3:08 am, Chris <[EMAIL

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
Thank you so much for the reply, but alas: I get the same results. (urllib2 makes the initial request, Squid replies "Error 407: Proxy Authentication Required", which urllib2 dutifully fails on/raises said error...) I do appreciate your time, though! :) -Larry On Jul 18, 3:08 am, Chris <[EMAIL

Weird Python startup behavior between different drives on PowerPC platform

2008-07-18 Thread jwahlmann
I'm experiencing some strange behavior when starting up python on a Debian-based PowerPC platform. Normally, I operate from this platform with a root file system on an IDE flash drive (/dev/hda1). However, I'm trying to get my system to run with root on a mechanical SATA drive (/dev/sda1). Both

__del__ methods

2008-07-18 Thread Jason Baker
I have a class that I need to do some finalization on when it dies. I know I can use the __del__ method, but I seem to recall that it impedes garbage collection. Is this the case? (keep in mind that my code aims to be compatible with python 2.3 to python 2.5) -- http://mail.python.org/mailman/li

Re: interpreter vs. compiled

2008-07-18 Thread castironpi
On Jul 17, 11:39 pm, Kay Schluehr <[EMAIL PROTECTED]> wrote: > On 18 Jul., 01:15, castironpi <[EMAIL PROTECTED]> wrote: > > > > > On Jul 17, 5:37 pm, I V <[EMAIL PROTECTED]> wrote: > > > > On Thu, 17 Jul 2008 15:08:17 -0700, castironpi wrote: > > > > The Python disassembly is baffling though. > > >

Re: storing references instead of copies in a dictionary

2008-07-18 Thread castironpi
On Jul 18, 1:32 am, John Machin <[EMAIL PROTECTED]> wrote: > On Jul 18, 4:26 pm, castironpi <[EMAIL PROTECTED]> wrote: > > > I delicately ask for an example in natural language and daily life in > > which we change what object a name refers to, > > her, him, it, ... i.e. any pronoun In that case,

file()

2008-07-18 Thread Dylan Wilson
well, I'm in the beginings of making a random sentence generator for a mod my friend makes, but I want the nouns, verbs pastverbs, etc. to be easily customizable by editing a file, but, last night file() worked fine and today it's saying " line 1: `read_who = file('who.ini', 'r')'" here's what

accept paypal,www.wjmtrade.com sell adidas35 jordan af1 bape puma

2008-07-18 Thread avan
We are manufacturer/wholesaler for branded sport shoes and clothings, supplying 3A quality product with reasonable price, such as series of : Jordan 1-22 Air force one (AF1),Dunks, air max 95,97,2003,2004,2005,tn shox TL/TL2/TL3, R4/R5, monster, turbo, NZ bape shoes,adidas ,Timberlands etc. t-shirt

proliferation of computer languages

2008-07-18 Thread [EMAIL PROTECTED]
Today, i took sometime to list some major or talked-about langs that arose in recent years. Here's the result: http://xahlee.org/UnixResource_dir/writ/new_langs.html Plain text version follows. - There is a proliferation of computer languages today like never

Backtracking problem

2008-07-18 Thread Joan Pallarès
Hi, In my first message in the list I'm going to ask you to solve this problem or at least help me to solve it by myself: We have a list a couples created this way: *parejas = [(1, 'a'), (1, 'b'), (1, 'c'), (1, 'd'), (2, 'a'), (2, 'b'), (2, 'c'), (3, 'a'), (3, 'b'),

Re: trying to match a string

2008-07-18 Thread oj
> > > Why not just use * instead of + like: > > > if re.search(r'^[^LRM]*$', var): # note: ^ outside [] is start of > > string; $ means end of string > >    print "Invalid" > > > This will *only* print invalid when there is a character other than L, > > R, or M or a empty string. > > Sorry, forget

Re: trying to match a string

2008-07-18 Thread John S
On Jul 18, 7:51 am, Andrew Freeman <[EMAIL PROTECTED]> wrote: > Andrew Freeman wrote: > > oj wrote: > >> On Jul 18, 12:10 pm, John Machin <[EMAIL PROTECTED]> wrote: > > >>> On Jul 18, 9:05 pm, oj <[EMAIL PROTECTED]> wrote: > > On Jul 18, 11:33 am, [EMAIL PROTECTED] wrote: > > > Hi, > >

Re: checking if an object IS in a list

2008-07-18 Thread Peter Otten
[EMAIL PROTECTED] wrote: >> What is your (concrete) use case, by the way? > > > > I try to make it simple (there is almost 25000 lines of code...) > I have a sheet with geometrical objects (points, lines, polygons, > etc.) > The sheet have an object manager. > > So, to simplify : > sheet

RE: Unusual Exception Behaviour

2008-07-18 Thread Robert Rawlins
> The logging configuration functionality provided by fileConfig is all- > or-nothing, i.e. it does not support incremental configuration. > > Do you know if any libraries you depend on use fileConfig? > > If you use programmatic configuration only, and don't use fileConfig > at all, does everythin

Re: checking if an object IS in a list

2008-07-18 Thread Marc 'BlackJack' Rintsch
On Fri, 18 Jul 2008 07:39:38 -0700, nicolas.pourcelot wrote: > So, I use something like this in 'sheet.objects.__setattr__(self, > name, value)': > if type(value) == Polygon: > for edge in value.edges: > if edge is_in sheet.objects.__dict__.itervalues(): > object.__setattr_

Re: x, = y (???)

2008-07-18 Thread kj
In <[EMAIL PROTECTED]> Matthew Woodcraft <[EMAIL PROTECTED]> writes: >kj wrote: >> I still don't get it. If we write >> >> y = 'Y' >> x, = y >> >> what's the difference now between x and y? And if there's no >> difference, what's the point of performing such "unpacking"? >If y really is is

Re: Using Tcl extensions with Python?

2008-07-18 Thread C Martin
On Jul 17, 5:18 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: [snip] > And.. for tkpng specifically, you won't need tk.call to use it, you > just need to create your images using Tkinter.PhotoImage with a "png" > type. Thank you Guilherme, that's all great info. > Thomas Troeger <[EMAIL PROTECT

Re: Converting from local -> UTC

2008-07-18 Thread M.-A. Lemburg
On 2008-07-18 05:28, Dennis Lee Bieber wrote: On Thu, 17 Jul 2008 20:26:11 -0300, "Gabriel Genellina" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: Note that I used %s everywhere (it's just a placeholder, not a format) and Unfortunately, in the case of M

Re: Regular expression help

2008-07-18 Thread Marc 'BlackJack' Rintsch
On Fri, 18 Jul 2008 10:04:29 -0400, Russell Blau wrote: > values = {} > for expression in line.split(" "): > if "=" in expression: > name, val = expression.split("=") > values[name] = val > […] > > And when you get to be a really hard-core Pythonista, you could write > the whol

Re: Core Dump - Segmentation Fault -Newbie

2008-07-18 Thread Stefan Behnel
Doug Morse wrote: > Well, I must be missing something re: why Stefan states that you are using > Windows. I don't see that stated in your original post It's stated in the mail headers of his post, though. That's the problem with newbies - you never know where that stops being right. Stefan -- ht

Python evening class

2008-07-18 Thread lloyd
I am learning about python but I would like to attend and evening class at college as I find it hard to study at home. Does anyone know of such a class in London UK? -- http://mail.python.org/mailman/listinfo/python-list

Re: x, = y (???)

2008-07-18 Thread Andrew Freeman
kj wrote: I just came across an assignment of the form x, = y where y is a string (in case it matters). 1. What's the meaning of the comma in the LHS of the assignment? 2. How could I have found this out on my own? (Regarding (2) above, I consulted the index of several Python reference boo

Re: Unusual Exception Behaviour

2008-07-18 Thread Vinay Sajip
On Jul 18, 12:03 pm, "Robert Rawlins" <[EMAIL PROTECTED]> wrote: > > Yeah it's got me a little bemused to be honest, I've tried playing around > with configuration options this morning and not been able to achieve > anything that works properly. > The logging configuration functionality provided b

create PyString

2008-07-18 Thread Torsten Mohr
Hi, in an extension module i'd like to create a very large PyString. As the string is very large i'd first like to create the string and let Python allocate the space for it and then fill it from my code. But the only interface that i can find in Python/stringobject.h is: PyAPI_FUNC(PyObject *)

Re: trying to match a string

2008-07-18 Thread arni
On Jul 18, 7:51 pm, Andrew Freeman <[EMAIL PROTECTED]> wrote: > Andrew Freeman wrote: > > oj wrote: > >> On Jul 18, 12:10 pm, John Machin <[EMAIL PROTECTED]> wrote: > > >>> On Jul 18, 9:05 pm, oj <[EMAIL PROTECTED]> wrote: > > On Jul 18, 11:33 am, [EMAIL PROTECTED] wrote: > > > Hi, > >

Re: trying to match a string

2008-07-18 Thread Andrew Freeman
Andrew Freeman wrote: oj wrote: On Jul 18, 12:10 pm, John Machin <[EMAIL PROTECTED]> wrote: On Jul 18, 9:05 pm, oj <[EMAIL PROTECTED]> wrote: On Jul 18, 11:33 am, [EMAIL PROTECTED] wrote: Hi, Hi, I am taking a string as an input from the user and it should only

Re: trying to match a string

2008-07-18 Thread Andrew Freeman
oj wrote: On Jul 18, 12:10 pm, John Machin <[EMAIL PROTECTED]> wrote: On Jul 18, 9:05 pm, oj <[EMAIL PROTECTED]> wrote: On Jul 18, 11:33 am, [EMAIL PROTECTED] wrote: Hi, Hi, I am taking a string as an input from the user and it should only contain the chars

[ANN] PyStar 0.1 -- A* graph search algorithm

2008-07-18 Thread Glenn Hutchings
Announcing PyStar, a python module implementing the A* graph search algorithm. Available under the GPL, you can find it at http://fluffybunny.memebot.com/pystar.html I tried to find a decent Python version of this on the Interweb, but the only one I found (http://arainyday.se/projects/python

Re: Regular expression help

2008-07-18 Thread nclbndk759
On Jul 18, 3:35 pm, Nick Dumas <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I think you're over-complicating this. I'm assuming that you're going to > do a line graph of some sorta, and each new line of the file contains a > new set of data. > > The problem you m

Re: checking if an object IS in a list

2008-07-18 Thread nicolas . pourcelot
> What is your (concrete) use case, by the way? I try to make it simple (there is almost 25000 lines of code...) I have a sheet with geometrical objects (points, lines, polygons, etc.) The sheet have an object manager. So, to simplify : >>> sheet.objects.A = Point(0, 0) >>> sheet.objects.B = P

Re: Regular expression help

2008-07-18 Thread Nick Dumas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think you're over-complicating this. I'm assuming that you're going to do a line graph of some sorta, and each new line of the file contains a new set of data. The problem you mentioned with your regex returning a match object rather than a string i

Help with decorators

2008-07-18 Thread Mr SZ
Hi, I'm using decos for the first time.I want to check the input and then call a function in a class. I'm pasting the code:     def check_input_sanity(self,rover_input):         '''Check the input from client'''         def _check(fn):             def _inner(rover_input):                 if ro

Re: Regular expression help

2008-07-18 Thread Gerard flanagan
[EMAIL PROTECTED] wrote: Hello, I am new to Python, with a background in scientific computing. I'm trying to write a script that will take a file with lines like c afrac=.7 mmom=0 sev=-9.56646 erep=0 etot=-11.020107 emad=-3.597647 3pv=0 extract the values of afrac and etot and plot them. I'm r

Re: substitution of list elements

2008-07-18 Thread [EMAIL PROTECTED]
On 18 juil, 14:33, antar2 <[EMAIL PROTECTED]> wrote: > I want to replace each first element in list 5 that is equal to the > first element of the list of lists4 by the fourth element. I wrote > following code that does not work: > > list4 = [['1', 'a', 'b', 'c'], ['2', 'd', 't', 'e'], ['8', 'g', 'q

Re: Regular expression help

2008-07-18 Thread Brad
[EMAIL PROTECTED] wrote: Hello, I am new to Python, with a background in scientific computing. I'm trying to write a script that will take a file with lines like c afrac=.7 mmom=0 sev=-9.56646 erep=0 etot=-11.020107 emad=-3.597647 3pv=0 extract the values of afrac and etot... Why not just sp

  1   2   >