ANN: CherryPy 3.0.1 Released

2007-02-23 Thread Christian Wyglendowski
Hi, We just released CherryPy 3.0.1. It is mainly a bug-fix release but there are also some performance tweaks and other changes as well. Here are some highlights: * More docstrings. help() is more helpful than ever. * The WSGI server has been moved into its own package to allow for easier

Re: pyinstaller fails to create exe-File

2007-02-23 Thread Thomas Heller
[EMAIL PROTECTED] schrieb: Hi ! I am trying to create an exe file using pyinstaller. Running the created exe-File gives the error message Traceback (most recent call last): File string, line 8, in module File E:\Documents\mich\job\abs\backup_skript\buildbackup\out1.pyz/ email, lin

Re: How can I track/monitor an application and system resources.

2007-02-23 Thread [EMAIL PROTECTED]
Hello, Many thanks for your advice so far! The phone reference is actually because the target device is WM 5.0. I've found a python port Pyce that will run on this platform. We have a target application that runs on this platform which we would like to develop some automated tests for. The

Re: parse HTML by class rather than tag

2007-02-23 Thread gatti
On Feb 23, 8:54 am, [EMAIL PROTECTED] wrote: Hello, i'm would be interested in parsing a HTML files by its corresponding opening and closing tags but by taking into account the class attributes and its values, [...] so i wondering if i should go with regular expression, but i do not think

Re: pexpect regex help

2007-02-23 Thread amadain
On Feb 21, 11:15 pm, [EMAIL PROTECTED] wrote: On Feb 21, 6:13 pm, [EMAIL PROTECTED] wrote: I have apexpectscript to walk through a cisco terminal server and I was hoping to get some help with this regex because I really suck at it. This is the code: index =

Re: pexpect regex help

2007-02-23 Thread amadain
On Feb 23, 8:46 am, amadain [EMAIL PROTECTED] wrote: On Feb 21, 11:15 pm, [EMAIL PROTECTED] wrote: On Feb 21, 6:13 pm, [EMAIL PROTECTED] wrote: I have apexpectscript to walk through a cisco terminal server and I was hoping to get some help with this regex because I really suck at

Re: list/get methods/attributes of a class?

2007-02-23 Thread bkamrani
On Feb 22, 5:37 pm, Jason [EMAIL PROTECTED] wrote: On Feb 22, 8:27 am, [EMAIL PROTECTED] wrote: Hello, Sorry guys for this newbie questions. But I wonder if there is a standard or build-in method to know the methods of a class? I'm not originally a progrommer and I have worked with

Re: Pep 3105: the end of print?

2007-02-23 Thread Jay Tee
On Feb 23, 8:48 am, I V [EMAIL PROTECTED] wrote: While that's true, C++ compiler vendors, for example, take backwards compatibility significantly less seriously, it seems to me. A year or so ago, I tried compiling something I'd written for g++ 2, using a then-recent-ish g++ 3; it failed

Re: How can I track/monitor an application and system resources.

2007-02-23 Thread Tim Golden
[EMAIL PROTECTED] wrote: The phone reference is actually because the target device is WM 5.0. I've found a python port Pyce that will run on this platform. We have a target application that runs on this platform which we would like to develop some automated tests for. The application is

Re: Europe Tests Established Chemicals on Millions of Animals

2007-02-23 Thread Laurent Pointal
You help nothing by posting subjects unrelated to the *programming language* Python into a usenet group about this language. -- http://mail.python.org/mailman/listinfo/python-list

The truth about the SigEx Foundry and the SigEx Ventures

2007-02-23 Thread [EMAIL PROTECTED]
First of all, I'd like to appologise for the noise and for cross-posting. This is my first and last e-mail on this list. As you may have noticed from the subject of the e-mail, I'm about to speak about the SigEx Ventures company, an organisation that appoints itself as the liaison between

Re: pexpect regex help

2007-02-23 Thread amadain
On Feb 23, 8:53 am, amadain [EMAIL PROTECTED] wrote: On Feb 23, 8:46 am, amadain [EMAIL PROTECTED] wrote: On Feb 21, 11:15 pm, [EMAIL PROTECTED] wrote: On Feb 21, 6:13 pm, [EMAIL PROTECTED] wrote: I have apexpectscript to walk through a cisco terminal server and I was hoping to

