Re: Python-list Digest, Vol 163, Issue 14

2017-04-13 Thread Colin J. Williams
Thanks Eryk, I have today successfully installed python 3.6.1. Next I have to tackle installing the whl versions of Numpy and Matplotlib. Colin W. On 2017-04-11 11:25 AM, python-list-requ...@python.org wrote: Send Python-list mailing list submissions to python-list@python.org To

Installing Python 3.6.1 on a Windows 10

2017-04-10 Thread Colin J. Williams
Below is the tail of my Install Log. Is this a problem that I should be able to resolve? Advice sought. C Property(S): RedirectedDllSupport = 2 Property(S): MsiRunningElevated = 1 Property(S): Privileged = 1 Property(S): USERNAME = AdminOnly Property(S): Installed =

Re: Problem installing 3.6.1 AMD64

2017-04-06 Thread Colin J. Williams
Eryk, Many thanks. I wasn't aware of the Path Editor, Colin W. On 2017-04-05 7:55 PM, eryk sun wrote: On Wed, Apr 5, 2017 at 6:46 PM, Colin J. Williams [1]<c...@ncf.ca> wrote: Successful install reported, but: Microsoft Windows [Version 10.0.14393] (c

Problem installing 3.6.1 AMD64

2017-04-05 Thread Colin J. Williams
Successful install reported, but: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Users\CJW>cd\python The system cannot find the path specified. C:\Users\CJW>cd\ C:\>path PATH=C:\Program

Python 3.4.4 Install

2016-01-09 Thread Colin J. Williams
The reponse is not understood. *** Python 3.4.4rc1 (v3.4.4rc1:04f3f725896c, Dec 6 2015, 17:06:10) [MSC v.1600 64 bit (AMD64)] on win32. *** >>> File "C:\Users\Adm\AppData\Roaming\PyScripter\python_init.py", line 1 Öü:Vt‡Ö{ZðN)’ƒ2%hóýL"®ÁwÇ,”¿ƾJ ^ SyntaxError: invalid syntax

Re: Windows Studio 2008 Download

2014-07-29 Thread Colin J. Williams
i. I've seen notes, in various places to say that the Express version is not acceptable for compiling Python packages. Is it, in fact usable for this purpose? ii. The Service Pack 1 has the original studio as a prerequisite. That is no longer available from Microsoft. Any advice would be

Windows Studio 2008 Download

2014-07-28 Thread Colin J. Williams
I gather that Python is compiled with Windows Studio 2008. Unfortunately, the MS Download link points to a Studio 2010 advertising .ppx Could someone point to an alternative please? Colin W. PS I need it for Numpy-1.8.1, which does not seem to be available with a binary version. --

Re: Python 3.4.1 64 bit Version

