Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread yoda
Thanks for the whitepapers and incredibly useful advice. I'm beginning to get a picture of what I should be thinking about and implementing to achieve this kind of scalability. Before I go down any particular route here's a synopsis of the application. 1)User requests are received only during su

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Paul Rubin
"yoda" <[EMAIL PROTECTED]> writes: > Currently, the content is generated and a number of SMS per user are > generated. I'll have to measure this more accurately but a cursory > glance indicated that we're generting approximately 1000 sms per > second. (I'm sure this can't be right.. the parser\gene

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Kay Schluehr
Steve Holden wrote: > could ildg wrote: > > Python is wonderful except that it has no real private and protected > > properties and methods. > > Every py object has dict so that you can easily find what fields and > > methods an obj has, > > this is very convenient, but because of this, py is very

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Paul Rubin
Gregor Horvath <[EMAIL PROTECTED]> writes: > One reason is that it does not restrict the programer to tight und has > genuine simple solutions, like the one with "private" instance > variables. If you don't want the compiler to make sure your private instance variables stay private, then don't dec

Strange Extension Module Behavior

2005-09-28 Thread Jeremy Moles
Hey guys. I have an extension module written in C that abstracts and simplifies a lot of what we do here. I'm observing some strange behavior and wanted to know if anyone had any advice as to how I should start tracking this down. More specific suggestions are obviously appreciated, but I really do

duplicate entries

2005-09-28 Thread jackie chang
Dear Python Gurus:   I am a very new Python user, would really appreciate your help.   I used Python to write a web form for users to enter. The underlined database is Oracle. One validation needs to enforce to eliminate duplicates entries. For example: one customer ID can only be entered only on

Mails not receiving from techint.com.bh domain

2005-09-28 Thread AAR
When the users of techint.com.bh send me mails to my Yahoo ID, they are receiving bounce-back error msg as below: recipient was unavailable to take delivery of the message to any Yahoo IDs. Please explain - why they are getting this errors. Regards, Anees -- http://mail.python.org/mailman/

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread yoda
>1. How are you transmitting your SMSs? Currently, a number of different gateways are being used: 2 provide a SOAP web service interface, 1 other provides a REST based web service. A transaction using the SOAP web services takes 3-5 seconds to complete (from the point of calling the method to rece

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread simonwittber
yoda wrote: > I'm considering moving to stackless python so that I can make use of > continuations so that I can open a massive number of connections to the > gateway and pump the messages out to each user simultaneously.(I'm > thinking of 1 connection per user). This won't help if your gateway wo

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Gregor Horvath
Paul Rubin schrieb: > > Huh? If my car has a "feature" that lets someone blow it to > smithereens from hundreds of miles away without even intending to, > that's somehow an advantage? I would not accept a car that does constraint my driving directions. I want to drive for myself, because its f

Will Python Be Good For This Type Of Project?

2005-09-28 Thread Hal Vaughan
I'm self taught and most of what I've been working on for the past several years has been entirely in Perl and Java. I've noticed that I can code about 5 times faster in Perl than Java, in part because I feel like whenever I want to do something in Java, I have to create an object, do a few preper

ANN: MathDOM 0.1 - MathML in Python

2005-09-28 Thread Stefan Behnel
Hi everyone, I herefore announce the availability of the first public version of MathDOM on SourceForge. http://sourceforge.net/projects/mathdom MathDOM is a set of Python modules (using PyXML and pyparsing) that import mathematical terms as a Content MathML DOM. It currently parses MathML and l

Re: byte code generated under linux ==> bad magic number under

2005-09-28 Thread Fredrik Lundh
Shobha Rani wrote: (I think more people might read your posts if you skip the HTML stuff; if you insist on HTML, you could at least use a reasonable color) > How byte code is generated? For example when we run the java > program then the compiler generates the byte code? > How the byte code is ge

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Fredrik Lundh
Tony Meyer wrote: > That elaborates on the intent, it doesn't change it. The sentence > clearly says that the intent is to easily define private variables, > whereas Simon said that it the intent was not to provide a mechanism > for making variables private. Are you aware of the fact that comput

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Paul Rubin
Gregor Horvath <[EMAIL PROTECTED]> writes: > No, but the assumption here is that the maintainer / designer of a > class alaways knows everything and things are static. Unfortunatly > this is wrong in real live. I'd say it's pretty far removed from how multi-person software projects actually work.

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Gregor Horvath
Paul Rubin schrieb: > allowed to do that--that's why the variable is private. Is he > supposed to get your permission every time he wants to change how the > private variables in his class work? > No, but the assumption here is that the maintainer / designer of a class alaways knows everything

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> > Generally that sounds reasonable. Obviously there are other examples >> > when (e.g. for security) you have to make sure that variables can't be >> > read by other classes, e.g. you have a class that stores

Re: Rollover/wraparound time of time.clock() under win32?

2005-09-28 Thread Tim Peters
[Russell Warren, playing w/ time.clock() on Windows] > ... > Based on this code and some quick math it confirms that not only will > the rollover be a looong way out, but that there will not be any loss > in precision until ~ 30 years down the road. Checking my math: > > (float(10**16 + 1) - floa

Zope3 Examples?

2005-09-28 Thread Markus Wankus
Hi All, Does anyone know of any good Zope3 examples? I'm new to Zope and I just want to start with a simple website, and later move on to a more complex site with interactive calendar, obligatory blog/wiki/buzzword-of-the-day-thingy, etc. I started by installing Zope2 and Plone but it was ver

Re: FarPy GUIE v0.1

2005-09-28 Thread Gordon Hennesy
Walter Purvis gmail.com> writes: > > Is there a URL? http://farpy.holev.com/ -- http://mail.python.org/mailman/listinfo/python-list

byte code generated under linux ==> bad magic number under

2005-09-28 Thread Shobha Rani
How byte code is generated? For example when we run the java program then the compiler generates the byte code? How the byte code is generated for the source code(java)?   Regards, Shobha Rani @ Genesis      -- http://mail.python.org/mailman/listinfo/python-list

Re: Rollover/wraparound time of time.clock() under win32?

2005-09-28 Thread Russell Warren
Thanks! That gets me exactly what I wanted. I don't think I would have been able to locate that code myself. Based on this code and some quick math it confirms that not only will the rollover be a looong way out, but that there will not be any loss in precision until ~ 30 years down the road. C

Re: Pythonwin crashes

2005-09-28 Thread Steve Holden
Lucas Raab wrote: > accolades wrote: > >>Does anyone else have a problem with Pythonwin crashing after running a >>python script with graphics libraries? Whenever I use Pythonwin to run >>a PyGame or PyOgre script, Pythonwin crashes when the script exits. >> >>I know it's probably because the Pyth

Re: converting Word to MediaWiki

2005-09-28 Thread Jeff Schwab
ChiTownBob wrote: > Perl just sucks, as all good Python hackers know! I disagree. Perl has saved my butt more times than I care to count. Python certainly has its advantages, but I won't be giving up Perl any time soon. -- http://mail.python.org/mailman/listinfo/python-list

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Jeff Schwab
[EMAIL PROTECTED] wrote: > Jeff> How many are more than "a few?" > > I don't know. What can you do today in commercial stuff, 16 processors? > How many cores per die, two? Four? We're still talking < 100 processors > with access to the same chunk of memory. For the OP's problem that's still

converting Word to MediaWiki

2005-09-28 Thread ChiTownBob
I'm trying to convert our documentation over to the Wikipedia format (MediaWiki), and about ready to give up on the Perl-based method I found (because Perl just sucks, as all good Python hackers know!). Perl really IS a write-only language. rather than mess with Word formats directly, I had co

Re: Alternatives to Stackless Python?

2005-09-28 Thread Christian Tismer
Christophe wrote: ... > Not sure if greenlets support pickling yet. There are no info on that > point and my tests weren't succesful. Greenlets refine a concept of Stackless 2.0 which was orthogonal to the Python implementation in a sense that they did not conflict at all. This is less efficient

Re: Alternatives to Stackless Python?

2005-09-28 Thread Christian Tismer
Peter Hansen wrote: > [EMAIL PROTECTED] wrote: > >>>I found LGT http://lgt.berlios.de/ but it didn't seem as if the >>>NanoThreads module had the same capabilites as stackless. >> >>What specific capabilities of Stackless are you looking for, that are >>missing from NanoThreads? > > > While I c

Re: Problem SQL ADO

2005-09-28 Thread len
Thanks You are correct. That was the problem. -- http://mail.python.org/mailman/listinfo/python-list

Re: Overhead of individual python apps

2005-09-28 Thread Neil Hodgson
Dennis Lee Bieber: > I've not investigated -- but what is the default stack size given to > an application? Python has a stack reserve of 200 bytes but that is an allocation of virtual space. Pages are realised in that allocation as required with an initial stack commit of one pag

Re: Font management under win32

2005-09-28 Thread Neil Hodgson
Stefano Masini: > Indeed, win32gui does contain an EnumFontFamilies (without the > trailing "Ex") function, but I found no usage example, and I couldn't > figure out how to use LOGFONT handles (since such a thing is required > as the first parameter to the call). So I decided to punt on it and > a

Re: Rollover/wraparound time of time.clock() under win32?

2005-09-28 Thread Peter Hansen
Russell Warren wrote: > Does anyone know how long it takes for time.clock() to roll over under > win32? > > I'm aware that it uses QueryPerformanceCounter under win32... when I've > used this in the past (other languages) it is a great high-res 64-bit > performance counter that doesn't roll-over f

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Tony Meyer
On 29/09/2005, at 3:45 AM, Fredrik Lundh wrote: > Tony Meyer wrote: > >>> I thought about it, but I didn't mention it in the end because this >>> feature ("name mangling") isn't intended as a mechanism for making >>> things private - it's intended to prevent namespace clashes when >>> doing >>>

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Michael Schneider
I would need to get a better picture of your app. I use a package called twisted to handle large scale computing on multicore, and multi-computer problems http://twistedmatrix.com/ Hope this is useful, Mike yoda wrote: > Hi guys, > My situation is as follows: > > 1)I've developed a service th

Re: Pythonwin crashes

2005-09-28 Thread Lucas Raab
accolades wrote: > Does anyone else have a problem with Pythonwin crashing after running a > python script with graphics libraries? Whenever I use Pythonwin to run > a PyGame or PyOgre script, Pythonwin crashes when the script exits. > > I know it's probably because the Pythonwin interpreter can't

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > > Generally that sounds reasonable. Obviously there are other examples > > when (e.g. for security) you have to make sure that variables can't be > > read by other classes, e.g. you have a class that stores a capability > > (or a password) in an instance va

Re: reference count

2005-09-28 Thread J
I tend to answer my own questions a lot. But he, lets grow the knowledge base :)... PyErr_Clear() after PyErr_Print did the trick J -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > No, but that is precisely why Python's semi-private variables are > usually better. Names like _X and class.__X are warnings to the developer > "use these at your own risk", without preventing developers who need them > from using them. You have most of

Re: Fixes since 2.4.2c1? (was: RELEASED Python 2.4.2 (final))

2005-09-28 Thread Terry Reedy
"Michael Ströder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does that differ from 2.4.2c1? On Monday I noticed a crash in the test > suite on a box running Solaris 8. It seems I can build Python 2.4.1 and > run make test there without problems. There were are few additional f

Re: Dynamically adding and removing methods

2005-09-28 Thread Steven Bethard
Terry Reedy wrote: > "Ron Adam" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Actually I think I'm getting more confused. At some point the function >>is wrapped. Is it when it's assigned, referenced, or called? > > > When it is referenced via the class. > If you lookup i

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Steven D'Aprano
On Wed, 28 Sep 2005 09:36:54 -0700, ncf wrote: > If you have that many users, I don't know if Python really is suited > well for such a large scale application. Perhaps it'd be better suited > to do CPU intensive tasks it in a compiled language so you can max out > proformance and then possibly us

reference count

2005-09-28 Thread J
Hi, I have a problem with the reference count after an error occurs in a script which I execute as follows.. PyObject* lDict = PyDict_New(); PyDict_SetItemString(lDict, "item", (PyObject*)iItem->mPyObject); PyObject* lResult = PyEval_EvalCode(mCode, ScnGlobal::sDictionary, lDict); if (! lResult)

Fixes since 2.4.2c1? (was: RELEASED Python 2.4.2 (final))

2005-09-28 Thread Michael Ströder
Anthony Baxter wrote: > On behalf of the Python development team and the Python community, I'm > happy to announce the release of Python 2.4.2 (final). Does that differ from 2.4.2c1? On Monday I noticed a crash in the test suite on a box running Solaris 8. It seems I can build Python 2.4.1 and run

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Steven D'Aprano
On Wed, 28 Sep 2005 15:23:07 -0700, Paul Rubin wrote: > Gregor Horvath <[EMAIL PROTECTED]> writes: >> If its your code this is possible, but if not and the maintainer is >> not willing or able to change it, then you have a problem. > > Perhaps the maintainer has good reason for not wanting to cha

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Jeremy Jones
[EMAIL PROTECTED] wrote: >Damjan> Is there some python module that provides a multi process Queue? > >Skip> Not as cleanly encapsulated as Queue, but writing a class that >Skip> does that shouldn't be all that difficult using a socket and the >Skip> pickle module. > >Jeremy> Wh

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread skip
Jeff> How many are more than "a few?" I don't know. What can you do today in commercial stuff, 16 processors? How many cores per die, two? Four? We're still talking < 100 processors with access to the same chunk of memory. For the OP's problem that's still 10,000 users per processor. Mayb

Rollover/wraparound time of time.clock() under win32?

2005-09-28 Thread Russell Warren
Does anyone know how long it takes for time.clock() to roll over under win32? I'm aware that it uses QueryPerformanceCounter under win32... when I've used this in the past (other languages) it is a great high-res 64-bit performance counter that doesn't roll-over for many (many) years, but I'm worr

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread skip
Damjan> Is there some python module that provides a multi process Queue? Skip> Not as cleanly encapsulated as Queue, but writing a class that Skip> does that shouldn't be all that difficult using a socket and the Skip> pickle module. Here's a trivial implementation of a pair of b

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> Note that the quoted article only applies to *writing* attributes. It >> doesn't say anything about needing accessors to *read* a >> variable. This encourages me that the convention I use - adopted from >> Eif

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin writes: > Gregor Horvath <[EMAIL PROTECTED]> writes: >> > to be able to share private variables with other classes under certain >> > circumstances, it's better to use something like C++'s "friend" >> > declaration, where you can export the variables to a spec

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Jeff Schwab
[EMAIL PROTECTED] wrote: > Damjan> Is there some python module that provides a multi process Queue? > > Skip> Not as cleanly encapsulated as Queue, but writing a class that > Skip> does that shouldn't be all that difficult using a socket and the > Skip> pickle module. > > Jere

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Paul Rubin
Gregor Horvath <[EMAIL PROTECTED]> writes: > If its your code this is possible, but if not and the maintainer is > not willing or able to change it, then you have a problem. Perhaps the maintainer has good reason for not wanting to change it. After all, he's maintaining the code and you're not. I

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread skip
Damjan> Is there some python module that provides a multi process Queue? Skip> Not as cleanly encapsulated as Queue, but writing a class that Skip> does that shouldn't be all that difficult using a socket and the Skip> pickle module. Jeremy> What about bsddb? The example cod

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Gregor Horvath
Paul Rubin schrieb: > Gregor Horvath <[EMAIL PROTECTED]> writes: > >>>to be able to share private variables with other classes under certain >>>circumstances, it's better to use something like C++'s "friend" >>>declaration, where you can export the variables to a specific other class. >> >>That as

use staticBitmap to show image with raw data?

2005-09-28 Thread James Hu
Hi,   We have a HAMAMATSU camera, and we want to display the real-time image (captured every 0.2s+) on the screen. The captured image from camera is raw data, If saved to PNG file via Image (PIL), and open with wx.Image(“*.png”), the image can be shown on the wx.staticBitmap area. Howeve

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > Note that the quoted article only applies to *writing* attributes. It > doesn't say anything about needing accessors to *read* a > variable. This encourages me that the convention I use - adopted from > Eiffel, where the compiler enforces it - of freeling re

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Paul Rubin
Gregor Horvath <[EMAIL PROTECTED]> writes: > > to be able to share private variables with other classes under certain > > circumstances, it's better to use something like C++'s "friend" > > declaration, where you can export the variables to a specific other class. > > That assumes that you always

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Jeremy Jones
[EMAIL PROTECTED] wrote: >Damjan> Is there some python module that provides a multi process Queue? > >Not as cleanly encapsulated as Queue, but writing a class that does that >shouldn't be all that difficult using a socket and the pickle module. > >Skip > > > What about bsddb? The example

Re: backreferences

2005-09-28 Thread Peter
Iain King wrote: >Amy Dillavou wrote: > > >>Can someone help me with understanding how python uses backreferences? >>I need to remember the item that was last matched by the re engine but i >>cant seem to understand anything that I find on backreferences. if I >>want to access the last match do

Nufox : Simple Tree

2005-09-28 Thread salvatore . didio
Nufox allow XUL developement like you could do with any other GUI library If you want to see an example : http://www.google.com/url?sa=D&q=http://www.freezope.org/Members/artyprog/programmation/lienspython/nufox/examples/sortedcolumns Regards Salvatore -- http://mail.python.org/mailman/listi

Re: Pixel Manipulations

2005-09-28 Thread Terry Reedy
"PyPK" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [an exact duplicate of the off-topic message posted under the more informative subject line of 'Straight line detection'] Please do no post the same message twice, especially not with two different subject lines. I believe th

Pixel Manipulations

2005-09-28 Thread PyPK
Does anyone know of a simple implementation for detecting straight line .So something like if we have a 2D arary of pixel elements representing a particular Image. How can we identify lines in this Image. for example: ary = [[1,1,1,1,1], [1,1,0,0,0], [1,0,1,0,0], [1,0,0,1,0], [1,0,0,0,1]] So i

Straight line detection

2005-09-28 Thread PyPK
Does anyone know of a simple implementation of a straight line detection algorithm something like hough or anything simpler.So something like if we have a 2D arary of pixel elements representing a particular Image. How can we identify lines in this Image. for example: ary = [[1,1,1,1,1], [1,1,0,0

Re: Dynamically adding and removing methods

2005-09-28 Thread Terry Reedy
"Ron Adam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Actually I think I'm getting more confused. At some point the function > is wrapped. Is it when it's assigned, referenced, or called? When it is referenced via the class. If you lookup in class.__dict__, the function is

readline installation problem

2005-09-28 Thread Jian Qiu
Hi, I tried to install python2.4.2. Unfortunately building 'readline' extension failed. Here is what I got: (It is a bit long. If you are impatient, please look at the end where it reports the warning.) building 'readline' extension gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Tim Daneliuk
yoda wrote: > Hi guys, > My situation is as follows: > > 1)I've developed a service that generates content for a mobile service. > 2)The content is sent through an SMS gateway (currently we only send > text messages). > 3)I've got a million users (and climbing). > 4)The users need to get the data

Re: pyMinGW support for Python 2.4.2 (final) is available

2005-09-28 Thread A.B., Khalid
This is a free site. To generate ad revenues, I suppose, they make those zip files available through multiple clicking, so as to eliminate direct linking. And who can blame them. Using Firefox, I am able to download the zip files after exactly clicking on the page you mention twice, pausing betwee

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread skip
Damjan> Is there some python module that provides a multi process Queue? Not as cleanly encapsulated as Queue, but writing a class that does that shouldn't be all that difficult using a socket and the pickle module. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: pyMinGW support for Python 2.4.2 (final) is available

2005-09-28 Thread Claudio Grondi
I am not able to download any file from the site below, getting always only a page with link to the download which is the link to the HTML page with same link. Any ideas why? Claudio "A.B., Khalid" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > This is to inform those interes

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Damjan
> If you want to use a multithreaded design, then simply use a python > Queue.Queue for each delivery channel. If you want to use a > multi-process design, devise a simple protocol for communicating those > messages from your generating database/process to your delivery channel > over TCP sockets.

ANN: pyMinGW support for Python 2.4.2 (final) is available

2005-09-28 Thread A.B., Khalid
This is to inform those interested in compiling Python in MinGW that an updated version of pyMinGW is now available. Get it from here: http://jove.prohosting.com/iwave/ipython/pyMinGW.html Regards Khalid -- http://mail.python.org/mailman/listinfo/python-list

Re: Wits end with Python and cron

2005-09-28 Thread Fredrik Lundh
I wrote: > if you're running a python program directly from cron and I should really learn to tell the difference between a shell script and a python program (but hey, this is comp.lang.python). see jepler's reply for the quickest way to fix your problems. -- http://mail.python.org/mailma

Re: Wits end with Python and cron

2005-09-28 Thread Fredrik Lundh
Justin Delvecchio wrote: > I've researched this problem for the last few days. Say I have > the following script that I execute from cron on linux. Yes, the > following runs quite fine from the command line: > And the error I continually get is: > > Traceback (most recent call last): > File "

Re: Wits end with Python and cron

2005-09-28 Thread jepler
You need to "export" the variables. otherwise, they exist only in the shell, not in the processes it starts. Jeff pgplXE5VuF44A.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: import problems in packages

2005-09-28 Thread Peter Otten
Stéphane Ninin wrote: > Also sprach Stéphane Ninin : Sollte es denn möglich sein! Dieser alte Heilige hat in seinem Walde noch Nichts davon gehört... that intra-package import takes precedence over absolute import! > Here is the basic structure of the code (I have reduced it first). And nicely

Wits end with Python and cron

2005-09-28 Thread Justin Delvecchio
I’ve researched this problem for the last few days.  Say I have the following script that I execute from cron on linux.  Yes, the following runs quite fine from the command line:   #! /bin/sh # /u01/app/oracle/product/10.1.0/Db_1/lib source /home/oracle/.bashrc PYTHONPATH=/usr/lib/pyth

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Alan Kennedy
[yoda] > I really need help because my application currently can't scale. Some > user's end up getting their data 30 seconds after generation(best case) > and up to 5 minutes after content generation. This is simply > unacceptable. The subscribers deserve much better service if my > startup is to

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Paul Boddie
yoda wrote: > 2)The content is sent through an SMS gateway (currently we only send > text messages). [...] > 4)The users need to get the data a minimum of 5 seconds after it's > generated. (not considering any bottlenecks external to my code). You surely mean a "maximum of 5 seconds"! Unfortunat

