SOS Win - How to save metafile as Bitmap ?

2005-02-07 Thread [EMAIL PROTECTED]
Hi ! My problem is that: I have a program that copy pictures from Notes NSF file. The format is METAFILE or METAFILEPICT. I can save these pictures with this code: import win32api import win32con import win32gui ... mode=0 if mode==0: import win32clipboard, win32con win32clipboard.OpenClipboard

Re: def __init__ question in a class definition

2005-02-07 Thread Duncan Booth
Miki Tebeka wrote: >> IE: is there any special significance to the __ in this case. > http://docs.python.org/tut/tut.html specifically section 9.6 Also Python Reference Manual, section 2.3.2 Reserved classes of identifiers -- http://mail.python.org/mailman/listinfo/python-list

Re: After 40 years ... Knuth vol 4 is to be published!!

2005-02-07 Thread Francis Girard
I think that Led Zeppelin, Pink Floyd and the Beatles (this time with John Lennon back from the cemetry) also made a come back. Addison-Wesley decided to preprint a photo of the messiah (just for us!) Yippee! Francis Girard Le samedi 5 FÃvrier 2005 13:39, Laura Creighton a ÃcritÂ: > "More than

email extraction program

2005-02-07 Thread Paul Terry
Good day, Can you help me create an ebay email extraction program ? I have some ebay scripts which worked and extracted emails from ebay.com but these days don't work. Regards. Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'-- http://mail.python.org/mailman/listinfo/python-list

Re: remove duplicates from list *preserving order*

2005-02-07 Thread Alex Martelli
Steven Bethard <[EMAIL PROTECTED]> wrote: ... > I have a list[1] of objects from which I need to remove duplicates. I > have to maintain the list order though, so solutions like set(lst), etc. > will not work for me. What are my options? So far, I can see: I think the recipe by that subject

Re: Memory Allocation?

2005-02-07 Thread Gerrit Holl
Chris S. wrote: > Is it possible to determine how much memory is allocated by an arbitrary > Python object? There doesn't seem to be anything in the docs about this, > but considering that Python manages memory allocation, why would such a > module be more difficult to design than say, the GC?

Re: Dumb glob question

2005-02-07 Thread [EMAIL PROTECTED]
code like below willprint all files ending on 'par2', except tose not containong 'vol' from the 5th position. is that what you need? -import glob -for nuke in glob.glob(r"""c:\temp\*.par2"""): -try: -nuke.index('vol', 5) -print nuke -except ValueError, e: -print e -

Re: declarations summary

2005-02-07 Thread Alex Martelli
Michael Tobis <[EMAIL PROTECTED]> wrote: ... > .x = 1 > .def foo(): > . if False: > . global x > . x = 2 > .foo() > .print x > > prints "1" Wrong: >>> x = 1 >>> def foo(): ... if False: ... global x ... x = 2 ... >>> foo() >>> print x 2 And indeed, that IS the problem. > P

Re: Python-list Digest, Vol 17, Issue 132

2005-02-07 Thread Dave Beech
- Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, February 07, 2005 4:01 PM Subject: Python-list Digest, Vol 17, Issue 132 > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.p

Get importer module from imported module

2005-02-07 Thread dody suria wijaya
I found this problem when trying to split a module into two. Here's an example: == #Module a (a.py): from b import * class Main: pass == == #Module b (b.py) def How(): Main_instance = module_a.Main() return Main_instance == > import a > a.

Re: WYSIWYG wxPython "IDE"....?

2005-02-07 Thread Uwe Grauer
Simon John wrote: Tim Hoffman wrote: Have you tried Boa Constructor ? http://boa-constructor.sourceforge.net/ Yeah, I was never very impressed with it either. The current version doesn't seem to work with wxPython 2.5.3.1 though I guess there isn't a GUI builder that does what I want, back to

Re: Confused with methods

2005-02-07 Thread jfj
Alex Martelli wrote: jfj <[EMAIL PROTECTED]> wrote: Then, without looking at the previous code, one can say that "x" is a function which takes one argument. One can say whatever one wishes, but saying it does not make it true. One can say that x is a green frog, but that's false: x is a boundmetho

Re: Get importer module from imported module

