Re: best python games?

2011-03-27 Thread Steven D'Aprano
On Sun, 27 Mar 2011 21:17:49 -0700, alex23 wrote: > Paul Rudin wrote: >> Apparently Eve Online is (stackless) python. > > I've dropped a ridiculous number of hours into EVE this year alone but > I'd be very hesitant to ever mention "best" in relation to its coding :) > > It uses way too much fl

Re: best python games?

2011-03-27 Thread Tim Delaney
On 26 March 2011 13:39, sogeking99 wrote: > hey guys, what are some of the best games made in python? free games > really. like pygames stuff. i want to see what python is capable of. > > cant see any good one on pygames site really, though they have nothing > like sort by rating or most download

Re: Why aren't copy and deepcopy in __builtins__?

2011-03-27 Thread Carl Banks
On Mar 27, 8:29 pm, John Ladasky wrote: > Simple question.  I use these functions much more frequently than many > others which are included in __builtins__.  I don't know if my > programming needs are atypical, but my experience has led me to wonder > why I have to import these functions. I rare

Re: best python games?

2011-03-27 Thread alex23
Paul Rudin wrote: > Apparently Eve Online is (stackless) python. I've dropped a ridiculous number of hours into EVE this year alone but I'd be very hesitant to ever mention "best" in relation to its coding :) It uses way too much floating point incorrectly, the in-game calculator gives the resul

What is Email Marketing?

2011-03-27 Thread deepikalakhena
Florists Use Email Marketing to Get ahead of the Competition # Marine Supply Companies Adapt Email Marketing Software to Meet Their Needs # Wineries Turn to Email Marketing # Email Marketing Software Adapted by Pet Groomers # How Many Holiday Product Email Blasts Try it for Free Launch your first

Re: embedding interactive python interpreter

2011-03-27 Thread eryksun ()
On Sunday, March 27, 2011 11:06:47 PM UTC-4, Eric Frederich wrote: > I'm not sure that I know how to run this function in such a way that > it gives me an interactive session. > I passed in stdin as the first parameter and NULL as the second and > I'd get seg faults when running exit() or even imnp

Why aren't copy and deepcopy in __builtins__?

2011-03-27 Thread John Ladasky
Simple question. I use these functions much more frequently than many others which are included in __builtins__. I don't know if my programming needs are atypical, but my experience has led me to wonder why I have to import these functions. -- http://mail.python.org/mailman/listinfo/python-list

Re: embedding interactive python interpreter

2011-03-27 Thread Eric Frederich
I'm not sure that I know how to run this function in such a way that it gives me an interactive session. I passed in stdin as the first parameter and NULL as the second and I'd get seg faults when running exit() or even imnport sys. I don't want to pass a file. I want to run some C code, start an

Re: Incompatible _sqlite3.so

2011-03-27 Thread Tim Johnson
* Tim Johnson [110327 16:59]: > * Alexander Kapps [110327 15:14]: > > On 28.03.2011 00:21, Tim Johnson wrote: > > > > >>Python 2.6: > > >>http://www.slax.org/modules.php?action=detail&id=3118 > > > > > > That module is *not* trusted. See the warning? > > > > > > You don't trust an unverified

Re: Incompatible _sqlite3.so

2011-03-27 Thread Tim Johnson
* Alexander Kapps [110327 15:14]: > On 28.03.2011 00:21, Tim Johnson wrote: > > >>Python 2.6: > >>http://www.slax.org/modules.php?action=detail&id=3118 > > > > That module is *not* trusted. See the warning? > > > You don't trust an unverified package from the Slax site, but you > would trust s

Re: Data files for tests

2011-03-27 Thread eryksun ()
On Sunday, March 27, 2011 7:33:22 PM UTC-4, eryksun () wrote: > On Sunday, March 27, 2011 7:07:33 PM UTC-4, Steven D'Aprano wrote: > > I have a package with some tests. The tests are not part of the package > > itself, so I have a laid out my files like this: > > > > > > src/ > > spam/ > >

Python Tutorial

