ANN: Urwid 0.9.8.1 - Console UI Library

2007-06-23 Thread Ian Ward
Announcing Urwid 0.9.8.1 -- Urwid home page: http://excess.org/urwid/ Tarball: http://excess.org/urwid/urwid-0.9.8.1.tar.gz RSS: http://excess.org/feeds/tag/urwid/ About this release: === This is a maintenance release that fixes a number of bugs

Leo 4.4.3 beta 3 released

2007-06-23 Thread Edward K Ream
Leo 4.4.3 beta 3 is available at: http://sourceforge.net/project/showfiles.php?group_id=3458package_id=29106 This release fixes all known bugs and adds several new features. Leo is a text editor, data organizer, project manager and much more. See: http://webpages.charter.net/edreamleo/intro.html

ANN: Amara XML Toolkit 1.2.0.2

2007-06-23 Thread Uche Ogbuji
http://uche.ogbuji.net/tech/4suite/amara http://cheeseshop.python.org/pypi/Amara/ ftp://ftp.4suite.org/pub/Amara/ Changes since Amara 1.2.0.1: * Fix bindery bug with e.g. del html.head.title * Fix bindery bug with elements named None * Fix bindery bug when a string object gets into a binding *

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Robert Uhl
Twisted [EMAIL PROTECTED] writes: How clunky versus usable an interface to a tool is is for those who invest some, but not extraordinary amounts of, time into its use to decide. If it requires years of mastery, it is clunky -- period. This may be unavoidable if it's something involved in

Re: newbie question about unicode

2007-06-23 Thread Gabriel Genellina
En Sat, 23 Jun 2007 01:10:19 -0300, Genie T [EMAIL PROTECTED] escribió: can anybody tell me whether these two expressions have the same meanings? s = u'unicode string here' s1 = s.encode('utf-8') AND s1 = unicode(s,'utf-8') No - but consider this (assuming your terminal uses utf-8):

urllib interpretation of URL with ..

2007-06-23 Thread John Nagle
Here's a URL, found in a link, which gives us trouble when we try to follow the link: http://sportsbra.co.uk/../acatalog/shop.html Browsers immediately turn this into http://sportsbra.co.uk/acatalog/shop.html and go from there, but urllib tries to open it explicitly, which

Re: need help with re module

2007-06-23 Thread Gabriel Genellina
En Sat, 23 Jun 2007 01:12:17 -0300, samwyse [EMAIL PROTECTED] escribió: Speak for yourself. If I'm writing an HTML syntax checker, I think I'll skip BeautifulSoup and use something that gives me the results that I expect, not the results that you expect. Sure! By the way, I'm looking for a

Re: newbie question about unicode

2007-06-23 Thread Genie T
On Jun 23, 12:04 pm, Carsten Haese [EMAIL PROTECTED] wrote: On Sat, 23 Jun 2007 04:10:19 -, Genie T wrote Hi, can anybody tell me whether these two expressions have the same meanings? s = u'unicode string here' s1 = s.encode('utf-8') AND s1 = unicode(s,'utf-8')

Re: Adding method to a class on the fly

2007-06-23 Thread John Henry
On Jun 22, 7:36 pm, Steven D'Aprano [EMAIL PROTECTED] wrote: On Fri, 22 Jun 2007 14:44:54 -0700, John Henry wrote: The above doesn't exactly do I what need. I was looking for a way to add method to a class at run time. What does work, is to define an entire sub-class at run time. Like:

Re: rsync module?

2007-06-23 Thread Jason F. McBrayer
Evan Klitzke [EMAIL PROTECTED] writes: Are there any python modules for accessing rsync from python? I would like to be able to rsync files from a python script to a remote server running an rsync daemon. I'm well aware that I can invoke rsync using subprocess, os.system, etc., but I am

Re: urllib interpretation of URL with ..

