On Sat, Aug 31, 2013 at 9:16 AM, Oscar Benjamin
wrote:
> Spyder has both an internal interpreter and an external interpreter.
> One is the same interpreter process that runs the Spyder GUI. The
> other is run in a subprocess which keeps the GUI safe but reduces your
> ability to inspect the worksp
On 01/09/13 07:30, Jack Little wrote:
I am coding a game and I want the player to be able to quit the game and
immediately take off right from where they started from.
That is trickier than it sounds. You have to save the internal state of the
game, which means you first have to *identify* t
On 2013-08-31 14:30, Jack Little wrote:
> I am coding a game and I want the player to be able to quit the game and
> immediately take off right from where they started from.
If you're asking how to store variables between sessions, look at the pickle
module.
pgpWT4yz_VlbP.pgp
Description: PGP si
I am coding a game and I want the player to be able to quit the game and
immediately take off right from where they started from.
--Jack___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman
D.V.N.Sarma డి.వి.ఎన్.శర్మ, 31.08.2013 18:30:
> I have been searching for mergesort implimentations in python and came
> across this.
In case this isn't just for education and you actually want to use it, the
built-in sorting algorithm in Python (used by list.sort() and sorted()) is
a very fast me
On 2013-08-31 22:00, D.V.N.Sarma డి.వి.ఎన్.శర్మ wrote:
> def merge(a, b):
> if len(a)*len(b) == 0:
> return a+b
Indentation in Python matters; if you're going to post code, you should
probably keep it.
> We have to look at the statement as
>
> v = ((a[0] < b[0] and a) or b).pop(0)
This is short
I have been searching for mergesort implimentations in python and came
across
this.
def merge(a, b):
if len(a)*len(b) == 0:
return a+b
v = (a[0] < b[0] and a or b).pop(0)
return [v] + merge(a, b)
def mergesort(lst):
if len(lst) < 2:
return lst
m = len(lst)/2
return merge(mergesort(lst[:m]), mer
On 30 August 2013 17:39, eryksun wrote:
> On Fri, Aug 30, 2013 at 11:04 AM, Albert-Jan Roskam wrote:
>
>> the function returns 850 (codepage 850) when I run it via the command prompt,
>> but 1252 (cp1252) when I run it in my IDE (Spyder).
>
> Maybe Spyder communicates with python.exe as a subproc