Re: Dynamically adding and removing methods

2005-09-28 Thread Ron Adam
Steven D'Aprano wrote: > On Tue, 27 Sep 2005 16:42:21 +, Ron Adam wrote: > > >>>def beacon(self, x): ...print "beacon + %s" % x ... >>> >>> >>>Did you mean bacon? *wink* >> >>Of course... remembering arbitrary word letter sequences is probably my >>worst skill. ;-) Tha

Re: import problems in packages

2005-09-28 Thread Peter Hansen
Stéphane Ninin wrote: > Traceback (most recent call last): > File "main.py", line 8, in ? > main() > File "main.py", line 5, in main > handler = HandlerFactory().makeHandler(command) > File "c:\ROOT\Handlers\HandlerFactory.py", line 6, in HandlerFactory > import Handlers.Default.H

Re: Human readable number formatting

2005-09-28 Thread [EMAIL PROTECTED]
MrJean1 wrote: > No, I didn't. See the references at the bottom. > > /Jean Brouwers So when I say "I'm sorta busy" it means I'm REALLY busy. -- http://mail.python.org/mailman/listinfo/python-list

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Irmen de Jong
Chris Curvey wrote: > Multi-threading may help if your python program is spending all it's > time waiting for the network (quite possible). If you're CPU-bound and > not waiting on network, then multi-threading probably isn't the answer. Unless you are on a multi cpu/ multi core machine. (but mi