Re: Convert to binary and convert back to strings

2007-02-23 Thread Mikael Olofsson
Neil Cerutti wrote: Woah! You better quadruple it instead. How about Double Pig Latin? No, wait! Use the feared UDPLUD code. You go Ubbi Dubbi to Pig Latin, and then Ubbi Dubbi again. Let's see here... Ubububythubububonubpubay That's what I call ubububeautubububifubububulbubay. That looks

Re: connection pool in python?

2007-02-23 Thread elGringo
On 23 fév, 08:44, Eric CHAO [EMAIL PROTECTED] wrote: Connection Pool is necessary in web applications with Java and JDBC. So does python have something like that? Thanks. Look at http://www.sqlalchemy.org/ -- http://mail.python.org/mailman/listinfo/python-list

CSV(???)

2007-02-23 Thread David C.Ullrich
Is there a csvlib out there somewhere? And/or does anyone see any problems with the code below? What csvline does is straightforward: fields is a list of strings. csvline(fields) returns the strings concatenated into one string separated by commas. Except that if a field contains a comma or a

Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-23 Thread Vinay Sajip
On 9 Feb, 14:14, [EMAIL PROTECTED] wrote: Right. Check out the logrotate facility on your system. This can be used together with the WatchedFileHandler recently checked into SVN trunk - this (Unix/Linux-only) handler checks to see if the dev or inode have changed, and if they have (because of

What is bad with Relative imports

2007-02-23 Thread Alexander Eisenhuth
Hi, PyLint says that Relative imports ... are worth to be warned . And I ask myself why? - Example directory structure - Sound/ Top-level package __init__.py Initialize the sound package Utils/

Re: Reading mails from Outlook

2007-02-23 Thread beeswax
On 22 feb, 15:45, Larry Bates [EMAIL PROTECTED] wrote: beeswax wrote: Hi, Does anyone knows how to read e-mails from a specific folders in outlook? I only found out how to read the mails from the inbox folder and how to list all available folder. I just don't found a way to access my

Module trouble [newbie]

2007-02-23 Thread Boris Ozegovic
Can somebody explaint this to me: I have module a.py A = 100 import b print A printing print B is %s % b.B and module b.py B = 2000 import a print B printing print A is %s % a.A I thought that output would be: B printing A is 100 A printing B is 2000 Because import b would execute b.py, and in

Re: CSV(???)

2007-02-23 Thread Philipp Pagel
David C. Ullrich [EMAIL PROTECTED] wrote: Is there a csvlib out there somewhere? How about csv in the standard library? (Um: Believe it or not I'm _still_ using python 1.5.7. I have no idea if csv was part of the standard library backin those days... But even if not: either upgrade to

Re: CSV(???)

2007-02-23 Thread Tim Golden
Philipp Pagel wrote: David C. Ullrich [EMAIL PROTECTED] wrote: Is there a csvlib out there somewhere? How about csv in the standard library? (Um: Believe it or not I'm _still_ using python 1.5.7. I have no idea if csv was part of the standard library backin those days... But even

Re: Module trouble [newbie]

2007-02-23 Thread Diez B. Roggisch
Boris Ozegovic wrote: Can somebody explaint this to me: I have module a.py A = 100 import b print A printing print B is %s % b.B and module b.py B = 2000 import a print B printing print A is %s % a.A I thought that output would be: B printing A is 100 A printing B is 2000

Re: Module trouble [newbie]

2007-02-23 Thread Boris Ozegovic
Diez B. Roggisch wrote: Are you sure the above is what you really used for your test? Because your output features a single 100, which the above lacks a print-statement for. Yeah, I cancelled the message, but synchronization allready happened. :) Problem was in some other place. One more

python float-point problem

2007-02-23 Thread unidevel
I just compiled python 2.4.2 using openembedded for my zaurus C750. I test some comparison for float-pointing number, for example: 3.13.0 True 3.23.0 True 3.33.0 False 8.44.0 True I use the cross compiler that compiled python to make a simple C program, got correct results. Anyone have some idea

Re: Module trouble [newbie]

2007-02-23 Thread Diez B. Roggisch
Boris Ozegovic wrote: Diez B. Roggisch wrote: Are you sure the above is what you really used for your test? Because your output features a single 100, which the above lacks a print-statement for. Yeah, I cancelled the message, but synchronization allready happened. :) Problem was in

Re: Finding a tuple in a tuple

2007-02-23 Thread Duncan Booth
Philipp Pagel [EMAIL PROTECTED] wrote: Another way to go instead of using sets, although probably less elegant: True in [x in t1 for x in t2] True True in [x in t1 for x in t3] True True in [x in t1 for x in t4] False True in [x in t1 for x in t5] False Slightly more elegant for

Re: jython import search path

2007-02-23 Thread Diez B. Roggisch
Accepted strategy? It doesn't seem very portable. It assumes that everyone puts their library modules in the exact same place. Or do they just figure that changing the sys.path.append line is easy enough? Portability has nothing to do with it. If you arrange your project in a way that these

Re: Local class variables? (mod_python problem)

2007-02-23 Thread Diez B. Roggisch
It is not desirable for the class variable to keep incrementing outside of invocations of '__main__', as is the case when it is loaded under mod_python under apache2 on linux. I'm still not clear on what you want to accomplish. In the end it boils down to who is supposed to share that

Re: Module trouble [newbie]

2007-02-23 Thread Boris Ozegovic
Diez B. Roggisch wrote: I use it sometimes myself, to avoid otherwise circular imports. Circular imports are the reason why I have module issues. Last question: if I put modules in some package and then try to import one I get AttributeError: 'module' object has no attribute 'a' Code is:

compile python with sqlite3

2007-02-23 Thread Nader Emami
L.S., I have to compile (install) locally Python 2.5, because I don't have 'root' permission. Besides I would use 'sqlite3' as a database for TurboGears/Django. I have installed 'sqlite3' somewhere on my Linux (/path/to/sqlite'). What do I have to do if I want to compile 'Python' with

