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

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 onl

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. -- http://mail.py

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 crime

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 api

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

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 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 -- http://mail.python.org/mailman/l

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 firs

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

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 "", line 1, in ValueError: Invalid conversion specification This example doesn't point to the first invalid case. [Dbg]>>> format((25, 31),'{0

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

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: 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:}, {2

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, 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 wrote: Perhaps you are right. Is there any statistics of how many Python programmers are u

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 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 of the world

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 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) tupleOfValues

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 - 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 projects th

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 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 exploring the fundamen

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 PyQ

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 tha

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,

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. -- Ray

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 :) http://fabricengine.com/technology/benchma

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 subscr

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 (wh

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

.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: .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. -- http://mail

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 so

Re: Smallest/cheapest possible Python platform?

2012-05-27 Thread Colin J. Williams
On 26/05/2012 12:25 PM, Paul Rubin wrote: Roy Smith 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 it unless it's

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 Campbell 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 does nexus have that pyt

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 ar

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 Johnson 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. -- http://mail.pyth

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: 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: 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 to<80 colums) Here's an example taken from something I'm writing at the moment and how I've for

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: [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. eWatson wrote: See Subject. To what extent "familiar"? I have it installed on several computers, but only because

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

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 Behnel 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 for Windows. Chris

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: 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" > 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 learning Python?

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

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. -- http://mail.python.org

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

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 win

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 Mills wrote: On Tue, Apr 12, 2011 at 4:08 PM, Nobody wrote: It should be abundantly clear that this only returns if the expression is considered true, otherwise it continues on to the following statements. Uggh come on guys.

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: http://i52.tinypic.com/2uojswz.p

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.co

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 i

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 Is th

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 ascendi

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 not

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 m

Re: Wrapping classes

2005-09-23 Thread Colin J. Williams
Jeremy Sanders wrote: > Peter Hansen wrote: > > >>Almost anything is possible in Python, though whether the underlying >>design idea is sound is a completely different question. (Translation: >>try the following pseudo-code, but I have my suspicions about whether >>what you're doing is a good i

Re: how to associate files with application

2005-10-28 Thread Colin J. Williams
Lasse Vågsæther Karlsen wrote: > Ashok wrote: > >> hi, >> i want to know how to make a specific type of file open in an >> application i developed in python when the user clicks on the file.(in >> windows) for eg. a .txt file when clicked opens in notepad, a .doc file >> when clicked opens in MS-w

Re: 'super' to only be used for diamond inheritance problems?

2005-11-02 Thread Colin J. Williams
Giovanni Bajo wrote: > Alex Hunsley wrote: > > >>I've seen a few discussion about the use of 'super' in Python, >>including the opinion that 'super' should only be used to solve >>inheritance diamond problem. (And that a constructor that wants to >>call the superclass methods should just call the

Re: Diff. between Class types and classic classes

2005-11-08 Thread Colin J. Williams
bruno at modulix wrote: > venk wrote: > >>Hi, >> can some one properly explain the differences between class types and >>classic classes? ... Still face problems in identifying what is what. > > > I'm not sure I understand your question. Are you talking about the diff > between old-style and ne

Re: Diff. between Class types and classic classes

2005-11-09 Thread Colin J. Williams
Bruno Desthuilliers wrote: > Colin J. Williams a écrit : > >> bruno at modulix wrote: >> >>> venk wrote: >>> >>>> Hi, >>>> can some one properly explain the differences between class types and >>>> classic classes? ... Stil

Re: [ x for x in xrange(10) when p(x) ]

2005-11-10 Thread Colin J. Williams
Alex Martelli wrote: > George Sakkis <[EMAIL PROTECTED]> wrote: >... > FP functions like dropwhile/takewhile etc. >>> >>>No way -- the itertools module is and remains a PRECIOUS resource. >>>If you want an iterator rather than a list, itertools.ifilter is quite >>>appropriate here. >> >>Wh

Re: Abstract Base Classes

2005-11-11 Thread Colin J. Williams
Ben Finney wrote: > Howdy all, > > Okay, so Guido doesn't like Abstract Base Classes[0], and interfaces > are the way of the future[1]. But they're not here now, and I > understand ABCs better. This is a very interesting discussion - not all of it understandable to me. Are interfaces really in ou

Re: tutorial example

2005-11-12 Thread Colin J. Williams
Ruben Charles wrote: > That is the diference between a method and a function. > A method do something and a function return something. > This is not quite correct. The difference between a method and a function is that the method is associated with a type or class object, a function is not. A m

Re: tutorial example

2005-11-12 Thread Colin J. Williams
Max Erickson wrote: > Not in python. > > For example, what would you call the following? > > def rsum(n, m): > print n+m > return n+m > I would call it a python function with a side-effect. Colin W. > > In python a method is callable attached to an object. A function is a > callable o

Re: how to think like a computer scientist

2005-11-13 Thread Colin J. Williams
Brian van den Broek wrote: > john boy said unto the world upon 2005-11-11 22:25: > >> Question for the following program: sec 5.5 >> >> def factorial (n): >>if n == 0: >> return 1 >>else: >> recurse = factorial (n-1) >> result = n * recurse >> return result >> >

Re: examining python objects

2005-11-20 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: > Bruno Desthuilliers wrote: > >>[EMAIL PROTECTED] a écrit : >> >>>Is there a function/class/module/whatever I can use to >>>look at objects? I want something that will print the object's >>>value (if any) in pretty-printed form, and list all it's attributes >>>and their

Re: best cumulative sum

2005-11-21 Thread Colin J. Williams
David Isaac wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>He seems to want scanl > > > Yes. But it's not in Python, right? > (I know about Keller's version.) > > Robert Kern wrote: > >>Define better. More accurate? Less code? > > > Good point. > As Bonono (?) su

Re: Understanding Python Documentation

2005-11-24 Thread Colin J. Williams
Shalabh Chaturvedi wrote: > Josh Cronemeyer wrote: > >> Hi, >> >> I have very little experience programming in python but considerable >> experience with java. One thing that is frustrating me is the >> differences in the documentation style. Javadocs, at the top level >> are just a list of p

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-11-29 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: > Dear all, > > This is just to let you know that the lastest version Dao language is > released. > This Dao was previously called Tao, and now is changed to Dao to avoid > confusion > with another Tao langauge. There are a number of new features > implemented in > this ve

Re: wxPython : getting started

2005-11-29 Thread Colin J. Williams
David Sulc wrote: > Hi ! > > I've looked all over (internet, books, etc.) and I haven't found a very > good ressource to get started with wxPython (yes, I've been through > their tutorial). > > What I would basically like to do for starters is to be able to define > the main panel being displa

Re: How to list currently defined classes, methods etc

2005-12-02 Thread Colin J. Williams
Deep wrote: > I have been looking a bit and am stuck at this point. > > Given a string, how do i find what is the string bound to. > Let me give an example. > > def deep(): > print "Hello" > > now inspect.ismethod(deep) returns true. (As it should). > But if I am trying to make a list of al

Re: Need help implementing an algorithm in python

2005-12-06 Thread Colin J. Williams
ech0 wrote: > wow. nevermind. i figured it out. > I hope that you will share it with those of us who haven't figured it out yet. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation suggestions

2005-12-06 Thread Colin J. Williams
Carl Friedrich Bolz wrote: > [EMAIL PROTECTED] wrote: > >> Ian> A test suite seems far more useful to implementors than any >> guide, >> >> Of course, test cases can be modified or ignored. I'd agree with you >> if we >> had a test suite that was more strongly cast in stone. > > > hum. a

Re: Documentation suggestions

2005-12-06 Thread Colin J. Williams
Michael Spencer wrote: > A.M. Kuchling wrote: > >> Here are some thoughts on reorganizing Python's documentation, with >> one big suggestion. >> > > Thanks for raising this topic, and for your on-going efforts in this field. > > I use the compiled html help file provided by PythonWin, which incl

Re: efficient 'tail' implementation

2005-12-09 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: > hi > > I have a file which is very large eg over 200Mb , and i am going to use > python to code a "tail" > command to get the last few lines of the file. What is a good algorithm > for this type of task in python for very big files? > Initially, i thought of reading eve

The First International Conference on Open Source Systems - OSS 2005 - Main

2005-01-15 Thread Colin J. Williams
I haven't spotted a posting on c.l.p but someone here may be interested. Colin W. http://oss2005.case.unibz.it/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonWin (build 203) for Python 2.3 causes Windows 2000 to grind to a halt?

2005-01-28 Thread Colin J. Williams
Chris P. wrote: AWESOME - my life just got THAT much better. The bug you suggested is exactly the problem that I was having... I had looked through the bugs being tracked, but the title of that one didn't jump out at me as something that would help. Thanks! - Chris P.S. For anyone reading this gro

Re: type of simple object

2005-02-02 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: Thank you guys. My function should multiply every element of a list, for example "something" and "something" can be an integer or another list. If it deals with integer than it is ok, but If it deals with list than it become false for example list*2 = listlist, and what I

Re: Debugger Confusion

2005-07-01 Thread Colin J. Williams
Adriaan Renting wrote: > I use the debugger that comes with Eric3, but it is only free for Linux/ > OS X, as it needs PyQt. > asside from setting (conditional) breakpoints, one of it's features is > that it can show you a browsable tree of all your variables. something > like this: > class MyClass

Re: Which kid's beginners programming - Python or Forth?

2005-07-01 Thread Colin J. Williams
BORT wrote: > Please forgive me if this is TOO newbie-ish. > > I am toying with the idea of teaching my ten year old a little about > programming. I started my search with something like "best FREE > programming language for kids." After MUCH clicking and high-level > scanning, I am looking at P

Re: Modules for inclusion in standard library?

2005-07-02 Thread Colin J. Williams
Steven Bethard wrote: > Fredrik Johansson wrote: > >> On 6/27/05, Reinhold Birkenfeld >> <[EMAIL PROTECTED]> wrote: >> >>> Do you have any other good and valued Python modules that you would >>> think are >>> bug-free, mature (that includes a long release distance) and useful >>> enough to >>>

Re: Modules for inclusion in standard library?

2005-07-02 Thread Colin J. Williams
Gregory Piñero wrote: > While that policy does make sense, I think a database program falls > somewhere in between an OS and an everyday third party program. For > web developers, the database might as well be the OS. I use the > database to store everything in my web app. That way I can just wo

Re: Modules for inclusion in standard library?

2005-07-02 Thread Colin J. Williams
Rocco Moretti wrote: > Paul Rubin wrote: > >> Rocco Moretti <[EMAIL PROTECTED]> writes: >> >>> Except that (please correct me if I'm wrong) there is somewhat of a >>> policy for not including interface code for third party programs which >>> are not part of the operating system. (I.e. the modules

A Policy for Inclusion in the Standard Library: was Modules for inclusion in standard library?

2005-07-03 Thread Colin J. Williams
Terry Reedy wrote: > "Colin J. Williams" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Isn't this where the discussion should start? There should be some >>general policy guiding the types of modules which should be in the >>st

Re: how to retrive highlighted text in a browser?

2005-07-03 Thread Colin J. Williams
wcc wrote: > Hello group, > > When browsing websites, quite often I have to look up words in > dictionary. I'm hoping that I can come up with a python program that > does the following: > > When I highlight some text in browser and right-click, besides the > default options such as COPY, PASTE,

Puzzled

2005-07-11 Thread Colin J. Williams
The snippet of code below gives the result which follows for k in ut.keys(): name= k.split('_') print '\n1', name if len(name) > 1: name[0]= name[0] + name[1].capitalize() print '2', name name[0]= name[0].capitalize() print '3', name 1 ['logical', 'or'] 2 ['logicalOr', 'o

Re: Puzzled

2005-07-12 Thread Colin J. Williams
Bengt Richter wrote: > On Mon, 11 Jul 2005 22:10:33 -0400, "Colin J. Williams" <[EMAIL PROTECTED]> > wrote: > > >>The snippet of code below gives the result which follows >> >>for k in ut.keys(): >> name= k.split('_') >> pri

Re: What is your favorite Python web framework?

2005-07-18 Thread Colin J. Williams
Luis M. Gonzalez wrote: > Peter Hansen wrote: > >>Gerhard Haering wrote: >> >>>On Mon, Jul 18, 2005 at 09:06:21AM -0400, Peter Hansen wrote: >>> I'm not familiar with this expression. What do you mean by "black horse"? >>> >>>Maybe "the Ferrari of pythonic frameworks" (black horse on yellow >

Re: how to get function signature

2005-07-28 Thread Colin J. Williams
Robert Kern wrote: > [EMAIL PROTECTED] wrote: > >> Hi, >> >> I was working on a dir like function that gives more information than >> the usual dir, but I am not satisfied with the way I get function >> arguments for callable members of an object. Take a look at it here: >> http://nerdierthanthou.

Re: epyDoc Questions

2005-08-11 Thread Colin J. Williams
Neil Benn wrote: > Hello, > > I can;t find a epyDoc specific mailing list, so I'll try here - > if you know of a epyDoc mailing list then please let me know (google is > not my friend, I can only find an announce, devel and commit list from > 'epydoc mailing list'). > epyDoc gives nic

Re: "Ordered" dicts

2005-08-11 Thread Colin J. Williams
Delaney, Timothy (Tim) wrote: > Martin Miller wrote: > > >>To avoid continued reinvention of this wheel, I'd also vote to have >>this functionality be at least included in a standard module, if not >>built-in. > > > This has been discussed on python-dev (I proposed it actually). The > final con

Re: What are new-style classes?

2005-08-30 Thread Colin J. Williams
Reinhold Birkenfeld wrote: > Terry Hancock wrote: > >>On Sunday 28 August 2005 04:47 am, Vaibhav wrote: >> >>>I recently heard about 'new-style classes'. I am very sorry if this >>>sounds like a newbie question, but what are they? I checked the Python >>>Manual but did not find anything conclusive

Re: pydoc, best practices, and Data class

2005-08-30 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: > I have a python program that I am trying to generate documentation for. > But in one of my files I have a class called "Data", when pydoc gets to > this class it just barfs. Well more specifically it generates > documentation for only that one class in the file, it ignore

pyNMS

2005-09-03 Thread Colin J. Williams
The pyNMS package is available for network management using Linux. Is there anything similar for Win32? Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposal: add sys to __builtins__

2005-09-04 Thread Colin J. Williams
Rick Wotnaz wrote: > Michael Hoffman <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > > >>What would people think about adding sys to __builtins__ so that >>"import sys" is no longer necessary? This is something I must >>add to every script I write that's not a one-liner since they >>hav

Re: 'isa' keyword

2005-09-04 Thread Colin J. Williams
Rocco Moretti wrote: > Terry Hancock wrote: > >> On Thursday 01 September 2005 07:28 am, Fuzzyman wrote: >> >>> What's the difference between this and ``isinstance`` ? >> >> >> I must confess that an "isa" operator sounds like it would >> have been slightly nicer syntax than the isinstance() built

Interactive use of Help with class/instance data

2005-09-09 Thread Colin J. Williams
help(instance.property) gives the same information as help(instance) but help(cls.property) gives information specific to the property. Is this a bug? Colin W. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   >