Re: counting using variable length string as base

2008-04-01 Thread David Fraser
On Mar 31, 8:18 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 31 Mar 2008 09:30:00 -0300, Graeme Glass <[EMAIL PROTECTED]> > escribió: > > > On Mar 27, 11:01 am, Peter Otten <[EMAIL PROTECTED]> wrote: > >> a b c aa ab ac ba bb bc ca cb cc aaa aab aac aba abb abc aca acb acc > >> baa

Re: Behaviour of str.split

2005-04-20 Thread David Fraser
Bengt Richter wrote: On Wed, 20 Apr 2005 10:55:18 +0200, David Fraser <[EMAIL PROTECTED]> wrote: Greg Ewing wrote: Will McGugan wrote: Hi, I'm curious about the behaviour of the str.split() when applied to empty strings. "".split() returns an empty list, however.. "&

Re: Behaviour of str.split

2005-04-20 Thread David Fraser
Greg Ewing wrote: Will McGugan wrote: Hi, I'm curious about the behaviour of the str.split() when applied to empty strings. "".split() returns an empty list, however.. "".split("*") returns a list containing one empty string. Both of these make sense as limiting cases. Consider >>> "a b c".spli

Re: poll: does name conventions in python matters?

2005-04-19 Thread David Fraser
vegetax wrote: in python it is common to see naming inconsistencies ,methods,modules,packages,classes with names in every posible style: thisisalongmethod ThisIsALongMethod thisIsALongMethod this_is_a_long_method and even This_Is_A_Long_Method All over the place,even within one module! classic stat

Re: Apache mod_python

2005-04-18 Thread David Fraser
Dan wrote: I've been writing a server application in Python. The app listens on a socket and interfaces to a database. Now I'd like to write a web application to also access the database. It seems natural to use Python. I've installed mod_python (Debian libapache2-mod-python2.3, mod_python 3.1.3-

Re: need help in PySparse

2005-04-18 Thread David Fraser
monocalibro wrote: Hello all! I need ready-for-use installable version of PySparse (for FiPy), because I can't compile it with MingW. Or, may be, somebody knows step-by-step instruction to complie this package under Win32 using Mingw? Best regards At least describe the web site you got it from, th

Re: Why does StringIO discard its initial value?

2005-04-15 Thread David Fraser
Raymond Hettinger wrote: [David Fraser] Others may find this helpful ; it's a pure Python wrapper for cStringIO that makes it behave like StringIO in not having initialized objects readonly. Would it be an idea to extend cStringIO like this in the standard library? It shouldn't lose perf

Re: Why does StringIO discard its initial value?

2005-04-12 Thread David Fraser
Raymond Hettinger wrote: [Leif K-Brooks] The obvious workaround is to call buffer.write() with the initial value instead of passing it to StringIO's constructor, More than just a workaround, it is the preferred approach. That makes is easier to switch to cStringIO where initialized objects are rea

Re: Installing Python 2.4 on Linux

2005-04-06 Thread David Fraser
Edward Diener wrote: I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Pyt

Re: distutils: package data

