Yahoo! Auto Response

2005-02-28 Thread egrimleyevans
Saluton! Jen auxtomate sendita mesagxo kun gxenerala averto: Mi tre malofte kontrolas mian posxtkeston cxe yahoo.co.uk. Kiam mi kontrolos gxin, mi eble ne rimarkos vian mesagxon inter la miloj da spamoj. Normale do pli indas skribi al edmundo cxe rano punkto org. Edmundo

Re: netmask arithmetic?

2005-02-28 Thread TZOTZIOY
On Sat, 26 Feb 2005 09:50:41 GMT, rumours say that Roel Schroeven <[EMAIL PROTECTED]> might have written: >Dan Stromberg wrote: >> Before I go and reinvent the wheel, does anyone already have python code >> that can do netmask arithmetic - for example, determining if a list of >> hostnames are on

Re: Problem When Unit Testing with PMock

2005-02-28 Thread steven
Peter, for a object foo who need a iterator to do a job, i write test to make sure the foo correctlly used the iterator, so a simple empty iterator is not enough. because in the case, i need to see if or not the foo called the iterator to get the proper data from it and do the proper translating

Hey, How Do I Distribute my New Completed Python Project?

2005-02-28 Thread steven
I'v just completed a small python project, which includes a main py file and a couple of classes in seperated py files. I can run it under the development directory, but how to distribute them? Is there any good practice here? Thanks in advance. - narke -- http://mail.python.org/mailman/listi

Re: lambda strangeness??

2005-02-28 Thread Alan Gauld
On Sun, 27 Feb 2005 09:39:49 GMT, Roel Schroeven <[EMAIL PROTECTED]> wrote: > adds = [lambda y: (y + n) for n in range(10)] > You're picking it up not as y but as n, since n in the lambda is > evaluated when you call the lambde, not when you define it. > >>> for n in range(10): > def f

User Security (Roles & Permissions)

2005-02-28 Thread Andreas Pauley
Hi all, I'm starting with a Point of Sale system (QT gui, MySQL db) and I'm wondering if there are any user management/user security modules available that can be reused independently of the specific system that you write. I think something similar to the roles & permission scheme of Zope would

Why do descriptors (and thus properties) only work on attributes.

2005-02-28 Thread Antoon Pardon
Can anyone explain why descriptors only work when they are an attribute to an object or class. I think a lot of interesting things one can do with descriptors would be just as interesting if the object stood on itself instead of being an attribute to an other object. So what are the reasons for l

Re: Why do descriptors (and thus properties) only work on attributes.

2005-02-28 Thread Paul Rubin
Antoon Pardon <[EMAIL PROTECTED]> writes: > Can anyone explain why descriptors only work when they are an attribute > to an object or class. I think a lot of interesting things one can > do with descriptors would be just as interesting if the object stood > on itself instead of being an attribute

Re: Pyallegro status (is it dead?). What about pygame.

2005-02-28 Thread Grzegorz Adam Hankiewicz
On 2005-02-27, Przemys?aw RĂ³?ycki <[EMAIL PROTECTED]> wrote: > Has anyone used pyallegro? - I want to give allegro library a > chance - but it seems that python bindings for this library are > not maintained anymore. They aren't if you look at the web page. If you look at the CVS activity you will

Re: Why do descriptors (and thus properties) only work on attributes.

2005-02-28 Thread Antoon Pardon
Op 2005-02-28, Paul Rubin schreef : > Antoon Pardon <[EMAIL PROTECTED]> writes: >> Can anyone explain why descriptors only work when they are an attribute >> to an object or class. I think a lot of interesting things one can >> do with descriptors would be just as interesting if the object stood >

Re: Why do descriptors (and thus properties) only work on attributes.

2005-02-28 Thread Diez B. Roggisch
Antoon Pardon wrote: > Op 2005-02-28, Paul Rubin schreef : >> Antoon Pardon <[EMAIL PROTECTED]> writes: >>> Can anyone explain why descriptors only work when they are an attribute >>> to an object or class. I think a lot of interesting things one can >>> do with descriptors would be just as inter

Re: Why do descriptors (and thus properties) only work on attributes.

