Re: Cheapest pocket device to code python on

2005-11-04 Thread adDoc's networker Phil
On 3 Nov 2005 19:55:03 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:What is the cheapest/affordable pocket device that I can code python on? I think the closest I have seen is pocketpc from this page:http://www.murkworks.com/Research/Python/PocketPCPython/Overview Cameron Laird [EMAIL

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-09 Thread phil hunt
On Fri, 7 Oct 2005 01:05:12 -0500, Terry Hancock [EMAIL PROTECTED] wrote: GvR's syntax has the advantage of making grammatical sense in English (i.e. reading it as written pretty much makes sense). I know, let's re-write Python to make it more like COBOL! That's bound to be a winner! --

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-05 Thread adDoc's networker Phil
On 10/4/05, Cameron Laird [EMAIL PROTECTED] wrote: Python IS a dot net language URL: http://ironpython.com/ . . that is the site it was born at; but microsoft has actively adopted it here: IronPython 0.9.2 (9/22/2005) [EMAIL PROTECTED]

Re: 1 Million users.. I can't Scale!!

2005-09-29 Thread phil
Quite true and this lack of clarity was a mistake on my part. Requests from users do not really become a significant part of this equation because, as described above, once a user subscribes the onus is upon us to generate messages throughout a given period determined by the number of

Re: Software bugs aren't inevitable

2005-09-16 Thread phil hunt
On Fri, 16 Sep 2005 20:36:02 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: On Thu, 15 Sep 2005 18:07:28 +0100, phil hunt wrote: On Thu, 15 Sep 2005 21:56:06 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: Are you saying that the recursion done by serious languages is a fake

Re: Software bugs aren't inevitable

2005-09-15 Thread phil hunt
On Thu, 15 Sep 2005 21:56:06 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: Are you saying that the recursion done by serious languages is a fake? That it is actually implemented behind the scenes by iteration? It seems to me that if recursion and iteration produce the exact same machine code,

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-10 Thread adDoc's networker Phil
experimental Python-to-C++ compiler.why that instead of Pypy? . pypy compiles to llvm (low-level virtual machine) bytecode which is obviously not as fast as the native code coming from c++ compilers; but the primary mission of pypy is just having a python system that is written in something

Re: Create new instance of Python class in C

2005-09-09 Thread phil hunt
On Fri, 9 Sep 2005 17:19:21 +0200, Sybren Stuvel [EMAIL PROTECTED] wrote: Hi people, I'm creating a program that can solve and create Sudoku puzzles. My creation function needs to make a lot of copies of a puzzle. Why do you need to maske lots of copies? And when you say lots of what numbers do

Re: Create new instance of Python class in C

2005-09-09 Thread phil hunt
On Fri, 9 Sep 2005 18:50:26 +0200, Sybren Stuvel [EMAIL PROTECTED] wrote: djw enlightened us with: Personally, I would try Psyco first, and consider Pyrex next. Ok, I'll take a look at those. Are you sure your algorithm can't be optimized first, before you start trying to write this in C?

tutorials/basic (Re: learning python)

2005-09-06 Thread adDoc's networker Phil
. on-line tutorials? hundreds of e-books sorted by subtopic http://www.awaretek.com/tutorials.html -- Python Newbies should visit our Python411 Podcast Series Page http://www.awaretek.com/python/index.html -- Python for Mobile Devices http://www.awaretek.com/pymo.html Table of Contents

tutorials / text or web processing (Re: learning python)

2005-09-06 Thread adDoc's networker Phil
. need specifics on text or web processing? dozens of tutors.py sorted by subtopic http://www.awaretek.com/tutorials.html Table of Contents [rearranged] [ beginner`s applications ]: *Text and String Processing (3)* . *Unicode (4)* *Regular Expressions(5)* *HTML and XML (14)* *Internet:

ANN: SIP v4.3 Released

2005-09-04 Thread Phil Thompson
Riverbank Computing is pleased to announce the release of SIP v4.3 available from http://www.riverbankcomputing.co.uk/sip/. SIP is a tool for generating Python modules that wrap C or C++ libraries. It is similar to SWIG. It is used to generate PyQt and PyKDE. Full documentation is available

ANN: PyQt v3.15 Released

