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

What python idioms for private, protected and public?

2005-09-29 Thread Michael Schneider
I have been following this thread with great interest. I have been coding in C++ since the late 80's and Java since the late 90's. I do use private in these languages, with accessors to get at internal data. This has become an ingrained idiom for me. When I create a python object, it is natu

Re: What python idioms for private, protected and public?

2005-09-29 Thread Michael Schneider
Frederik, Thank you very much for the info on properties, that is very useful. Sorry about the public typo, that should have been protected. I should not post before coffee hits :-) Happy coding, Mike Fredrik Lundh wrote: > Michael Schneider wrote: > > >>1) mark an objec

Re: So far

2005-10-06 Thread Michael Schneider
Take a look at: http://wingware.com/ It is only $35.00 for an IDE. (30 day free eval version) I use eclipse for java, and have become quite fond of tab completion. Mike CppNewB wrote: > I am absolutely loving my experience with Python. Even vs. Ruby, the syntax > feels very clean with an emp

Problems with properties

2005-10-14 Thread Michael Schneider
Hello All, I have been working on learning how to use python properties. The get property access is working, but the the set property is not working. Rather then dispatching the property assignment to setNothing, the property object is being replaced with a string. I must be doing something ver

Re: Problems with properties

2005-10-14 Thread Michael Schneider
Thanks to all, I added the object as a subclass (should this be required for 2.4.1 ???) I also switched to the decorator with the @property syntax Thank you very much for the help for adding @property to the language. what a great language :-) Mike Michael Schneider wrote: > Hello

Re: Problems with properties

2005-10-14 Thread Michael Schneider
Thanks to all, I added the object as a subclass (should this be required for 2.4.1 ???) I also switched to the decorator with the @property syntax Thank you very much for the help for adding @property to the language. what a great language :-) Mike Michael Schneider wrote: > Hello

Re: Read/Write from/to a process

2005-10-25 Thread Michael Schneider
Jas, I use a python called twisted to run processes as you describe. Twisted is an event-driven framework that brings a change in the way that you look at things. take a look at: http://twistedmatrix.com/projects/core/documentation/howto/process.html Good luck, hope this is useful, Mike jas

weakrefs to functions for observer pattern

2005-11-02 Thread Michael Schneider
Hello All, I am comming back to python after being away for several years. I would like to use weak refs in an observer pattern implementation. The problme that I have seems to be that weakrefs can't manage functions. --- from docs: http://www.python.org/doc/current/lib/module-

Re: weakrefs to functions for observer pattern

2005-11-03 Thread Michael Schneider
Alex Martelli wrote: > Michael Schneider <[EMAIL PROTECTED]> wrote: > > >>I would like to use weak refs in an observer pattern implementation. >>The problme that I have seems to be that weakrefs can't manage functions. > > > They can manage just fin

Re: Using Which Version of Linux

2005-11-05 Thread Michael Schneider
I have been away from unix/linux for a couple of years. I went with SUSE. Just do an install all, and 10 gig later you are done. Very simple install, very easy admin with YAST. If you are a power admin, there may be better release. But if you want simple, but powerful, SUSE has worked well fo

Re: AJAX => APAX? Or: is there support for python in browsers?

2005-11-16 Thread Michael Schneider
Alex, Good point. Can python be used to write firefox extensions that could be called from javascript? 1) javascript would come in on the HTML page 2) javascript would communication with the Extension API 3) the extension would be written in python That way, you would only need to make your e

Re: Looking for small, impressive 3D-related Python script

2005-11-29 Thread Michael Schneider
Ken, I would suggest that you embed python in your app (very easy to do). -And convert several of your existing scripts to python. -Show them a stack of python books for customer training purposes - Drive excel with python (allows integration of your product with other products. - Pick an are

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Michael Schneider
[EMAIL PROTECTED] wrote: ,, However there is one thing I don't like in python, > that is, scoping by indentation. But it would not annoy me so much that > make me decide to implement a new language^_^. > > > Regards, > > Limin > I find these comments interesting. It is very common for

Re: How to ping in Python?

2005-12-07 Thread Michael Schneider
I telnet to port 13 (returns time) Hope this is helpful, Mike Nico Grubert wrote: > Hi there, > > I could not find any "ping" Class or Handler in python (2.3.5) to ping a > machine. > I just need to "ping" a machine to see if its answering. What's the best > way to do it? > > Kind regards, >

Re: How to ping in Python?

2005-12-07 Thread Michael Schneider
Les, I only ping internal machines. You are right about shutting down ports. When we disable telent, we also disable ping. Many people may not though, good luck, Mike Laszlo Zsolt Nagy wrote: > Michael Schneider wrote: > >> I telnet to port 13 (returns time) >> > The

Re: Ant (with Python extensions) good replacement for distutils?

2005-12-07 Thread Michael Schneider
I would vote against ant because java must be installed to run it. The bootstrap install should be very simple. If you make python usage dependent on: 1) download java 2) install java 3) add java to path 4) download ant 5) install ant 6) add ant to path 7) download ptyhon 8) install python 9) a

Python OGL Shader Programming

2005-09-19 Thread Michael Schneider
Just curious, is anyone using python for OGL 2.0 shader language development? Which lib are you using? Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-29 Thread Michael Schneider
Congratulations to Guide, Mike Harald Armin Massa wrote: > Guido at Google: a message in THE public forum c.l.p. > > A confirmation by Martellibot, that Guido is IN FACT sitting 15m > distant from him; and everybody in Python knows where Martellibot has > his desk. > > Can it get more official

Re: Writing pins to the RS232

2005-12-31 Thread Michael Schneider
Jay, Couple of points that may help you. 1) A serial port does not have data ports 0-n. A serial port takes a byte (8 bits), then shifts them down a single pipe using a chip called a UART (feel free to google for unfamiliar terms). example Bit pattern 1010 1010 would be shifted one bit at a

Re: concatenate the elements in each list of a list of lists

2008-07-23 Thread Michael Schneider
Am Wed, 23 Jul 2008 08:33:57 -0700 wrote antar2: > I already asked a similar question, but encounter problems with > python... > How can I concatenate the elements in each list of a list of lists > > list_of_listsA = > > [['klas*', '*', '*'], > ['mooi*', '*', '*', '*'], > ['arm*', '*', '*(haar)'