2005-02-28 Thread Daniel Dittmar
Antoon Pardon wrote: Can anyone explain why descriptors only work when they are an attribute to an object or class. I think a lot of interesting things one can do with descriptors would be just as interesting if the object stood on itself instead of being an attribute to an other object. How would

Re: Why do descriptors (and thus properties) only work on attributes.

2005-02-28 Thread Antoon Pardon
Op 2005-02-28, Diez B. Roggisch schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > >> Op 2005-02-28, Paul Rubin schreef : >>> Antoon Pardon <[EMAIL PROTECTED]> writes: Can anyone explain why descriptors only work when they are an attribute to an object or class. I think a lot of inter

Re: Why do descriptors (and thus properties) only work on attributes.

2005-02-28 Thread Antoon Pardon
Op 2005-02-28, Daniel Dittmar schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: Can anyone explain why descriptors only work when they are an attribute to an object or class. I think a lot of interesting things one can do with descriptors would be just as interesting if the object st

Re: accessor/mutator functions

2005-02-28 Thread Nick Craig-Wood
Michael Spencer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > When I look at how classes are set up in other languages (e.g. C++), I > > often observe the following patterns: > > 1) for each data member, the class will have an accessor member > > function (a Get function) > > 2) for ea

Re: Flushing print()

2005-02-28 Thread Nick Craig-Wood
Cameron Laird <[EMAIL PROTECTED]> wrote: > gf, remember to write > >sys.stdout.flush() > > rather than > >sys.stdout.flush > > That's a mistake that catches many. Many old perl programmers anyway (me included)! Its also a mistake pychecker catches. -- Nick Craig-Wood <[EMAIL PROT

Re: split a directory string into a list

2005-02-28 Thread Josef Meile
The most obvious case where it wouldn't work would be for a UNC path name. Using the string split method gives two empty strings: os.path.normpath(r'\\machine\share').split(os.path.sep) ['', '', 'machine', 'share'] whereas the splitpath function I proposed gives you: splitpath(r'\\machine\shar

Explicit or general importing of namespaces?

2005-02-28 Thread Harlin Seritt
Is there really a major performance difference between doing the following: import Tkinter as TK TK.Label(yada yada) OR from Tkinter import * Label(yada yada) I'm unable to tell a real difference other than in the code writing :-). Thanks, Harlin -- http://mail.python.org/mailman/listinfo

Re: Explicit or general importing of namespaces?

2005-02-28 Thread Diez B. Roggisch
> Is there really a major performance difference between doing the No. > I'm unable to tell a real difference other than in the code writing > :-). The difference is that the from-syntax may cause name space pollution. See the FAQ: http://www.python.org/doc/faq/programming.html#id12 -- Regard

Re: simple input that can understand special keys?

2005-02-28 Thread Tim G
Gabriel B. wrote: > i'm writting an application that will use Tinker in a newer future. > Now it's console only. I simply ommit some data on the display, > print() some other and go on. The problem is that i can't test the > actions tiggered by special keys, like Page Up/Down or the F1...12 > > Rig

Re: Explicit or general importing of namespaces?

2005-02-28 Thread Michael Hoffman
Diez B. Roggisch wrote: >[Harlin Seritt]: Is there really a major performance difference between doing the No. Actually, if you are using a name in another module repeatedly in an inner loop, it can make a big difference if you have to lookup the name in the module repeatedly. In that case, just ex

Re: Fonts

2005-02-28 Thread Eric Brunel
On Fri, 25 Feb 2005 11:00:41 -0600, phil <[EMAIL PROTECTED]> wrote: I'm cpmpletely lost on fonts. I'm using Tkinter I do medarial = '-*-Arial-Bold-*-*--24-*-*-*-ISO8859-1" or Courier or Fixed in various sizes. Works great on my RH 7.2 But a small embedded system Im working on, nothing seems to work

Re: Hey, How Do I Distribute my New Completed Python Project?

2005-02-28 Thread Swaroop C H
[EMAIL PROTECTED] wrote: I'v just completed a small python project, which includes a main py file and a couple of classes in seperated py files. I can run it under the development directory, but how to distribute them? Is there any good practice here? "Distributing Python Modules" http://docs.pyt

Re: Polling selections from a listbox (Tkinter)

