Multiple Versions of Python on Windows XP

2008-12-01 Thread Colin J. Williams
Could anyone please point me to documentation on the way the msi installer handles multiple versions eg. Python 2.5, 2.6 and 3.0? What changes are made to the registry? Is there some way to specify a default version in such a way that it can be changed as necessary? PyScripter uses an opt

Re: Why doesn't doc has predifined name and location ?

2008-12-01 Thread Colin J. Williams
Chris Rebert wrote: On Mon, Dec 1, 2008 at 1:22 PM, Stef Mientki <[EMAIL PROTECTED]> wrote: hello, I'm very satisfied about the great standardization of doc strings in python. Now in contrast to that, the general documentation of libraries, either in plain text, html, pdf, chm, ... doesn't have

Re: Multiple Versions of Python on Windows XP

2008-12-02 Thread Colin J. Williams
Martin v. Löwis wrote: Could anyone please point me to documentation on the way the msi installer handles multiple versions eg. Python 2.5, 2.6 and 3.0? I don't think that is documented anywhere. What changes are made to the registry? For a complete list, see Tools/msi/msi.py in the source

Re: Multiple Versions of Python on Windows XP

2008-12-02 Thread Colin J. Williams
Martin v. Löwis wrote: What changes are made to the registry? For a complete list, see Tools/msi/msi.py in the source tree. I have scanned the file: http://svn.python.org/projects/python/branches/py3k/Tools/msi/msi.py I don't find anything that addresses this issue. Read the add_registry fun

Re: Multiple Versions of Python on Windows XP

2008-12-03 Thread Colin J. Williams
Martin v. Löwis wrote: What changes are made to the registry? For a complete list, see Tools/msi/msi.py in the source tree. I have scanned the file: http://svn.python.org/projects/python/branches/py3k/Tools/msi/msi.py I don't find anything that addresses this issue. Read the add_registry fu

Re: Multiple Versions of Python on Windows XP

2008-12-04 Thread Colin J. Williams
Glenn Linderman wrote: The equivalent of those commands is available via Windows Explorer, Tools / Folder Options, File Types, scroll-scroll-scroll your way to .py, Click Advanced, fiddle, copy paste apply, and other twaddle. Yes, but what's needed is a further level of indirection. Curre

Re: Multiple Versions of Python on Windows XP

2008-12-06 Thread Colin J. Williams
Glenn Linderman wrote: On approximately 12/1/2008 11:29 PM, came the following characters from the keyboard of Martin v. Löwis: It would be nice if the ftypes were version specific as created by the installer; IIRC, I created the above three from the ftype Python.File as I installed each version

Re: Guido's new method definition idea

2008-12-06 Thread Colin J. Williams
Daniel Fetchinson wrote: Hi folks, The story of the explicit self in method definitions has been discussed to death and we all know it will stay. However, Guido himself acknowledged that an alternative syntax makes perfect sense and having both (old and new) in a future version of python is a po

Re: Learning Python now coming from Perl

2008-12-06 Thread Colin J. Williams
Bertilo Wennergren wrote: Roy Smith wrote: Bertilo Wennergren <[EMAIL PROTECTED]> wrote: I'm planning to start learning Python now, using Python 3000. I have no previous Python skills, but I now Perl pretty well. I'm also well experienced with JavaScript. Any pointers and tips how I should

Re: var or inout parm?

2008-12-07 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: How can I make a "var" parm, where the called function can modify the value of the parameter in the caller? def f(x): x = x + 1 n = 1 f(n) # n should now be 2 Many TIA!! Mark Why not run it and see? Your function returns None. The function in effect takes a c

Re: ANN: New Book: Programming in Python 3

2008-12-19 Thread Colin J. Williams
Thomas Heller wrote: Mark Summerfield schrieb: Just a follow-up to say that the book has now been published in the U.S. It is now in stock at InformIT, and should reach other stores, e.g., Amazon, in a week or so. Also, the introduction, the first few pages of the first chapter, the whole of ch

Re: ANN: New Book: Programming in Python 3

2008-12-19 Thread Colin J. Williams
Stefan Behnel wrote: Thomas Heller wrote: Mark Summerfield schrieb: Just a follow-up to say that the book has now been published in the U.S. It is now in stock at InformIT, and should reach other stores, e.g., Amazon, in a week or so. Also, the introduction, the first few pages of the first ch