2007-06-23 Thread Martin v. Löwis
John Nagle schrieb: Here's a URL, found in a link, which gives us trouble when we try to follow the link: http://sportsbra.co.uk/../acatalog/shop.html Browsers immediately turn this into http://sportsbra.co.uk/acatalog/shop.html and go from there, but urllib tries to open it

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread David Kastrup
Twisted [EMAIL PROTECTED] writes: That's entirely orthogonal to the issue of interface learning curve OR interface ease-of-use. Emacs has deficiencies in both areas, if principally the former. (For an example of the latter, consider opening a file. Can't remember the exact spelling and

Re: newbie question about unicode

2007-06-23 Thread Genie T
On Jun 23, 1:06 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Sat, 23 Jun 2007 01:10:19 -0300, Genie T [EMAIL PROTECTED] escribió: can anybody tell me whether these two expressions have the same meanings? s = u'unicode string here' s1 = s.encode('utf-8') AND s1 =

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread David Kastrup
Pascal Bourguignon [EMAIL PROTECTED] writes: Falcolas [EMAIL PROTECTED] writes: Would you mind elaborating on *what* took 3 hours to do, as opposed to just throwing around unquantified numbers? Would you also mind explaining the user's familiarity with the tools they were using on the mac?

Re: is this a valid import sequence ?

2007-06-23 Thread Stef Mientki
thanks Steven, Steven D'Aprano wrote: On Fri, 22 Jun 2007 21:43:40 +0200, Stef Mientki wrote: This might be a very weird construction, but it's the most easy way in translating another language into Python (for simulation). Although it works, I like to know if this a valid construction:

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread David Kastrup
Falcolas [EMAIL PROTECTED] writes: On Jun 22, 11:28 am, Robert Uhl [EMAIL PROTECTED] wrote: It's Mac OS and Windows which are inconsistent. Emacs has been around since they were mere glimmers in the eye of Jobs Gates... Inconsistent? I would have to disagree. They changed paradigms -

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread David Kastrup
Twisted [EMAIL PROTECTED] writes: HOW IN THE BLOODY HELL IS IT SUPPOSED TO OCCUR TO SOMEONE TO ENTER THEM, GIVEN THAT THEY HAVE TO DO SO TO REACH THE HELP THAT WOULD TELL THEM THOSE ARE THE KEYS TO REACH THE HELP?! Because there is a menu called HELP and because the standard keybinding for

Re: SIMD powered Python

2007-06-23 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Bytter wrote: Is there any ID ongoing about using SIMD [1] instructions, like SSE [2], to speed up Python, especially regarding functional features, like list comprehension, map and reduce, etc.. ? SIMD instruction sets know about low level data types, Python is about

Re: The Modernization of Emacs

2007-06-23 Thread Robert Uhl
Bjorn Borud [EMAIL PROTECTED] writes: | The idea is to start Emacs once and use it for everything. ...which is fine as long as you are only fiddling around on one machine or you have emacs windows running on all your machines. Tramp can be used to access files on other hosts. It even

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread David Kastrup
Twisted [EMAIL PROTECTED] writes: HOW IN THE BLOODY HELL IS IT SUPPOSED TO OCCUR TO SOMEONE TO ENTER THEM, GIVEN THAT THEY HAVE TO DO SO TO REACH THE HELP THAT WOULD TELL THEM THOSE ARE THE KEYS TO REACH THE HELP?! Because there is a menu called HELP and because the standard keybinding for

Re: The Modernization of Emacs

2007-06-23 Thread David Kastrup
[EMAIL PROTECTED] writes: PS you'll have to stop posting such a high volume here. I'm getting BS from Google Groups about posting limits being exceeded again. Oh, but that just means that _YOU_ will have to stop posting such a high volume here. Others are not affected. Though I have no doubt

ctypes help for array of character pointers as an output parameter

2007-06-23 Thread stalex
I'm wrapping a C function exists in a shared library. Its prototype looks like as follows int getFileNames(int aSize, char **names); The documentation says that the asSize is the number of entries to be returned and names is output array of character pointers of at least aSize elements. So,