2005-02-28 Thread Eric Brunel
On 26 Feb 2005 03:48:16 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote: [snip] Obviously when this starts up this is going to show selection #0 inside the label box. How do I make sure that whatever is arbitrarily selected ends up in the label box as this gui runs? I tried doing a bind: self.listbo

Re: closing tabs in wxpython

2005-02-28 Thread Jorge Godoy
"Raghul" <[EMAIL PROTECTED]> writes: > Can anybody help in closing tabs in wxpython.Pls give me a sample > program for explaining this.Thanx in advance Check the demo. It is there along with several other faciliies. Be seeing you, Godoy. -- http://mail.python.org/mailman/listinfo/python-lis

Re: Explicit or general importing of namespaces?

2005-02-28 Thread Max M
Michael Hoffman wrote: But don't do "from Tkinter import *" for the reasons Diez has identified in the FAQ. It is so annoying to read some code and having to guess from where the do_complicated_stuff() function is imported from. Explicit importing is by far the moste preferable. -- hilsen/regards

Re: Explicit or general importing of namespaces?

2005-02-28 Thread Diez B. Roggisch
> Actually, if you are using a name in another module repeatedly > in an inner loop, it can make a big difference if you have to lookup > the name in the module repeatedly. In that case, just explicitly > import the name you want to use repeatedly: Ok - but if that really hits the wall for some pa

Python - what is the fastest database ?

2005-02-28 Thread martijn
H!, I'm testing things with Python with databases. But I have one big question. What is the 'fastest' database for the internet in combination with Python ? - with +/- 15 GB data. - fast internet SELECT query's. Python use bsddb but could he handle 15 GB fast ? A other question is: How is it p

Re: Python - what is the fastest database ?

2005-02-28 Thread PA
On Feb 28, 2005, at 13:10, [EMAIL PROTECTED] wrote: What type database do they use / software ? Hmmm... they don't use a "database" in the traditional sense of the term. http://www-db.stanford.edu/~backrub/google.html Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ -- http://mail.python.

Re: Problem When Unit Testing with PMock

2005-02-28 Thread Peter Hansen
[EMAIL PROTECTED] wrote: Peter, for a object foo who need a iterator to do a job, i write test to make sure the foo correctlly used the iterator, so a simple empty iterator is not enough. because in the case, i need to see if or not the foo called the iterator to get the proper data from it and d

Re: class factory example needed (long)

2005-02-28 Thread Gary Ruben
Thanks for the very helpful reply Rainer, I thought I couldn't use setattr because I need the syntactic sugar sqrt(f) to work, but with your example code Numeric.sqrt(f) does in fact work correctly. I also need to do a bit more than may be possible with a simple lambda function, but I should be

Re: Explicit or general importing of namespaces?

2005-02-28 Thread Peter Hansen
Diez B. Roggisch wrote: I'm unable to tell a real difference other than in the code writing :-). The difference is that the from-syntax may cause name space pollution. See the FAQ: http://www.python.org/doc/faq/programming.html#id12 Ultimately more important than mere "pollution" are the latent pro

Re: Text To Speech with pyTTS

2005-02-28 Thread Hans Georg Krauthaeuser
Mike P. wrote: Hi, I was wondering if anyone has had any luck with the python text to speech (pyTTS) module available on Sourceforge: http://sourceforge.net/projects/uncassist I have followed the tutorial for pyTTS at: http://www.cs.unc.edu/~parente/tech/tr02.shtml Using the first simple speech exa

Re: best XSLT processor?

2005-02-28 Thread Brian Quinlan
fanbanlo wrote: Which XSLT processor is the most reliable? requirement: + must support Python 2.4 + must run w/ Windows (and Linux) + not super slow My python project needs a XSLT processor + Docbook's XSLT to translate from docbook-xml -> HTML. PyXML? is it reliable? Slow? 4Suite? some said it i

Re: Python interfacing with other languages

2005-02-28 Thread Lucas Raab
wuhy80 wrote: Sure It can work with VB. you could use the python's com to work with VB. Take a look at Mark Hammond's Win32 suite of modules. http://starship.python.net/crew/mhammond/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - what is the fastest database ?