2014-07-18 Thread Colin J. Williams
Thanks to Chris and Zachary, I shall retreat to Python 3.3 *pro tem* *Colin W.* On 18 July 2014 09:53, Zachary Ware zachary.ware+pyl...@gmail.com wrote: On Fri, Jul 18, 2014 at 8:29 AM, cjwilliam...@gmail.com wrote: The version given on Python.org is Python 3.4.1 (v3.4.1:c0e311e010fc,

Re: Python for microcontrollers

2013-12-03 Thread Colin J. Williams
On 03/12/2013 7:58 AM, Mark Lawrence wrote: I thought this might be of interest Http://www.kickstarter.com/projects/214379695/micro-python-python-for-microcontrollers Is this intended to be better than the Raspberry PI? RPi handles Python 2 or 3. How would it differ? Colin W. --

Re: UnicodeDecodeError: 'ascii' codec can't decodee byte 0xff in position 0: ordinal not in range(128)

2013-11-18 Thread Colin J. Williams
On 17/11/2013 11:55 PM, Hoàng Tuấn Việt wrote: Hi all, I use Python telnetlib on Windows 7 32 bit. Here is my code: def*telnet*(/self/, host, os, username, password): connection = telnetlib.Telnet(host) connection.read_until(/'login: '/) connection.write(username + /'\r'/)

Re: Running Python programmes

2013-10-27 Thread Colin J. Williams
On 27/10/2013 10:32 AM, David wrote: I am an absolute beginner and am working through the book Python Programming for the Absolute Beginner by Michael Dawson. Everything is fine except if I run a scripted programme, or one I have downloaded, and then run another one, the second one will not

Re: indentation blocking in Python

2013-10-27 Thread Colin J. Williams
On 27/10/2013 11:31 AM, ajetrum...@gmail.com wrote: a=1; if a==1: print(1) else: print(0) wait = input(press key) You indent only subordinate statements. You don't need a semi-colon unless it separates two statements on the same line. Your code: a=1 if a==1: print(1) else: print(0)

Re: Will Python 3.x ever become the actual standard?

2013-10-24 Thread Colin J. Williams
On 23/10/2013 9:13 AM, Tim Golden wrote: On 23/10/2013 14:05, Colin J. Williams wrote: On 23/10/2013 8:35 AM, Mark Lawrence wrote: On 23/10/2013 12:57, duf...@gmail.com wrote: Years have passed, and a LARGE number of Python programmers has not even bothered learning version 3.x. The changes

Re: Will Python 3.x ever become the actual standard?

2013-10-23 Thread Colin J. Williams
On 23/10/2013 8:35 AM, Mark Lawrence wrote: On 23/10/2013 12:57, duf...@gmail.com wrote: Years have passed, and a LARGE number of Python programmers has not even bothered learning version 3.x. The changes aren't large enough to worry a Python programmer so effectively there's nothing to

Re: Determine actually given command line arguments

2013-05-15 Thread Colin J. Williams
On 15/05/2013 2:34 AM, Henry Leyh wrote: Hello, I am writing a program that gets its parameters from a combination of config file (using configparser) and command line arguments (using argparse). Now I would also like the program to be able to _write_ a configparser config file that contains

Re: Fractal

2013-05-15 Thread Colin J. Williams
On 13/05/2013 11:41 AM, Sharon COUKA wrote: Hello, I'm new to python and i have to make a Mandelbrot fractal image for school but I don't know how to zoom in my image. Thank you for helping me. Envoyé de mon iPad Google is your friend. Try Mandelbrot Python Colin W. --

Re: Unicode humor

2013-05-15 Thread Colin J. Williams
On 15/05/2013 1:21 PM, MRAB wrote: On 15/05/2013 18:04, Jean-Michel Pichavant wrote: - Original Message - On 15/05/2013 14:19, Jean-Michel Pichavant wrote: This reflects a lack of understanding of Unicode. jmf And this reflects a lack of a sense of humor. :) Isn't that a

Re: Style question -- plural of class name?

2013-05-08 Thread Colin J. Williams
On 08/05/2013 4:20 PM, Roy Smith wrote: FooEntry is a class. How would you describe a list of these in a docstring? A list of FooEntries 0 A list of FooEntrys -1 A list of FooEntry's +1 A list of FooEntry instances No FooEntry is specified as a class. The first one certainly sounds

Re: multiple versions of python