Re: Collections of non-arbitrary objects ?

2007-06-23 Thread Paddy
On Jun 23, 1:45 am, walterbyrd [EMAIL PROTECTED] wrote: On Jun 21, 5:38 pm, Ben Finney [EMAIL PROTECTED] wrote: That's a flippant response, but I don't understand the question. Everybody here seems to have about the same response: why would you ever want to do that? Maybe it's something

Re: assert annoyance

2007-06-23 Thread Dave Baum
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: What I really want is for any assertion failure, anywhere in the program, to trap to the debugger WITHOUT blowing out of the scope where the failure happened, so I can examine the local frame. That just seems

the truth

2007-06-23 Thread the truth seeker
Explore the greatest life of the most recognized man in the history of humanity. http://mohammad.islamway.com -- http://mail.python.org/mailman/listinfo/python-list

looking for scott from Glassboro State

2007-06-23 Thread Fran Duffy
I am looking for a friend of mine that I havent seen in a long time. If you are Scott that went to Glassboro as a music major, please send me an Email: Fran Duffy at: [EMAIL PROTECTED] If you are not that Scott, disregard, and sorry to take up your time. Thanks Fran Duffy --

Re: Error in following code

2007-06-23 Thread Bjoern Schliessmann
Jay Loden wrote: That should do the trick. Additionally, it does the trick to save the first entered number as default argument forever. Regards, Björn -- BOFH excuse #117: the printer thinks its a router. -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess.popen question

2007-06-23 Thread SPE - Stani's Python Editor
On Jun 23, 5:35 am, Gabriel Genellina [EMAIL PROTECTED] wrote: En Fri, 22 Jun 2007 10:08:49 -0300, [EMAIL PROTECTED] [EMAIL PROTECTED] escribió: I seemed to have it working sorta when I run it and save the results I am noticing that inspeit spaces correctly but when I save it to a file I

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-23 Thread Michael Hoffman
Eduardo EdCrypt O. Padoan wrote: On 6/22/07, John Nagle [EMAIL PROTECTED] wrote: Paul Boddie wrote: P.S. I agree with the sentiment that the annotations feature of Python 3000 seems like a lot of baggage. Aside from some benefits around writing C/C++/Java wrappers, it's the lowest common

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Cor Gest
Some entity, AKA Tim Roberts [EMAIL PROTECTED], wrote this mindboggling stuff: (selectively-snipped-or-not-p) Boys, do you really not understand that this is a religious issue? You can't use arguments and logic to convince someone to convert their religion, and you can't use arguments and

RE: Changing the names of python keywords

2007-06-23 Thread vedrandekovic
Hello, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!! THANKS! --

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-23 Thread Kay Schluehr
On 22 Jun., 08:46, John Nagle [EMAIL PROTECTED] wrote: PEP 3107 seems to add negative value to the language. The ability to add arbitrary attributes to parameters which can then be interpreted by some external library yet to be defined is a l33t feature, one that's more cute than useful.

Changing sound volume

2007-06-23 Thread simon kagwe
Hi, I am playing sounds using the winsound module. Is there a way I can change the volume? -- http://mail.python.org/mailman/listinfo/python-list

RE: Changing the names of python keywords

2007-06-23 Thread ...:::JA:::...
Hello, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!! THANKS!

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Bjorn Borud
[Falcolas [EMAIL PROTECTED]] | | I guess ultimately I'm trying to argue the point that just because a | tool was written with a GUI or on Windows does not automatically make | it any less a productive tool than a text based terminal tool. Even in | windows, you can use the keyboard to do all of

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Paul Rubin
Michele Simionato [EMAIL PROTECTED] writes: BTW, there are already Python-like languages with macros (i.e. logix) and still nobody use them, including people with a Scheme/Lisp background. That should be telling you something. What about Dylan? --

Using PSE under Win32