looking for tool for developping GUI in wxPython

2005-09-28 Thread Antony Kummel
Hi,   I'm looking for a relativaly stable tool (preferbly free) for developping GUI in wxPython over Windows platform. Stability is mostly in the sense that the generated code is stable. The important parameters for me are the stability of the tool, the ease of use, and the ability to seperate the

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Chris Curvey
I guess I'd look at each part of the system independently to be sure I'm finding the real bottleneck. (It may be Python, it may not). Under your current system, is your python program still trying to send messages after 5 seconds? 30 seconds, 300 seconds? (Or have the messages been delivered to

Re: What does pygame.Movie mean by `an MPEG file'?

2005-09-28 Thread Grant Edwards
On 2005-09-28, Roel Schroeven <[EMAIL PROTECTED]> wrote: > Grant Edwards schreef: >> There are two issues when it comes to video files: >> >> 1) The "container" format. That defines the mechanism used to >> combine the video and audio data streams into a single byte >> stream (e.g. a fil

Re: What does pygame.Movie mean by `an MPEG file'?

2005-09-28 Thread Roel Schroeven
Grant Edwards schreef: > There are two issues when it comes to video files: > > 1) The "container" format. That defines the mechanism used to > combine the video and audio data streams into a single byte > stream (e.g. a file). This is what is usually denoted by > file file suffix.