2013-05-07 Thread Colin J. Williams
On 07/05/2013 6:26 PM, sokovic.anamar...@gmail.com wrote: Hi, what is the generally recommended structure when we have into play this type of problem: multiple versions of python (both in the sense of main versions and sub versions, e.g., 2.7 : 2.7.1 2.7.3 3: 3.3 3.3.1 Different

Re: Help with loading file into an array

2013-05-05 Thread Colin J. Williams
On 05/05/2013 3:43 AM, Fábio Santos wrote: Using a nested array should waste a lot of memory. I think you should use PIL to load and read the image. I want to read the data from that gif file taking the red data (excluding the green and blue data) and store that in an array called Image[][]

Re: [ANNC] pynguin-0.14 python turtle graphics application

2013-05-03 Thread Colin J. Williams
On 13/04/2013 8:10 PM, Miki Tebeka wrote: Pynguin is a python-based turtle graphics application. I wonder why Pynguin does not get more traction in the teaching sector. Looks ideal for teaching kids. Mili, I suggest that it's because Pynguin is not yet fully operational. I don't know where

Re: [Edu-sig] [ANNC] pynguin-0.14 python turtle graphics application

2013-05-03 Thread Colin J. Williams
On 03/05/2013 12:01 PM, Jurgis Pralgauskis wrote: Hi, do you plan to make step/debug functionality as it is made in RurPLE? I generally like RurPLE-NG http://dev.lshift.net/paul/rurple/ I improoved it fore easier learning

Re: There must be a better way

2013-04-22 Thread Colin J. Williams
On 22/04/2013 10:42 AM, Neil Cerutti wrote: On 2013-04-21, Colin J. Williams c...@ncf.ca wrote: On 20/04/2013 9:07 PM, Terry Jan Reedy wrote: On 4/20/2013 8:34 PM, Tim Chase wrote: In 2.x, the csv.reader() class (and csv.DictReader() class) offered a .next() method that is absent in 3.x

Re: There must be a better way

2013-04-21 Thread Colin J. Williams
On 20/04/2013 9:07 PM, Terry Jan Reedy wrote: On 4/20/2013 8:34 PM, Tim Chase wrote: In 2.x, the csv.reader() class (and csv.DictReader() class) offered a .next() method that is absent in 3.x In Py 3, .next was renamed to .__next__ for *all* iterators. The intention is that one iterate with

Re: There must be a better way

2013-04-21 Thread Colin J. Williams
On 21/04/2013 9:39 AM, Jussi Piitulainen wrote: Colin J. Williams writes: ... It is not usual to have a name with preceding and following udserscores,imn user code. Presumably, there is a rationale for the change from csv.reader.next to csv.reader.__next__. ... I think the user code

Re: There must be a better way

2013-04-21 Thread Colin J. Williams
On 21/04/2013 9:43 AM, Peter Otten wrote: Colin J. Williams wrote: I was seeking some code that would be acceptable to both Python 2.7 and 3.3. In the end, I used: inData= csv.reader(inFile) def main(): if ver == '2': headerLine= inData.next() else

There must be a better way

2013-04-20 Thread Colin J. Williams
Below is part of a script which shows the changes made to permit the script to run on either Python 2.7 or Python 3.2. I was surprised to see that the CSV next method is no longer available. Suggestions welcome. Colin W. def main(): global inData, inFile if ver == '2':

Re: Interactive development in Python à la Smalltalk?

2013-04-08 Thread Colin J. Williams
On 08/04/2013 4:33 AM, Bienlein wrote: Hello, I'm absolutely new to Python, just looked at the language description for the first time. The first thought that came to my mind was whether you can program in Python in an interactive programming style, i.e. I can change code in the debugger

Re: Fwd: Re: distutils without a compiler

2013-04-05 Thread Colin J. Williams
On 04/04/2013 9:30 PM, Colin J. Williams wrote: Original Message Subject: Re: distutils without a compiler Date: Tue, 02 Apr 2013 16:26:59 -0700 From: Ned Deily n...@acm.org

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Colin J. Williams
On 22/03/2013 6:11 PM, Ethan Furman wrote: On 03/22/2013 02:57 PM, Colin J. Williams wrote: Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Colin J. Williams
On 22/03/2013 6:11 PM, Ethan Furman wrote: On 03/22/2013 02:57 PM, Colin J. Williams wrote: Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify

Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Colin J. Williams
Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify for your own machine or # delete it and and answer the input statement with your own

Re: x += ... is not the same than x = x + ... if x is mutable

2013-03-21 Thread Colin J. Williams
On 21/03/2013 12:27 AM, Nobody wrote: On Wed, 20 Mar 2013 07:17:08 -0700, bartolome.sintes wrote: I thought that x += ... was the same than x = x + ..., but today I have realized it is not true when operating with mutable objects. It may or may not be the same. x += y will invoke

Binary for numpy 1.7.0 with Python 2.7.3

2013-03-21 Thread Colin J. Williams
How do I find the binaries on Source Forge? I'm trying to update to both 2.7.3 and Numpy 1.7.0. Colin W -- http://mail.python.org/mailman/listinfo/python-list

Re: Binary for numpy 1.7.0 with Python 2.7.3

2013-03-21 Thread Colin J. Williams
On 21/03/2013 4:00 PM, Dave Angel wrote: On 03/21/2013 03:40 PM, Colin J. Williams wrote: How do I find the binaries on Source Forge? I'm trying to update to both 2.7.3 and Numpy 1.7.0. Colin W Best answer might depend on what OS you're running, and what implementation of Python you're

Re: Apparent magic number problem

2013-03-09 Thread Colin J. Williams
On 09/03/2013 3:51 AM, Peter Otten wrote: Colin J. Williams wrote: The program runs correctly under each version, but it runs more slowly under 3.2. This is probably due to the fact that the .pyc file is created for the Python 2.7 execution. When Python 3.2 is run it fails to create a new

Apparent magic number problem

2013-03-08 Thread Colin J. Williams
I have a program that I wish to run in both Python 2.7 and Python 3.2 The program runs correctly under each version, but it runs more slowly under 3.2. This is probably due to the fact that the .pyc file is created for the Python 2.7 execution. When Python 3.2 is run it fails to create a

Re: Is it correct this way to inherit from a list?

2013-03-03 Thread Colin J. Williams
On 02/03/2013 9:30 PM, gialloporpora wrote: Risposta al messaggio di Rick Johnson : What are you trying to achieve exactly? I would like to implement a class (vector) to works with vectors, for example using scalar multiplication: a*v = [a*v1, a*vn] and a dual class for dual vector (the

Re: yield expression

2013-02-26 Thread Colin J. Williams
On 24/02/2013 7:36 PM, Ziliang Chen wrote: Hi folks, When I am trying to understand yield expression in Python2.6, I did the following coding. I have difficulty understanding why val will be None ? What's happening under the hood? It seems to me very time the counter resumes to execute, it will

Re: yield expression

2013-02-26 Thread Colin J. Williams
() while True: print(next(generator)) if __name__ == '__main__': main() Hope helps. Vytas D. On Tue, Feb 26, 2013 at 4:34 PM, Colin J. Williams c...@ncf.ca mailto:c...@ncf.ca wrote: On 24/02/2013 7:36 PM, Ziliang Chen wrote: Hi folks, When I am trying

Re: A newbie question

2013-02-12 Thread Colin J. Williams
On 12/02/2013 10:06 AM, Alberto Salvati wrote: Hi, All. I'm a (old) delphi developer. I want to learn Python. I've python 2.7 and django. For learning purpose I want to use firebird. But, package (egg) to use firebird needs easy_install for setup. When i run: python ez_setup.py install

Re: Statistics...help with numpy/scipy install

2013-02-10 Thread Colin J. Williams
On 10/02/2013 12:35 PM, Rex Macey wrote: I'm new to Python with a new windows 8 machine (64-bit OS). Learning programming mainly for fun. Naturally I downloaded Python 3.3 (who doesn't want the latest and greatest). What I want involves functions related to the normal distribution. Based

sub-classing datetime

2013-02-07 Thread Colin J. Williams
I'm just making the transition from 2 to 3 for one module. With Python 2.7, I had the benefit of mx datetime, but this is not yet available for Python 3.2. I find that the 3.2 datetime is not subclassable, for reasons that were known some years back. It would help if there was a note in

Re: Good Python IDE

2013-01-06 Thread Colin J. Williams
On 06/01/2013 7:48 AM, Tetsuya wrote: On 01/06/2013 05:45 AM, Sourabh Mhaisekar wrote: Hello All, I am recently started couple of projects in Python, one in Python GTK and one in Python Qt. I want a good IDE (For Windows ) for Python which gives support for Python as well as PyGtk and

Re: Pigeon Computer 0.1 Initial (BETA) release

2012-12-22 Thread Colin J. Williams
On 21/12/2012 7:07 PM, Amirouche Boubekki wrote: Héllo, 2012/12/22 Simon Forman forman.si...@gmail.com mailto:forman.si...@gmail.com Pigeon Computer 0.1 Initial (BETA) release Summary The Pigeon Computer is a simple but sophisticated system for learning and

Re: py2exe is on Sourceforge list of top growth projects

2012-12-18 Thread Colin J. Williams
On 18/12/2012 1:52 AM, Frank Millman wrote: This is from Sourceforge's monthly update - quote Top Growth Projects We're always on the lookout for projects that might be doing interesting things, and a surge in downloads is one of many metrics that we look at to identify them. Here's the

Re: Yet another Python textbook

2012-11-22 Thread Colin J. Williams
From Yet another Python textbook On 21/11/2012 5:17 PM, Chris Angelico wrote: On Thu, Nov 22, 2012 at 4:03 AM, Colin J. Williams c...@ncf.ca wrote: On 20/11/2012 4:00 PM, Chris Angelico wrote: To the OP: jmf has an unnatural hatred of Python 3.3 and PEP 393 strings. Take no notice; the rest

Re: Yet another Python textbook

2012-11-22 Thread Colin J. Williams
On 22/11/2012 1:27 PM, Ian Kelly wrote: On Thu, Nov 22, 2012 at 5:24 AM, Colin J. Williams c...@ncf.ca wrote: From my reading of the docs, it seems to me that the three following should be equivalent: (a) formattingStr.format(values) with (b) format(values, formattingStr) or (c

Re: Yet another Python textbook

2012-11-21 Thread Colin J. Williams
On 20/11/2012 4:00 PM, Chris Angelico wrote: On Wed, Nov 21, 2012 at 1:57 AM, wxjmfa...@gmail.com wrote: Le mardi 20 novembre 2012 09:09:50 UTC+1, Chris Angelico a écrit : On Tue, Nov 20, 2012 at 7:02 PM, Pavel Solin solin.pa...@gmail.com wrote: Perhaps you are right. Is there any

Error messages from format()

2012-11-13 Thread Colin J. Williams
Is there some way to get more informative error messages from the builtin format? Most messages are such as: Traceback (most recent call last): File interactive input, line 1, in module ValueError: Invalid conversion specification This example doesn't point to the first invalid case. [Dbg]

Re: Error messages from format()

2012-11-13 Thread Colin J. Williams
On 13/11/2012 1:38 PM, Steven D'Aprano wrote: On Tue, 13 Nov 2012 10:08:59 -0500, Colin J. Williams wrote: Is there some way to get more informative error messages from the builtin format? Yes -- post a feature request on the Python bug tracker, then wait until Python 3.4 comes out in about

Re: Error messages from format()

2012-11-13 Thread Colin J. Williams
On 13/11/2012 4:18 PM, Dave Angel wrote: On 11/13/2012 03:24 PM, Colin J. Williams wrote: SNIP I am working on the assumption that the first argument of the format builtin function and be a sequence of values, which can be selected with {1

Re: Numpy module

2012-11-08 Thread Colin J. Williams
On 08/11/2012 8:09 AM, Anssi Saari wrote: farrellpolym...@gmail.com writes: [snip] Does Numpy 1.6.2 not run with Python 3.2.3? It does on the Raspberry Pi, which uses a variant of Debian. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get progress in python script.

2012-09-29 Thread Colin J. Williams
On 28/09/2012 12:26 PM, Rolando Cañer Roblejo wrote: Hi all, Please, I need you suggest me a way to get statistics about a progress of my python script. My python script could take a lot of time processing a file, so I need a way that an external program check the progress of the script. My

Re: which a is used?

2012-09-25 Thread Colin J. Williams
On 24/09/2012 10:14 PM, alex23 wrote: On Sep 25, 11:13 am, Dwight Hutto dwightdhu...@gmail.com wrote: bitch I honestly could not care less what you think about me, but don't use that term. This isn't a boys' club and we don't need your hurt ego driving people away from here. +1 --

Re: Setting up a class

2012-09-06 Thread Colin J. Williams
On 06/09/2012 8:20 AM, MRAB wrote: On 06/09/2012 13:00, shaun wrote: Hi all, So I'm trying to to OO a script which is currently in place on work. It connects to the database and makes multiple strings and sends them to a server. But I'm having major problems since I am new to python I keep

Re: Sudden doubling of nearly all messages

2012-07-21 Thread Colin J. Williams
On 21/07/2012 6:48 AM, Dave Angel wrote: Has anybody else noticed the sudden double-posting of nearly all messages in the python mailing list? No. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: lambda in list comprehension acting funny

2012-07-11 Thread Colin J. Williams
On 11/07/2012 2:41 AM, Daniel Fetchinson wrote: funcs = [ lambda x: x**i for i in range( 5 ) ] print funcs[0]( 2 ) print funcs[1]( 2 ) print funcs[2]( 2 ) This gives me 16 16 16 When I was excepting 1 2 4 Does anyone know why? Cheers, Daniel I don't understand why you would expect 1, 2,

Re: Which way is best to execute a Python script in Excel?

2012-07-06 Thread Colin J. Williams
On 06/07/2012 1:09 AM, Terry Reedy wrote: On 7/5/2012 10:30 PM, Karim wrote: An excellent link to derived all code example to python: http://www.pitonyak.org/AndrewMacro.sxw. Even though he only writes in OOBasic, you are right that he explains the basic concepts needed for accessing the

Re: Nexus Programming Language

2012-06-10 Thread Colin J. Williams
On 10/06/2012 1:45 AM, rusi wrote: On Jun 10, 7:46 am, Adam Campbellabcampbell...@gmail.com wrote: The Nexus programming language version 0.5.0 has been released. It is an object-oriented, dynamically-typed, reflective programming language, drawing from Lua and Ruby.www.nexuslang.org What

Re: Smallest/cheapest possible Python platform?

2012-05-27 Thread Colin J. Williams
On 26/05/2012 12:25 PM, Paul Rubin wrote: Roy Smithr...@panix.com writes: The Rasberry Pi certainly looks attractive, but isn't quite available today. Can you run Python on an Arduino? No. YOu want a 32-bit platform with an OS and perhaps 1 meg of memory. And by the time you port Python to

Re: Dynamic comparison operators

2012-05-24 Thread Colin J. Williams
On 24/05/2012 10:14 AM, mlangenho...@gmail.com wrote: I would like to pass something like this into a function test(val1,val2,'=') and it should come back with True or False. Is there a way to dynamically compare 2 values like this or will I have to code each operator individually? Would

Re: .py to .pyc

2012-05-19 Thread Colin J. Williams
On 18/05/2012 7:20 PM, Tony the Tiger wrote: On Sun, 13 May 2012 23:36:02 +0200, Irmen de Jong wrote: Why do you care anyway? Wanna hide his code...? /Grrr Curiosity. Perhaps there are stack-based processors out there which could use the .pyc code more directly. Colin W. --

.py to .pyc

2012-05-13 Thread Colin J. Williams
Is there some way to ensure that a .pyc file is produced when executing a .py file? It seems that for small files the .pyc file is not produced. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

.py to .pyc

2012-05-13 Thread Colin J. Williams
Is there some way to ensure that a .pyc file is produced when executing a .py file? It seems that for small files the .pyc file is not produced. Colin W. PLEASE IGNORE - I was in the wrong directory. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: numpy (matrix solver) - python vs. matlab

2012-05-01 Thread Colin J. Williams
On 01/05/2012 2:43 PM, someone wrote: [snip] a = [1 2 3]; b = [11 12 13]; c = [21 22 23]. Then notice that c = 2*b - a. So c is linearly dependent on a and b. Geometrically this means the three vectors are in the same plane, so the matrix doesn't have an inverse. Does it not mean that there

Re: Some posts do not show up in Google Groups

2012-04-30 Thread Colin J. Williams
On 30/04/2012 2:20 AM, Frank Millman wrote: Hi all For a while now I have been using Google Groups to read this group, but on the odd occasion when I want to post a message, I use Outlook Express, as I know that some people reject all messages from Google Groups due to the high spam ratio

Re: Python-URL! - weekly Python news and links (Mar 31)

2012-04-03 Thread Colin J. Williams
On 31/03/2012 11:38 AM, Cameron Laird wrote: I pine for the fjords. And it's time to bring Python-URL! to a close. Python-URL!, which Jean-Claude Wippler and I appear to have launched in 1998, has reached the end of its utility. We still have many loyal and enthusiastic readers--one

Re: Fabric Engine v1.0 released under AGPL

2012-03-20 Thread Colin J. Williams
On 20/03/2012 12:51 PM, Fabric Paul wrote: Hi everyone - just letting you know that we released v1.0 of Fabric Engine today. We've open-sourced the core under AGPL, so I hope that gives you an incentive to get started with high-performance for Python :)

Re: Why not use juxtaposition to indicate function application

2012-03-16 Thread Colin J. Williams
On 16/03/2012 8:45 AM, Ray Song wrote: I confess i've indulged in Haskell and found f a more readable than f(a) And why aren't functions curried (partially applied function is another function which takes the rest arguments) by default? Thanks in advance for any suggestions. --

Re: newb __init__ inheritance

2012-03-10 Thread Colin J. Williams
On 08/03/2012 10:25 AM, hyperboogie wrote: Hello everyone. This is my first post in this group. I started learning python a week ago from the dive into python e- book and thus far all was clear. However today while reading chapter 5 about objects and object orientation I ran into something that

Re: newb __init__ inheritance

2012-03-10 Thread Colin J. Williams
On 10/03/2012 12:58 PM, Colin J. Williams wrote: On 08/03/2012 10:25 AM, hyperboogie wrote: Hello everyone. [snip] main() I'm not sure that the class initialization is required. Good luck, Colin W. When I wrote earlier, I wondered about the need for initialization. With Version 2, both

Re: Running Python Demo on the Web?

2011-09-06 Thread Colin J. Williams
On 05-Sep-11 18:00 PM, Python Fiddle Admin wrote: Python has been ported to the web browser at pythonfiddle.com. Python Fiddle can import snippets of code that you are reading on a web page and run them in the browser. It supports a few popular libraries. Another common usage is to post code on

Re: [OT] Anyone here familiar with installing Open Watcom F77?

2011-09-05 Thread Colin J. Williams
On 05-Sep-11 12:22 PM, Dan Nagle wrote: Hello, On 2011-09-05 16:15:20 +, W. eWatson said: On 9/5/2011 8:24 AM, Chris Angelico wrote: On Tue, Sep 6, 2011 at 1:15 AM, W. eWatsonwolftra...@invalid.com wrote: See Subject. snip To what extent familiar? I have it installed on several

Re: how to format long if conditions

2011-08-27 Thread Colin J. Williams
On 27-Aug-11 03:50 AM, Hans Mulder wrote: On 27/08/11 09:08:20, Arnaud Delobelle wrote: I'm wondering what advice you have about formatting if statements with long conditions (I always format my code to80 colums) Here's an example taken from something I'm writing at the moment and how I've

Re: how to format long if conditions

2011-08-27 Thread Colin J. Williams
On 27-Aug-11 11:53 AM, Hans Mulder wrote: On 27/08/11 17:16:51, Colin J. Williams wrote: What about: cond= isinstance(left, PyCompare) and isinstance(right, PyCompare) and left.complist[-1] is right.complist[0] py_and= PyCompare(left.complist + right.complist[1:])if cond else: py_and

Re: Announcing a new podcast: Radio Free Python

2011-08-24 Thread Colin J. Williams
On 24-Aug-11 00:15 AM, Larry Hastings wrote: Radio Free Python is a new monthly podcast focused on Python and its community. Episode 1 has just been released! It features a panel discussion with the PythonLabs team: * Barry Warsaw, * Fred Drake, * Guido van Rossum, * Roger Masse, *

Re: python.org is down?

2011-07-24 Thread Colin J. Williams
On 24-Jul-11 03:43 AM, Laszlo Nagy wrote: Can it be a problem on my side? I have tried from several different computers. I cannot even ping it. The same for me at Noon EST Holland where are you? Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: Function docstring as a local variable

2011-07-10 Thread Colin J. Williams
On 10-Jul-11 13:44 PM, rantingrick wrote: On Jul 10, 12:41 pm, Tim Johnsont...@johnsons-web.com wrote: It possible for a function to print it's own docstring? def f(): docstring print docstring any questions? Try: def f(): ds= docstring print ds Colin W. --

Re: reg: playing with the list

2011-06-24 Thread Colin J. Williams
On 24-Jun-11 03:01 AM, kaustubh joshi wrote: Hey all, I am new here and new to python too. In general new to programming . I was working on aproblem. and need some help. I have a list of numbers say [2,3,5,6,10,15] which all divide number 30. Now i have to reduce this list to the numbers which

Re: Question about isodate

2011-05-28 Thread Colin J. Williams
On 26-May-11 07:48 AM, truongxuan quang wrote: Hello list, I am installing and testing istSOS wrote base on Python with its extension like gdal, isodate, easy istall, setuptool, psycopg. I have already installed all these stuff when I was using method POST the error appear is _No module named

Re: Beginner needs advice

2011-05-25 Thread Colin J. Williams
On 25-May-11 02:22 AM, Lew Schwartz wrote: So, if I read between the lines correctly, you recommend Python 3? Does the windows version install with a development environment? It would be safer to stick with Python 2.7 initially and then consider the transition to 3.2 later. No, there is

Re: and becomes or and or becomes and

2011-05-23 Thread Colin J. Williams
On 22-May-11 15:23 PM, Stef Mientki wrote: hello, must of us will not use single bits these days, but at first sight, this looks funny : a=2 b=6 a and b 6 a b 2 a or b 2 a | b 6 cheers, Stef 5.2. Boolean Operations — and, or, not These are the Boolean operations, ordered by

Re: Function __defaults__

2011-04-25 Thread Colin J. Williams
On 24-Apr-11 13:07 PM, Ken Seehart wrote: On 4/24/2011 2:58 AM, Steven D'Aprano wrote: Consider this in Python 3.1: def f(a=42): ... return a ... f() 42 f.__defaults__ = (23,) f() 23 Is this an accident of implementation, or can I trust that changing function defaults in this fashion

Re: Function __defaults__

2011-04-25 Thread Colin J. Williams
On 25-Apr-11 08:30 AM, Ken Seehart wrote: On 4/25/2011 4:59 AM, Colin J. Williams wrote: On 24-Apr-11 13:07 PM, Ken Seehart wrote: On 4/24/2011 2:58 AM, Steven D'Aprano wrote: Consider this in Python 3.1: def f(a=42): ... return a ... f() 42 f.__defaults__ = (23,) f() 23

Re: Python IDE/text-editor

2011-04-16 Thread Colin J. Williams
On 15-Apr-11 23:20 PM, Alec Taylor wrote: Good Afternoon, I'm looking for an IDE which offers syntax-highlighting, code-completion, tabs, an embedded interpreter and which is portable (for running from USB on Windows). Here's a mockup of the app I'm looking for:

Python IDE/text-editor

2011-04-16 Thread Colin J. Williams
On 15-Apr-11 23:20 PM, Alec Taylor wrote: Good Afternoon, I'm looking for an IDE which offers syntax-highlighting, code-completion, tabs, an embedded interpreter and which is portable (for running from USB on Windows). Here's a mockup of the app I'm looking for: http://i52.tinypic.com

Re: Feature suggestion -- return if true

2011-04-12 Thread Colin J. Williams
On 12-Apr-11 06:55 AM, scattered wrote: On Apr 12, 2:21 am, James Millsprolo...@shortcircuit.net.au wrote: On Tue, Apr 12, 2011 at 4:08 PM, Nobodynob...@nowhere.com wrote: It should be abundantly clear that this only returns if the expression is considered true, otherwise it continues on to

Re: Argument of the bool function

2011-04-10 Thread Colin J. Williams
On 10-Apr-11 12:21 PM, Mel wrote: Chris Angelico wrote: Who would use keyword arguments with a function that takes only one arg anyway? It's hard to imagine. Maybe somebody trying to generalize function calls (trying to interpret some other language using a python program?) # e.g. input

Re: Python benefits over Cobra

2011-04-05 Thread Colin J. Williams
On 05-Apr-11 06:22 AM, Brendan Simon (eTRIX) wrote: I just came across the Cobra language, which appears to be heavily influenced by Python (and other languages). The pitch sounds great. It's supposed to have: 1. Quick, expressive coding 2. Fast execution 3. Static and dynamic binding

Python Tutorial

2011-03-27 Thread Colin J. Williams
I have come across: http://www.java2s.com/Tutorial/Python/CatalogPython.htm On a quick skim, the above seems to cover more ground than the standard: http://docs.python.org/tutorial/ I spotted one bug in the former, but one of the Network examples was helpful. Colin W. --

Re: in house pypi?

2011-03-25 Thread Colin J. Williams
On 24-Mar-11 03:13 AM, John Nagle wrote: On 3/23/2011 8:19 PM, Miki Tebeka wrote: Greetings, My company want to distribute Python packages internally. We would like something like an internal PyPi where people can upload and easy_install from packages. Is there such a ready made solution? I'd

Re: Could I joined in this Happy family

2011-03-20 Thread Colin J. Williams
On 18-Mar-11 15:47 PM, Nick Stinemates wrote: Welcome aboard ! On Mar 18, 2011 11:34 AM, duxiu xiang xiangduxi...@gmail.com mailto:xiangduxi...@gmail.com wrote: Dear friends: I am in China.For some rearon,I cannot visit your Google Group.May I joint this mail list for help in

Re: Python getting stuck

2011-02-27 Thread Colin J. Williams
On 26-Feb-11 18:55 PM, Shanush Premathasarathan wrote: Hi All, When I use cut, copy, paste, and any keyboard shortcuts, Python freezes and I am unable to use Python. Please Help as quick as possible!!! Thanks a lot. Kind Regards Big Python fan! Shanush What operating system are you using?

Re: lxml

2011-02-25 Thread Colin J. Williams
On 24-Feb-11 19:39 PM, alex23 wrote: On Feb 24, 6:20 pm, Stefan Behnelstefan...@behnel.de wrote: MRAB, 24.02.2011 01:25: The latest stable release is here: http://pypi.python.org/pypi/lxml/2.2.8 Not quite the latest stable release (that would be 2.3), but at least one that's pre-built

Re: lxml

2011-02-24 Thread Colin J. Williams
On 24-Feb-11 03:20 AM, Stefan Behnel wrote: MRAB, 24.02.2011 01:25: On 24/02/2011 00:10, Colin J. Williams wrote: Could someone please let me know whether lxml is available for Windows XP?. If so, is it available for Python 2.7? The latest stable release is here: http://pypi.python.org/pypi

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: 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 Kernrobert.k...@gmail.com 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

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.

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'Apranosteve+comp.lang.pyt...@pearwood.info 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

  1   2   3   4   5   >