Re: ANN: New Book: Programming in Python 3

2008-12-19 Thread Colin J. Williams
Steve Holden wrote: Thomas Heller wrote: Mark Summerfield schrieb: Just a follow-up to say that the book has now been published in the U.S. It is now in stock at InformIT, and should reach other stores, e.g., Amazon, in a week or so. Also, the introduction, the first few pages of the first cha

Re: ANN: New Book: Programming in Python 3

2008-12-19 Thread Colin J. Williams
Thomas Heller wrote: Steve Holden schrieb: Thomas Heller wrote: Question from a non-native english speaker: is this now valid english? "One of Python’s great strengths" ^ "and also teaches Python’s functional programming features" ^ "The book

Re: Check file is

2008-12-22 Thread Colin J. Williams
gardsted wrote: Harish wrote: Hi Friends Is there any utility in python which will help me to read any pdf files? Regards Harish Not sure, what you're after exactly, but I tried googling 'python read pdf' and found this, so maybe 'reportlab' is what you're looking for: Re: Reading PDF files

Re: Check file is

2008-12-22 Thread Colin J. Williams
Paul McNett wrote: Colin J. Williams wrote: The ReportLab toolkit appears to be concerned with building Portable Document Files.  I would be interested in any utility which will read any pdf - for example, to convert pdf -> html I don't know of any Python ut

Re: multiply each element of a list by a number

2008-12-27 Thread Colin J. Williams
Méta-MCI (MVP) wrote: Hi! map(multby3, (1, 2, 3, )) with lambda: map(lambda x: x*3, [1,2,3]) @-salutations More lines but perhaps faster than numpy: PythonWin 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammo

Re: multiply each element of a list by a number

2008-12-28 Thread Colin J. Williams
s...@pobox.com wrote: Colin> ... perhaps faster than numpy: ... For extremely short lists, but not for much else: % for n in 1 10 100 1000 1 10 ; do > echo "len:" $n > echo -n "numpy: " > python -m timeit -s 'import numpy ; a = numpy.array(range('$n'))' 'a*

Re: multiply each element of a list by a number

2008-12-29 Thread Colin J. Williams
s...@pobox.com wrote: "Colin" == Colin J Williams writes: Colin> s...@pobox.com wrote: >> For extremely short lists, but not for much else: >> >> % for n in 1 10 100 1000 1 10 ; do >> > echo "len:" $n >&

Python25\Tools\checkversions.py

2008-11-06 Thread Colin J. Williams
Is _checkversion.py used at all currently? Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python25\Tools\checkversions.py

2008-11-06 Thread Colin J. Williams
Martin v. Löwis wrote: Colin J. Williams wrote: Is _checkversion.py used at all currently? I don't think so. Regards, Martin Martin, I suggest that consideration be given to dropping it and and versionchecker from the distribution. I see that it still appears in versions 2.6 an

Re: Python25\Tools\checkversions.py

2008-11-07 Thread Colin J. Williams
Martin v. Löwis wrote: I suggest that consideration be given to dropping it and and versionchecker from the distribution. I see that it still appears in versions 2.6 and 3.0. Please submit a bug report to bugs.python.org to this effect. Regards, Martin Done: components: Tests files: pyvers

Re: is there really no good gui builder

2008-11-10 Thread Colin J. Williams
Mike Driscoll wrote: On Nov 8, 1:35�pm, azrael <[EMAIL PROTECTED]> wrote: whoever I ask, everyone tells me when it come to python and GUI-s and that there is the best way to use WX. I am browsing for the 10th time during the last year and I can still not bealive that there is not one project to

Re: Proposed implementation for an Ordered Dictionary

2009-02-28 Thread Colin J. Williams
Raymond Hettinger wrote: [Paul Rubin] Ehh, I guess I'm not surprised at the slowdown and extra complexity from the second dict. Oh well. If the module really turns out to be really used a lot, another (messy) approach would be to write a C extension that uses a doubly linked list some day. T

Re: Proposed implementation for an Ordered Dictionary