Re: import problems in packages

2005-09-28 Thread St�phane Ninin
Also sprach Stéphane Ninin : > > > ... when I start main.py, I get: > > Traceback (most recent call last): > File "main.py", line 8, in ? > main() > File "main.py", line 5, in main > handler = HandlerFactory().makeHandler(command) > File "c:\ROOT\Handlers\HandlerFactory.py", line

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread ncf
> Do you know any language that has real private and protected attributes? As long as the values are stored in memory, there's always a way to alter and access them. So, IMHO, no program can have truely private/protected values. -- http://mail.python.org/mailman/listinfo/python-list

import problems in packages

2005-09-28 Thread St�phane Ninin
Hello all, I have an ImportError problem, which is probably correct, but I do not understand it. And how to fix it... Here is the basic structure of the code (I have reduced it first). ROOT: /main.py /Handlers/__init__.py (empty) /Handlers/Handlers.py /Handlers/HandlerFactory.py

Re: PEP 350: Codetags

2005-09-28 Thread Ron Adam
Micah Elliott wrote: > Please read/comment/vote. This circulated as a pre-PEP proposal > submitted to c.l.py on August 10, but has changed quite a bit since > then. I'm reposting this since it is now "Open (under consideration)" > at . > > Thanks! How a

Re: memoru usage of process