2005-03-30 Thread David Fraser
Qiangning Hong wrote: I am writing a setup.py for my package. I have a pre-compiled myextmod.pyd file in my package and I want the distutils to automatically copy it to C:\Python23\Lib\site-packages\mypackage\myextmod.pyd. I try to add the following parameter to setup(): data_file = [('mypackag

Re: MinGW building with Python 2.4

2005-03-23 Thread David Fraser
mrstephengross wrote: Ok, I know there are already a million posts on this group about getting Python to build with MinGW. I've been through many of them, and have still not found a good comprehensive way to accomplish this. I've got Cygwin 5.1 with GCC 3.3.3 on it. I'm using Python 2.4. Note: You

Re: Python limericks (was Re: Text-to-speech)

2005-03-23 Thread David Fraser
Michael Spencer wrote: How about a category for executable limericks? That was my thought too... for programmer in search_of("elegance"): if programmer.needs("an experience"): print "whitespace counts much" if Van_Rossum is Dutch: print "Dictators are made by benevolence" And an att

Re: How to upgrade python on Redhat?

2005-03-09 Thread David Fraser
[EMAIL PROTECTED] wrote: This question applies specifically to RHEL 3.0 (actually Whitebox), but also generally to Redhat and probably pretty much every distribution that uses python for distribution-related tasks (configuration managers, rpm package management, yum, etc). So I want to upgrade to p

Re: Google Technology

2005-03-01 Thread David Fraser
[EMAIL PROTECTED] wrote: I am just wondering which technologies google is using for gmail and Google Groups??? The short answer: They use computer technology!!! :-) David -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - ULTIMATE RECIPE TO RESOLVE ALL ISSUES

2005-02-18 Thread David Fraser
Stephen Kellett wrote: In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes This thread proofs simply the inability of this community [1] to focus on a simple essence. Incorrect analysis. This thread proves that you have no concept of how to interact with the community. I

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread David Fraser
Pat wrote: Actually, no. We ran into some issues with Python 2.4 that caused us to return to Python 2.3.5. But I would really like to upgrade to Python 2.4. So I started researching the subject before I did anything. If you are telling me that minGW can compile extensions that are compatible wit

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread David Fraser
Pat wrote: Wow! I must say, I'm less than impressed with the responses so far. I know Ilias can give the impression that he is just trolling, but I can assure you he is not. At least, not in this case. ;-) So in an effort to make some headway, I'm going to try to summarize the current state of

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread David Fraser
Ilias Lazaridis wrote: I'm a newcomer to python: [EVALUATION] - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 - I've download (as suggested) the python 2.4 installer for windows. Now I have problems to compile python extension th

Re: Commerical graphing packages?

2005-02-14 Thread David Fraser
Erik Johnson wrote: I am wanting to generate dynamic graphs for our website and would rather not invest the time in developing the code to draw these starting from graphics primitives. I am looking for something that is... "fairly robust" but our needs are relatively modest: X-Y scatter plots w

Re: Weekly Python Patch/Bug Summary

2005-02-04 Thread David Fraser
Kurt B. Kaiser wrote: Patch / Bug Summary ___ Patches : 284 open ( +4) / 2748 closed ( +1) / 3032 total ( +5) Bugs: 804 open ( +1) / 4812 closed (+13) / 5616 total (+14) RFE : 167 open ( +0) / 142 closed ( +1) / 309 total ( +1) I wonder if it would be possible to

Re: Is there a market for python developers?

2005-02-03 Thread David Fraser
Mabon Dane wrote: I am new to python and took my first attempts at working with this language today. Is there a market for people who work with Python? Slavery is outlawed in most parts of the world these days :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Suggesion for an undergrad final year project in Python

2005-02-01 Thread David Fraser
Sridhar wrote: Hi, I am doing my undergrade CS course. I am in the final year, and would like to do my project involving Python. Our instructors require the project to have novel ideas. Can the c.l.p people shed light on this topic? You could write a Python program that writes novels. -- http://

Re: [Python-Announce] cfgparse v01_00 released

2005-01-31 Thread David Fraser
Dan Gass wrote: I'm pleased to announce the initial release of cfgparse (V01_00) Background - cfgparse is a more convenient, flexible, and powerful module for parsing configuration files than the standard library ConfigParser module. cfg

Re: [ANN] Spike Asset Manager release 0.13

2005-01-31 Thread David Fraser
mh wrote: Fredrik- This is a known issue. The tool currently only looks in certain locations or hints rather then spidering the whole hard drive (which could take a bit of time). If you have installed in a non-standard location (or are using a platform or version of software that hasn't been test

Re: module for 'po' files

2005-01-26 Thread David Fraser
Sara Fwd wrote: Hi all Is there a module for processing & handling '.po' files in python? If you want to do anything beyond standard gettext (which is handled by the gettext module) there's lots of code at translate.sourceforge.net ... David -- http://mail.python.org/mailman/listinfo/python-lis

Re: Accessing MDB files on Windows

2005-01-20 Thread David Fraser
Jorge Luiz Godoy Filho wrote: Jorge Luiz Godoy Filho, Quarta 19 Janeiro 2005 14:25, wrote: Thanks! I'm looking at it. Worked like a charm! And just now I noticed who's the author of the recipe ;-) You may also be interested in using a DB-API compatible driver for ADO - see for example http://

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-19 Thread David Fraser
Philippe C. Martin wrote: I actually target Unix and windows so pyexe won't cut it I'm afraid - same issue with Inno. As far as the site-package target, I don't fully understand your relunctancy. Just as my potential users might not own a compiler, they might not be computer proficient enough to ea

Re: SuSE 9.1: updating to python-2.4

2005-01-10 Thread David Fraser
Torsten Mohr wrote: Hi, along with my distribution SuSE 9.1 came python 2.3.3. I'd like to update to 2.4 now, is this an easy thing to do or will lots of installed modules refuse to work then? Is there an easy way to find out what i need to update? Thanks for any hints, Torsten. What you probably w

Re: Python evolution: Unease

2005-01-06 Thread David Fraser
Alex Martelli wrote: Carlos Ribeiro <[EMAIL PROTECTED]> wrote: ... wish I could simply plug & play DBAPI modules in a totally seamlessly way. Anyone who tried know how far are we of this dream. If you manage to get there, you'll start fighting against the different dialects of SQL supported by

Re: build a static executable program with python

2004-12-30 Thread David Fraser
Torsten Mohr wrote: Hi, i'd like to build an executable file that is linked with a python library and executes a script via PyRun_SimpleString or similar functions. Is there a static library of python available, so the users don't need to install python? What about DLL modules, do i just need to co

Re: Python To Send Emails Via Outlook Express

2004-12-25 Thread David Fraser
[EMAIL PROTECTED] wrote: Hey guys, I'm just thankful the answer has been found and hope this helps someone else. To everyone (especially Lenard) that responded to my request for help, thank you!! Merry Christmas everyone!!! God bless Ian Thanks Ian, Why not post this to the python-win32 mailing lis

Re: building python extensions with .net sdk compiler?

2004-12-11 Thread David Fraser
Grumman wrote: I got this insane message, how did you solve this "problem" ? running install running build running build_py running build_ext error: The .NET Framework SDK needs to be installed before building extensions for Python. - Or does anyone know why i get this me

Re: Fun with Outlook and MAPI

2004-12-10 Thread David Fraser
Will McGugan wrote: Chris wrote: I'm trying to send an e-mail through outlook. So far I've gotten it to work with the mail script at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/149461 My only problem is that when I call Resolve() and Send(), I get confirmation dialogs. I will be

Re: VC++ 6.0 and 2.4

2004-12-09 Thread David Fraser
Jive wrote: Theoretically, if I messed around with the 2.4 project until I got it to build under MS VC++ 6.0, would the python.exe play correctly with version 2.4 .pyd extensions? It should play correctly with version 2.4 .pyd extensions that have been built with MS VC++ 6.0. David -- http://mail

Re: We what judge the language using which question?

2004-12-03 Thread David Fraser
hlddn wrote: unicode or other? we what judge? thank all You need to usually know the encoding from the context, otherwise you'll have to guess. In this regard I find http://www.eki.ee/letter/ helpful But if you want more details, you'll need to provide a clearer question ... David -- http://mail.

Re: inheritance problem with 2 cooperative methods

2004-12-03 Thread David Fraser
Dan Perl wrote: Here is a problem I am having trouble with and I hope someone in this group will suggest a solution. First, some code that works. 3 classes that are derived from each other (A->B->C), each one implementing only 2 methods, __init__ and setConfig.

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2004-12-03 Thread David Fraser
Rocco Moretti wrote: For some reason I can't seem to make use of the google links. When I use the above eg http://groups.google.com/groups?frame=right&th=e562a771d1c827c9 I get a not found google page with url http://groups-beta.google.com/groups?frame=right&th=e562a771d1c827c9 really wanted to

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2004-12-02 Thread David Fraser
Robin Becker wrote: Cameron Laird wrote: QOTW: "... why does Microsoft try so hard to protect its sources?" . 2.4 is final, buildable under Windows in at least a couple of ways, improved, ... http://www.brunningonline.net/simon/blog/archives/001657.html asyncore, Twisted,

Re: date diff calc

2004-12-02 Thread David Fraser
Peter Hansen wrote: Tim Peters wrote: [Peter Hansen] I think Skip was intending that the format string be mandatory, to avoid such ambiguity. It's still a bottomless pit -- ask Brett, who implemented the Python strptime . True, I did overlook timezones at the time. On the other hand, that's b

Re: Python Win32 Silent Install

2004-12-02 Thread David Fraser
Thomas Heller wrote: "Matt Gerrans" <[EMAIL PROTECTED]> writes: Looks like the installer for the Win32 extensions has changed from Wise to distutils, so now my automated silent installations don't work anymore. Anyone know if the distutils binary installer can be run silently?I haven't been

Re: Help on creating a HTML by python

2004-11-30 Thread David Fraser
sepgy wrote: Can anyone help me to use a python to create an HTML photo gallery generator. When it's finished, it will be able find all the picture files (i.e. .jpg, .gif. .png files) in any given folder on the computer, automatically create smaller thumbnails for each image, and then generate a co