Re: Creating a daemon process in Python

2007-02-23 Thread Nick Craig-Wood
Eirikur Hallgrimsson [EMAIL PROTECTED] wrote: def daemonize(): if (not os.fork()): # get our own session and fixup std[in,out,err] os.setsid() sys.stdin.close() sys.stdout = NullDevice() sys.stderr = NullDevice() That doesn't close the

Finding non ascii characters in a set of files

2007-02-23 Thread bg_ie
Hi, I'm updating my program to Python 2.5, but I keep running into encoding problems. I have no ecodings defined at the start of any of my scripts. What I'd like to do is scan a directory and list all the files in it that contain a non ascii character. How would I go about doing this? Thanks,

Re: What is the best queue implemetation in Python?

2007-02-23 Thread Szabolcs Nagy
For that purpose I have used the good deque that you can find in collections in the standard library. It's very good for queues, and it's a bit faster than regular lists for stacks too. you mean *much* faster (since a list is a reference array so pop(0) is O(n) operation) never use a list as

Re: Creating a daemon process in Python

2007-02-23 Thread Jean-Paul Calderone
On Fri, 23 Feb 2007 08:30:07 -0600, Nick Craig-Wood [EMAIL PROTECTED] wrote: Eirikur Hallgrimsson [EMAIL PROTECTED] wrote: [snip] if (not os.fork()): # hang around till adopted by init ppid = os.getppid() while (ppid != 1):

With PIL... paste image on top of other with dropshadow

2007-02-23 Thread Peter Bengtsson
I love the dropshadow effect I managed to make with this recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/474116 Here's what it can look like: http://www.peterbe.com/test/188-tequilacat.2.jpg It takes a background as a parameter but it's just a colour. What I want is to put the

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Peter Bengtsson
On Feb 23, 2:38 pm, [EMAIL PROTECTED] wrote: Hi, I'm updating my program to Python 2.5, but I keep running into encoding problems. I have no ecodings defined at the start of any of my scripts. What I'd like to do is scan a directory and list all the files in it that contain a non ascii

Re: Module trouble [newbie]

2007-02-23 Thread Goldfish
On Feb 23, 6:44 am, Boris Ozegovic [EMAIL PROTECTED] wrote: Can somebody explaint this to me: I have module a.py A = 100 import b print A printing print B is %s % b.B and module b.py B = 2000 import a print B printing print A is %s % a.A I thought that output would be: B printing

Re: CSV(???)