2005-02-07 Thread Duncan Booth
dody suria wijaya wrote: > > I found this problem when trying to split a module into two. > Here's an example: > >== > #Module a (a.py): > from b import * > class Main: pass >== > >== > #Module b (b.py) > def How(): > Main_instance = module_a.Main() >

Tar module issue

2005-02-07 Thread chaica
Hi, [EMAIL PROTECTED] chaica $ python Python 2.4 (#1, Jan 10 2005, 22:28:10) [GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)] on linux2 I'm using tarfile module to create an archive. For my example I'm using Amsn file and directory tree. My variables are like these ones: path = /hom

MDaemon Warning - virus found: Returned mail: Data format error

2005-02-07 Thread pgarcia
*** WARNING ** Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo. AttachmentVirus name Action taken ---

Re[2]: Get importer module from imported module

2005-02-07 Thread dody suria wijaya
Thank you for such a quick reply. There were some details I had left behind related to my case that I guess would now need to be told to better illustrate the problem. I have many different module of "a", let's called it a1, a2 ... a100, and there is only one module "b". Here's a better example (a

Re: Confused with methods

2005-02-07 Thread Alex Martelli
On 2005 Feb 07, at 22:15, jfj wrote: Alex Martelli wrote: jfj <[EMAIL PROTECTED]> wrote: Then, without looking at the previous code, one can say that "x" is a function which takes one argument. One can say whatever one wishes, but saying it does not make it true. One can say that x is a green frog,

Re: Confused with methods

2005-02-07 Thread Diez B. Roggisch
> HOWEVER, what I ask is WHY don't we set the tp_descr_get of > the boundmethod object to be the same as the func_descr_get??? > Or WHY do they *have* to differ in this specific part? > > I quickly looked at the source of python and it seems that a > one-liner would be enough to enable this. So it

Is email package thread safe?

2005-02-07 Thread Roman Suzi
Hi! Just to be sure, is email package of Python 2.3 thread-safe or not (to use, for example, in python-milter?) Sincerely yours, Roman A.Souzi -- http://mail.python.org/mailman/listinfo/python-list

Re: Re[2]: Get importer module from imported module

2005-02-07 Thread Duncan Booth
dody suria wijaya wrote: > "import a" inside b would not solve the problem, since there > are many "module a" and module b does not know beforehand > which module had imported it. Ok, I understand now what you are trying to achieve, but there isn't any concept relating a module back to the first

Re: declarations summary

2005-02-07 Thread beliavsky
Alex Martelli wrote: > > socks off yet again, but I can't see counting on it. So the successor > > to Fortran (presuming it isn't C++, which I do presume) may be > > influenced by Python, but probably it won't be Python. > > You appear to assume that Fortran is dead, or dying, or is gonna die > so

Re: empty classes as c structs?

2005-02-07 Thread Nick Coghlan
Steven Bethard wrote: It was because these seem like two separate cases that I wanted two different functions for them (__init__ and, say, dictview)... The other issue is that a namespace *is* a mutable object, so the default behaviour should be to make a copy (yeah, I know, I'm contradicting mys

Re: Confused with methods

2005-02-07 Thread Antoon Pardon
Op 2005-02-06, Alex Martelli schreef <[EMAIL PROTECTED]>: > >> Isn't that inconsistent? > > That Python has many callable types, not all of which are descriptors? > I don't see any inconsistency there. Sure, a more generalized currying > (argument-prebinding) capability would be more powerful, b

Re: variable declaration

2005-02-07 Thread Nick Coghlan
Roy Smith wrote: I'm not sure what that last sentence is supposed to mean, but I have visions (nightmares?) of someday having ANSI, ISO, IEEE, or some other such organization notice that something useful exists which they haven't yet standardized/broken and decide to form a committee to do it. S

Re: "Collapsing" a list into a list of changes

2005-02-07 Thread Adam Przybyla
Alan McIntyre <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a list of items that has contiguous repetitions of values, but > the number and location of the repetitions is not important, so I just > need to strip them out. For example, if my original list is > [0,0,1,1,1,2,2,3,3,3,2,2,2,4,4,4

Re: Multiple constructors

2005-02-07 Thread Nick Coghlan
Caleb Hattingh wrote: Though Alex indicated differently earlier, I intend to always use an "if" statment inside one constructor to initialise any class in the situation where the arguments may be different in number and type. I don't have the years of experience that Alex has, however, so I

Re: Tar module issue

2005-02-07 Thread Russell Bungay
Hello, I'm using tarfile module to create an archive. For my example I'm using Amsn file and directory tree. My variables are like these ones: path = /home/chaica/downloads/amsn-0_94/skins/Tux/smileys/shades.gif fileName = amsn-0_94/skins/Tux/smileys/shades.gif tar.add( path, fileName ) and while

Re: WYSIWYG wxPython "IDE"....?

2005-02-07 Thread Luke Skywalker
On Mon, 07 Feb 2005 11:54:08 +0100, Uwe Grauer <[EMAIL PROTECTED]> wrote: >Most People don't realize, that they have to use the cvs-version >instead. It's rather that most people prefer to use the latest stable version, since stuff under CVS is still under development. Does someone know why the Bo

Daemon module

2005-02-07 Thread paul
Hi, I find myself writing quite a few daemons in Python and have finally gotten round to abstracting out a lot of the common code. You can find my first attempt at a generic daemon module at: http://www.westpoint.ltd.uk/dist/daemon.py It's not perfect, but it does work reliably for my purposes

Re: variable declaration

2005-02-07 Thread Antoon Pardon
Op 2005-02-05, Nick Coghlan schreef <[EMAIL PROTECTED]>: > [ ... ] > > With a rebinding operator, the intent of the last line can be made explicit: > > def collapse(iterable): > it = iter(iterable) > lastitem = it.next() > yield lastitem > for item in it: > if item !=

Re: declarations summary

2005-02-07 Thread Nick Coghlan
Michael Tobis wrote: Also there's the question of typo-driven bugs, where an attempted rebinding of "epsilon" instead cerated a reference called "epselon". (The epselon bug) This is the bane of fortran, and after generations it was generally agreed that optionally one could require all references t

Re: def __init__ question in a class definition

2005-02-07 Thread Steve Holden
M.E.Farmer wrote: Jeffrey Borkent Systems Specialist Information Technology Services With that kind of credentials, and the fact that you claim you are a system specialists I don't know you have me worried already. I guess for you I just say RTFM. If you think that is harsh then don't ask a 2n

Re: Daemon module

2005-02-07 Thread Diez B. Roggisch
Did you see the daemonize recipe in the cookbook? Don't forget to checkout the comments section. -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list

Re: Unable to run IDLE Under Windows

2005-02-07 Thread Jonathan Polley
In article <[EMAIL PROTECTED]>, Marian Aldenhövel <[EMAIL PROTECTED]> wrote: > Hi, > > > Any ideas as to what might me wrong? > > > TclError: unknown color name "white " > > There is a space after "white" in this error-message. If this string comes > from some per-user configuration that may w

Re: variable declaration

2005-02-07 Thread Antoon Pardon
Op 2005-02-05, Roy Smith schreef <[EMAIL PROTECTED]>: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Alexander > Zatvornitskiy) wrote: > >> And, one more question: do you think code like this: >> >> var S=0 >> var eps >> >> for eps in xrange(10): >> S=S+ups >> >> is very bad? Please

Re: variable declaration

2005-02-07 Thread Nick Coghlan
Antoon Pardon wrote: Op 2005-02-05, Nick Coghlan schreef <[EMAIL PROTECTED]>: [ ... ] With a rebinding operator, the intent of the last line can be made explicit: def collapse(iterable): it = iter(iterable) lastitem = it.next() yield lastitem for item in it: if item != last

Re: CGI POST problem was: How to read POSTed data

2005-02-07 Thread Dan Perl
"M.E.Farmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sweet! > Glad you fixed it, and documented it all! > Thanks for the followups. > Now the next poor soul to stumble in can get the right fix. > Never know when it could be me ;) Thanks for the comments. I did indeed post

Re: declarations summary

2005-02-07 Thread Arthur
On 6 Feb 2005 20:34:22 -0800, "Michael Tobis" <[EMAIL PROTECTED]> wrote: > >General usage has "declaration" meaning "statement which does not >generate executable bytecode but merely affects the compiler". My >assertion that decorator syntax is "declarative" is therefore formally >false. I'm not

Re: variable declaration

2005-02-07 Thread Antoon Pardon
Op 2005-02-07, Nick Coghlan schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Op 2005-02-05, Nick Coghlan schreef <[EMAIL PROTECTED]>: >> >> >>>[ ... ] >>> >>>With a rebinding operator, the intent of the last line can be made explicit: >>> >>>def collapse(iterable): >>> it = iter(iterabl

PySol: using Qt (as a case study)

2005-02-07 Thread qwweeeit
PySol uses TKinter as GUI system. Wanting to learn python I am studying PySol, but having choosed Qt as my GUI, I am asking if someone can comment on my choice both on pysol as as an application worth to study (I want to implement a card game) and mainly on Qt choice. Perhaps it would be better i

Re: Confused with methods

2005-02-07 Thread jfj
Hello Diez. I sent a reply to the previous message requesting an example of what would break, but unfortunatelly it didn't make it in python-list. Here it is for the record [ Diez B. Roggisch wrote: If things worked as you wanted it to, that would mean that passing bound method as argument to a cla

Re: Unable to run IDLE Under Windows

2005-02-07 Thread Peter Otten
Jonathan Polley wrote: > I have one account on a WindowsXP machine that refuses to run IDLE (or > any other python script that uses Tk). Other people can login to that > PC and IDLE runs just fine, so it is not an installation issue. When > the person who has the problem logs into another PC the

Re: Confused with methods

2005-02-07 Thread Alex Martelli
Diez B. Roggisch <[EMAIL PROTECTED]> wrote: ... > > If there a good reason that the __get__ of a boundmethod does not > > create a new boundmethod wrapper over the first boundmethod? > > I already gave you the good reason: Hmmm, not sure the code below is ``a good reason'' to avoid changing th

Re: Confused with methods

2005-02-07 Thread Alex Martelli
Antoon Pardon <[EMAIL PROTECTED]> wrote: > Op 2005-02-06, Alex Martelli schreef <[EMAIL PROTECTED]>: > > > >> Isn't that inconsistent? > > > > That Python has many callable types, not all of which are descriptors? > > I don't see any inconsistency there. Sure, a more generalized currying > > (a

Re: executing VBScript from Python and vice versa

2005-02-07 Thread Valentina Boycheva
Thanks to Michel Claveau and Paul Paterson for providing examples on how to use ScriptControl to embed VBScript in Python script. I've only tried this once before on another occasion and it was fascinating to see how a function generates another function! Valentina -- http://mail.python.org/mai

Re: WYSIWYG wxPython "IDE"....?

2005-02-07 Thread Jussi Jumppanen
Luke Skywalker wrote: > To me, the very fact that the only solution if you don't want > to carry a multi-megabyte widget set with you (either wxWidgets > or QT is to go the MFC way (which a lot of C developers seem > to hate) through Have you ever tried to use MFC in anything other than a sim

AsciiDoc 6.0.0

2005-02-07 Thread Donnal Walter
Stuart Rackham wrote: AsciiDoc AsciiDoc is an uncomplicated text document format for writing short documents, articles, books and UNIX man pages. AsciiDoc files can be translated to HTML (with or without stylesheets), DocBook (articles, books and refentry documents) and LinuxDoc using the

Re: Confused with methods

2005-02-07 Thread John Lenton
On Mon, Feb 07, 2005 at 03:24:11PM +0100, Alex Martelli wrote: > def always produces a > function object and binds it to the name coming after keyword 'def'. > Any such function object, no matter how produced and how bound hither > and thither, always

Re: Confused with methods

2005-02-07 Thread Antoon Pardon
Op 2005-02-07, Alex Martelli schreef <[EMAIL PROTECTED]>: > Antoon Pardon <[EMAIL PROTECTED]> wrote: > >> Op 2005-02-06, Alex Martelli schreef <[EMAIL PROTECTED]>: >> > >> >> Isn't that inconsistent? >> > >> > That Python has many callable types, not all of which are descriptors? >> > I don't see

xmlentities

2005-02-07 Thread Ola Natvig
Hi all Does anyone know a good library for transfering non standard characters to enity characters in html. I want characters like < and > to be transformed to < and >. And the norwegian ø to ø ola -- -- Ola Natvig <[EMAIL PROTECTED]> infoSense AS / developm

ANN: Zeus Programmers Editor V3.94

2005-02-07 Thread Jussi Jumppanen
The latest release of the Zeus for Windows programmer's editor is now available. This latest version comes with code folding for the C#, C/C++, D, Fortran, Lua, Python, Perl, Java, Java Script and Visual Basic languages. For more details vist: http://www.zeusedit.com/features.html or to test

Re: Confused with methods

2005-02-07 Thread John Lenton
On Mon, Feb 07, 2005 at 02:53:49PM +, Antoon Pardon wrote: > The fact that a function in a class performs a lot of magic if > it is called through an instance, that isn't performed otherwise, > makes python inconsistent here. You may like the arrangement > (and it isn't such a big deal IMO) but

Re: declarations summary

2005-02-07 Thread Arthur
On Mon, 07 Feb 2005 08:52:40 -0500, Arthur <[EMAIL PROTECTED]> wrote: > I happen to think Guido's choice was a good and >courageous one. which given my perceived track record (in some quarters), is probably not a very good sign. Or else by agreeing with Guido sometimes, I get to be right sometime

Re: Confused with methods

2005-02-07 Thread Antoon Pardon
Op 2005-02-07, John Lenton schreef <[EMAIL PROTECTED]>: > > > --cvVnyQ+4j833TQvp > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Mon, Feb 07, 2005 at 02:53:49PM +, Antoon Pardon wrote: >> The fact that a function in

Re: WYSIWYG wxPython "IDE"....?

2005-02-07 Thread Luke Skywalker
On Tue, 08 Feb 2005 01:25:06 +1100, Jussi Jumppanen <[EMAIL PROTECTED]> wrote: >> To me, the very fact that the only solution if you don't want >> to carry a multi-megabyte widget set with you (either wxWidgets >> or QT is to go the MFC way (which a lot of C developers seem >> to hate) through >

Re: Confused with methods

2005-02-07 Thread Alex Martelli
Antoon Pardon <[EMAIL PROTECTED]> wrote: > Yes it is inconsistent with the rest of python. That you found > a subset in which it is consistent doesn't change that. > > And what if you do: > > c = C() > c.f = g > > > The fact that a function in a class performs a lot of magic if > it is cal

Re: [EVALUATION] - E01: The Java Failure - May Python Helps?

2005-02-07 Thread Martijn Faassen
Alex Martelli wrote: Fredrik Lundh <[EMAIL PROTECTED]> wrote: Markus Wankus wrote: Google his name - he has been banned from Netbeans and Eclipse (and Hibernate, and others...) for good reason. Can you imagine how much of a Troll you need to be to *actually* get "banned" from the newsgroups of o

Making dynamic data available via ODBC with Python

2005-02-07 Thread Erwin S. Andreasen
I have a Python application server that manages several different data sets, permits various reports to be run on them and the data to be downloaded as tab-delimetered files, all via a web interface. I'd like to explore the possibilities of making the data directly available in Windows applicatio

Re: xmlentities

2005-02-07 Thread Duncan Booth
Ola Natvig wrote: > Does anyone know a good library for transfering non standard characters > to enity characters in html. I want characters like < and > to be > transformed to < and >. And the norwegian ø to ø > You could use cgi.escape to handle &, <, and > and then use error handling on un

Re: Confused with methods

2005-02-07 Thread Alex Martelli
John Lenton <[EMAIL PROTECTED]> wrote: > I think __new__ being an > exception to this is a (minor) wart, in fact it feels like premature > optimization (how many __new__s do you write, that you can't stick a > @staticmethod in front of them? I personally think it's quite reasonable for Python's i

Re: Confused with methods

2005-02-07 Thread jfj
Alex Martelli wrote: > I think the problem is that you know python so well that you are used to the way things are and everything seems natural the way it is. For a newbie, the behaviour I mentioned seems indeed a bit inconsistent. "Inconsistent" not as in mathematics but as in "wow! I'd thought th

Re: Questions about mathematical signs...

2005-02-07 Thread Russell Blau
"Dan Bishop" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jeff Epler wrote: > > On Sun, Feb 06, 2005 at 12:26:30PM -0800, administrata wrote: > > > Hi! I'm programming maths programs. > > > And I got some questions about mathematical signs. > ... > > > 2. Inputing fractions like (a

Python on WWW - beginners question: what to choose?

2005-02-07 Thread Almad
Hello, I'm currently starting with Python as a language for writing websites. I must say that I'm overwhelmed by the number of choices I have (mod_python with publisher, Vampire, mps, Spyce), cgi, fcgi, Webware, Zope, Plone, ...). Isn't there any article in style "this suite use this style of p

Re: declarations summary

2005-02-07 Thread Michael Tobis
Alex Martelli wrote: > Michael Tobis <[EMAIL PROTECTED]> wrote: >... > > .x = 1 > > .def foo(): > > . if False: > > . global x > > . x = 2 > > .foo() > > .print x > > > > prints "1" > > Wrong: > >>> foo() > >>> print x > 2 > > And indeed, that IS the problem. Right. That's what I me

Re: overwriting method in baseclass

2005-02-07 Thread bruno modulix
Harald Massa wrote: Hello! I am using a library (= code of so else) within Python. Somewhere in this library there is: (snip) now I want to change the common baa-method. so that (snip) Of course, I use a Python- and GPL-Licence compatible library, I can change the source of foo, and use my chan

Re: Making dynamic data available via ODBC with Python

2005-02-07 Thread Diez B. Roggisch
> > Is there some better way of doing this -- some way to provide tabular > data remotely to Windows machines, usable in Office programs, which > happens to already have some Python code written for it? Looking > around, there is at least one XML-to-ODBC bridge but encoding the > entire data file

time + timedelta

2005-02-07 Thread josh
datetime.time should support timedelta arithmetic, patch attached. Times greater than 24 hours should not raise an exception, but always wrap around. Any other behavior is too surprising. (People expect to be able to call you up at 11pm, and say "meet me in two hours" (if you're a night person)).

Re: xmlentities

2005-02-07 Thread Fredrik Lundh
Ola Natvig wrote: > Does anyone know a good library for transfering non standard characters to > enity characters in > html. I want characters like < and > to be transformed to < and >. And > the norwegian ø to > ø the third example on http://effbot.org/librarybook/htmlentitydefs.htm in

Re: time + timedelta

2005-02-07 Thread josh
sorry, patch really attached to this message. On Mon, Feb 07, 2005 at 11:24:20AM -0500, josh wrote: > datetime.time should support timedelta arithmetic, patch attached. > > Times greater than 24 hours should not raise an exception, but always > wrap around. Any other behavior is too surprising. (

Re: Tar module issue

2005-02-07 Thread chaica
Thx for your response. The fact is that I use tar.close() at the end of my code. This is really a random behaviour cause with an archive which has a short directory tree, I don't have this kind of beahavior and the archive works. thx On Mon, 2005-02-07 at 13:01 +, Russell Bungay wrote: > Hel

Re: SOS Win - How to save metafile as Bitmap ?

2005-02-07 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > My problem is that: I have a program that copy pictures from Notes NSF file. > The format is METAFILE or METAFILEPICT. > But I need to convert them to BMP files. > I have wxPython, and PIL, and win32api ext. here's one way to do it: http://www.effbot.org/downloa

Re: declarations summary

2005-02-07 Thread Fredrik Lundh
Alex Martelli wrote: > Used to be that C compilers didn't do register allocation with any skill > nor finesse, but did let you give a hint by using "register" as the > storage class of a variable. Smart programmers studied the generated > machine code on a few architectures of interest, placed "r

RE: Making dynamic data available via ODBC with Python

2005-02-07 Thread Robert Brewer
Erwin S. Andreasen wrote: > I have a Python application server that manages several different data > sets, permits various reports to be run on them and the data to be > downloaded as tab-delimetered files, all via a web interface. > > I'd like to explore the possibilities of making the data direc

Re: Python on WWW - beginners question: what to choose?

2005-02-07 Thread Dan Perl
"Almad" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I'm currently starting with Python as a language for writing websites. I > must say that I'm overwhelmed by the number of choices I have (mod_python > with publisher, Vampire, mps, Spyce), cgi, fcgi, Webware, Zope, >

Big development in the GUI realm

2005-02-07 Thread RM
For all you GUI developers, things just got a little more interesting. Trolltech will soon be offering the QT GUI toolkit for Windows under the GPL license. That means that PyQt may become a much more popular option in the near future. Unfortunately, some things available for the commercial custo

Re: declarations summary

2005-02-07 Thread Michael Tobis
Well, many scientists and engineers don't have the time, motivation or ability to master the intricacies of recent fortran vintages either. That's the problem. Very large codes written by teams of software engineers for well-delimited application spaces will continue to be written in some version

Re: empty classes as c structs?

2005-02-07 Thread Brian van den Broek
Alex Martelli said unto the world upon 2005-02-06 18:06: Brian van den Broek <[EMAIL PROTECTED]> wrote: ... (I'm just a hobbyist, so if this suggestion clashes with some well established use of 'Bag' in CS terminology, well, never mind.) Yep: a Bag is a more common and neater name for a "multi

Re: empty classes as c structs?

2005-02-07 Thread Steven Bethard
Nick Coghlan wrote: Finally, I've just used normal names for the functions. I think the issue of function shadowing is best handled by recommending that all of the functions be called using the class explicitly - this works just as well for instance methods as it does for class or static methods

socket question

2005-02-07 Thread Philippe C. Martin
Hi, I am following a few tutorial and this howto: * ... What happens in the web server is a bit more complex. First, the web server creates a "server socket". #create an INET, STREAMing socket serversocket = socket.sock

RESOLVED broke IDLE while defining a key-binding scheme

2005-02-07 Thread Brian van den Broek
Brian van den Broek said unto the world upon 2005-02-04 22:21: Hi all, IDLE refuses to launch, and I believe it is because I attempted to define a custom key-binding that it doesn't like. shortcuts, etc.) by clicking on it. Nothing. Ran idle.py instead > . The DOS-console this brings up displays

Re: Unable to run IDLE Under Windows

2005-02-07 Thread Brian van den Broek
Peter Otten said unto the world upon 2005-02-07 09:14: Jonathan Polley wrote: I have one account on a WindowsXP machine that refuses to run IDLE (or any other python script that uses Tk). Other people can login to that PC and IDLE runs just fine, so it is not an installation issue. When the pers

Re: string issue

2005-02-07 Thread Reinhold Birkenfeld
Alex Martelli wrote: > Bill Mill <[EMAIL PROTECTED]> wrote: >... >> > > You are modifying the list as you iterate over it. Instead, iterate over >> > > a copy by using: >> > > >> > > for ip in ips[:]: >... >> Once you know it, it's neat, and I use it sometimes. However, it's a >> little too

Re: socket question

2005-02-07 Thread Diez B. Roggisch
> A couple things to notice: we used socket.gethostname() so that the > socket would be visible to the outside world. If we had used s.bind(('', > 80)) or s.bind(('localhost', 80)) or s.bind(('127.0.0.1', 80)) we would > still have a "server" socket, but one that was only visible within the > same

Python Binary and Windows

2005-02-07 Thread peetm
Hi. I'd like to compile (?) the DiffLib Python code into a binary form that can be called by other Windows apps - like, I'd like to compile it into a DLL. Is this possible? Many thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Binary and Windows

2005-02-07 Thread Diez B. Roggisch
peetm wrote: > Hi. > > I'd like to compile (?) the DiffLib Python code into a binary form that > can be called by other Windows apps - like, I'd like to compile it into a > DLL. > > Is this possible? Not so easy. Better install WinDiff. If you really have to do it, elmer will be of use for you.

Re: Big development in the GUI realm

2005-02-07 Thread Michael Goettsche
On Monday 07 February 2005 17:52, RM wrote: > For all you GUI developers, things just got a little more interesting. > Trolltech will soon be offering the QT GUI toolkit for Windows under > the GPL license. That means that PyQt may become a much more popular > option in the near future. Unfortuna

Re: Confused with methods

2005-02-07 Thread Steven Bethard
jfj wrote: I think the problem is that you know python so well that you are used to the way things are and everything seems natural the way it is. For a newbie, the behaviour I mentioned seems indeed a bit inconsistent. "Inconsistent" not as in mathematics but as in "wow! I'd thought this should wo

Re: Memory Allocation?

2005-02-07 Thread Donn Cave
In article <[EMAIL PROTECTED]>, "Chris S." <[EMAIL PROTECTED]> wrote: > Is it possible to determine how much memory is allocated by an arbitrary > Python object? There doesn't seem to be anything in the docs about this, > but considering that Python manages memory allocation, why would such a

Re: socket question

2005-02-07 Thread Philippe C. Martin
Thanks you! that did it. PS: the 'wrong' info I got seems to be in the official howtos http://www.amk.ca/python/howto/sockets/ Regards, Philippe On Mon, 07 Feb 2005 18:23:28 +0100, Diez B. Roggisch wrote: >> A couple things to notice: we used socket.gethostname() so that the >> socket woul

Re: overwriting method in baseclass

2005-02-07 Thread Harald Massa
bruno modulix <[EMAIL PROTECTED]> wrote in > >> So, what is the most elegant solution to administer these changes? > > > Use a version control system (svn is quite fine...). > Thanks for that recommendation, I really do use subversion for some time. But how can I use it to solve this problem

Re: Python on WWW - beginners question: what to choose?

2005-02-07 Thread Jeff Reavis
Spyce has support for Cheetah Templates: http://spyce.sourceforge.net/doc-mod_template.html as well as pooling: http://spyce.sourceforge.net/doc-mod_pool.html Spyce templates are converted into python before execution, and you can enable caching in the Spyce configuration file. Spyce also comes w

Re: Python on WWW - beginners question: what to choose?

2005-02-07 Thread Almad
Dan Perl wrote: > Have you looked at these links? > http://www.python.org/pycon/papers/framework/web.html > Dan Thank You, I haven't found this one...exactly what I was looking for. -- Lukas "Almad" Linhart [:: http://www.almad.net/ ::] [:: The stars are constantly shining, but often we d

Re: Python on WWW - beginners question: what to choose?

2005-02-07 Thread Damjan
> I'm satisfied with concept of mps, however It's fine that author hate > writing HTML, but I want to; or better, I want to use Cheetah Templates - > i think they are better for bigger sites (then homepage) as the one I want > to write. Also, check out simpletal (http://www.owlfish.com/software/si

Re: "Collapsing" a list into a list of changes

2005-02-07 Thread Francis Girard
Zut ! I'm very sorry that there is no good use case for the "reduce" function in Python, like Peter Otten pretends. That's an otherwise very useful tool for many use cases. At least on paper. Python documentation should say "There is no good use case for the reduce function in Python and we d

Re: Unable to run IDLE Under Windows

2005-02-07 Thread Peter Otten
Brian van den Broek wrote: >> # IDLE reads several config files to determine user preferences.  This >> # file is the default config file for general idle settings. > > > Thanks for posting that, Peter. It helped me work out my problem that > I posted about a few days back

Re: empty classes as c structs?

2005-02-07 Thread Michael Spencer
Nick Coghlan wrote: Steven Bethard wrote: It was because these seem like two separate cases that I wanted two different functions for them (__init__ and, say, dictview)... I see this, but I think it weakens the case for a single implementation, given that each implementation is essentially one me

Re: "Collapsing" a list into a list of changes

2005-02-07 Thread Peter Otten
Francis Girard wrote: > Python documentation should say "There is no good use case for the reduce > function in Python and we don't know why we bother you offering it." Submit a patch :-) Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: "Collapsing" a list into a list of changes

2005-02-07 Thread Steven Bethard
Francis Girard wrote: I'm very sorry that there is no good use case for the "reduce" function in Python, like Peter Otten pretends. That's an otherwise very useful tool for many use cases. At least on paper. Clarity aside[1], can you give an example of where reduce is as efficient as the eqival

Re: Tar module issue

2005-02-07 Thread Eddie Corns
I don't have the original query any more but I think your problem is related to mixing absolute and relative file paths. That is the filenames themselves, I think I recall in your original message you were mixing up the idea of global variables in your code versus the filenames stored in the TAR a

Re: Big development in the GUI realm

2005-02-07 Thread Luke Skywalker
On Mon, 7 Feb 2005 18:30:18 +0100, Michael Goettsche <[EMAIL PROTECTED]> wrote: >Not 100% right. Only drivers for commercial databases will not be included, >mysql and co. are available. What I find weird, is that I always understood the GPL meaning that you must give back any contribution you ma

  1   2   3   >