2007-06-23 Thread Eduardo Dobay
Hello, I've been playing around with mod_python these days (using Publisher and PSP), and it has been working smoothly under Windows XP (using Apache 2.2). But when I installed PSE and went to use it with mod_python, it didn't work. The error I get whenever I try to load a PSE page is: Traceback

Re: assert annoyance

2007-06-23 Thread Michele Simionato
On Jun 22, 5:05 pm, Paul Rubin http://[EMAIL PROTECTED] wrote: Unit tests are not a magic wand that discover every problem that a program could possibly have. +1 QOTW Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: SIMD powered Python

2007-06-23 Thread Paul Rubin
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] writes: True... But maybe in NumPy arrays that would be more feasible...? Yes but that's in external libraries and not in the Python interpreter. So it won't speed up Python code like list comprehensions but just calls to external functions written

Re: The Modernization of Emacs

2007-06-23 Thread Bjorn Borud
[Twisted [EMAIL PROTECTED]] | | I have observed similar opinions in other non-computer-freaks. people | who see the computer only as a tool and are only interested in getting | the job done. they have a surprising preference for Linux. | | But not emacs, I'll bet. I think emacs appeals to

Re: SIMD powered Python

2007-06-23 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Bytter wrote: Marc 'BlackJack' Rintsch escreveu: In [EMAIL PROTECTED], Bytter wrote: Is there any ID ongoing about using SIMD [1] instructions, like SSE [2], to speed up Python, especially regarding functional features, like list comprehension, map and reduce, etc..

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Michele Simionato
On Jun 22, 8:09 pm, Douglas Alan [EMAIL PROTECTED] wrote: Functionality is no good if it's too cumbersome to use. For instance, Scheme gives you first class continuations, which Python doesn't. Continuations let you do *all sorts* of interesting things that you just cannot do in Python. Like

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Martin Gregorie
BartlebyScrivener wrote: On Jun 22, 3:47 pm, Twisted [EMAIL PROTECTED] wrote: If it requires years of mastery, it is clunky Well, now you keep harping on this, but it's just not true. I use vim myself, but for purposes of this argument it doesn't matter. If you take the Vim tutorial and

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Douglas Alan
Steven D'Aprano [EMAIL PROTECTED] writes: Nevertheless, in Python 1+2 always equals 3. You can't say the same thing about Lisp. Well, I can't say much of *anything* about 1 + 2 in Lisp, since that's not the syntax for adding numbers in Lisp. In Lisp, numbers are typically added using the +

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Matthias Buelow
Tim Roberts wrote: Editors are like underwear. We each have our own favorite brand, and nothing you say will convince me to change mine. You really should have stopped here :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Paul Rubin
Michele Simionato [EMAIL PROTECTED] writes: Really powerful languages (say Haskell, just not to be too Python-centric) do not need macros. http://www.haskell.org/th/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding method to a class on the fly

2007-06-23 Thread John Henry
But then how do I create the on_Button1_mouseClick function? That depends on what it is supposed to do, but in general you want a factory function -- a function that returns functions. Here's a simple example: snip Steven, May be I didn't explain it clearly: the PythonCard package

Re: Python plain-text database or library that supports joins?

2007-06-23 Thread Michele Simionato
On Jun 22, 7:18 pm, felciano [EMAIL PROTECTED] wrote: Hello -- Is there a convention, library or Pythonic idiom for performing lightweight relational operations on flatfiles? I frequently find myself writing code to do simple SQL-like operations between flat files, such as appending columns

relative import question: packaging scripts

2007-06-23 Thread Alan Isaac
What is the recommended packaging of demo scripts or test scripts for a package that has modules that use relative imports? Example: Suppose I have the package structure: package/ __init__.py subpackage1/ __init__.py moduleY.py subpackage2/ __init__.py

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Bjorn Borud
[Twisted [EMAIL PROTECTED]] | | That sort of negative-sum thinking is alien to me. Software being easy | for beginners to get started using does not in and of itself detract | from its value to expert users. the fact that you imply that this is my argument tells me that either you have not paid

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Michele Simionato
On Jun 23, 6:11 am, Lenard Lindstrom [EMAIL PROTECTED] wrote: When this thread turned to the topic of macros I did an Internet search for information on macros relevant to Python. Dylan's macros look promising. The Python-inspired language Converge has macros (http://convergepl.org/). Michael