2007-02-23 Thread John Machin
On Feb 23, 10:11 pm, David C. Ullrich [EMAIL PROTECTED] wrote: Is there a csvlib out there somewhere? I can make available the following which should be capable of running on 1.5.2 -- unless they've suffered bitrot :-) (a) a csv.py which does simple line-at-a-time hard-coded-delimiter-etc pack

Re: Finding non ascii characters in a set of files

2007-02-23 Thread John Machin
On Feb 24, 2:12 am, Peter Bengtsson [EMAIL PROTECTED] wrote: On Feb 23, 2:38 pm, [EMAIL PROTECTED] wrote: Hi, I'm updating my program to Python 2.5, but I keep running into encoding problems. I have no ecodings defined at the start of any of my scripts. What I'd like to do is scan a

Rational numbers

2007-02-23 Thread Martin Manns
Hi, I am starting to use rationals and since I found no batteries included, I tried out the mxNumber package. However, I get strange warnings on comparison operations (which however seem to yield correct results): --- $ python Python 2.4.3 (#1, Jan 15 2007, 15:46:19) [GCC 4.1.1 (Gentoo

Re: Convert to binary and convert back to strings

2007-02-23 Thread Eric Pederson
Harlin Seritt wrote: Hi... I would like to take a string like 'supercalifragilisticexpialidocius' and write it to a file in binary forms -- this way a user cannot read the string in case they were try to open in something like ascii text editor. I'd also like to be able to read the binary formed

Re: Creating a daemon process in Python

2007-02-23 Thread Eirikur Hallgrimsson
I didn't actually write this module. I believe I found it in a discussion in ASPN at Active State. Thanks for the input, and when I get a chance I will try these alternate approaches. This module has been working fine for me as is--so far. Eirikur --

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Larry Bates
Peter Bengtsson wrote: On Feb 23, 2:38 pm, [EMAIL PROTECTED] wrote: Hi, I'm updating my program to Python 2.5, but I keep running into encoding problems. I have no ecodings defined at the start of any of my scripts. What I'd like to do is scan a directory and list all the files in it that

Apache Cgi (70007)The timeout specified has expired

2007-02-23 Thread naima . mans
Hello, When i run my python script, it works a moment and then stop with this message in the log: (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed refers to .. I think my script is too long therefore the server stop it... how can i do to run all

Re: Finding non ascii characters in a set of files

2007-02-23 Thread John Machin
On Feb 24, 2:35 am, John Machin [EMAIL PROTECTED] wrote: On Feb 24, 2:12 am, Peter Bengtsson [EMAIL PROTECTED] wrote: On Feb 23, 2:38 pm, [EMAIL PROTECTED] wrote: Hi, I'm updating my program to Python 2.5, but I keep running into encoding problems. I have no ecodings defined at the

Re: Apache Cgi (70007)The timeout specified has expired

2007-02-23 Thread abubakerkiter2003
[EMAIL PROTECTED] أرسلت: Hello, When i run my python script, it works a moment and then stop with this message in the log: (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed refers to .. I think my script is too long therefore the server stop

Re: Apache Cgi (70007)The timeout specified has expired

2007-02-23 Thread abubakerkiter2003
[EMAIL PROTECTED] أرسلت: Hello, When i run my python script, it works a moment and then stop with this message in the log: (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed refers to .. I think my script is too long therefore the server stop

Re: Rational numbers

2007-02-23 Thread Larry Bates
Martin Manns wrote: Hi, I am starting to use rationals and since I found no batteries included, I tried out the mxNumber package. However, I get strange warnings on comparison operations (which however seem to yield correct results): --- $ python Python 2.4.3 (#1, Jan 15 2007,

Re: Local class variables? (mod_python problem)

2007-02-23 Thread Rory Campbell-Lange
On 23/02/07, Diez B. Roggisch ([EMAIL PROTECTED]) wrote: It is not desirable for the class variable to keep incrementing outside of invocations of '__main__', as is the case when it is loaded under mod_python under apache2 on linux. I'm still not clear on what you want to accomplish.

Re: Rational numbers

2007-02-23 Thread Martin Manns
On Fri, 23 Feb 2007 09:52:06 -0600 Larry Bates [EMAIL PROTECTED] wrote: I quick search of Google turned up: http://books.google.com/books?id=1Shx_VXS6ioCpg=PA625lpg=PA625dq=python+rational+number+librarysource=webots=BA8_4EXdQ4sig=aDEnYA99ssKe7PSweVNyi8cS2eg

Re: Finding non ascii characters in a set of files

2007-02-23 Thread John Machin
On Feb 24, 2:44 am, Larry Bates [EMAIL PROTECTED] wrote: Peter Bengtsson wrote: On Feb 23, 2:38 pm, [EMAIL PROTECTED] wrote: Hi, I'm updating my program to Python 2.5, but I keep running into encoding problems. I have no ecodings defined at the start of any of my scripts. What I'd like

c_string missing from ctypes?

2007-02-23 Thread Jacob Rael
Hello, I was following along with this site: http://www.brunningonline.net/simon/blog/archives/000659.html and I got a error. It boils down to: In [9]: import ctypes In [10]: dir(ctypes.c_string) ---

Re: c_string missing from ctypes?

2007-02-23 Thread Chris Mellon
On 23 Feb 2007 09:03:21 -0800, Jacob Rael [EMAIL PROTECTED] wrote: Hello, I was following along with this site: http://www.brunningonline.net/simon/blog/archives/000659.html and I got a error. It boils down to: In [9]: import ctypes In [10]: dir(ctypes.c_string)

Re: c_string missing from ctypes?

2007-02-23 Thread Simon Brunning
On 23 Feb 2007 09:03:21 -0800, Jacob Rael [EMAIL PROTECTED] wrote: I was following along with this site: http://www.brunningonline.net/simon/blog/archives/000659.html You don't want to be messing around with that old rubbish. I should know - I wrote it. Instead, take a look at

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Tim Arnold
Peter Bengtsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Feb 23, 2:38 pm, [EMAIL PROTECTED] wrote: Hi, I'm updating my program to Python 2.5, but I keep running into encoding problems. I have no ecodings defined at the start of any of my scripts. What I'd like to do is

Re: Rational numbers / alternatives to mxNumber

2007-02-23 Thread Martin Manns
On Fri, 23 Feb 2007 11:39:11 -0500 Martin Manns [EMAIL PROTECTED] wrote: + boost indeed is a quite nice C++ library. However, I fear that I would end up writing the python wrappers for operators (+ - * / min max cmp etc.) myself. I would like to avoid this since these operators should work

Re: Local class variables? (mod_python problem)

2007-02-23 Thread Diez B. Roggisch
Many thanks for your reply. The use case is per request, and I would be grateful to learn more about thread-local storage. There are several ways. I'm not familiar with mod_python, but I guess you get a dict-like object for the request parameters. In python, this is usually writable (in

Re: CSV(???)

2007-02-23 Thread Neil Cerutti
On 2007-02-23, David C Ullrich [EMAIL PROTECTED] wrote: Is there a csvlib out there somewhere? And/or does anyone see any problems with the code below? What csvline does is straightforward: fields is a list of strings. csvline(fields) returns the strings concatenated into one string

Re: Rational numbers

2007-02-23 Thread bearophileHUGS
Martin Manns: + gmpy is looking pretty unmaintained (dead) to me (newest update of cvs 10 months ago). I have used it on Py2.5, so it seems to work anyway, and it's fast enough for my purposes. And probably soon some alex-shaped life will show up elsewhere. Bye, bearophile --

Re: Rational numbers

2007-02-23 Thread [EMAIL PROTECTED]
On Feb 23, 10:39 am, Martin Manns [EMAIL PROTECTED] wrote: On Fri, 23 Feb 2007 09:52:06 -0600 Larry Bates [EMAIL PROTECTED] wrote: I quick search of Google turned up: http://books.google.com/books?id=1Shx_VXS6ioCpg=PA625lpg=PA625dq=p... http://calcrpnpy.sourceforge.net/clnum.html

Re: Rational numbers

2007-02-23 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Martin Manns wrote: + gmpy is looking pretty unmaintained (dead) to me (newest update of cvs 10 months ago). What CSV activities do you expect? This package seems to be pretty stable. As long as there is no bug or incompatible changes in the underlying library I would

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Tim Arnold wrote: Here's what I do (I need to know the line number). import os,sys,codecs def checkfile(filename): f = codecs.open(filename,encoding='ascii') lines = open(filename).readlines() print 'Total lines: %d' % len(lines) for i in

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Tim Arnold
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In [EMAIL PROTECTED], Tim Arnold wrote: snip Untested: import os, sys, codecs def checkfile(filename): f = codecs.open(filename,encoding='ascii') try: for num, line in enumerate(f):

Who has not attended these free tutorial courses ?

2007-02-23 Thread stj911
President Bush ... you are under arrest - 911 truth video by Dr Morgan Reynolds, Former Chief Economist under Bush You can also save them by right clicking the links and saving them as flv files and download a free flv player. google is your best friend. Bush Administration Insider Says U.S.

Re: What is the best queue implemetation in Python?

2007-02-23 Thread sunheaver
On Feb 22, 12:40 pm, hg [EMAIL PROTECTED] wrote: John Machin wrote: On Feb 23, 11:12 am, John [EMAIL PROTECTED] wrote: I want to write a code for Breadth First Traveral for Graph, which needs a queue to implement. I wonder that for such a powerful language as Python, whether there is a

Re: With PIL... paste image on top of other with dropshadow

2007-02-23 Thread Matimus
two things, change the following line: [code] back = Image.new(image.mode, (totalWidth, totalHeight), background) [/code] To: [code] back = Image.new(RGBA, (totalWidth, totalHeight), background) [/code] and then do something like this: [code] import sys bg = Image.open(sys.argv[1])

Re: Rational numbers

2007-02-23 Thread casevh
On Feb 23, 10:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Feb 23, 10:39 am, Martin Manns [EMAIL PROTECTED] wrote: On Fri, 23 Feb 2007 09:52:06 -0600 Larry Bates [EMAIL PROTECTED] wrote: I quick search of Google turned up:

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Martin v. Löwis
Tim Arnold schrieb: That looks much cleaner. I didn't know the 'num' from the enumerate would persist so the except block could report it. It's indeed guaranteed that the for loop index variables will keep the value they had when the loop stopped (either through regular termination, break, or

Re: Found a product for running Python-based websites off CDROM -have anybody tried it?

2007-02-23 Thread David Wishnie
Hello, Thank you for your input! We've looked at XAMPP, and it has the following disadvantages compared to Stunnix: * it's not targeted for putting to CDs at all (it's unzip and run apache and stufftype of thing). This means it probably can't autochoose port numbers for mysql and

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Tim Arnold
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In [EMAIL PROTECTED], Tim Arnold wrote: Here's what I do (I need to know the line number). import os,sys,codecs def checkfile(filename): f = codecs.open(filename,encoding='ascii') lines =

Re: Rational numbers

2007-02-23 Thread Martin Manns
On 23 Feb 2007 12:00:10 -0800 [EMAIL PROTECTED] wrote: I worked with Alex Martelli (gmpy's maintainer) to fix a bug found by mensanator. With Alex's permission, I released it as gmpy 1.04a. Alex has not updated cvs with the fix. gmpy 1.04a compiles cleanly with the latest releases of

Re: Who has not attended these free tutorial courses ?

2007-02-23 Thread kilian heckrodt
[EMAIL PROTECTED] wrote: Please note that this is a math newsgroup and not a i-post-my-favoured-conspiracy-theory newsgroup President Bush ... you are under arrest - 911 truth video by Dr Morgan Reynolds, Former Chief Economist under Bush You can also save them by right clicking the links

How to build Hierarchies of dict's? (Prototypes in Python?)

2007-02-23 Thread Charles D Hixson
I'm sure I've read before about how to construct prototypes in Python, but I haven't been able to track it down (or figure it out). What I basically want is a kind of class that has both class and instance level dict variables, such that descendant classes automatically create their own class

Re: Looking for contract developer(s) - where can I find them?

2007-02-23 Thread John J. Lee
[EMAIL PROTECTED] writes: On Feb 21, 9:51 pm, Scott SA [EMAIL PROTECTED] wrote: I've just sent a job listing to python.org and posted this message on comp.lang.python, Interesting, so Python-list@python.org and comp.lang.python are _related_. I guess that means I'm the new guy on the

Re: BDFL in wikipedia

2007-02-23 Thread John J. Lee
Robin Becker [EMAIL PROTECTED] writes: Carl Banks wrote: .. Since when is Larry Wall benevolent? He should be called the SDFL. . even the great leader has been referred to as the MDFL :) [...] By you?-) John -- http://mail.python.org/mailman/listinfo/python-list

Question about idiomatic use of _ and private stuff.

2007-02-23 Thread Steven W. Orr
I understand that two leading underscores in a class attribute make the attribute private. But I often see things that are coded up with one underscore. Unless I'm missing something, there's a idiom going on here. Why do people sometimes use one leading underscore? TIA -- Time flies like the

Re: Question about idiomatic use of _ and private stuff.

2007-02-23 Thread Troy Melhase
Why do people sometimes use one leading underscore? Many folks like to use the single leading underscore to emphasize that the attribute isn't part of the normal way to use the class or instance. It's bad style in my opinion, but I'm probably in the minority. --

Re: timeout in urllib.open()

2007-02-23 Thread John J. Lee
Steve Holden [EMAIL PROTECTED] writes: [...] This has recently been discussed on python-dev. It's likely that certain libraries will acquire a timeout keyword argument in the next release, but only if someone is concerned enough to develop the appropriate patches - the principle appears to be

Re: timeout in urllib.open()

2007-02-23 Thread John J. Lee
Paul Rubin http://[EMAIL PROTECTED] writes: Stefan Palme [EMAIL PROTECTED] writes: is there a way to modify the time a call of urllib.open(...) waits for an answer from the other side? Have a tool which automatically checks a list of websites for certain content. The tool hangs

Re: Found a product for running Python-based websites off CDROM -have anybody tried it?

2007-02-23 Thread Paul Boddie
David Wishnie wrote: We've looked at XAMPP, and it has the following disadvantages compared to Stunnix: I've only read the Stunnix Web site, and I've only seen XAMPP in passing. However... * it's not targeted for putting to CDs at all (it's unzip and run apache and stufftype of

Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread buffinator
I have two applications that should work together, let's call them A and B. The first time A starts, it should open a B process and start communicating with it. All other times an A instance starts it should simply talk with the B that already is open. The problem here is, if I start say 40 A

Re: Rational numbers

2007-02-23 Thread [EMAIL PROTECTED]
On Feb 23, 2:00 pm, [EMAIL PROTECTED] wrote: On Feb 23, 10:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Feb 23, 10:39 am, Martin Manns [EMAIL PROTECTED] wrote: On Fri, 23 Feb 2007 09:52:06 -0600 Larry Bates [EMAIL PROTECTED] wrote: I quick search of Google turned up:

Re: Question about idiomatic use of _ and private stuff.

2007-02-23 Thread James Stroud
Troy Melhase wrote: Why do people sometimes use one leading underscore? Many folks like to use the single leading underscore to emphasize that the attribute isn't part of the normal way to use the class or instance. It's bad style in my opinion, but I'm probably in the minority. I've

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread Troy Melhase
The first time A starts, it should open a B process and start communicating with it. All other times an A instance starts it should simply talk with the B that already is open. B should write its process id to a location known by both applications. When A starts, it should read that PID from

Re: ANN: IbPy 0.7.0-9.00 - Interactive Brokers Python API

2007-02-23 Thread vj
Cool. Why is python 2.5 required, will it not work with python 2.4? VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about idiomatic use of _ and private stuff.

2007-02-23 Thread Chris Mellon
On 2/23/07, James Stroud [EMAIL PROTECTED] wrote: Troy Melhase wrote: Why do people sometimes use one leading underscore? Many folks like to use the single leading underscore to emphasize that the attribute isn't part of the normal way to use the class or instance. It's bad style

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread buffinator
Troy Melhase wrote: The first time A starts, it should open a B process and start communicating with it. All other times an A instance starts it should simply talk with the B that already is open. B should write its process id to a location known by both applications. When A starts, it

Re: ANN: IbPy 0.7.0-9.00 - Interactive Brokers Python API

2007-02-23 Thread Troy Melhase
On 23 Feb 2007 14:36:24 -0800, vj [EMAIL PROTECTED] wrote: Cool. Why is python 2.5 required, will it not work with python 2.4? Short answer: because java2python produces python 2.5 syntax. Long answer: I wrote java2python specifically to translate the IB reference code. That reference code

Re: Rational numbers

2007-02-23 Thread casevh
Am I hallucinating? Didn't I see at least some version of gmpy for Python 2.5 on SourceForge awhile back? I distinctly remember thinking that I don't have to direct people to your site, but SourceForge is not showing anything beyond vesion 1.01 for Python 2.4. Alex released versions 1.02

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread Troy Melhase
Three very simple questions then. 1. How do I find out a running applications process ID import os mypid = os.getpid() 2. How do I check if a process ID is bound to a running application. this is os-specific. i'm sure there's a windows api provided for it. 3. There won't be any issues

Re: Regex Speed

2007-02-23 Thread garrickp
On Feb 21, 10:34 am, [EMAIL PROTECTED] wrote: On Feb 20, 6:14 pm, Pop User [EMAIL PROTECTED] wrote: http://swtch.com/~rsc/regexp/regexp1.html Going back a bit on a tangent, the author of this citation states that any regex can be expressed as a DFA machine. However, while investigating this

Re: Rational numbers

2007-02-23 Thread Gabriel Genellina
En Fri, 23 Feb 2007 12:35:19 -0300, Martin Manns [EMAIL PROTECTED] escribió: I am starting to use rationals and since I found no batteries included, I tried out the mxNumber package. However, I get strange warnings on comparison operations (which however seem to yield correct results):

Re: Rational numbers

2007-02-23 Thread aleaxit
On Feb 23, 12:00 pm, [EMAIL PROTECTED] wrote: ... + gmpy is looking pretty unmaintained (dead) to me (newest update of cvs 10 months ago). I worked withAlex Martelli(gmpy's maintainer) to fix a bug found by mensanator. With Alex's permission, I released it as gmpy 1.04a. Alex has not

Re: Rational numbers

2007-02-23 Thread aleaxit
On Feb 23, 2:52 pm, [EMAIL PROTECTED] wrote: Am I hallucinating? Didn't I see at least some version of gmpy for Python 2.5 on SourceForge awhile back? I distinctly remember thinking that I don't have to direct people to your site, but SourceForge is not showing anything beyond vesion

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread Jerry Hill
On 2/23/07, buffinator [EMAIL PROTECTED] wrote: 2. How do I check if a process ID is bound to a running application. Under windows, this should work: import win32process running_pids = win32process.EnumProcesses() running_pids (0, 4, 1048, 1496, 1656, 1836, 1896, 756, 988, 1712, 220, 1156,

Re: How to build Hierarchies of dict's? (Prototypes in Python?)

2007-02-23 Thread Larry Bates
Charles D Hixson wrote: I'm sure I've read before about how to construct prototypes in Python, but I haven't been able to track it down (or figure it out). What I basically want is a kind of class that has both class and instance level dict variables, such that descendant classes

Re: Rational numbers

2007-02-23 Thread casevh
On Feb 23, 3:27 pm, [EMAIL PROTECTED] wrote: On Feb 23, 12:00 pm, [EMAIL PROTECTED] wrote: ... + gmpy is looking pretty unmaintained (dead) to me (newest update of cvs 10 months ago). I worked withAlex Martelli(gmpy's maintainer) to fix a bug found by mensanator. With Alex's

Re: How to build Hierarchies of dict's? (Prototypes in Python?)

2007-02-23 Thread Gabriel Genellina
En Fri, 23 Feb 2007 17:53:59 -0300, Charles D Hixson [EMAIL PROTECTED] escribió: I'm sure I've read before about how to construct prototypes in Python, but I haven't been able to track it down (or figure it out). What I basically want is a kind of class that has both class and instance

Re: Having multiple instances of a single application start a single instance of another one

2007-02-23 Thread Larry Bates
buffinator wrote: I have two applications that should work together, let's call them A and B. The first time A starts, it should open a B process and start communicating with it. All other times an A instance starts it should simply talk with the B that already is open. The problem here

Re: Possible to set cpython heap size?

2007-02-23 Thread Andrew MacIntyre
Chris Mellon wrote: On 22 Feb 2007 11:28:52 -0800, Andy Watson [EMAIL PROTECTED] wrote: On Feb 22, 10:53 am, a bunch of folks wrote: Memory is basically free. This is true if you are simply scanning a file into memory. However, I'm storing the contents in some in-memory data structures and

  1   2   >