2005-09-04 Thread Phil Thompson
Riverbank Computing is pleased to announce the release of PyQt v3.14 available from http://www.riverbankcomputing.co.uk/pyqt/. Changes since the last release include: - improved integration between Qt's ActiveQt framework and Python's win32com modules - support for QScintilla v1.6 - support

Re: 'isa' keyword

2005-09-03 Thread phil hunt
On Sat, 03 Sep 2005 00:45:19 -0500, Steve Holden [EMAIL PROTECTED] wrote: I'm not talking about a change in *paradigm* merely a change in *syntax*; this: receiver selector argument would mean the same as the current Python: receiver.selector(argument) Aah, I see. I had assumed

Re: 'isa' keyword

2005-09-02 Thread phil hunt
On Thu, 01 Sep 2005 20:39:14 -0500, Steve Holden [EMAIL PROTECTED] wrote: phil hunt wrote: It could be argued of course, that an OOPL should allow methods to be sent with a grammar: receiver selector argument (which is almost what Smalltalk does), but you're not arguing

Re: Extended Language c++ in pyhton

2005-09-01 Thread Phil Thompson
Decide your self: http://seal.web.cern.ch/seal/snapshot/work-packages/scripting/evaluation-report.html A shame that it's so out of date. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: global interpreter lock

2005-08-30 Thread phil hunt
On Sun, 28 Aug 2005 20:34:07 GMT, Bryan Olson [EMAIL PROTECTED] wrote: phil hunt wrote: Yes, find solutions. Don't find dangerous dead-ends that look like solutions but which will give you lots of trouble. If concurrency is a dead end, why do the programs that provide the most sophisticated

Re: global interpreter lock

2005-08-30 Thread phil hunt
On Sun, 28 Aug 2005 19:25:55 -0400, Mike Meyer [EMAIL PROTECTED] wrote: Bryan Olson [EMAIL PROTECTED] writes: phil hunt wrote: Yes, find solutions. Don't find dangerous dead-ends that look like solutions but which will give you lots of trouble. If concurrency is a dead end, why do

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-30 Thread phil hunt
On Tue, 30 Aug 2005 08:53:27 GMT, Bryan Olson [EMAIL PROTECTED] wrote: Specifically, to support new-style slicing, a class that accepts index or slice arguments to any of: __getitem__ __setitem__ __delitem__ __getslice__ __setslice__

Re: global interpreter lock

2005-08-26 Thread phil hunt
On Thu, 25 Aug 2005 00:56:10 -0400, Mike Meyer [EMAIL PROTECTED] wrote: The issue here is whether to confuse reality with what one might wish reality to be. Let's see. Reality is that writing correct programs is hard. Writing correct programs that use concurrency is even harder, because of the

Re: global interpreter lock

2005-08-26 Thread phil hunt
On 26 Aug 2005 14:35:03 -0700, Paul Rubin http://[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (phil hunt) writes: Let's see. Reality is that writing correct programs is hard. Writing correct programs that use concurrency is even harder, because of the exponential explosion of the order

Re: last line chopped from input file

2005-08-21 Thread phil hunt
On 20 Aug 2005 22:53:42 -0700, Eric Lavigne [EMAIL PROTECTED] wrote: Here is a shell command (MS-DOS): debug\curve-fit input.txt output.txt And here is a Python script that *should* do the same thing (and almost does): import os inputfilename = 'input.txt' outputfilename = 'output.txt'

Re: GUI tookit for science and education

2005-08-17 Thread phil
As I said, I'm looking for multiplatform solution. So, I will go with Python, Tk and C++ (for algorithm and critical parts of applications). Tk is simple, very simple, Python I like, C++ I love, as I'm professional C++ programmer. Good choice! --

Re: GUI tookit for science and education

2005-08-15 Thread phil hunt
On Mon, 15 Aug 2005 04:59:29 +0200, Mateusz £oskot [EMAIL PROTECTED] wrote: Hi, I'd like to ask some scientists or students which GUI toolkit they would recommend to develop scientific prototypes (for education and testing some theories). I think such toolkit should fill a bit different needs and

Re: GUI tookit for science and education

2005-08-15 Thread phil
Tkinter is the default GUI for Python, it runs on lots of platforms and often comes already installed (on Linux or Unix distributions). I use Tkinter for a geometry course. I think it is fairly easy to learn, much easier than say VB. VERY portable and pretty well documented and very

Re: SOAP and XMLRPC