2009-02-28 Thread Colin J. Williams
Steven D'Aprano wrote: Colin J. Williams wrote: Sometimes, it's useful to be able to obtain the data in the sorted sequence. You might consider adding functionality like: def seqItems(self): '''To return the items, sorted by key. ''' return [self[k] f

Re: Proposed implementation for an Ordered Dictionary

2009-03-01 Thread Colin J. Williams
Michele Simionato wrote: On Mar 1, 1:43 am, Paul Rubin <http://phr...@nospam.invalid> wrote: "Colin J. Williams" writes: # print [mydict[x] for x in sorted(mydict.keys)] Instance object is not iterable It was a typo. Use: print [mydict[x] for x in sorted(mydict

Re: RELEASED Python 3.1 alpha 1

2009-03-08 Thread Colin J. Williams
Benjamin Peterson wrote: On behalf of the Python development team and the Python community, I'm happy to announce the first alpha release of Python 3.1. Python 3.1 focuses on the stabilization and optimization of features and changes Python 3.0 introduced. The new I/O system has been rewritten

Re: How to find "in" in the documentation

2009-03-13 Thread Colin J. Williams
Piet van Oostrum wrote: tinn...@isbd.co.uk (t) wrote: t> I've had this trouble before, how do I find the details of how "in" t> works in the documentation. E.g. the details of:- t> if string in bigstring: t> It gets a mention in the "if" section but not a lot. It is explained in T

Re: How to find "in" in the documentation

2009-03-14 Thread Colin J. Williams
Tim Golden wrote: Colin J. Williams wrote: Piet van Oostrum wrote: tinn...@isbd.co.uk (t) wrote: t> I've had this trouble before, how do I find the details of how "in" t> works in the documentation. E.g. the details of:- t> if string in bigstring: t> I

A problem with subprocess

2009-03-20 Thread Colin J. Williams
Below is a test script: # tSubProcess.py import subprocess import sys try: v= subprocess.Popen('ftype py=C:\Python25\Python.exe') except WindowsError: print(sys.exc_info()) Here is the output: *** Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32. **

Regression test

2009-03-23 Thread Colin J. Williams
I am running a regression test, mainly because I wish to explore subprocess, and get a number of errors before crashing. Is this to be expected? The run output is below. Colin W. C:\Documents and Settings\cjw\Desktop>C:\python26\python.exe Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [M

Re: Python 3 consistency proposal

2009-03-25 Thread Colin J. Williams
gert wrote: Rename all built in classes with a capital letter example Str() Int() Object() Make () optional for a function definition class Test: pass def test: pass Any chance Guido would approve this :-) Zero. But I like the idea. Is version 3 really sacrosanct? I wonder how muc

Re: [ANN] pylint 0.18 / logilab-astng 0.19 / logilab-common 0.39

2009-03-25 Thread Colin J. Williams
Sylvain Thénault wrote: Le Wednesday 25 March 2009 11:58:37 andrew cooke, vous avez écrit : python 3? :o) python 3 support is no much far away now that we support the new _ast module. logilab-common already has its py3k branch in the source repository... So it's in the plan, but any helps app

Re: The Python standard library and PEP8

2009-04-20 Thread Colin J. Williams
Emmanuel Surleau wrote: Hi there, Exploring the Python standard library, I was surprised to see that several packages (ConfigParser, logging...) use mixed case for methods all over the place. I assume that they were written back when the Python styling guidelines were not well-defined. Give

Re: pyflakes, pylint, pychecker - and other tools

2009-04-22 Thread Colin J. Williams
Esmail wrote: What is the consensus of the Python community regarding these code checkers? In particular, are the stylistic recommendations that pylint makes considered sensible/valid? pylint seems a bit heavy handled, a bit too much PEP 8, which was intended as a guide, rather than a prescr

Re: Essential tools for Python development

2009-04-22 Thread Colin J. Williams
Esmail wrote: Great list Ben, I use emacs and will check out the tools you listed. What techniques/tools do you recommend for debugging? I like PyScripter for Windows, which provides a tool for PyLint. Colin W. Esmail -- http://mail.python.org/mailman/listinfo/python-list

Re: Why bool( object )?

2009-04-28 Thread Colin J. Williams
Lie Ryan wrote: Aaron Brady wrote: What is the rationale for considering all instances true of a user- defined type? User-defined objects (or type) can override .__len__() [usually container types] or .__nonzero__() to make bool() returns False. Is it strictly a practical stipulation, or

Re: Seeking old post on developers who like IDEs vs developers who like simple languages