2005-02-28 Thread Peter Hansen
PA wrote: On Feb 28, 2005, at 13:10, [EMAIL PROTECTED] wrote: What type database do they use / software ? Hmmm... they don't use a "database" in the traditional sense of the term. http://www-db.stanford.edu/~backrub/google.html Section "4.3 Crawling the Web" in that discusses the role Python plays

[ANN] mlabwrap v0.9 released

2005-02-28 Thread Alexander Schmolck
This release just adds OS X support to setup.py (thanks to Josh Marshall). I've also made some recent improvements to the website, based on user feedback. In the absence of any bug reports so far I'd tentatively consider mlabwrap as stable. Dowload from: What

Re: Hey, How Do I Distribute my New Completed Python Project?

2005-02-28 Thread Fuzzyman
As Swaroop mentions, there is a relatively simple standard for distributing extension modules. For actual applications - convenience is the only guideline :-) Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

How do you control _all_ items added to a list?

2005-02-28 Thread Xif
Hi I want to have control over all items added to a list. The first attempt was to subclass list and override its .append() method. Problem is, there are plenty of other ways the list can have items added to it - e.g. extend, insert - and theyr'e not at all affected by the changes I made to appe

Re: How do you control _all_ items added to a list?

2005-02-28 Thread Fuzzyman
Xif wrote: > Hi > > I want to have control over all items added to a list. > > The first attempt was to subclass list and override its .append() > method. > > Problem is, there are plenty of other ways the list can have items > added to it - e.g. extend, insert - and theyr'e not at all affected by

Newbie question

2005-02-28 Thread Ryan White
Hi all I'm wanting to use python to display some jpeg images, maybe present them at a percentage of their actual size etc. How do I display an image in Python? - I've run over Tkinter, but obviously in all the wrong places. Any help or sample code would be much appreciated. Ryan -- http://ma

Re: Newbie question

2005-02-28 Thread Fuzzyman
Functions for manipulating images are contained in the 'PIL' extension - the Python Imaging Library. You'll find it with google. regards, Fuzzy http://www.voidsapce.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Trees

2005-02-28 Thread Eddie Corns
Alex Le Dain <[EMAIL PROTECTED]> writes: >Is there a generic "tree" module that can enable me to sort and use >trees (and nodes). Basically having methods such as .AddNode(), >.GetAllChildren(), .FindNode() etc. http://newcenturycomputers.net/projects/rbtree.html might do most of what you want

Re: TKinter

2005-02-28 Thread Curt
On 2005-02-27, James Stroud <[EMAIL PROTECTED]> wrote: > I thought the T was silent. Kay-Inner, nasally? >> So, is it pronounced 'Tee-Kinter', or 'Tee-Kay-Inter'? >> I don't want to appear as a dork down the pub. -- There is no intelligence without being. I believe the inverse to be equally t

Re: Trees

2005-02-28 Thread Diez B. Roggisch
> Writing a *simple* node class is easy, but a full-featured one that > supports things like comparison and easy iteration is a bit more work. So > various people write partial implementations with only the features they > need, and they all end up being incompatible. So beyond being able to use >

Re: Trouble using telentlib

2005-02-28 Thread Eddie Corns
[EMAIL PROTECTED] (Nitin Chaumal) writes: >I sarched the existing threads but didnt find an answer to this. >I am writing simple script which uses telentlib to open a session with >a unix machine and run "tail -f logfile.txt" on one of the logfiles. >import telnetlib >HOST = "192.X.X.X" >user =

Re: How do you control _all_ items added to a list?

2005-02-28 Thread Xif
Quoting Fuzzyman: "If you subclass list then you will need to override all methods that can set items." Overiding all those methods is too much of an effort. I don't really need them. I'll just have an object that uses a list internally, and define only the two methods I really need: extend() a

Chinese curses, again (was Re: Why do descriptors (and thus properties) only work on attributes.)

2005-02-28 Thread Aahz
In article <[EMAIL PROTECTED]>, Daniel Dittmar <[EMAIL PROTECTED]> wrote: > >As in the chinese curse "May you live in interisting times"? Not so Chinese: http://www.noblenet.org/reference/inter.htm -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "The joy of coding

Re: TKinter

