Re: Python form Unix to Windows

2006-08-16 Thread neokosmos
Pradeep wrote: > We are changing the python application from Unix to Windows. The source > code of Python application should work well in windows. How to make > changed to windows environment. > In Python code we have login module, ftp, socket programming. > > Please help in changing the code from

Memory usage of an 'empty' python interpreter

2006-08-15 Thread neokosmos
I was wondering what the approximate amount of memory needed to load a Python interpreter (only, no objects, no scripts, no nothing else) in a Linux 2.6 environment. According to ps, it appears to be 3312 bytes, which seems absurdly low to me. However, when I check the size of my Python executabl

Re: Python share CPU time?

2006-08-10 Thread neokosmos
[EMAIL PROTECTED] wrote: > You should take a look at stackless Python. It should do very nicely > for what you want. There is a good tutorial on it here: > http://members.verizon.net/olsongt/stackless/why_stackless.html Not being intimately familiar with Stackless myself, I wonder, how would

Re: Python share CPU time?

2006-08-10 Thread neokosmos
alex23 wrote: > Simon Forman wrote: > > This is just a dim memory, but something called lambdaMOO was (is?) a > > Multi-User Dungeon that had (has?) a model of processing that allowed > > you to create programmed objects that received a "budget" of processor > > time. The objects would not work i

Re: Python share CPU time?

2006-08-10 Thread neokosmos
Yannick wrote: > I would like to program a small game in Python, kind of like robocode > (http://robocode.sourceforge.net/). > Problem is that I would have to share the CPU between all the robots, > and thus allocate a time period to each robot. However I couldn't find > any way to start a thread

Generator-based microthreads and games

2006-08-10 Thread neokosmos
I've seen various generator-based microthread implementations online, but I've been wondering: has anyone used microthreads in this manner in a game environment? Note, I am emphatically *not* referring to Stackless, which I know has been used in a production game environment; this post is referrin

Re: Password authentication systems

2006-08-10 Thread neokosmos
Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > My goal is to keep user passwords as safe as possible, assuming someone > > did decide to steal the password files. > > How often will new accounts be added? I have an idea I might try to > code up. Frequently, I hope. Realistically, when I open

Re: Password authentication systems

2006-08-10 Thread neokosmos
Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > I had considered the hmac module. The thing that bugs me about it is > > that I'd have to keep this secret key around someplace accessible to > > the server. Most likely, this means storing it in a file. > > Yeah, this issue is traditionally a n

Password authentication systems

2006-08-10 Thread neokosmos
This may only be tangentially related to Python, but since I am coding a password authentication system in Python, I thought I would ask here. In Linux (and presumably other *NIX systems that support it), when shadow passwords are enabled, the actual password is not stored. Instead an encrypted ve

Re: (newbie) Float() and high precision

2006-08-10 Thread neokosmos
[EMAIL PROTECTED] wrote: > What's the best way to do higher precision maths than the standard Float()? It depends exactly what your needs are. What sort of application are you thinking of? You may actually need a good numerical analyst and not necessarily a new datatype here. :-) -- http://ma

Re: Password authentication systems

2006-08-10 Thread neokosmos
First, I'd just like to say, wow, and thanks to both you and Sybren for your fast responses. :) Twenty minutes is less time than it takes to get an answer from some companies paid tech support. ;) Paul Rubin wrote: > There are two main issues: > > 1) Unix password hashing uses several different