2009-05-19 Thread Colin J. Williams
Ulrich Eckhardt wrote: Steve Ferg wrote: On the one hand, there are developers who love big IDEs with lots of features (code generation, error checking, etc.), and rely on them to provide the high level of support needed to be reasonably productive in heavy-weight languages (e.g. Java). On the

Compiling Python using Microsoft Visual C++ 2008

2008-05-12 Thread Colin J. Williams
1.I have both 2.5 and 2.6 but both appear, under Recent Projects, as pcbuild. It would be helpful if the Python Version could be indicated. 2.With 2.6, Python compiles and executes OK but various packages are not compiled, eg sqlite3. 3.Pythonw compiles OK but not sqlite3. 4.Mike Fletcher

Re: Compiling Python using Microsoft Visual C++ 2008

2008-05-12 Thread Colin J. Williams
Martin v. Löwis wrote: 1.I have both 2.5 and 2.6 but both appear, under Recent Projects, as pcbuild. It would be helpful if the Python Version could be indicated. Hover over the link, and it will display the full path, which you can then infer to reason about the specific copy of Python you ar

Re: help compiling Python on vs 2008!

2008-05-17 Thread Colin J. Williams
inhahe wrote: "Christian Heimes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] inhahe schrieb: what is going on here, and how do I compile these external libraries? I assume you are trying to compile Python 2.5 with VS 9.0. It's not supported. Some extensions don't compile under

Re: Using Python for programming algorithms

2008-05-17 Thread Colin J. Williams
Vicent Giner wrote: Hello. I am new to Python. It seems a very interesting language to me. Its simplicity is very attractive. However, it is usually said that Python is not a compiled but interpreted programming language —I mean, it is not like C, in that sense. I am working on my PhD Thesis,

Re: Misuse of list comprehensions?

2008-05-20 Thread Colin J. Williams
Colin J. Williams wrote: John Salerno wrote: I posted this code last night in response to another thread, and after I posted it I got to wondering if I had misused the list comprehension. Here's the two examples: Example 1: def compress(s): new = [] for c

Re: Misuse of list comprehensions?

2008-05-20 Thread Colin J. Williams
John Salerno wrote: I posted this code last night in response to another thread, and after I posted it I got to wondering if I had misused the list comprehension. Here's the two examples: Example 1: def compress(s): new = [] for c in s: if c not in new:

Re: Making wxPython a standard module?

