Re: Silly function call lookup stuff?

2005-09-28 Thread Fredrik Lundh
Lucas Lemmens wrote: This way any function would only need to be looked up once. you haven't really thought this over, have you? You haven't really answered my questions have you? no, because you proposed a major change to the Python semantics, without spending any effort whatsoever

Re: subprocess problem

2005-09-28 Thread Uri Nix
Hi, I had a similar problem recently, and found that using pipes with os.popen* helped in my case. You can check the thread at: http://mail.python.org/pipermail/python-list/2005-September/300744.html. Cheers, Uri Do Re Mi chel La Si Do wrote: Hi! This script (under Win-XP + P-2.4.1) :

Re: Overhead of individual python apps

2005-09-28 Thread Fredrik Lundh
Paul Rubin wrote: Several apps using 4Mb each shouldn't be very much memory (maybe 20Mb at most). You didn't say how much memory was in your machine, but 256Mb of memory will cost you no more than $50. Not really worth a lot of effort. That is bogus reasoning. not if you're a

Re: sqlobject performance problems (really)

2005-09-28 Thread qvx
qvx wrote: autocommit off attempt: connection_string = 'sqlite:/' + db_filename +'?autoCommit=0' no select attempt: t1 = T1(id=t1id, col1=r.col1, ...) I changed : conn_string = 'sqlite:/' + db_datoteka +'?autoCommit=0' conn = connectionForURI(conn_string)

Re: memoru usage of process

2005-09-28 Thread Jacek Popławski
MrJean1 wrote: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222 Yes, I have seen it in archive, but I was searching for Python way, and it's not Python related at all (it is just reading system file), and won't work on QNX. --

helpviewer and a wxpython application crash

2005-09-28 Thread klaus . roedel
Hi @all, I've implement a python application with boa constructor and wx.python. Now I wanted to add a help to my application. I found the helpviewer, where it is very easy to open a helpbook. So I've create an helpbook with boa constructor and then I open the book with the helpviewer. That's all

Re: Spoiler to Python Challenge (help!!!)

2005-09-28 Thread Ian Vincent
Terry Reedy [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: please, line = line[20:-1], etc, is easier to read and understand ;-) Thanks, i'll put that in. -- http://mail.python.org/mailman/listinfo/python-list

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

2005-09-28 Thread could ildg
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 hard to support real private and protected?If private and

Re: Spoiler to Python Challenge (help!!!)

2005-09-28 Thread Ian Vincent
Terry Hancock [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Took me a long time to figure out what you meant. ;-) So the string actually contains the backslashes, not the escaped characters. This works: bz2.decompress(eval(repr(user))) 'huge' Unfortunately, it doesn't. Get

Re: Python 2.4 under WinXP, free VC71 toolkit and VC6 libraries

2005-09-28 Thread Berthold Höllmann
Peter Hansen [EMAIL PROTECTED] writes: Berthold Höllmann wrote: As I understand it, ctypes is not really a solution. The code is about data handling and FE analysis. It has not GUI component. I'm not sure how well ctypes works with Numeric arrays, but I'm sure ctypes does not work on Linux

Help with unicode and sqlobject/pysqlite2

2005-09-28 Thread qvx
I really can't seem to make sqlobject/pysqlite2 save my local Easter European characters. I am a Windows-1250 user and I have sys.setdefaultencoding('dbcs') in my sitecustomize. How can I save data like šdccž? This is equivalent to '\x9a\xf0\xe8\xe6\x9e' I'm using the latest version of

DispatchWithEvents not working for SQLDMO.Backup

2005-09-28 Thread Chandra
Hi, I tried the following: from win32com.client import DispatchWithEvents class BackupEvent: ... def OnPercentComplete(self, sMessage, nPercent): ... print sMessage, nPercent oSqlBackup = DispatchWithEvents('SQLDMO.Backup', BackupEvent) Traceback (most recent call last):

Re: Python 2.4 under WinXP, free VC71 toolkit and VC6 libraries

2005-09-28 Thread Fredrik Lundh
Berthold Höllmann wrote: OK, then. ctypes works under Linux and Solaris. But before I even think about converting my code to ctypes (and convert lots of Linux libraries from static to dynamic libraries), would the conversion really address my problem? As I understand it, if there is an

Re: Human readable number formatting