2005-02-28 Thread Ruben Baumann
"anthonyberet" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So, is it pronounced 'Tee-Kinter', or 'Tee-Kay-Inter'? > I don't want to appear as a dork down the pub. How about Tic-Inter. :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Text To Speech with pyTTS

2005-02-28 Thread Steve Holden
Mike P. wrote: Hi, I was wondering if anyone has had any luck with the python text to speech (pyTTS) module available on Sourceforge: http://sourceforge.net/projects/uncassist I have followed the tutorial for pyTTS at: http://www.cs.unc.edu/~parente/tech/tr02.shtml Using the first simple speech exa

Re: TKinter

2005-02-28 Thread Steve Holden
anthonyberet wrote: So, is it pronounced 'Tee-Kinter', or 'Tee-Kay-Inter'? I don't want to appear as a dork down the pub. If anyone down your pub knows enough about Python to understand what TKinter is I very much doubt they'll be rude enough to call you a dork for displaying your ignorance. tha

String Replace Problem...

2005-02-28 Thread andrea . gavana
Hello NG, probably this is a basic question, but I'm going crazy... I am unable to find an answer. Suppose that I have a file (that I called "Errors.txt") which contains these lines: MULTIPLY 'PERMX' @PERMX1 1 34 1 20 1 6 / 'PERMX' @PERMX2 1 34 21 41 1 6 / 'PERMX' @P

HELP: Python equivalent of UNIX command "touch"

2005-02-28 Thread pekka niiranen
Does anybody know Python recipe for changing the date of the directory or files in W2K to current date and time? In UNIX shell command "touch" does it. -pekka- -- http://mail.python.org/mailman/listinfo/python-list

How to delete a module file

2005-02-28 Thread Olivier Ravard
Hi everybody, My application enables the developpment of new C++ modules that are dynamically loaded in this application. My problem is that (under Windows) I can't delete a module that have been already imported. I must exiting the application (which is not a good idea for a developpment en

My C module crashes

2005-02-28 Thread Egil Moeller
Hi! I've written a C-module for Python, and it works as intended, but obviously does something wrong with its memmory management (refference counting), as it causes Python to segfault now and then (randomly, whey :S) The module source code is available at http://grimoire.takeit.se/files/CReader.c

Re: wxGrid

2005-02-28 Thread Paul McNett
Gensek wrote: I have a grid. I want to sort it when a column label is clicked. I know about the EVT_GRID_LABEL_LEFT_DCLICK event, but that is not enough. I do not merely need to know that a label was clicked. I need to know which label was clicked. I do not know how to do that. I suspect you might

Re: HELP: Python equivalent of UNIX command "touch"

2005-02-28 Thread Roy Smith
pekka niiranen <[EMAIL PROTECTED]> wrote: >Does anybody know Python recipe for changing the date >of the directory or files in W2K to current date and time? >In UNIX shell command "touch" does it. You want os.utime() -- http://mail.python.org/mailman/listinfo/python-list

Re: String Replace Problem...

2005-02-28 Thread Peter Hansen
[EMAIL PROTECTED] wrote: 'PERMX' @PERMX1 1 34 1 20 1 6 / ... 'PERMX' @PERMX10 1 34 21 41 29 34/ ... I would like to replace all the occurrencies of the "keywords" (beginning with the @ (AT) symbol) with some floating point value. As an example, this is what I do: # Find All Keyw

String Replace Problem