Re: People who reply to spammers [was: Re: I need some cleanings tips and advice.]

2007-06-23 Thread Lew
Steven D'Aprano wrote: On Fri, 22 Jun 2007 16:11:58 +, Colin B. replied to a spammer with: Let's see if I get this right. You create a website for a subject that you know nothing about. Then you try to solicit content in a bunch of programming language newsgroups. Wow, that's pretty

Re: high performance/threaded applications in Python - your experiences?

2007-06-23 Thread Ivan Voras
Jay Loden wrote: I was hoping for some experiences that some of you on the list may have had in dealing with Python in a high performance and/or threaded environment. In essence, I'm wondering how big of a deal the GIL can be in a real-world scenario where you need to take advantage of

Re: Adding method to a class on the fly

2007-06-23 Thread Steven D'Aprano
On Sat, 23 Jun 2007 00:02:09 -0700, John Henry wrote: [snip] Notice that the event handler for mouseClick to Button1 is done via the function on_Button1_mouseClick. This is very simple and works great - until you try to create the button on the fly. Creating the button itself is no

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Michele Simionato
On Jun 22, 7:54 pm, Douglas Alan [EMAIL PROTECTED] wrote: The proof is in the pudding for anyone who has seen the advantages it brings to Lisp. As Paul Graham points out, it's hard to look up and see the advantages of what is up there in a more powerful language. It's only easy to look down

Re: Python live environment on web-site?

2007-06-23 Thread Thomas Lenarz
On Wed, 20 Jun 2007 15:18:26 GMT, [EMAIL PROTECTED] (Thomas Lenarz) wrote: Hi all, I was wondering if there was a python-live-environment available on a public web-site similar to the ruby-live-tutorial on Thanks a lot for all your replies. I looked at the TryPython-Sites and will have a look

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Bjorn Borud
[Twisted [EMAIL PROTECTED]] | You end up having to memorize the help, because *you can't | have arbitrary parts of the help and your document open side by side | and be working on the document*. All because you can't simply tab or | click to the document. yes you can. you even have a lot of

Re: SIMD powered Python

2007-06-23 Thread Bytter
Hi... True... But maybe in NumPy arrays that would be more feasible...? Cheers. Hugo Ferreira Marc 'BlackJack' Rintsch escreveu: In [EMAIL PROTECTED], Bytter wrote: Is there any ID ongoing about using SIMD [1] instructions, like SSE [2], to speed up Python, especially regarding

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread David Golden
Bjorn Borud wrote: [Falcolas [EMAIL PROTECTED]] | | I guess ultimately I'm trying to argue the point that just because a | tool was written with a GUI or on Windows does not automatically | make it any less a productive tool than a text based terminal tool. | Even in windows, you can use

Re: The Modernization of Emacs

2007-06-23 Thread Martin Gregorie
Joel J. Adamson wrote: Xerox PARC (not Apple nor MIcrosoft) excelled in helping computers fit in to how people already lived, not the other way around. I've never got my hands on a genuine Xerox. About the nearest to that I managed was an ICL PERQ back in 1980, with a portrait-mode black and

Re: Adding method to a class on the fly

2007-06-23 Thread Steven D'Aprano
On Sat, 23 Jun 2007 09:06:36 -0700, John Henry wrote: But then how do I create the on_Button1_mouseClick function? That depends on what it is supposed to do, but in general you want a factory function -- a function that returns functions. Here's a simple example: snip Steven, May

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Steven D'Aprano
On Sat, 23 Jun 2007 12:39:51 -0400, Douglas Alan wrote: One of the things that annoys me when coding in Python (and this is a flaw that even lowly Perl has a good solution for), is that if you do something like longVarableName = foo(longVariableName) You end up with a bug that can