2005-08-15 Thread phil hunt
On Mon, 15 Aug 2005 20:04:55 +0200, Magnus Lycka [EMAIL PROTECTED] wrote: dcrespo wrote: Hi to all... Someone knows if is there possible to have a Python SOAP or XMLRPC server that works with VB? I would like you to include the examples clients and server programs. If you can write an XML-RPC

Re: Supressing argument renaming in the Qt Designer - pyuic workflow

2005-08-12 Thread Phil Thompson
everything. Is there a way to tell pyuic to not translate plottitle - a0, xname - a1, etc., but keep the names as they are ? No, there is no way to do this at the moment. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Compile time checking?

2005-08-11 Thread phil hunt
On 10 Aug 2005 18:32:54 -0700, Qopit [EMAIL PROTECTED] wrote: if debug: print v=%s % (v,) Not that important, but I assume the first one was supposed to be: if debug: print v=, s right? No, I'm trying to print (v) not (s). -- Email: zen19725 at zen dot co dot uk --

Re: Compile time checking?

2005-08-11 Thread phil hunt
On Thu, 11 Aug 2005 02:35:40 GMT, Bengt Richter [EMAIL PROTECTED] wrote: On Wed, 10 Aug 2005 20:39:03 +0100, [EMAIL PROTECTED] (phil hunt) wrote: [...] I've not personally had problems with the wrong number of argumnets to a function call -- they get caught at run-time and are easy enough

Re: What is Python?!

2005-08-11 Thread phil hunt
On Thu, 11 Aug 2005 15:51:45 +1200, Evil Bastard [EMAIL PROTECTED] wrote: I guess a language could be called a 'scripting language' if: - the source code can be executed directly, and/or - source need not be converted to a separate file in a non-human-readable format before it can be

Re: Why is this?

2005-08-10 Thread phil hunt
On Wed, 10 Aug 2005 12:40:54 +0200, Jiri Barton [EMAIL PROTECTED] wrote: Hi everyone, I have a problem with initialization. a, b = [[]]*2 a.append(1) b [1] Why is this? Why does not this behave like the below: a, b = [[], []] a.append(1) b [] In your 1st example a and b point to copies

Re: What is Python?!

