comp.lang.python
  Home FAQ Contact Sign in
comp.lang.python only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.python Profile…
RELATED GROUPS

POPULAR GROUPS

more...

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


Author: hot rathi
Date: Jul 18, 2008 23:12

Your win 10,000$ in my groups

Pls register your name and address
in below of the website

http://www.geocities.com/cathrina39
no comments
  "proper"/best way to hack SimpleXmlRpcServer to support datetime?         


Author: Russell Warren
Date: Jul 18, 2008 22:45

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 want to work around it until the real upgrade comes.

I have a klugey workaround I can just drop in my program that does the
trick, but I'm curious if there is a better way? I have not done that
many monkey patches. I'm also of course interested in someone telling
me I don't need to patch this and I'm just blind to the correct way.

My monkey patch is below...
Show full article (1.14Kb)
no comments
  Python game programming challenge, NUMBER 7, in September!         


Author: richard
Date: Jul 18, 2008 21:50

The date for the SEVENTH bi-annual PyWeek challenge has been set: Sunday 7th
September to Sunday 14th September (00:00UTC to 00:00UTC).

http://pyweek.org/

The PyWeek challenge invites entrants to write a game in one week from
scratch either as an individual or in a team. Entries must be developed
in Python, during the challenge, and must incorporate some theme chosen
at the start of the challenge.

REGISTRATION IS NOT YET OPEN --

In order to reduce the number of unnecessary registrations, we will open
the challenge for registration one month before the start date. See the
competition timetable and rules:

http://www.pyweek.org/

PLANNING FOR THE CHALLENGE --

Make sure you have working versions of the libraries you're going to use.
The rules page has a list of libraries and other resources.

Make sure you know how to build an MD5 sum for your submission. See the
challenge help page for more information.
Show full article (1.30Kb)
no comments
  hi this is very romantic actress photes         


Author: kick
Date: Jul 18, 2008 21:35

hi this is very romantic actress photes

********************************************************************************

http://lovegroup341.blogspot.com/

***********************************************************************

use this and enjoy each moments
no comments
  Re: Change in Decimal repr in Python 2.6         


Author: Terry Reedy
Date: Jul 18, 2008 19:12

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" for more information.
>>>> import decimal
>>>> decimal.Decimal(7)
> Decimal("7")
>>>>
>
> double quotes were used whereas on 2.6b2:
>
> Python 2.6b2 (r26b2:65082, Jul 18 2008, 13:36:54)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import decimal
>>>> decimal.Decimal(7)
> Decimal('7') ...
Show full article (1.93Kb)
no comments
  paypal wholesale evisu jeans(paypal accept)(www power-saler cn )         


Author: 128
Date: Jul 18, 2008 17:46

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 sunnglass(paypal accept)(www power-saler cn )

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 sunnglass(paypal accept)(www power-saler cn )

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 sunnglass(paypal accept)(www power-saler cn )
Show full article (3.92Kb)
no comments
  paypal wholesale 5ive jungle jeans(paypal accept)(www power-saler cn )         


Author: 128
Date: Jul 18, 2008 17:40

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 )
paypal wholesale 5ive jungle sunnglass(paypal accept)(www power-saler
cn )
Show full article (4.29Kb)
no comments
  Change PC to Win or Windows         


Author: Joel Teichroeb
Date: Jul 18, 2008 15:46

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 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.
20 Comments
  Re: Importing different versions of a module         


Author: norseman
Date: Jul 18, 2008 14:51

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). What I want is
> for the development script to import the development module, and the
> production script to import the production module, without making any
> changes to the code in the script.
>
> For example, suppose the development script is in ~/dev/rss.py, and the
> production script is in ~/prod/rss.py. I want the dev version to import
> /usr/lib/python2.5/site-packages/lib_dev/parse.py, and the prod version to
> import usr/lib/python2.5/site-packages/lib_prod/parse.py.
>
> My first instinct was to place a .pth file in ~/dev that points to
> /usr/lib/python2.5/site-packages/lib_dev, and a .pth file in ~/prod that
> points to /usr/lib/python2.5/site-packages/lib_prod, but it seems that
> site.py doesn't look at .pth files in the current working directory. My
> next attempt was to create a symbolic link in ~/dev called parse.py,
> pointing to /usr/lib/python2.5/site-packages/lib_dev/parse.py, and a ...
Show full article (2.63Kb)
no comments
  Re: Multiple variable control in for loops. Doable in Python?         


Author: Derek Martin
Date: Jul 18, 2008 14:41

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. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFIgQ4ndjdlQoHP510RAt/pAKCeQ+YQHUpCX9GYu+Eg2+Yr1HuONgCghksy
I/EvOBapYX4Xizz8yGb29Pc=
=WlOw
-----END PGP SIGNATURE-----
no comments
1 2 3 4 5