Re: is this a valid import sequence ?

2007-06-23 Thread Scott David Daniels
Stef Mientki wrote: ... I've defined a class, like this, ... class T6963_device (tDevice): def __init__ (self): global LCD LCD = self ... In the same module I've a function, that runs a method of the above class instance, ... def Write_LCD_Data ( data ): global

Re: C API: passing by reference

2007-06-23 Thread Carsten Haese
On Sat, 2007-06-23 at 18:25 +, [EMAIL PROTECTED] wrote: I'm writing my own python extension module with the C API. In python all functions pass arguments by reference, Pass by reference, while correct from a certain standpoint, is to be taken with a large grain of salt. It is correct in so

Re: Collections of non-arbitrary objects ?

2007-06-23 Thread walterbyrd
On Jun 22, 11:43 pm, Ben Finney [EMAIL PROTECTED] wrote: Can you help us understand, by showing a use case that would in your estimation be improved by the feature you're describing? Suppose you are sequentially processing a list with a routine that expects every item to be of a certain type.

Re: C API: passing by reference

2007-06-23 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: I'm writing my own python extension module with the C API. In python all functions pass arguments by reference Can you please show an example what you mean by that? There is no pass-by-reference in Python: a function can not normally modify the variable in the caller.

Re: is this a valid import sequence ?

2007-06-23 Thread Steven D'Aprano
On Sat, 23 Jun 2007 11:03:03 -0700, Scott David Daniels wrote: The global statement in Write_LCD_Data is completely unnecessary. The only time you need global is if you want to reassociate the global name to another object (such as LCD = LCD + 1 or whatever). That's technically true, but

Re: Adding method to a class on the fly

2007-06-23 Thread John Henry
On Jun 23, 10:56 am, Steven D'Aprano [EMAIL PROTECTED] wrote: On Sat, 23 Jun 2007 09:06:36 -0700, John Henry wrote: But then how do I create the on_Button1_mouseClick function? That depends on what it is supposed to do, but in general you want a factory function -- a function that

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Douglas Alan
Steven D'Aprano [EMAIL PROTECTED] writes: But if you really want declarations, you can have them. import variables variables.declare(x=1, y=2.5, z=[1, 2, 4]) variables.x = None variables.w = 0 Traceback (most recent call last): File stdin, line 1, in module File variables.py, line

Re: is this a valid import sequence ?

2007-06-23 Thread Stef Mientki
Steven D'Aprano wrote: On Sat, 23 Jun 2007 11:03:03 -0700, Scott David Daniels wrote: The global statement in Write_LCD_Data is completely unnecessary. The only time you need global is if you want to reassociate the global name to another object (such as LCD = LCD + 1 or whatever).

C API: passing by reference

2007-06-23 Thread [EMAIL PROTECTED]
I'm writing my own python extension module with the C API. In python all functions pass arguments by reference, but how can I make use of this in C? Right now, I am using: PyArg_ParseTuple(args, (ii)(ii), faceId1, vertId1, faceId2, vertId2) I want the to change the faceId's in my function. From

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Douglas Alan
Michele Simionato [EMAIL PROTECTED] writes: Been there, done that. So what? Your example will not convince any Pythonista. I'm a Pythonista, and it convinces me. The Pythonista expects Guido to do the language job and the application developer to do the application job. I'm happy to hear

Re: C API: passing by reference

2007-06-23 Thread [EMAIL PROTECTED]
Thanks for that clarification Martin. When I googled it before, the first page I read said Python passes all arguments using 'pass by reference'. However, after seeing your reply and further searching I see that this is not true. I have a python function insertEdge which takes to 2-tuples of

Re: Python's only one way to do it philosophy isn't good?

2007-06-23 Thread Douglas Alan
Steven D'Aprano [EMAIL PROTECTED] writes: So one use for macros would be so that I can define let and set statements so that I might code like this: let longVariableName = 0 set longVarableName = foo(longVariableName) Then if longVarableName didn't already exist, an error would