2005-08-10 Thread phil hunt
On Wed, 10 Aug 2005 13:14:26 +0200, Robert Wierschke [EMAIL PROTECTED] wrote: hi I'm learning python since 3 days. I' ve some programming experience in BASIC, Pascal, C, C++ and Java. Actually I want to add a scripting language to this repertoire (I have virtually no experience with

Re: Python supports LSP, does it?

2005-08-10 Thread phil hunt
On Tue, 09 Aug 2005 18:36:56 -0500, Andy Leszczynski leszczynscyATnospam.yahoo.com.nospam wrote: wikipedia (http://en.wikipedia.org/wiki/Python_programming_language#Object-oriented_programming) says: Python's support for object oriented programming paradigm is vast. It supports polymorphism

Re: Embedding a runtime graph in Qt3 designer generated UI

2005-08-08 Thread Phil Thompson
at PyQwt which is a set of Python bindings for the Qt-based Qwt plotting library. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Decline and fall of scripting languages ?

2005-08-08 Thread phil
Kay Schluehr ([EMAIL PROTECTED]) wrote: : No good news for scripting-language fans: : http://www.phpmag.net/itr/news/psecom,id,23284,nodeid,113.html What incredible horse dooey. The only thing that NEVER penetrates the enterprise space is good sense. Does anyone read history books?

Re: PEP: Specialization Syntax

2005-08-08 Thread phil hunt
On 8 Aug 2005 02:26:40 -0700, Kay Schluehr [EMAIL PROTECTED] wrote: I have to admit that i don't actually understand what you want? Me neither. I don't see the point of this. -- Email: zen19725 at zen dot co dot uk -- http://mail.python.org/mailman/listinfo/python-list

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Tue, 02 Aug 2005 21:11:52 +0200, Christoph Zwerschke [EMAIL PROTECTED] wrote: Thanks for the link, Grig. I wasn't aware of the py lib so far. The possibility to create fixtures at the three different scopes is exactly what I was looking for. Anyway, I think it would be nice to have that

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Tue, 02 Aug 2005 19:02:09 +0200, Björn Lindström [EMAIL PROTECTED] wrote: Christoph Zwerschke [EMAIL PROTECTED] writes: Would it make sense to add globaleSetup and globalTearDown methods to the TestCase class? I think at least it would not harm anybody. Where should such proposals be

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Tue, 02 Aug 2005 21:26:28 +0200, Christoph Zwerschke [EMAIL PROTECTED] wrote: Björn Lindström wrote: Would it make sense to add globaleSetup and globalTearDown methods to the TestCase class? In general that's not such a good idea. I completely agree and I think it makes a lot of sense that

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Tue, 02 Aug 2005 23:13:08 +0200, rafi [EMAIL PROTECTED] wrote: According to the extreme programming paradigm, testing should be done several times a day. So a requirement for extreme programm is that tests are fast enough. If the testing needs too much time, people are discouraged to

Re: ANN: Kamaelia 0.2.0 released!

2005-08-03 Thread phil hunt
On Tue, 02 Aug 2005 11:05:16 +0100, Michael Sparks [EMAIL PROTECTED] wrote: Phil Hunt wrote: Kamaelia seems it might be an interesting project. However, I don't think the project is well served by this announcement -- which I find vague and hard to understand. Which is a shame, because

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Wed, 03 Aug 2005 09:35:08 +0200, Christoph Zwerschke [EMAIL PROTECTED] wrote: Some (many?) people don't like the unittest module, because it is not very pythonic - nothing to wonder as it has its root in the Java world. That's probably one of the reasons why there are other (more pythonic)

Re: ANN: Kamaelia 0.2.0 released!

2005-08-03 Thread phil hunt
On Tue, 2 Aug 2005 12:53:29 +0100, Tim Golden [EMAIL PROTECTED] wrote: [Michael Sparks] | Phil Hunt wrote: | | Kamaelia seems it might be an interesting project. However, I don't | think the project is well served by this announcement -- which I | find vague and hard to understand. Which

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Tue, 02 Aug 2005 18:44:01 +0200, Christoph Zwerschke [EMAIL PROTECTED] wrote: In August 2001, there was a thread about the Art of Unit Testing: http://groups.google.com/group/comp.lang.python/browse_frm/thread/aa2bd17e7f995d05/71a29faf0a0485d5 Paul Moore asked the legitimate question why

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Wed, 03 Aug 2005 10:19:05 +0200, Christoph Zwerschke [EMAIL PROTECTED] wrote: rafi wrote: 'should' may be too strong, 'may' may be better. In the meantime I found: http://python-mock.sourceforge.net/ Thanks for the link. Björn also pointed to http://pmock.sourceforge.net Using mock

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Tue, 02 Aug 2005 17:18:51 -0400, Peter Hansen [EMAIL PROTECTED] wrote: If you're going to quote XP rules of thumb, the tests should be independent and very fast, and if you have a setup code that is taking a long time, it's likely a code smell of some kind, and you should be fixing the

Re: Art of Unit Testing

2005-08-03 Thread phil hunt
On Wed, 03 Aug 2005 09:51:49 -0400, Peter Hansen [EMAIL PROTECTED] wrote: phil hunt wrote: On Tue, 02 Aug 2005 21:26:28 +0200, Christoph Zwerschke [EMAIL PROTECTED] wrote: According to the extreme programming paradigm, testing should be done several times a day. So a requirement for extreme

Re: ANN: Kamaelia 0.2.0 released!

2005-08-03 Thread phil hunt
On 03 Aug 2005 17:30:31 +0400, Sergei Organov [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (phil hunt) writes: [...] Unix pipelines act on ascii files; No, they don't. Nitpicker. I would have thought it was perfectly obvious, in context, what I meant. -- Email: zen19725 at zen dot co dot uk

Re: ANN: Kamaelia 0.2.0 released!

2005-08-03 Thread phil hunt
On Wed, 03 Aug 2005 16:57:34 +0100, Michael Sparks [EMAIL PROTECTED] wrote: I've reordered the q's slightly to avoid repetition... Also by answering this question first, it may put the rest of the answer into context better. phil hunt wrote: At what stage of completion

Re: Is this Pythonic?

2005-08-02 Thread phil hunt
On Mon, 01 Aug 2005 22:01:06 +0200, Caleb Hattingh [EMAIL PROTECTED] wrote: Peter To my mind, this kind of setup (interface class, or abstact class) is more usually used in static languages to benefit polymorphism - but python is dynamically typed, so in which situations would this setup be

Re: Is this Pythonic?

2005-08-02 Thread phil hunt
On Mon, 01 Aug 2005 14:07:46 -0700, Erik Max Francis [EMAIL PROTECTED] wrote: Yes, but raise NotImplementedError instead of Exception. Another trick you can use is to prevent people from instantiating the abstract class: class Foo: def __init__(self): if

Re: ANN: Kamaelia 0.2.0 released!

2005-08-02 Thread phil hunt
Kamaelia seems it might be an interesting project. However, I don't think the project is well served by this announcement -- which I find vague and hard to understand. Which is a shame, because it means that other people probably don't understand it very well either, which means less people

Re: Wheel-reinvention with Python

2005-08-02 Thread phil hunt
On Tue, 02 Aug 2005 00:42:53 -0400, Mike Meyer [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (phil hunt) writes: In practise any Python GUI is going to contain code from otyher languages since if it was coded all the way down in python it would be too slow. Not necessarily. My window manger

Re: Is this Pythonic?

2005-08-02 Thread phil hunt
On Tue, 02 Aug 2005 08:31:27 GMT, Michael Hudson [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (phil hunt) writes: Suppose I'm writing an abstract superclass which will have some concrete subclasses. I want to signal in my code that the subclasses will implement certan methods

Re: Wheel-reinvention with Python

2005-08-01 Thread phil hunt
On Sun, 31 Jul 2005 08:02:43 -0400, Ed Leafe [EMAIL PROTECTED] wrote: On Sunday 31 July 2005 01:02, phil hunt wrote: You mightn't have, but I suspect more Python programers who've written GUI apps have used Tkinter than any of the other APIs. Not that I'm a particular fan of it, it's just I

Re: Wheel-reinvention with Python

2005-08-01 Thread phil hunt
On 31 Jul 2005 10:07:52 -0700, Kay Schluehr [EMAIL PROTECTED] wrote: Ed Leafe wrote: On Sunday 31 July 2005 01:02, phil hunt wrote: You mightn't have, but I suspect more Python programers who've written GUI apps have used Tkinter than any of the other APIs. Not that I'm a particular fan

Re: Wheel-reinvention with Python

2005-08-01 Thread phil hunt
On Sun, 31 Jul 2005 14:52:58 -0400, Mike Meyer [EMAIL PROTECTED] wrote: Torsten Bronger [EMAIL PROTECTED] writes: Hallöchen! Mike Meyer [EMAIL PROTECTED] writes: Torsten Bronger [EMAIL PROTECTED] writes: Calvin Spealman [EMAIL PROTECTED] writes: The choice is GUI toolkits is largely seperate

Re: Wheel-reinvention with Python

2005-08-01 Thread phil hunt
On Sun, 31 Jul 2005 12:09:48 -0700, Cliff Wells [EMAIL PROTECTED] wrote: On Sun, 2005-07-31 at 10:07 -0700, Kay Schluehr wrote: Some other people already abandoned Python not for the worst reasons: http://www.kevin-walzer.com/pivot/entry.php?id=69 Being a developer requires not only a bit of

Is this Pythonic?

2005-08-01 Thread phil hunt
Suppose I'm writing an abstract superclass which will have some concrete subclasses. I want to signal in my code that the subclasses will implement certan methods. Is this a Pythonic way of doing what I have in mind: class Foo: # abstract superclass def bar(self): raise Exception,

Re: Is this Pythonic?

2005-08-01 Thread phil hunt
On Mon, 01 Aug 2005 12:52:02 -0400, Peter Hansen [EMAIL PROTECTED] wrote: phil hunt wrote: Suppose I'm writing an abstract superclass which will have some concrete subclasses. I want to signal in my code that the subclasses will implement certan methods. Is this a Pythonic way of doing what

Re: [path-PEP] Path inherits from basestring again

2005-07-31 Thread phil hunt
On Sat, 30 Jul 2005 19:01:49 +0200, Reinhold Birkenfeld [EMAIL PROTECTED] wrote: phil hunt wrote: def normalizePath(p, *pathParts): Normalize a file path, by expanding the user name and getting the absolute path.. @param p [string] = a path to a file or directory @param

Re: Wheel-reinvention with Python

2005-07-31 Thread phil hunt
On Sat, 30 Jul 2005 16:51:13 +0200, Torsten Bronger [EMAIL PROTECTED] wrote: Hallöchen! [EMAIL PROTECTED] (phil hunt) writes: [...] How about sometihing with the same API as Tkinter (so no need to relearn), but which looks prettier? Would that fix your gripes? I haven't learned Tkinter

Re: shelve: writing out updates?!

2005-07-31 Thread phil hunt
On 30 Jul 2005 17:48:39 -0700, Paul Rubin http://[EMAIL PROTECTED] wrote: Shelve uses dbm and pickle to make a persistent object store. The db in dbm stands for database and while I didn't expect full ACID capability, What is ACID? I'd have thought there'd be at least some minimum gesture

Re: shelve: writing out updates?!

2005-07-31 Thread phil hunt
On Sat, 30 Jul 2005 17:57:17 -0700, Robert Kern [EMAIL PROTECTED] wrote: Paul Rubin wrote: Shelve uses dbm and pickle to make a persistent object store. The db in dbm stands for database and while I didn't expect full ACID capability, I'd have thought there'd be at least some minimum gesture

Re: Wheel-reinvention with Python

2005-07-31 Thread phil hunt
On Sun, 31 Jul 2005 08:22:23 +0200, Torsten Bronger [EMAIL PROTECTED] wrote: What you say Pythonic, what do you mean? And how do you rate Tkinter, PyGtk, PyQt/PyKDE, wxWindows for Pythonicness? I don't like to set arguments to -1 or NULL, but to None. Fair enough I'd like to have

Re: Wheel-reinvention with Python

2005-07-31 Thread phil hunt
On Sun, 31 Jul 2005 02:23:39 -0700, Robert Kern [EMAIL PROTECTED] wrote: phil hunt wrote: OK, hows this for an idea: 1. create a new API, loosely based on the Tkinter API, but more Pythonic 2. implement Tk using this API (probably won't be difficult because we can use Tkinter as a base

Re: [path-PEP] Path inherits from basestring again

2005-07-31 Thread phil hunt
On Sun, 31 Jul 2005 09:48:45 +0200, Reinhold Birkenfeld [EMAIL PROTECTED] wrote: An improvement to what? To how the class is implemented, or to how it is used? No, the second function is cleaner and more readable than the first, IMHO. True, but the first function, at all of seven lines, is

Re: functions without parentheses

2005-07-30 Thread phil hunt
On Fri, 29 Jul 2005 06:37:52 GMT, Bengt Richter [EMAIL PROTECTED] wrote: I suggested in a previous thread that one could support such a syntax by supporting an invisible binary operator between two expressions, That's a truely appalling idea. so that examine string translates to

Re: How can I run a program?

2005-07-30 Thread phil hunt
On 30 Jul 2005 03:33:14 -0700, Lad [EMAIL PROTECTED] wrote: Hello, I am running Python on XP and have a problem with a program if its name consists '-' for example: my-program.py When I try to run a program with such name I get the error : Traceback (most recent call last): File interactive

Re: Wheel-reinvention with Python

2005-07-30 Thread phil hunt
On Sat, 30 Jul 2005 08:54:59 +0200, Torsten Bronger [EMAIL PROTECTED] wrote: Hallöchen! Calvin Spealman [EMAIL PROTECTED] writes: The choice is GUI toolkits is largely seperate from Python. Consider that they are just bindings to libraries that are developed completely seperate of the

Re: [path-PEP] Path inherits from basestring again

2005-07-30 Thread phil hunt
On Fri, 29 Jul 2005 14:38:23 +1200, Tony Meyer [EMAIL PROTECTED] wrote: def functions_which_modifies_some_file_in_place(path): output = open(path+'.tmp', 'w') . I dont want a seperator inserted between path and the new extension. Fair enough. Forget using '+' for join, then (which I

Re: [path-PEP] Path inherits from basestring again

2005-07-30 Thread phil hunt
On Fri, 29 Jul 2005 14:48:55 +1200, Tony Meyer [EMAIL PROTECTED] wrote: Would you really choose this: p = Path() / build / a / very / very / long / path Over this: p = Path(os.path.join(build, a, very, very, long, path)) Or have the constructor accept multiple arguments. ? A saving

Re: Async PySerial (was Re: pySerial Windows write problem)

2005-07-29 Thread phil
I use PySerial in a 16 line data collection system with LOTS of threads, and yes am frustrated by read(). This sounds excellent, keep us updated. BTW, haven't done any event driven Python except Tkinter. Would this a class library which would let you define an event and a handler? Do you have a

Re: Generating images with text in them

2005-07-21 Thread phil hunt
On Thu, 21 Jul 2005 11:23:46 +0100, Daren Russell [EMAIL PROTECTED] wrote: phil hunt wrote: I am trying to generate some images (gifs or pngs) with text in them. I can use the Python Imaging Library, but it only has access to the default, rather crappy, font. Ideally I'd like to use one

Generating images with text in them

2005-07-20 Thread phil hunt
I am trying to generate some images (gifs or pngs) with text in them. I can use the Python Imaging Library, but it only has access to the default, rather crappy, font. Ideally I'd like to use one of the nicer fonts that come with my X Windows installation. Using Tkinter I can draw these fonts

Re: More On - deepcopy, Tkinter

2005-07-06 Thread phil
Thanks, I used some of your methods and believe it is now working. I also did a lot of experiments, which I've needed to do, investigating when references vs values are passed and returned. Not as obvious as I thought. Duncan Booth wrote: phil wrote: The deepcopy protocol does allow

More On - deepcopy, Tkinter

2005-07-05 Thread phil
like python there might be things which you can't make a copy of. That is bizarre enough to wonder about a deep flaw or hopefully I'm just doing something very wrong. Any ideas appreciated. phil wrote: I wrote the following to prove to myself that deepcopy would copy an entire dictionary which

Re: More On - deepcopy, Tkinter

2005-07-05 Thread phil
The deepcopy protocol does allow you to specify how complicated objects should be copied. Try defining __deepcopy__() in your objects to just copy the reference to the Canvas object instead of the object itself. I can't figure out from the docs what __deepcopy__ is or how it works. I

Re: More On - deepcopy, Tkinter

2005-07-05 Thread phil
but you clearly haven't been getting the results from this forum that you expected. Yes I have, this is a wonderful forum. I was just providing more info due to more testing. -- http://mail.python.org/mailman/listinfo/python-list

Re: What are the other options against Zope?

2005-07-04 Thread phil
It's an object oriented database, with a structure that is similar to files and directories in an ordinary OS. But it is a lot smarter, because the files and directories are actually objects with different attributes and parameters. The methods on these objects can then be called eg.

PROBLEM?? deepcopy

2005-07-04 Thread phil
/lib/python2.3/lib-tk/Tkinter.py, line 1345, in __call__ return self.func(*args) File /home/phil/geo/g.py, line 303, in enter else:s.proc() File /home/phil/geo/g.py, line 245, in proc s.save[cur][k] = copy.deepcopy(s.glob.objs[k][0]) File /usr/local/lib/python2.3/copy.py, line

Re: What are the other options against Zope?

2005-07-02 Thread phil
Peter Hansen wrote: godwin wrote: I wanna thank Martin for helping out with my ignorance concerning execution of stored procedure with python. Now i have decided to write a web app that googles into my companies proprietary database. Just checking... do you really mean googles, or

Re: Python for everything?

2005-06-30 Thread phil
Python is in my opinion the best all-purpose language ever designed ( lisp is extremely cool but not as all purpose.) Much more elegant than perl and far far easier to do cool things than java (java is c++ on valium). HOWEVER, all purpose needs a little disclosure. A well coded C program may be

Re: Boss wants me to program

2005-06-29 Thread phil
I don't want to start a flamewar here - No heat, no flames. Everyone's cool Let me emphasize a little more. Even though Python itself is great, I think we don't have quite yet tools that offer Ya know, I just don't know enough about javaworld. The language I do not like. I wonder what

Re: Boss wants me to program

2005-06-29 Thread phil
About teaching in the exact sciences: I think we need a more hands-on applied approach, to some extent this holds for the entire school system. YES! As a geometry( trig) teacher, I am going to have them build a shed, a kite, a sundial. I would love some doable ideas for hands on which would

Re: Boss wants me to program

2005-06-28 Thread phil
Theres even a version of Python for .NET, called IronPython. The major advantage of this is that you get to program in Python, which I can tell you from experience is a lot more enjoyable and pain-free than C, C++, Fortran, or Java (and, I would highly suspect, VB and C#). But apparently

Re: Boss wants me to program

2005-06-28 Thread phil
You are quite correct to point out how much better it is to know what is going on behind the scenes. But heck, once you know how to extract square roots - you need to let the computer do it! GUI interfaces should be the same deal! Thomas Bartkus I think I pretty much agree. I

Re: Boss wants me to program

2005-06-27 Thread phil
I see several on this list have their opinion and lean toward VB. Not me, done that and vc++. Hate'em. Been developing 30 years and I like control over what I'm doing and Python and Tkinter are the best tools I've ever used. And for the most part IDE's like BOA Constructor are just confusing.

Re: Embedded Systems Python?

2005-06-20 Thread phil
I developed for my former employee a thin client whose primary purpose was AS400 connectivity. This required a fairly complex interactive gui configuration which I wrote in Python. This system could also be configed by a remote manager. Wrote that also in python using UDP sockets. The hardware

Re: Dealing with marketing types...

2005-06-10 Thread phil
What experiences have those in the Python community had in these kinds of situations? Ive had lots of experience updating my resume and developing software at home. In Python. Java is a clumsy kludge. And the java environment has gone to hell. Managers DO NOT listen to engineers.

Re: Questions on using Qt or wxWindows with Python and OS X

2005-06-09 Thread Phil Thompson
a place to ask as any, I'd guess. There is a mailing list for PyQt on OS X at... https://lists.sourceforge.net/lists/listinfo/pyqt-mac-list Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: prime number

2005-05-30 Thread phil
What civil engineers need with all this programming is beyond me. One of my best friends and expartner and top civil-structural engineers in the country (he built Dallas Reunion Arena and many other complex structures) was an ace programmer in many languages. He was not willing to just

Unicode Congruence

2005-05-30 Thread phil
I can't find, anyone know the unicode symbol CONGRUENT. either tilde over equal or triple tidde would do. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode Congruence

2005-05-30 Thread phil
Thanks. I did search that site but, wow, huge. That page had no reference to congruence and the pdf did not contain the pattern congru. But I'll have some better ideas how to search next time. thanx I used \u2245 btw John Machin wrote: phil wrote: I can't find, Having looked where

Re: I want to ask you the most important question of your life. The quest

2005-05-24 Thread phil-news-nospam
In comp.lang.c [EMAIL PROTECTED] wrote: | | THE MOST IMPORTANT QUESTION OF YOUR LIFE | | This is the most important question of your life. | | The question is: Are you saved? ^X^S I am now :-) -- - | Phil Howard

Re: Tkinter special math chars

2005-05-19 Thread phil
So far, on RedHat Linux: I have used your method successfully in a Label and in Canvas Text. very slow.?? In A Text box I just get \N{INFINITY}. But thanks, I will investigate Text Box more. Jeff Epler wrote: I wrote the following code: import Tkinter t = Tkinter.Label()

Re: Tkinter special math chars

2005-05-19 Thread phil
text=uAs the function approaches \N{INFINITY}, \N{HORIZONTAL ELLIPSIS}) Never mind, works in a Text widget, my bad. Why is it so slow? (RH Linux, 2.4.20, 1.6Ghz AMD) 3/4 second slower to display widget w/unicode, even if I encode u'\u221e' Works though, this is great. --

iso_8859_1 mystery/tkinter

2005-05-18 Thread phil
These work fine on Linux s.const = {} s.const['DEG'] = '%c' % (0xb0) s.const['DIV'] = '%c' % (0xf7) s.const['ANG'] = '%c' % (0xd8) On WinXP the symbols for division and angle work fine. But the symbol for degrees, a little circle, produces a vertical bar in

Re: iso_8859_1 mystery/tkinter

2005-05-18 Thread phil
| s.const['DEG'] = '%c' % (0xb0) | But the symbol for degrees, a little circle, produces | a vertical bar in Tkinter Text box or Canvas. t.insert(0.0, u'%c' % 0xb0) should do the trick though. COOL! Thanks, though that seems a little odd. As far as I know %c ignores the

deleting, but not getting, slices

2005-05-16 Thread Phil Dumont
to work around it by defining a sq_slice that does nothing but unconditionally raise an exception. But the check for sq_slice in assign_slice() makes me wonder if this is the right thing to do. (Seems ok so far.) Any hints would be appreciated phil -- http://mail.python.org/mailman/listinfo

<    1   2   3   4   5   6   7   >