2011-03-27 Thread Colin J. Williams
I have come across: http://www.java2s.com/Tutorial/Python/CatalogPython.htm On a quick skim, the above seems to cover more ground than the standard: http://docs.python.org/tutorial/ I spotted one bug in the former, but one of the Network examples was helpful. Colin W. -- http://mail.python.org

Re: Data files for tests

2011-03-27 Thread eryksun ()
On Sunday, March 27, 2011 7:07:33 PM UTC-4, Steven D'Aprano wrote: > I have a package with some tests. The tests are not part of the package > itself, so I have a laid out my files like this: > > > src/ > spam/ > __init__.py > other-files.py > test_spam.py > > > Some of

Data files for tests

2011-03-27 Thread Steven D'Aprano
I have a package with some tests. The tests are not part of the package itself, so I have a laid out my files like this: src/ spam/ __init__.py other-files.py test_spam.py Some of the tests depend on external data files. Where should I put them? In the same directory a

Re: Incompatible _sqlite3.so

2011-03-27 Thread Alexander Kapps
On 28.03.2011 00:21, Tim Johnson wrote: Python 2.6: http://www.slax.org/modules.php?action=detail&id=3118 That module is *not* trusted. See the warning? It's just not verified by the Slax developers. That doesn't mean it's not trusted. It's the same as with Ubuntu packages from the Unive

Re: Standard way to distribute utilities with packages

2011-03-27 Thread Sridhar Ratnakumar
On Sunday, March 27, 2011 at 1:05 PM, Laszlo Nagy wrote: I'd like to distribute a pure Python package named "foo". By default it > will be placed in lib/site-packages/foo. What if I want to add > utilities? Command line or GUI programs that are not full featured > applications, but they can be h

Re: Standard way to distribute utilities with packages

2011-03-27 Thread eryksun ()
On Sunday, March 27, 2011 4:05:30 PM UTC-4, Laszlo Nagy wrote: > I'd like to distribute a pure Python package named "foo". By default it > will be placed in lib/site-packages/foo. What if I want to add > utilities? Command line or GUI programs that are not full featured > applications, but they

Re: embedding interactive python interpreter

2011-03-27 Thread Mark Hammond
On 28/03/2011 5:28 AM, Eric Frederich wrote: I'm not talking about the documentation for sys.exit() I'm talking about the documentation for Py_Main(int argc, char **argv) http://docs.python.org/c-api/veryhigh.html?highlight=py_main#Py_Main This C function never returns anything whether in the i

Re: Incompatible _sqlite3.so

2011-03-27 Thread Tim Johnson
* Alexander Kapps [110327 13:58]: > On 27.03.2011 23:24, Tim Johnson wrote: > >I have python 2.6.5 on my main workstation with ubuntu 10.04. I am > >attempting to set up a temporary test platform on an asus netbook > >with slax running from an SD card. I have installed a python 2.7 > >module on th

Re: embedding interactive python interpreter

2011-03-27 Thread eryksun ()
On Friday, March 25, 2011 12:02:16 PM UTC-4, Eric Frederich wrote: > > Is there something else I should call besides "exit()" from within the > interpreter? > Is there something other than Py_Main that I should be calling? Does PyRun_InteractiveLoop also have this problem? -- http://mail.python.o

Re: Incompatible _sqlite3.so