2005-09-28 Thread MrJean1
What do you mean by 'Python way' and 'not related to Python'? How is parsing the output of 'ps' different from the method used in recipe 286222? /Jean Brouwers -- http://mail.python.org/mailman/listinfo/python-list

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread ncf
If you have that many users, I don't know if Python really is suited well for such a large scale application. Perhaps it'd be better suited to do CPU intensive tasks it in a compiled language so you can max out proformance and then possibly use a UNIX-style socket to send/execute instructions to th

Re: Human readable number formatting

2005-09-28 Thread MrJean1
No, I didn't. See the references at the bottom. /Jean Brouwers -- http://mail.python.org/mailman/listinfo/python-list

Re: FarPy GUIE v0.1

2005-09-28 Thread ncf
Walter Purvis wrote: > Is there a URL? Haha. Google :) http://farpy.holev.com/ -- http://mail.python.org/mailman/listinfo/python-list

another time challenge

2005-09-28 Thread nephish
Hey there pythoneers i have another question about time, specifically, the mxDateTime module. i have been able to get a RelativeDateTimeDiff between two times, it gives me a difference between two DateTimes in the form of +3days +2hours etc... so, if i have a date that is 6 days and 6 hours from

Re: Silly function call lookup stuff?

2005-09-28 Thread Tom Anderson
On Tue, 27 Sep 2005, Dan Sommers wrote: > On Wed, 28 Sep 2005 00:38:23 +0200, > Lucas Lemmens <[EMAIL PROTECTED]> wrote: > >> On Tue, 27 Sep 2005 13:56:53 -0700, Michael Spencer wrote: > >>> Lucas Lemmens wrote: > Why isn't the result of the first function-lookup cached so that followin

1 Million users.. I can't Scale!!

2005-09-28 Thread yoda
Hi guys, My situation is as follows: 1)I've developed a service that generates content for a mobile service. 2)The content is sent through an SMS gateway (currently we only send text messages). 3)I've got a million users (and climbing). 4)The users need to get the data a minimum of 5 seconds after

Re: FarPy GUIE v0.1

2005-09-28 Thread Walter Purvis
Is there a URL? -- http://mail.python.org/mailman/listinfo/python-list

Font management under win32

2005-09-28 Thread Stefano Masini
Hi, I have a simple need, running under windows: 1) retrieve the list of installed system fonts 2) maybe install missing fonts Surprisingly for me, there seems to be no support for such a thing in python. I really hope I'm mistaken, so _please_ correct me if I'm wrong. I found out that it all b

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Fredrik Lundh
Tony Meyer wrote: >> I thought about it, but I didn't mention it in the end because this >> feature ("name mangling") isn't intended as a mechanism for making >> things private - it's intended to prevent namespace clashes when doing >> multiple inheritance. > > That's not what the documentation sa

  1   2   >