2005-09-28 Thread MrJean1
Here is another function for human formatting: pre def sistr(value, prec=None, K=1024.0, k=1000.0, sign='', blank=' '): ''' Convert value to a signed string with an SI prefix. The 'prec' value specifies the number of fractional digits to be included. Use 'prec=0' to omit any

Re: Help with unicode and sqlobject/pysqlite2

2005-09-28 Thread limodou
28 Sep 2005 00:25:31 -0700, qvx [EMAIL PROTECTED]: I really can't seem to make sqlobject/pysqlite2 save my local Easter European characters. I am a Windows-1250 user and I have sys.setdefaultencoding('dbcs') in my sitecustomize. How can I save data like šdccž? This is equivalent to

Re: Overhead of individual python apps

2005-09-28 Thread Paul Rubin
Fredrik Lundh [EMAIL PROTECTED] writes: That is bogus reasoning. not if you're a professional software developer and someone's paying you to develop an application that is to be run on a platform that they control. An awful lot of Python targeted users are not in that situation, so if

Re: Human readable number formatting

2005-09-28 Thread Paul Rubin
MrJean1 [EMAIL PROTECTED] writes: Ocha O + 54 - o otro Nena N + 57 -nk nekto MInga MI+ 60 -mk mikto Luma L + 63 - l lunto Please tell me you're making this up. --

about install wxPython in Redhat Linux AS 4

2005-09-28 Thread Leo Jay
Dear All, I'd like to install wxPython in my Redhat AS 4, I have downloaded both wxPython-common-gtk2-unicode-2.6.1.0-fc2_py2.4.i386.rpm and wxPython2.6-gtk2-unicode-2.6.1.0-fc2_py2.4.i386.rpm packages from www.wxpython.org. After I installed these two packages successfully, what should i do

Re: helpviewer and a wxpython application crash

2005-09-28 Thread accolades
I haven't run into your situation, or tested the concept, but my first guess would be that the helpbook is throwing an exception of some sort. You might try turning on the debugging options, or try using the command line interpreter to launch the helpbook. When you close it, you should be able to

Re: PEP 350: Codetags

2005-09-28 Thread Bruno Widmann
On 2005-09-26, Micah Elliott [EMAIL PROTECTED] wrote: :Objection: I aesthetically dislike for the comment to be terminated with in the empty field case. :Defense: It is necessary to have a terminator since codetags may be followed by non-codetag comments. Or codetags could be

Re: Help with unicode and sqlobject/pysqlite2

2005-09-28 Thread Gerhard Häring
qvx wrote: I really can't seem to make sqlobject/pysqlite2 save my local Easter European characters. I am a Windows-1250 user and I have sys.setdefaultencoding('dbcs') in my sitecustomize. How can I save data like šdccž? This is equivalent to '\x9a\xf0\xe8\xe6\x9e' I'm using the

Re: about install wxPython in Redhat Linux AS 4

2005-09-28 Thread Martin Franklin
Leo Jay wrote: Dear All, I'd like to install wxPython in my Redhat AS 4, I have downloaded both wxPython-common-gtk2-unicode-2.6.1.0-fc2_py2.4.i386.rpm and wxPython2.6-gtk2-unicode-2.6.1.0-fc2_py2.4.i386.rpm packages from www.wxpython.org. After I installed these two packages

You python-list@python.org are not member (linux-sh ML)

2005-09-28 Thread linux-sh-admin
You are not a member of this mailing list [EMAIL PROTECTED]. If you know the general guide of this list, please send mail with the mail body guide to the address [EMAIL PROTECTED] where guide is equal to GUIDE for case insensitive. --

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

2005-09-28 Thread Kilian A. Foth
I just found this amazing video puzzle game written with the pygame library, which promises to be infinite fun - but I can't get it to decode any video file I own, except the game's own example .mpg. All I have is lots and lots of useless .avi, .mp2, .wmv, and so on... Now, the pygame.Movie

Re: Human readable number formatting

2005-09-28 Thread Robert Kern
Paul Rubin wrote: MrJean1 [EMAIL PROTECTED] writes: Ocha O + 54 - o otro Nena N + 57 -nk nekto MInga MI+ 60 -mk mikto Luma L + 63 - l lunto Please tell me you're making this up. No, but someone else is.

Re: How can I set the size of a window with tkinter?

2005-09-28 Thread Iain King
Tor Erik Sønvisen wrote: Hi I create a canvas that is to big for the default window-size, so it gets cut to fit... How can I increase the window-size to make sure the canvas fits? regards tores root=Tk() root.minsize(300,300) root.geometry(500x500) will limit the window to be at least

Re: about install wxPython in Redhat Linux AS 4

2005-09-28 Thread Leo Jay
On 9/28/05, Martin Franklin [EMAIL PROTECTED] wrote: Leo, I don't have AS 4 but fedora core 4 has wx in it's YUM repositories I assume RedHat has too, so perhaps you need to use the officially sanctioned version. If you want to use the latest and greatest then you will most likely need to

Verify python-list@python.org for [EMAIL PROTECTED]

2005-09-28 Thread Yngvi Bjornsson
Hello! Your message has been received, but it hasn't been delivered to me yet. Since I don't have any record of you sending me email from this address before, I need to verify that you're not a spammer. Please just hit 'Reply' and send this message back to me, and your previous message will be

Re: good exercises for Beginner

2005-09-28 Thread Magnus Lycka
Kanthi Kiran Narisetti wrote: I am new to programming and python. In my quest to get good at programming, even when I am able to get through the python tutorials I feel for lack of exercises examples that emphasises the programming logic skills. The examples are just introduction to

Re: number of python users

2005-09-28 Thread Magnus Lycka
Scott David Daniels wrote: * 2.3 was called Python-in-a-tie; Nope, that's 2.2. See e.g. http://lists.debian.org/debian-python/2002/08/msg00025.html Sadly, it seems the Python Business Forum has died, or at least fallen into some kind of coma, so I don't know if that's an issue. In corporate

Re: number of python users

2005-09-28 Thread Magnus Lycka
Bryan wrote: is there a rough estimate somewhere that shows currently how many python 1.5 vs 2.2 vs 2.3 vs 2.4 users there are? have a majority moved to 2.4? or are they still using 2.3? etc... Why do you want to know that? -- http://mail.python.org/mailman/listinfo/python-list

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

2005-09-28 Thread accolades
An MPEG is a type of video file, you are correct in that assumption. Things such as DivX and Xvid are called codec's (COmpressor/DECompressor) codec's are used to conserve disk space, raw video files are very large. It is quite likely that PyGame does not support the compression being used by

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

2005-09-28 Thread Christophe
Kilian A. Foth a écrit : I just found this amazing video puzzle game written with the pygame library, which promises to be infinite fun - but I can't get it to decode any video file I own, except the game's own example .mpg. All I have is lots and lots of useless .avi, .mp2, .wmv, and so on...

Re: Overhead of individual python apps

2005-09-28 Thread Fredrik Lundh
Paul Rubin wrote: An awful lot of Python targeted users are not in that situation, so if Python's usability suffers for them when it doesn't have to, then something is wrong with Python. (and so we go from the OP:s I'm setting up a system to the usual c.l.python but I can come up with

Other Implementations [was: Re: Perl's documentation come of age]

2005-09-28 Thread Steve Holden
Mike wrote: Mike [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Looks like I'm having a bad week w/these URLs, because now I'm not able to access http://lists.ironpython.com/listinfo.cgi/users-ironpython.com . I was hoping to get at the archives to see if I can glean more info

Re: sorting tuples...

2005-09-28 Thread Steve Holden
Dan Sommers wrote: On 27 Sep 2005 19:01:38 -0700, [EMAIL PROTECTED] wrote: with the binary stuff out of the way, what i have is this string data: 20050922 # date line mike mike's message... 20040825 # date line jeremy jeremy's message... ... what i want to do is to use the date line

Re: number of python users

2005-09-28 Thread Robert Kern
Magnus Lycka wrote: Bryan wrote: is there a rough estimate somewhere that shows currently how many python 1.5 vs 2.2 vs 2.3 vs 2.4 users there are? have a majority moved to 2.4? or are they still using 2.3? etc... Why do you want to know that? So he can make an informed decision about

Re: PEP 350: Codetags

2005-09-28 Thread Steve Holden
Terry Hancock wrote: On Monday 26 September 2005 05:35 pm, 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

Re: Overhead of individual python apps

2005-09-28 Thread Steve Holden
Paul Rubin wrote: Fredrik Lundh [EMAIL PROTECTED] writes: That is bogus reasoning. not if you're a professional software developer and someone's paying you to develop an application that is to be run on a platform that they control. An awful lot of Python targeted users are not in that

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

2005-09-28 Thread Steve Holden
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 hard to support real private and

Module organization

2005-09-28 Thread Lasse Vågsæther Karlsen
I am slowly learning Python and I'm already starting to write some minor modules for myself. Undoubtedly there are better modules available either built-in or 3rd party that do the same as mine and much more but I need to learn it one way or another anyway. What I'm wondering about is module

Searching unittest for dictionaries.

2005-09-28 Thread Antoon Pardon
I'm writing a class with a lot of dictionary like behaviour. I was wondering whether a unittest for dictionaries already exists somewhere so that I could use it as a start for a unittest for my class. -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list

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

2005-09-28 Thread Simon Brunning
On 9/28/05, could ildg [EMAIL PROTECTED] 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 hard

Cleveland Ohio Python Meeting

2005-09-28 Thread David Stanek
October 6 from 18:30-20:30 A presentation will be given on Django and I am sure that we will discuss web frameworks in general. Everyone is welcome. For more details take a look at http://www.clepy.org/meetings/2005_10_06_mtg_details David -- GPG keyID #6272EDAF on http://pgp.mit.edu Key

Re: Python batching on XP

2005-09-28 Thread [EMAIL PROTECTED]
Hi ! I have Py 2.3.5, and subprocess is placed in version 2.4. The os.popen is not good, because it is not get return value. I can read the return value, but the message is os dependent (XP, 2k, NT). I create this function. It is not too good, but it is working: def Cmd(cmd,tmpdir=./):

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

2005-09-28 Thread Tony Meyer
On 28/09/2005, at 11:05 PM, Simon Brunning wrote: On 9/28/05, could ildg [EMAIL PROTECTED] 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

Re: Searching unittest for dictionaries.

2005-09-28 Thread Steve Holden
Antoon Pardon wrote: I'm writing a class with a lot of dictionary like behaviour. I was wondering whether a unittest for dictionaries already exists somewhere so that I could use it as a start for a unittest for my class. Strangely enough my 2.4 source distribution appears to contain

Re: Module organization

2005-09-28 Thread Robert Wierschke
Lasse Vågsæther Karlsen schrieb: I am slowly learning Python and I'm already starting to write some minor modules for myself. Undoubtedly there are better modules available either built-in or 3rd party that do the same as mine and much more but I need to learn it one way or another anyway.

Re: Module organization

2005-09-28 Thread bruno modulix
Lasse Vågsæther Karlsen wrote: I am slowly learning Python and I'm already starting to write some minor modules for myself. Undoubtedly there are better modules available either built-in or 3rd party that do the same as mine and much more but I need to learn it one way or another anyway.

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

2005-09-28 Thread Simon Brunning
On 9/28/05, Simon Brunning [EMAIL PROTECTED] wrote: My convention, attributes with names prefixed with a single underscore are private. There's nothing to stop anyone using these, but, well, if you take the back off the radio, the warranty is void. *By* convention, not *my* convention! --

Re: Searching unittest for dictionaries.

2005-09-28 Thread Antoon Pardon
Op 2005-09-28, Steve Holden schreef [EMAIL PROTECTED]: Antoon Pardon wrote: I'm writing a class with a lot of dictionary like behaviour. I was wondering whether a unittest for dictionaries already exists somewhere so that I could use it as a start for a unittest for my class. Strangely

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

2005-09-28 Thread Simon Brunning
On 9/28/05, Tony Meyer [EMAIL PROTECTED] wrote: I'm not sure why I haven't seen this mentioned yet, but a leading double-underscore does really make a member private: 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

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

2005-09-28 Thread Paul Rubin
Tony Meyer [EMAIL PROTECTED] writes: I'm not sure why I haven't seen this mentioned yet, but a leading double-underscore does really make a member private:... As you see, it's there in the dict, but it's obfuscated - but that's all that other languages do anyway. No, that's false: in

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

2005-09-28 Thread Thomas Jollans
Christophe wrote: Kilian A. Foth a écrit : I just found this amazing video puzzle game written with the pygame library, which promises to be infinite fun - but I can't get it to decode any video file I own, except the game's own example .mpg. All I have is lots and lots of useless .avi,

Pythonwin crashes

2005-09-28 Thread accolades
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 read from the console

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

2005-09-28 Thread Paul Rubin
Simon Brunning [EMAIL PROTECTED] writes: 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. It can be used to make

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

2005-09-28 Thread Steven D'Aprano
For some reason, the original post never made it to my newsreader, so apologies for breaking threading by replying to a reply when I mean to answer the original post. On Wed, 28 Sep 2005 12:05:21 +0100, Simon Brunning wrote: On 9/28/05, could ildg [EMAIL PROTECTED] wrote: Python is wonderful

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

2005-09-28 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: Do you know any language that has real private and protected attributes? Java? -- http://mail.python.org/mailman/listinfo/python-list

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

2005-09-28 Thread Simon Brunning
On 28 Sep 2005 05:06:50 -0700, Paul Rubin http://phr.cx@nospam.invalid wrote: Steven D'Aprano [EMAIL PROTECTED] writes: Do you know any language that has real private and protected attributes? Java? Oh, there are ways around private and protected, even in Java. CGLIB spings to mind. But

Re: Telephony project

2005-09-28 Thread Miki Tebeka
Hello Roger, 1. Fetch phone number from my ASCII data. Trivial in Python. 2. Dial (always a local number) phone (through USRobotics 56K? ). Can't recall that. 3. Ask @3 questions to called phone number. Y/N Y/N Y/N You can use flite (http://www.speech.cs.cmu.edu/flite/) for

Re: number of python users

2005-09-28 Thread Jorge Godoy
Bryan [EMAIL PROTECTED] writes: just for fun, i looked at the top linux distros at distrowatch and looked at what version of python the latest released version is shipping with out of the box: 1. ubuntu hoary - python 2.4.1 2. mandriva 2005 - python 2.4 3. suse 9.3 - python 2.4 3.1.

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

2005-09-28 Thread Simon Brunning
On 9/28/05, Steven D'Aprano [EMAIL PROTECTED] wrote: If *real* private and protected are *enforced*, Python will be the poorer for it. See http://groups.google.com/group/comp.lang.python/msg/b977ed1312e10b21. That's a wonderful, if long, essay. That's the Martellibot for you. Never use a

Re: Dynamically adding and removing methods

2005-09-28 Thread Steven D'Aprano
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. ;-) That, and I think for some reason the name Francis Beacon

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

2005-09-28 Thread Christophe
Steven D'Aprano a écrit : For some reason, the original post never made it to my newsreader, so apologies for breaking threading by replying to a reply when I mean to answer the original post. On Wed, 28 Sep 2005 12:05:21 +0100, Simon Brunning wrote: On 9/28/05, could ildg [EMAIL

RELEASED Python 2.4.2 (final)

2005-09-28 Thread Anthony Baxter
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.2 (final). Python 2.4.2 is a bug-fix release. See the release notes at the website (also available as Misc/NEWS in the source distribution) for details of the more than 60 bugs

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

2005-09-28 Thread Simon Brunning
On 28 Sep 2005 05:35:25 -0700, Paul Rubin http://phr.cx@nospam.invalid wrote: I don't see anything on the CGLIB web page (in about 1 minute of looking) that says it can get around private and protected. It looks like something that disassembles class files and reassembles them into new

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

2005-09-28 Thread Chris Gonnerman
could ildg wrote: If private and protected is supported, python will be perfect. Python IS perfect. Each new release makes it MORE perfect. :) There are two philosophies about programming: -- Make it hard to do wrong. -- Make it easy to do right. What you are promoting is the first

Re: Overhead of individual python apps

2005-09-28 Thread Paul Boddie
Steve Holden wrote: Even embedded systems are much larger now than the minicomputers of yesteryear. Everything's relative. Just wait three years! Had you placed such a bet in 2000, you'd have cleaned up at the Moore's Law Casino, but there are various factors at work now which complicate the

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

2005-09-28 Thread Tony Meyer
On 28/09/2005, at 11:54 PM, Paul Rubin wrote: Tony Meyer [EMAIL PROTECTED] writes: I'm not sure why I haven't seen this mentioned yet, but a leading double-underscore does really make a member private:... As you see, it's there in the dict, but it's obfuscated - but that's all that other

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

2005-09-28 Thread Tony Meyer
On 28/09/2005, at 11:55 PM, Simon Brunning wrote: On 9/28/05, Tony Meyer [EMAIL PROTECTED] wrote: I'm not sure why I haven't seen this mentioned yet, but a leading double-underscore does really make a member private: I thought about it, but I didn't mention it in the end because this

Re: What tools are used to write and generate Python Library documentation.

2005-09-28 Thread Reinhold Birkenfeld
Kenneth McDonald wrote: I have a module I'd like to document using the same style... The Python Library documentation is written in LaTeX and converted to HTML with latex2html. The relevant style and source files are in the Python CVS tree. Reinhold --

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

2005-09-28 Thread Paul Rubin
Chris Gonnerman [EMAIL PROTECTED] writes: -- Make it easy to do right. What you are promoting is the first philosophy: Tie the programmer's hands so he can't do wrong. Python for the most part follows the second philosophy, making writing good code so easy that the coder is rarely tempted

backreferences

2005-09-28 Thread Amy Dillavou
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 i use \number or is there something else i have to

Re: backreferences

2005-09-28 Thread Iain King
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 i use \number or is there

Re: Silly function call lookup stuff?

2005-09-28 Thread simonwittber
I guess because the function name may be re-bound between loop iterations. Are there good applications of this? I don't know. I have iterator like objects which dynamically rebind the .next method in order to different things. When I want a potentially infinite iterator to stop, I rebind

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

2005-09-28 Thread Grant Edwards
On 2005-09-28, Kilian A. Foth [EMAIL PROTECTED] wrote: I just found this amazing video puzzle game written with the pygame library, which promises to be infinite fun - but I can't get it to decode any video file I own, except the game's own example .mpg. All I have is lots and lots of useless

Re: Overhead of individual python apps

2005-09-28 Thread Steve Holden
Paul Boddie wrote: Steve Holden wrote: Even embedded systems are much larger now than the minicomputers of yesteryear. Everything's relative. Just wait three years! Had you placed such a bet in 2000, you'd have cleaned up at the Moore's Law Casino, but there are various factors at work

Re: Overhead of individual python apps

2005-09-28 Thread Qopit
Thanks - this is all very interesting... Ah, but is that physical memory consumed, or virtual memory MAPPED to the processes. and for python, the private memory use is usually ~1.5 megabytes for a empty 2.4 process, and some of that will only occupy space in the paging file... for

Virus in your Mail to empire.support

2005-09-28 Thread root
The VirusCheck at the IMST generated the following Message: V I R U S A L E R T Our VirusCheck found a Virus (W32/Netsky-Q) in your eMail to empire.support. This eMail has been deleted ! Now it is on you to check your System for Viruses This

Re: Spoiler to Python Challenge (help!!!)

2005-09-28 Thread Terry Hancock
On Tuesday 27 September 2005 10:42 am, Terry Hancock wrote: bz2.decompress(eval(repr(user))) 'huge' Actually, it doesn't -- I sent you the wrong version of the email. THIS works (and is what actually produced the output above). bz2.decompress(eval('' + user + '')) Sorry about that. I was

Re: What tools are used to write and generate Python Library documentation.

2005-09-28 Thread Terry Hancock
On Tuesday 27 September 2005 07:22 pm, Robert Kern wrote: Terry Hancock wrote: On Monday 26 September 2005 10:24 pm, Kenneth McDonald wrote: I have a module I'd like to document using the same style... Google for epydoc, pydoc, and happydoc. You've already received a comment about

Re: backreferences

2005-09-28 Thread George Sakkis
Amy Dillavou [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

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

2005-09-28 Thread Terry Hancock
On Wednesday 28 September 2005 08:32 am, Paul Rubin wrote: Unless you can show that all Python code is bug-free, you've got to consider that there might be something to this private and protected stuff. Of course, unless you can show that all Java code is bug-free, you've got to consider that

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

2005-09-28 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Chris Gonnerman [EMAIL PROTECTED] writes: -- Make it easy to do right. What you are promoting is the first philosophy: Tie the programmer's hands so he can't do wrong. Python for the most part follows the second philosophy, making writing good

Re: backreferences

2005-09-28 Thread Amy Dillavou
George and Iain - Thanks for your help!!! It worked for me, and that book seems to be really useful =) A.D On Wed, 2005-09-28 at 11:16 -0400, George Sakkis wrote: Amy Dillavou [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone help me with understanding how python uses

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

2005-09-28 Thread Gregor Horvath
Paul Rubin schrieb: Name mangling is a poor substitute for private variables. If you want 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

Re: PEP 350: Codetags

2005-09-28 Thread Micah Elliott
Thanks to all who have read and/or provided feedback. There have been some great ideas and admonitions that hadn't crossed my mind. I'll paraphrase some of the responses for the sake of brevity; I don't mean to misquote anyone. Tom ISO 8601 includes a week notation. That's great. Thanks for

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 says: 9.6

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

Re: FarPy GUIE v0.1

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

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

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 following function calls

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: 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

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: 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

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: 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 http://www.python.org/peps/pep-0350.html. Thanks! How about an

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: 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

  1   2   >