Re: Adding method to a class on the fly

2007-06-23 Thread John Henry
On Jun 23, 10:56 am, Steven D'Aprano [EMAIL PROTECTED] wrote: On Sat, 23 Jun 2007 09:06:36 -0700, John Henry wrote: But then how do I create the on_Button1_mouseClick function? That depends on what it is supposed to do, but in general you want a factory function -- a function that

Re: Collections of non-arbitrary objects ?

2007-06-23 Thread 7stud
On Jun 23, 11:45 am, walterbyrd [EMAIL PROTECTED] wrote: On Jun 22, 11:43 pm, Ben Finney [EMAIL PROTECTED] wrote: Can you help us understand, by showing a use case that would in your estimation be improved by the feature you're describing? Suppose you are sequentially processing a list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread David Kastrup
Matthias Buelow [EMAIL PROTECTED] writes: Tim Roberts wrote: Editors are like underwear. We each have our own favorite brand, and nothing you say will convince me to change mine. You really should have stopped here :) Well if It stinks! is not incentive enough for him to change his

Re: Collections of non-arbitrary objects ?

2007-06-23 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], walterbyrd wrote: On Jun 22, 11:43 pm, Ben Finney [EMAIL PROTECTED] wrote: Can you help us understand, by showing a use case that would in your estimation be improved by the feature you're describing? Suppose you are sequentially processing a list with a routine

bicycle repair man help