2011-03-27 Thread Alexander Kapps
On 27.03.2011 23:24, Tim Johnson wrote: I have python 2.6.5 on my main workstation with ubuntu 10.04. I am attempting to set up a temporary test platform on an asus netbook with slax running from an SD card. I have installed a python 2.7 module on the slax OS. (I can't find a python 2.6.5 module

Incompatible _sqlite3.so

2011-03-27 Thread Tim Johnson
I have python 2.6.5 on my main workstation with ubuntu 10.04. I am attempting to set up a temporary test platform on an asus netbook with slax running from an SD card. I have installed a python 2.7 module on the slax OS. (I can't find a python 2.6.5 module for slax). For those who don't know, slax

Standard way to distribute utilities with packages

2011-03-27 Thread Laszlo Nagy
I'd like to distribute a pure Python package named "foo". By default it will be placed in lib/site-packages/foo. What if I want to add utilities? Command line or GUI programs that are not full featured applications, but they can be handy for some tasks that are related to the package. Here is w

Re: embedding interactive python interpreter

2011-03-27 Thread Eric Frederich
I'm not talking about the documentation for sys.exit() I'm talking about the documentation for Py_Main(int argc, char **argv) http://docs.python.org/c-api/veryhigh.html?highlight=py_main#Py_Main This C function never returns anything whether in the interpreter I type "exit(123)" or "sys.exit(123)

Re: embedding interactive python interpreter

2011-03-27 Thread Jerry Hill
On Sun, Mar 27, 2011 at 9:33 AM, Eric Frederich wrote: > This is behavior contradicts the documentation which says the value > passed to sys.exit will be returned from Py_Main. > Py_Main doesn't return anything, it just exits. > This is a bug. Are you sure that calling the builtin exit() function

Re: Some questions on pow and random

2011-03-27 Thread joy99
On Mar 27, 8:52 pm, Mark Dickinson wrote: > On Mar 27, 3:00 pm, joy99 wrote: > > > (i) Suppose we have 8 which is 2^3 i.e., 3 is the power of 2, which we > > are writing in Python as, > > variable1=2 > > variable2=3 > > result=pow(variable1,variable2) > > > In my first problem p(x) a list of floa

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 3:00 pm, joy99 wrote: > (i) Suppose we have 8 which is 2^3 i.e., 3 is the power of 2, which we > are writing in Python as, > variable1=2 > variable2=3 > result=pow(variable1,variable2) > > In my first problem p(x) a list of float/decimals and f(x) is another > such. > Here, > variable1=

Re: Some questions on pow and random

2011-03-27 Thread joy99
On Mar 27, 4:36 pm, Mark Dickinson wrote: > On Mar 27, 11:07 am, joy99 wrote: > > > (b) Suppose we have two distributions p(x1) and p(x2), of the Model M, > > the E of EM algorithm, without going into much technical details is, > > P0(x1,x2), P1(x1,x2) > > > Now I am taking random.random() t

Re: embedding interactive python interpreter

2011-03-27 Thread Eric Frederich
This is behavior contradicts the documentation which says the value passed to sys.exit will be returned from Py_Main. Py_Main doesn't return anything, it just exits. This is a bug. On Sun, Mar 27, 2011 at 3:10 AM, Mark Hammond wrote: > On 26/03/2011 4:37 AM, Eric Frederich wrote: > exit() will wi

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 11:07 am, joy99 wrote: > (b) Suppose we have two distributions p(x1) and p(x2), of the Model M, > the E of EM algorithm, without going into much technical details is, > P0(x1,x2), P1(x1,x2) > > Now I am taking random.random() to generate both x1 and x2 and trying > to multiply the

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 11:07 am, joy99 wrote: > (i) By standard definition of Likelihood Estimation, we get if x EURO X, > where X is a countable set of types, p is probability and f is > frequency. > L(f;p)=Ðp(x)f(x) > > My question is python provides two functions, > (a)     pow for power. > (b)     reduce(

Re: Some questions on pow and random

2011-03-27 Thread Jason Swails
2011/3/27 joy99 > Dear Group, > > I have two questions one related to pow() and other is related to > random. > My questions are as below: > > (i) By standard definition of Likelihood Estimation, we get if x EURO X, > where X is a countable set of types, p is probability and f is > frequency. > L

Re: Which subversion interface is the most used one?

2011-03-27 Thread Detlev Offenbach
Markus Schaber wrote: > Hi, > > at one of our projects, we could make use of a subversion interface for > IronPython. But there seems none to exist. > > The easiest way would be to directly expose SharpSVN to the IronPython > scripts, but that is not a very pythonic solution. So we had the Ide

Re: embedding interactive python interpreter

2011-03-27 Thread Mark Hammond
On 26/03/2011 4:37 AM, Eric Frederich wrote: So I found that if I type ctrl-d then the other lines will print. I think ctrl-d just causes sys.stdin to see EOF, so things just "fall out" as you desire. exit() will winf up causing the C exit() function after finalizing, hence the behaviour