2008-06-14 Thread Colin J. Williams
Grant Edwards wrote: On 2008-06-14, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: And on a personal note: I find it *buttugly*. Do you mind explaining "why" you find it *buttugly*? [...] For the curious: Not the look & feel (albeit I prefer KDE on linux over Gnome, which is a Qt/GTK thing an

PyOpenGL New Installation

2008-06-23 Thread Colin J. Williams
I have just installed PyOpenGL and get a series of warning messages: Best match: PyOpenGL 3.0.0b3 Downloading http://downloads.sourceforge.net/pyopengl/PyOpenGL-3.0.0b3.zip?modtime=1213363873&big_mirror=0 Processing PyOpenGL-3.0.0b3.zip Running PyOpenGL-3.0.0b3\setup.py -q bdist_egg --dist-di

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Colin J. Williams
cirfu wrote: is there an IDE for python of the same quality as Eclipse or DEVC++? I am currently using the editor that coems iwth python and it is all fine but for bigger projects it would be nice to have some way to easier browse the projectfiles for example. I don't know these but you might

Re: How to get a multicast to wait for all nodes?

2008-06-27 Thread Colin J. Williams
Ryuke wrote: I have a code that receives gps information from nodes and gives off its own coordinates via radios connected by Ethernet. but the code continues to run after receiving only 1 set of coordinates, how do i get it to wait for multiple nodes to send before continuing You might provid

Re: Python 3.0 and removal of the 'string' module

2008-07-12 Thread Colin J. Williams
Benjamin wrote: On Jul 11, 3:06 am, Ben Finney <[EMAIL PROTECTED]> wrote: "Martin v. Löwis" <[EMAIL PROTECTED]> writes: This is rather disappointing. Is that entire page suspect? All documentation about Python 3 is suspect until Python 3 gets actually released (nobody can say for sure how the

Re: Autocompletion and Interactive Tables in a Python IDE

2008-07-25 Thread Colin J. Williams
Anthony wrote: Hi, I'm a FoxPro programmer, but I want to learn python before it's too late. I do a lot of statistical programming, so I import SPSS into python. In my opinion, the best features of Visual FoxPro 9.0 were: a) Intellisense (tells you what classes/methods are available and what va

An Attempt to download and install traits - to a Windows XP

2008-07-25 Thread Colin J. Williams
Using >easy_install -v -f http://code.enthought.com/enstaller/eggs/source enthought.traits The result is: ... many lines ... copying enthought\traits\ui\tests\shell_editor_test.py -> build\lib.win32-2.5\enthought\traits\ui\tests copying enthought\traits\ui\tests\table_editor_color_test.

Re: Attack a sacred Python Cow

2008-07-25 Thread Colin J. Williams
Fuzzyman wrote: On Jul 24, 6:41 am, Jordan <[EMAIL PROTECTED]> wrote: Hi everyone, I'm a big Python fan who used to be involved semi regularly in comp.lang.python (lots of lurking, occasional posting) but kind of trailed off a bit. I just wrote a frustration inspired rant on my blog, and I thou

Re: An Attempt to download and install traits - to a Windows XP

2008-07-26 Thread Colin J. Williams
Robert, Many thanks, this has put me on track. Colin W. Robert Kern wrote: On Jul 25, 5:37 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote: Using >easy_install -v -fhttp://code.enthought.com/enstaller/eggs/sourceenthought.traits The result is: ... many lines ..

Re: Attack a sacred Python Cow

2008-07-26 Thread Colin J. Williams
Russ P. wrote: If, as I wrote, you permit the omission of "self" in method signatures defined within class definitions, then you could still insist on instance attribute qualification using "self" - exactly as one would when writing Java according to certain style guidelines. I'm not sure exact

Re: Attack a sacred Python Cow

2008-07-27 Thread Colin J. Williams
Russ P. wrote: On Jul 26, 2:25 pm, Terry Reedy There is a lot of code you have not seen. Really. In informal code I use 's' and 'o' for 'self' and 'other'. I don't usually post such because it is not considered polite. So you have seen a biased sample of the universe. You take the name do

Re: Attack a sacred Python Cow

2008-07-28 Thread Colin J. Williams
Michael Torrie wrote: Colin J. Williams wrote: def fun( ., cat): I don't see the need for the comma in fun. It (the entire first variable!) is needed because a method object is constructed from a normal function object: def method(sel

Re: Boolean tests [was Re: Attack a sacred Python Cow]

2008-07-29 Thread Colin J. Williams
Heiko Wundram wrote: Am Dienstag, 29. Juli 2008 11:15:05 schrieb Heiko Wundram: I can't dig up a simple example from code I wrote quickly... Just to get back to that: an example I found where "if x" (the generic __nonzero__() test) will work to test for emptiness/non-emptiness of a container

Re: static variables in Python?

2008-07-29 Thread Colin J. Williams
kj wrote: In <[EMAIL PROTECTED]> Larry Bates <[EMAIL PROTECTED]> writes: kj wrote: Yet another noob question... Is there a way to mimic C's static variables in Python? Or something like it? The idea is to equip a given function with a set of constants that belong only to it, so as not to cl

Re: ANN: pyspread 0.0.8

2008-08-02 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: pyspread 0.0.8 has been released. About: pyspread is a spreadsheet that accepts a pure python expression in each cell. New features: New macro dialog that allows defining python functions, which can be used in the grid. Bug fixes within the copy paste and print code.

Re: ANN: pyspread 0.0.8

2008-08-03 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: On Sat, 02 Aug 2008 13:39:25 -0400 "Colin J. Williams" <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: pyspread 0.0.8 has been released. Are you planning any documentation? Actually, yes. 0.0.10 will feature some docs. Any help writing and doi

Re: ANN: pyspread 0.0.8

2008-08-03 Thread Colin J. Williams
Martin Manns wrote: On Sun, 03 Aug 2008 14:25:11 -0400 "Colin J. Williams" <[EMAIL PROTECTED]> wrote: I've copied your tutorial in my site-packages\pyspread directory I wrote the tutorial in this thread as a step by step guide that can be followed manually. You do not ne

Re: Why is ::= used as assignment operator in doc statements?

2008-08-09 Thread Colin J. Williams
Ben Finney wrote: [EMAIL PROTECTED] writes: Why is statments expressed with ::= as the assigning operator? like: http://docs.python.org/ref/grammar.txt That page is part of the language reference. It shows, not Python code, but a description of part of the Python grammar. See §1.2 http://www

Re: Fault Seal Analysis

2008-08-12 Thread Colin J. Williams
raja wrote: Fault Seal Analysis Analyse Reservoir Fault, Lateral & Top Seal quickly and efficiently http://finance4u.synthasite.com/ raja has overstayed his welcome. Is there any way to expunge these entries? Message source below. Colin W. Path: ncf.ca!news.xcski.com!news.acm.uiuc.edu!

Re: Why prefer != over <> for Python 3.0?

2008-03-30 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: > I don't know if this is the right place to discuss the death of <> in > Python 3.0, or if there have been any meaningful discussions posted > before (hard to search google with '<>' keyword), but why would anyone > prefer the comparison operator != over <>??? > > I've wr

Re: Is this a good time to start learning python?

2008-04-01 Thread Colin J. Williams
Terry Reedy wrote: > "Rui Maciel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | Recently I woke up inclined to take up the task of learning another > | programming language. I've already dipped my toes in Perl (I've read > online > | tutorials and wrote a couple of irrelevant

Re: A funnily inconsistent behavior of int and float

2008-04-06 Thread Colin J. Williams
Grant Edwards wrote: > On 2008-04-06, Lie <[EMAIL PROTECTED]> wrote: > >> I've noticed some oddly inconsistent behavior with int and float: >> >> Python 2.5.1 (r251:54863, Mar 7 2008, 03:39:23) >> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 > int('- 345') >>

Re: A funnily inconsistent behavior of int and float

2008-04-07 Thread Colin J. Williams
Mark Dickinson wrote: > On Apr 6, 1:29 pm, Lie <[EMAIL PROTECTED]> wrote: >> I've noticed some oddly inconsistent behavior with int and float: >> >> Python 2.5.1 (r251:54863, Mar 7 2008, 03:39:23) >> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2>>> >> int('- 345')

Re: A funnily inconsistent behavior of int and float

2008-04-07 Thread Colin J. Williams
Terry Reedy wrote: > "Mark Dickinson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | On Apr 7, 6:43 am, "Colin J. Williams" <[EMAIL PROTECTED]> wrote: > | > This is good but the documentation for > | > 3.0 is missi

PCBuild.sin - Attempt to compile Python using Visual Studio 2008

2008-05-08 Thread Colin J. Williams
The readme.txt has: All you need to do is open the workspace "pcbuild.sln" in Visual Studio, select the desired combination of configuration and platform and eventually build the solution. Unless you are going to debug a problem in the core or you are going to create an optimized build you w

Re: PCBuild.sin - Attempt to compile Python using Visual Studio 2008

2008-05-08 Thread Colin J. Williams
Colin J. Williams wrote: The readme.txt has: All you need to do is open the workspace "pcbuild.sln" in Visual Studio, select the desired combination of configuration and platform and eventually build the solution. Unless you are going to debug a problem in the core or you are going

Re: PCBuild.sin - Attempt to compile Python using Visual Studio 2008

2008-05-08 Thread Colin J. Williams
Gabriel Genellina wrote: En Thu, 08 May 2008 09:55:36 -0300, Colin J. Williams <[EMAIL PROTECTED]> escribió: The readme.txt has: All you need to do is open the workspace "pcbuild.sln" in Visual Studio, select the desired combination of configuration and platform and even

test

2008-05-10 Thread Colin J. Williams
test -- http://mail.python.org/mailman/listinfo/python-list

test

2008-05-10 Thread Colin J. Williams
test -- http://mail.python.org/mailman/listinfo/python-list

Re: like a "for loop" for a string

2008-08-17 Thread Colin J. Williams
Alexnb wrote: Okay, so lets say you have a list: funList = [1,2,3,4,5] and you do: for x in funList: print x this will print 1-5 But I am wondering is there a way to something like this: funString = "string string string non-string non-string string" and for "string" in funString:

Re: Uses of docutils

2008-08-31 Thread Colin J. Williams
Guillermo wrote: Hi, I've been playing with docutils in order to use ReStructedText with Django, but I was wondering if apart from converting files to html it adds anything to Python's self-documenting facilities. For instance, the instructions tell you to run "buildhtml.py .." after the instal

Re: new python docs

2008-09-03 Thread Colin J. Williams
Rick Dooling wrote: Wow! I've been away in other pursuits. The new docs are gorgeous and searchable. http://docs.python.org/dev/index.html Thank you, python.org. Yes, they look crisp and clear. It would have been nice if the Apple folk, in their clear Style Guide, had provided hyperlinks

Re: Learning Python

2008-09-06 Thread Colin J. Williams
James Pilling wrote: Hi im currently starting to learn python in sixth form at school any tips? GET FREE 5GB EMAIL - Check out spam free email with many cool features! Visit http://www.inbox.com/email to find out more! There are sugges

Re: Python and Open Office

2008-09-10 Thread Colin J. Williams
Marco Bizzarri wrote: On Wed, Sep 10, 2008 at 10:04 PM, Greg Lindstrom <[EMAIL PROTECTED]> wrote: Hello, I would like to create and manipulate Open Office documents using Python. I have found then UNO Python page and odfpy modules which seem to be exactly what I need. The odfpy manual is, to

Re: Not fully OO ?

2008-09-20 Thread Colin J. Williams
candide wrote: Excerpt quoted from http://www.astro.ufl.edu/~warner/prog/python.html : "About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes to an extent, but is not a full OOP language." Thanks for any comment. "for

Re: Not fully OO ?

2008-09-20 Thread Colin J. Williams
Fredrik Lundh wrote: Colin J. Williams wrote: "foreach: for x in array: statements Loops over the array given by array. On each iteration, the value of the current element is assigned to x and the internal array pointer is advanced by one. " This could be a useful addition

Re: Peter Naur wins ACM Turing Award

2006-03-07 Thread Colin J. Williams
Kay Schluehr wrote: > Terry Reedy wrote: > >>http://campus.acm.org/public/pressroom/press_releases/3_2006/turing_3_01_2006.cfm >> >>Peter Naur was co-developer of Backus/Naur grammar notation, co-author and >>editor of the Algol 60 specification, and co-developer of a successful >>Algol compiler.

Re: Peter Naur wins ACM Turing Award

2006-03-07 Thread Colin J. Williams
Kay Schluehr wrote: > Colin J. Williams wrote: > > >>Without detracting from the last sentence, I disagree. >> >>Peter Naur's honour is long overdue. >> >>Colin W. > > > Sometimes it's hard for me to figure out about what somebody el

Re: using PyShell, or other shells?

2006-03-09 Thread Colin J. Williams
John Salerno wrote: > I'm interested in trying out shells other than IDLE, and I found > PyShell, but I'm not sure how to get it exactly. Is there a way to get > it without installing wxPython, or is it a part of it? I can't find much > reference to it in any of the manuals at wxpython.org (exce

Re: Python source cross reference doc generator?

2006-03-11 Thread Colin J. Williams
Harry Fuecks wrote: > Hi All, > > Wondering if a tool exists to generate "cross reference" documentation > for Python code bases? > > Particularly after something like phpxref - > http://phpxref.sourceforge.net/ : written in Perl, scans a bunch of > PHP scripts and generates HTML output that allo

Re: [Numpy-discussion] [ANN] NumPy 0.9.6 released

2006-03-14 Thread Colin J. Williams
Travis Oliphant wrote: > This post is to announce the release of NumPy 0.9.6 which fixes some > important bugs and has several speed improvments. > > NumPy is a multi-dimensional array-package for Python that allows > rapid high-level array computing with Python. It is successor to both > Nume

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Colin J. Williams
Diez B. Roggisch wrote: >>Thanks Diez! Epydoc looks great. >> >>Can we use epytext to generate output suitable for a manpage? > > > Don't know, never tried that. > The answer appear to be No, but there is a man.py file which indicates that some work was done on it. Below is the epydoc command

Python Documentation Standards

2006-03-16 Thread Colin J. Williams
Doc strings provide us with a great opportunity to illuminate our code. In the example below, __init__ refers us to the class's documentation, but the class doc doesn't help much. Are there any guideline which cover such things? PEP 8 has general advice

Re: Python Documentation Standards

2006-03-17 Thread Colin J. Williams
Steven Bethard wrote: > Colin J. Williams wrote: > >> Doc strings provide us with a great opportunity to illuminate our code. >> >> In the example below, __init__ refers us to the class's documentation, >> but the class doc doesn't help much. > &g

Re: Free Python IDE ?

2006-03-29 Thread Colin J. Williams
Ernesto wrote: > I'm looking for a tool that I can use to "step through" python software > (debugging environment). Is there a good FREE one (or one which is > excellent and moderately priced ) ? > Ernesto, If you are using Windows then you migt consider PyScripter. http://mmm-experts.com/ Coli

Re: help with link parsing?

2010-12-22 Thread Colin J. Williams
On 21-Dec-10 12:22 PM, Jon Clements wrote: import lxml from urlparse import urlsplit doc = lxml.html.parse('http://www.google.com') print map(urlsplit, doc.xpath('//a/@href')) [SplitResult(scheme='http', netloc='www.google.co.uk', path='/imghp', query='hl=en&tab=wi', fragment=''), SplitResult(s

Re: Python use growing fast

2011-01-12 Thread Colin J. Williams
On 10-Jan-11 16:02 PM, MRAB wrote: On 10/01/2011 20:29, Dan Stromberg wrote: I invite folks to check out Tiobe's Language Popularity Rankings: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html The gist is: Python grew faster than any other programming language over the last year

Re: python 3 and Unicode line breaking

2011-01-14 Thread Colin J. Williams
On 14-Jan-11 14:47 PM, Antoine Pitrou wrote: Hey, On 14 Jan 2011 16:07:12 GMT Steven D'Aprano wrote: I also see no reason to reply to a simple question with such discourtesy, and cannot understand why someone would be so aggressive to a stranger. If you think my reply was aggressive and d

Re: Which is the best book to learn python

2011-01-24 Thread Colin J. Williams
On 24-Jan-11 12:38 PM, Jean-Michel Pichavant wrote: santosh hs wrote: Hi All, i am beginner to python please tell me which is the best available reference for beginner to start from novice Hi, You could have searched the archive, this question was raised many times. http://wiki.python.org/mo

Re: EPD 7.0 released

2011-02-14 Thread Colin J. Williams
On 14-Feb-11 06:59 AM, sturlamolden wrote: On 14 Feb, 01:50, Robert Kern wrote: I'd just like to jump in here to clear up this last statement as an Enthought employee. While Enthought and its employees do contribute to the development of numpy and scipy in various ways (and paying us money is

lxml

2011-02-23 Thread Colin J. Williams
Could someone please let me know whether lxml is available for Windows XP?. If so, is it available for Python 2.7? Thanks, Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: if, continuation and indentation

2010-05-28 Thread Colin J. Williams
On 28-May-10 05:54 AM, Jonathan Hartley wrote: On May 27, 1:57 pm, Jean-Michel Pichavant wrote: HH wrote: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. When I write an if statement with many c

Re: if, continuation and indentation

2010-05-30 Thread Colin J. Williams
rong') or highlight > 100: On Sat, May 29, 2010 at 8:59 PM, Mark Lawrence mailto:breamore...@yahoo.co.uk>> wrote: On 30/05/2010 01:23, john wrote: On May 28, 10:37 am, "Colin J. Williams"mailto:cjwilliam...@gmail.com>> wrote: On 28-May-1

Re: GUI programs

2010-05-30 Thread Colin J. Williams
On 30-May-10 08:22 AM, Philip Semanchuk wrote: On May 29, 2010, at 9:13 PM, wrote: Just curious if anyone would be willing to share their thoughts about different Python GUI programming modules. I've been doing a bit of research and am trying to find something that: 1. Is portable. Would li

Re: reading help() - newbie question

2010-05-31 Thread Colin J. Williams
On 31-May-10 06:19 AM, Payal wrote: Hi, I am trying to learn Python (again) and have some basic doubts which I hope someone in the list can address. (English is not my first language and I have no CS background except I can write decent shell scripts) When I type help(something) e.g. help(list),

Re: if, continuation and indentation

2010-05-31 Thread Colin J. Williams
On 31-May-10 17:15 PM, Lie Ryan wrote: On 05/31/10 05:10, Colin J. Williams wrote: On 30-May-10 01:50 AM, Nathan Rice wrote: On 27-May-10 08:48 AM, Xavier Ho wrote: > On 27 May 2010 22:22, HHmailto:henri...@gmail.com>> <mailto:henri.

<    1   2   3   4   5   >