2007-06-23 Thread Rustom Mody
Does someone know that when using bicycle repair man to refactor python code what exactly extract local variable means? -- http://mail.python.org/mailman/listinfo/python-list

Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread vasudevram
Hi group, Question: Do eval() and exec not accept a function definition? (like 'def foo: pass) ? I wrote a function to generate other functions using something like eval(def foo: ) but it gave a syntax error (Invalid syntax) with caret pointing to the 'd' of the def keyword. Details (sorry

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread Eduardo Dobay
Hey, I think you could use lambda functions for that matter (Ever heard of them?). You could write something like: def generate_html_tag_function(tag_name, start_or_end): start_or_end.lower() assert(start_or_end in ('start', 'end')) if start_or_end == 'start': function = lambda:

pydoc with METH_VARGS

2007-06-23 Thread Stuart
With my Python extension module all the function definitions are with METH_VARGS. The result being that pydoc, just puts (...) for the argument list. Can I hand edit this to put the specific variable names I want? With optional arguments in brackets or something? Thanks. --

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread MC
Hi! Try with change all '\r\n' by '\n' -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Python changing keywords name

2007-06-23 Thread vedrandekovic
Hello AGAIN, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!! THANKS! --

Re: Portable general timestamp format, not 2038-limited

2007-06-23 Thread James Harris
On 22 Jun, 23:49, Roger Miller [EMAIL PROTECTED] wrote: ... My rule of thumb in situations like this is When in doubt store it as text. The one format I am pretty sure we will still be able to deal with in 2039. Interesting. I hadn't thought about using text. It would add to the storage a bit

Re: Python changing keywords name

2007-06-23 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: Hello AGAIN, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!! THANKS! This is the

Re: Collections of non-arbitrary objects ?

2007-06-23 Thread Paddy
On Jun 23, 6:45 pm, walterbyrd [EMAIL PROTECTED] wrote: On Jun 22, 11:43 pm, Ben Finney [EMAIL PROTECTED] wrote: Can you help us understand, by showing a use case that would in your estimation be improved by the feature you're describing? Suppose you are sequentially processing a list

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread vasudevram
On Jun 24, 1:20 am, Eduardo Dobay [EMAIL PROTECTED] wrote: Hey, I think you could use lambda functions for that matter (Ever heard of them?). You could write something like: def generate_html_tag_function(tag_name, start_or_end): start_or_end.lower() assert(start_or_end in ('start',

Strange Thread Issue

2007-06-23 Thread Robert Rawlins - Think Blue
Hello Guys, I'm having an issue with a thread which I've not come across before and it has be baffled. The thread doesn't really do a lot, it simple contains a popen command to run something from cmd, now then i trigger the thread form my main application using the .start() method nothing

Re: Python changing keywords name

2007-06-23 Thread James Stroud
[EMAIL PROTECTED] wrote: Hello AGAIN, I on working on windows and Python 2.4. Where can I find and CHANGE python grammar. ( I just want to change the keywords ) PLEASE HELP ME SOMEBODY!! THANKS! 1.

Re: Portable general timestamp format, not 2038-limited

2007-06-23 Thread rossum
On Sat, 23 Jun 2007 13:37:14 -0700, James Harris [EMAIL PROTECTED] wrote: On 22 Jun, 23:49, Roger Miller [EMAIL PROTECTED] wrote: ... My rule of thumb in situations like this is When in doubt store it as text. The one format I am pretty sure we will still be able to deal with in 2039.

Re: database design help

2007-06-23 Thread Jacek Trzmiel
Hi, Brian Blais wrote: I am trying to design a system for people to submit a series of documents to a project. I want users to have the ability to submit updates to any documents, so that there should be a history (or sequence) for each document. [...] project1: document 1, document

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread Scott David Daniels
vasudevram wrote: Hi group, Question: Do eval() and exec not accept a function definition? (like 'def foo: pass) ? def is the first keyword in a _statement_, not an expression. exec executes statements, eval evaluates expressions. try this: exec def foolish(x):\ny= x * 2\n

database design help

2007-06-23 Thread Brian Blais
Hello, I am trying to design a system for people to submit a series of documents to a project. I want users to have the ability to submit updates to any documents, so that there should be a history (or sequence) for each document. I think in terms of python data structures, so the relational

trouble installing numpy 1.0.2 and scipy.0.5.2

2007-06-23 Thread 1960_j
I have tried to install numpy and scipy on python 5.2. Using gcc 2.95.3, lapack 3.1.1 and ATLAS 3.6.0. When installin numpy it seems to work but when I try to run test get error no test for numpy. When I try to Install scipy only get error. Any ideas on how to install would be appreciated.

Re: urllib interpretation of URL with ..

2007-06-23 Thread John Nagle
Martin v. Löwis wrote: John Nagle schrieb: Here's a URL, found in a link, which gives us trouble when we try to follow the link: http://sportsbra.co.uk/../acatalog/shop.html Browsers immediately turn this into http://sportsbra.co.uk/acatalog/shop.html and go from there, but urllib

Leo 4.4.3 beta 3 released

2007-06-23 Thread Edward K Ream
Leo 4.4.3 beta 3 is available at: http://sourceforge.net/project/showfiles.php?group_id=3458package_id=29106 This release fixes all known bugs and adds several new features. Leo is a text editor, data organizer, project manager and much more. See: http://webpages.charter.net/edreamleo/intro.html

how to query/test the state of a qt widget?

2007-06-23 Thread raacampbell
Hi, I'm writing a simple Python/Qt3 application and I am trying to write some code in which the user presses a button and the program performs action A or B depending upon the state of a pair of radio buttons. I would therefore like Python to read the state of the buttons. I was expecting this to

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Robert Uhl
Twisted [EMAIL PROTECTED] writes: For an example of the latter, consider opening a file. Can't remember the exact spelling and capitalization of the file name? Sorry, bud, you're SOL. Go find it in some other app and memorize the name, then return to emacs. Once again I am forced to wonder

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Robert Uhl
Twisted [EMAIL PROTECTED] writes: HOW IN THE BLOODY HELL IS IT SUPPOSED TO OCCUR TO SOMEONE TO ENTER THEM, GIVEN THAT THEY HAVE TO DO SO TO REACH THE HELP THAT WOULD TELL THEM THOSE ARE THE KEYS TO REACH THE HELP?! Because WHEN YOU START EMACS IT DISPLAYS A MESSAGE TELLING YOU HOW TO GET TO

  1   2   >