2005-02-28 Thread andrea . gavana
Hello Peter And NG, thank you a lot... now I'm blaming myself, how couldn't I see it? I will probably go for the re.sub (if it is not too complicated, I'm not a Python expert and even less expert of RegEx things), if not I'll try your suggestion of sorting the strings by length. Thanks a lo

Re: Chinese curses, again (was Re: Why do descriptors (and thus properties) only work on attributes.)

2005-02-28 Thread Michele Simionato
Aahz: > Not so Chinese: > http://www.noblenet.org/reference/inter.htm That page is incredible! Me too I have a gut feeling that the citation is from the XX century and from some Western country (even if till now I had not questioned its attribution). I wish I could say more about its origin ...

Re: Python - what is the fastest database ?

2005-02-28 Thread pyguy2
It depends on what you mean by database. If you want really fast I/O, try pytables. "PyTables is a hierarchical database package designed to efficiently manage very large amounts of data." http://pytables.sourceforge.net/html/WelcomePage.html some more comments from the webpage: # High perform

bsddb for k, v in db.items(): do order the numbers ?

2005-02-28 Thread martijn
WHen I use the code below and printing all the results i get this: -- 0 1 10 11 2 3 4 5 6 7 8 9 -- But I want -- 0 1 2 3 4 5 6 7 8 9 10 11 -- Thanks for helping import bsddb def addRow(key,val): db[key] = key print key, db = bsddb.btopen('test3.db','n') #maar 3 kolomen

Share your SciTEGlobal.properties pls~~~~

2005-02-28 Thread DENG
hi, im new to Python, i chose SciTE as my Python editor. but the problem is SciTE needs to be config carefully, are there anyone use SciTE too? can you share your SciTEGlobal.properties file? black background solution is prefered:) thanks in advance best regards -- http://mail.python.org/mailma

Share your SciTEGlobal.properties pls~~~~

2005-02-28 Thread DENG
hi, im new to Python, i chose SciTE as my Python editor. but the problem is SciTE needs to be config carefully, are there anyone use SciTE too? can you share your SciTEGlobal.properties file? black background solution is prefered:) thanks in advance best regards -- http://mail.python.org/mailma

Re: String Replace Problem...

2005-02-28 Thread wes weston
[EMAIL PROTECTED] wrote: Hello NG, probably this is a basic question, but I'm going crazy... I am unable to find an answer. Suppose that I have a file (that I called "Errors.txt") which contains these lines: MULTIPLY 'PERMX' @PERMX1 1 34 1 20 1 6 / 'PERMX' @PERMX2 1 34 21 41

Re: My C module crashes

2005-02-28 Thread Daniel Dittmar
Egil Moeller wrote: I've written a C-module for Python, and it works as intended, but obviously does something wrong with its memmory management (refference counting), as it causes Python to segfault now and then (randomly, whey :S) You can atry to use the Python function sys.getrefcount. Print the

NEED MONEY FOR FAMILY MATTERS

2005-02-28 Thread mike
HI I WAS A MARINE MECHANIC working boat engines for 20 years and now I have started making money for the rest of my life after i got into my own business but I wish I had started many years ago, check it out for yourself you'll be HAPPY you did. This site changed my life and my families and it will

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-02-28 Thread Christopher De Vries
On Mon, Feb 28, 2005 at 08:30:59AM -0800, [EMAIL PROTECTED] wrote: > WHen I use the code below and printing all the results i get this: > -- > 0 1 10 > 11 2 3 > 4 5 6 > 7 8 9 > -- > But I want > -- > 0 1 2 > 3 4 5 > 6 7 8 > 9 10 11 > -- If you want your key, value pairs in a certai

Re: Minor, but annoying legend problem in matplotlib

2005-02-28 Thread John Hunter
> "Jorl" == Jorl Shefner <[EMAIL PROTECTED]> writes: Jorl>The obvious solution is to plot the lines and symbols in Jorl> two different commands: ___ You want to explicitly pass the lines you want to legend into the legend command, as in Symb=

Re: Newbie question -- fiddling with pictures.

2005-02-28 Thread Scott David Daniels
Ryan White wrote: > Subject: Newbie question Not a very good subject -- many people will not even look at it unless you describe what your question is about. I'm wanting to use python to display some jpeg images, maybe present them at a percentage of their actual size etc. How do I display an image

[ANN] PyAC 0.1.0

2005-02-28 Thread Premshree Pillai
PyAC 0.1.0 (http://sourceforge.net/projects/pyac/) * ignores non-image files * optional arg is_ppt for ordering presentation images (eg., Powerpoint files exported as images) * misc fixes Package here: http://sourceforge.net/project/showfiles.php?group_id=106998&package_id=115396&release_id=309

Newbie question: Uninstalling Python Package Manager packages

2005-02-28 Thread Jeffrey A. Zelt
I am new to python, but am very enthusiastic about the language and hope to start using it for serious work soon (after I am more comfortable with all the details). I have installed a package via the Python Package Manager program on Mac OS X 10.3 (http://www.python.org/packman/). My question

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-02-28 Thread Steve Holden
Christopher De Vries wrote: On Mon, Feb 28, 2005 at 08:30:59AM -0800, [EMAIL PROTECTED] wrote: WHen I use the code below and printing all the results i get this: -- 0 1 10 11 2 3 4 5 6 7 8 9 -- But I want -- 0 1 2 3 4 5 6 7 8 9 10 11 -- If you want your key, value pairs in a certai

naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread beliavsky
Since Python does not have declarations, I wonder if people think it is good to name function arguments according to the type of data structure expected, with names like "xlist" or "xdict". -- http://mail.python.org/mailman/listinfo/python-list

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Skip Montanaro
beliavsky> Since Python does not have declarations, I wonder if people beliavsky> think it is good to name function arguments according to the beliavsky> type of data structure expected, with names like "xlist" or beliavsky> "xdict". In general, no. I think variable names should

Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-02-28 Thread Dean N. Williams
Hi Jason, I have a other Cygwin port question. It turns out that the auto-import for XtStrings an widgetClass didn't get resolved. This a similar auto-import resolving error that I got when trying to build Tcl/Tk. I ended up using the shared Tcl/Tk that came with Cygwin. But in this case I

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Steven Bethard
[EMAIL PROTECTED] wrote: Since Python does not have declarations, I wonder if people think it is good to name function arguments according to the type of data structure expected, with names like "xlist" or "xdict". In general, I find that naming collections for their contents is much more useful t

Re: Python - what is the fastest database ?

2005-02-28 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> How is it possible that google (super big database) is super fast? > What type database do they use / software ? On the hardware side, Google's secret is massively parallel cluster computing, coupled with proprietary software for sp

Re: best XSLT processor?

2005-02-28 Thread Paul Boddie
fanbanlo <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Which XSLT processor is the most reliable? > > requirement: > + must support Python 2.4 > + must run w/ Windows (and Linux) > + not super slow I've had success with libxslt [1] (and libxml2 [2]) on Linux with Python 2.3.x

module/import question

2005-02-28 Thread subopt
I'm trying to import Logilab's constraint module like this: from logilab.constraint import * from within a Python interactive session. The module is not installed correctly on our system, and it won't be, so i adjusted my PYTHONPATH, added an empty __init__.py file, then started up an interac

Pythonwin: Red squiggley underline and syntax error

2005-02-28 Thread Brent W. Hughes
I copied and pasted some text into my Python code and then Pythowin put a red squiggley underline under the two tabs at the beginning of the line. What does that mean? I've tried various things including deleting the white space in front of the line and reinserting the tabs. I've also tried r

Re: Newbie question

2005-02-28 Thread Terry Reedy
For future reference, an informative subject line like > How do I display an image in Python? is more likely to grab the attention of someone with the information sought. tjr -- http://mail.python.org/mailman/listinfo/python-list

Re: Explicit or general importing of namespaces?

2005-02-28 Thread Paul Rubin
Peter Hansen <[EMAIL PROTECTED]> writes: > Ultimately more important than mere "pollution" are the > latent problems this can cause if any of the names in > the original module can ever be re-bound. You know, this is another reason the compiler really ought to (at least optionally) check for such

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Jack Diederich
On Mon, Feb 28, 2005 at 11:32:22AM -0700, Steven Bethard wrote: > [EMAIL PROTECTED] wrote: > >Since Python does not have declarations, I wonder if people think it is > >good to name function arguments according to the type of data structure > >expected, with names like "xlist" or "xdict". > > In g

Re: Pythonwin: Red squiggley underline and syntax error

2005-02-28 Thread Steven Bethard
Brent W. Hughes wrote: I copied and pasted some text into my Python code and then Pythowin put a red squiggley underline under the two tabs at the beginning of the line. What does that mean? I've tried various things including deleting the white space in front of the line and reinserting the ta

cannot open file in write mode, no such file or directory

2005-02-28 Thread haynesc
Hi, I'm having a problem where when trying to open a file in write mode, I get an IOError stating no such file or directory. I'm calling an external program which takes an input file and produces an output file repeatedly, simulating the input file separately for each replicate. The error occurs

Re: String Replace Problem...

2005-02-28 Thread Sean McIlroy
I can't claim to have studied your problem in detail, but I get reasonable results from the following: filename = 'Errors.txt' S = open(filename,'r').read().split() f = lambda x: (x[0]=='@' and x[6:] + '.0') or (x=='/' and x + '\n') or x open(filename,'w').write(' '.join(map(f,S))) HTH -

Re: cannot open file in write mode, no such file or directory

2005-02-28 Thread Kartic
> I'm having a problem where when trying to open a file in write mode, I > get an IOError stating no such file or directory. I'm calling an > external program which takes an input file and produces an output file > repeatedly, simulating the input file separately for each replicate. > The error oc

Re: cannot open file in write mode, no such file or directory

2005-02-28 Thread Steve Holden
Kartic wrote: I'm having a problem where when trying to open a file in write mode, I get an IOError stating no such file or directory. I'm calling an external program which takes an input file and produces an output file repeatedly, simulating the input file separately for each replicate. The erro

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Benji York
Jack Diederich wrote: Ditto for me, plural implies list and singular implies instance, for (contact) in contacts: # do something with contact May I ask why you place the parenthesis in the for statement? -- Benji -- http://mail.python.org/mailman/listinfo/python-list

Re: cannot open file in write mode, no such file or directory

2005-02-28 Thread haynesc
Kartic wrote: > > I'm having a problem where when trying to open a file in write mode, > I > > get an IOError stating no such file or directory. I'm calling an > > external program which takes an input file and produces an output > file > > repeatedly, simulating the input file separately for each

canvassing for assistance

2005-02-28 Thread Sean McIlroy
Hi all! I've written a utility for making diagrams. It could also be a good environment for experimenting with a Tk canvas, so I'm including the code here (see below). The problem is that, when I save a canvas and include the resulting postscript file in a LaTeX document, I often find that the rig

Re: Controlling Pc From Server?

2005-02-28 Thread Larry Bates
What you are asking IS much more difficult that just "timing". The Internet is a disconnected stateless medium. I can open a browser to a site and just leave my browser open. Am I viewing that site or not? There's no way to know. I might have minimized the browser window and am back doing produ

Decimal, __radd__, and custom numeric types...

2005-02-28 Thread Blake T. Garretson
I'm having some issues with decimal.Decimal objects playing nice with custom data types. I have my own matrix and rational classes which implement __add__ and __radd__. They know what to do with Decimal objects and react appropriately. The problem is that they only work with Decimals if the cust

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Jack Diederich
On Mon, Feb 28, 2005 at 04:02:37PM -0500, Benji York wrote: > Jack Diederich wrote: > >Ditto for me, plural implies list and singular implies instance, > >for (contact) in contacts: > > # do something with contact > > May I ask why you place the parenthesis in the for statement? I like the tup

Re: My C module crashes

2005-02-28 Thread John Machin
Egil Moeller wrote: > Hi! > > I've written a C-module for Python, and it works as intended, but > obviously does something wrong with its memmory management (refference > counting), as it causes Python to segfault now and then (randomly, > whey :S) > > The module source code is available at > http

Re: cannot open file in write mode, no such file or directory

2005-02-28 Thread Kartic
Could you please post your entire program, if possible? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Working with dbase files

2005-02-28 Thread Larry Bates
On MS Windows use built in ODBC support to xBase files which supports read and write access. Larry Bates Stan Cook wrote: > Does anyone know how I can access and read data from a dbase (.dbf) file? > > Regards, > > Stan -- http://mail.python.org/mailman/listinfo/python-list

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Just
In article <[EMAIL PROTECTED]>, Jack Diederich <[EMAIL PROTECTED]> wrote: > On Mon, Feb 28, 2005 at 04:02:37PM -0500, Benji York wrote: > > Jack Diederich wrote: > > >Ditto for me, plural implies list and singular implies instance, > > >for (contact) in contacts: > > > # do something with cont

Re: accessor/mutator functions

2005-02-28 Thread Dan Sommers
On 28 Feb 2005 10:30:03 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Actually I would say just access the attribute directly for both get > and set, until it needs to do something special in which case use > property(). > The reason why people fill their code up with boiler plate get/set > m

  1   2   >