Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Ilias Lazaridis <[EMAIL PROTECTED]> writes: >> >>>Mike Meyer wrote: >>> >>>>>It is an community need. >>>> >>>>Based on the evidence at

SOAP 1.2 library?

2005-02-15 Thread Mike Kozlowski
is this just a completely unsupported technology in Python right now? -- Mike Kozlowski http://www.klio.org/mlk/ -- http://mail.python.org/mailman/listinfo/python-list

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-17 Thread Mike Meyer
Arich Chanachai <[EMAIL PROTECTED]> writes: > These last two points kind of diverge from the point, no? What I mean > is that we want to present the argument of why Python is the best > choice as THE built-in programming language for the revolutionary uuu > operating system. A new operating syst

Re: os.walk()

2005-02-17 Thread Mike Meyer
rbt <[EMAIL PROTECTED]> writes: > Could someone demonstrate the correct/proper way to use os.walk() to > skip certain files and folders while walking a specified path? I've > read the module docs and googled to no avail and posted here about > other os.walk issues, but I think I need to back up to

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-17 Thread Mike Meyer
Arich Chanachai <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>Arich Chanachai <[EMAIL PROTECTED]> writes: >>>These last two points kind of diverge from the point, no? What I mean >>>is that we want to present the argument of why Python is the bes

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-18 Thread Mike Meyer
Arich Chanachai <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>Whatever the intentions may be, the *act* is one of dictation. Since >>the point of the underlying OS is to increase the interconnections >>between applications (assuming I've found the corre

Re: lambda closure question

2005-02-20 Thread Mike Meyer
"Carl Banks" <[EMAIL PROTECTED]> writes: > Say you have a suite of functions, all of which are called by some main > function and each other, and all of which need to access a lot of the > same data. The best, most straightforward way to do it is to have the > common data be a local variable of t

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-20 Thread Mike Meyer
Nick Coghlan <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Arich Chanachai <[EMAIL PROTECTED]> writes: >> >>>Mike Meyer wrote: >>> >>>>Whatever the intentions may be, the *act* is one of dictation. Since >>>>the point

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-20 Thread Mike Meyer
[EMAIL PROTECTED] (Paul Boddie) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... >> Arich Chanachai <[EMAIL PROTECTED]> writes: >> >> > When the CLR is integrated, it will allow a wide array of problem >> >

Re: Article on Hi-Fi Myths

2005-02-20 Thread Mike Meyer
Al Christians <[EMAIL PROTECTED]> writes: > I learned Friday night that the hi-fi talk is our most popular tape. > This page: > > http://www.belt.demon.co.uk/product/Cable_Controversy/Cable_Controversy.htm > > Gives a somewhat different take on the controversy, almost certainly > bizarre. It's a

UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-21 Thread Mike Dee
/ Unicode error) do not contain enough - or simple enough - information for a Python/Linux newbie to get 'it'. For what it's worth, in Kmail my encoding iso ISO8859-1. I tried that coding one in my KDE and my Python scripts, earlier too, but it was no better; actually that was why I started this Unicode sh.. ..thing. Am I beyond hope? Mike d -- http://mail.python.org/mailman/listinfo/python-list

Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python

2005-02-21 Thread Mike Meyer
Ville Vainio <[EMAIL PROTECTED]> writes: >>>>>> "Mike" == Mike Meyer <[EMAIL PROTECTED]> writes: > > Mike> IPython's pysh seems a little clumsy for interactive use, as > Mike> it requires special characters to distinguish between

unicode(obj, errors='foo') raises TypeError - bug?

2005-02-22 Thread Mike Brown
This works as expected (this is on an ASCII terminal): >>> unicode('asdf\xff', errors='replace') u'asdf\ufffd' This does not work as I expect it to: >>> class C: ... def __str__(self): ... return 'asdf\xff' ... >>> o = C() >>> unicode(o, errors='replace') Traceback (most recent call last

Re: user interface for python

2005-02-23 Thread Mike Meyer
Scott David Daniels <[EMAIL PROTECTED]> writes: > Thomas Guettler wrote: > You can write portable programs (if you test across platforms). The > only truly portable programs in any language are abstract. Once you > start dealing with I/O and the real world, you inevitably have to face > issues

Re: Converting HTML to ASCII

2005-02-25 Thread Mike Meyer
Michael Spencer <[EMAIL PROTECTED]> writes: > gf gf wrote: >> [wants to extract ASCII from badly-formed HTML and thinks BeautifulSoup is >> too complex] > > You haven't specified what you mean by "extracting" ASCII, but I'll > assume that you want to start by eliminating html tags and comments, >

Re: Converting HTML to ASCII

2005-02-26 Thread Mike Meyer
Michael Spencer <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > >> It also fails on tags with a ">" in a string in the tag. That's >> well-formed but ill-used HTML. >> True enough...however, it doesn't fail too horrib

Re: Xlib in Python? I need XDrawString()

2005-02-26 Thread Mike Meyer
Artificial Life <[EMAIL PROTECTED]> writes: > All I really want is to write a few strings to the background of my X > display. XDrawString() is what I need. The Xlib for Python shows it's out > dated. Is there any alternative? If you're referring to http://sourceforge.net/projects/python-xlib >,

Re: [perl-python] generate all possible pairings

2005-02-26 Thread Mike Meyer
"Xah Lee" <[EMAIL PROTECTED]> writes: > This is brought to you by the perl-python community. To subscribe, see > http://xahlee.org/perl-python/python.html assert len(perl-python community) == 1 http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consulta

Text To Speech with pyTTS

2005-02-27 Thread Mike P.
age just in case, but I still get the SAPI not supported error. Anyone get this working - any suggestions? Or am I missing something obvious? Thanks In Advance. Mike P. -- http://mail.python.org/mailman/listinfo/python-list

Re: Identify and perform actions to data within stated limits

2005-03-01 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> I found out that doing a re.findall will split up the results into an >> array, or rather something called a list (looks like an array to me). > > It may look like an array to you, but it's a list. Python > doesn't have arrays

Re: function with a state

2005-03-06 Thread Mike Meyer
"Xah Lee" <[EMAIL PROTECTED]> writes: > the Python doc is quite stilted. Where in the python doc is a programer > supposed read about how the package/module system in Python works? > (besides the tutorial that touches it) The python docs at http://docs.python.org/ref/naming.html > are perfectly c

unicode surrogates in py2.2/win

2005-03-07 Thread Mike Brown
slowed things down a bit, though, so I'd like to avoid it if I can. Can anyone tell me what's causing this, or point me to a reference to show when it was fixed? I'm using 2.2.1 and I couldn't find mention of it in any release notes up through 2.3. Any other comments/suggestions (besides "stop supporting narrow unicode builds of Py 2.2") would be appreciated, too. Thanks :) -Mike -- http://mail.python.org/mailman/listinfo/python-list

Etiquette on job posts

2005-03-10 Thread Mike Wimpe
I know on some boards it's perfectly acceptable to post jobs, but on others its not at all. If I wanted to post a job (Python-related) here, is this OK? Thought I'd ask. Thanks, Mike Wimpe -- http://mail.python.org/mailman/listinfo/python-list

Re: 'Browse' button for *.txt file?

2005-03-10 Thread Mike Wimpe
Are you trying to do this within a GUI? If so, wxPython, PyGTK, and PyQT all have ways to do this. You can also use EasyDialogs for this as well. If not, flush... -- http://mail.python.org/mailman/listinfo/python-list

Re: Etiquette on job posts

2005-03-10 Thread Mike Wimpe
If you are interested in doing some freelance Python development, please take a look at http://www.pythonian.com/info.htm to view our business model. Qualifications: Must have been working with Python for at least a year (though not professionally necessarily) Understand and write OOP Pythonic c

Passing values to another script using CGI

2005-03-12 Thread Mike Wimpe
Without creating a form, how do i pass a value to another script? I would like to pass: group = "Oranges" to another script or at least just 'group' and initialize it in the first script. script1: ''' group = "Oranges" ''' scri

How to send browser to open a different URL

2005-03-12 Thread Mike Wimpe
Sorry to go back to back so fast but how does one send a web browser to a different url than the one the user is already at? In script2 (which is doing the authenticating), if the user fails authentication i want to send him back to the one he was at before. thanks, Mike -- http

Re: How to send browser to open a different URL

2005-03-12 Thread Mike Wimpe
although a bit more than I bargained for, this does has some good info, in case you are way in the future of this post... love, mike -- http://mail.python.org/mailman/listinfo/python-list

OS X and Tkinter

2005-03-14 Thread Mike Tuller
Tkinter will work with it. Any help would be appreciated. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib (and urllib2) read all data from page on open()?

2005-03-15 Thread Mike Meyer
[EMAIL PROTECTED] (Bengt Richter) writes: > ISTM reading top-posts is only easier when the top-post is a single global > comment on the quoted text following. And that stops being true as soon as someone wants to comment on that comment. You either wind up with: Last comment > First comment >>

Good use for Jython

2005-03-16 Thread Mike Wimpe
really just so that Java developers can write Java code faster? Mike Wimpe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python becoming less Lisp-like

2005-03-16 Thread Mike Meyer
[EMAIL PROTECTED] (Paul Boddie) writes: > Steven Bethard <[EMAIL PROTECTED]> wrote in message news:<[EMAIL > PROTECTED]>... >> >> Certainly descriptors in the "wrong hands" could lead to confusing, >> unreadable code. But Python is a "we're all adults here" language, and >> so we have to trus

Is Python like VB?

2005-03-16 Thread Mike Cox
As you may or may not know, Microsoft is discontinuing Visual Basic in favor of VB.NET and that means I need to find a new easy programming language. I heard that Python is an interpreted language similar to VB. This means that it doesn't have all the hard stuff like pointers, classes and templat

Re: How to I restart an interactive session?

2005-03-18 Thread Mike Meyer
"markscottwright" <[EMAIL PROTECTED]> writes: > But, by deleting their namespace entries haven't I effectively unloaded > them? In other words, from the point of the interpreter, isn't the > state at point A and point B the same? > > --- point A: > import os > del __main__.__dict_

Re: Pre-PEP: Dictionary accumulator methods

2005-03-18 Thread Mike Rovner
Ivan Van Laningham wrote: Hi All-- Maybe I'm not getting it, but I'd think a better name for count would be add. As in d.add(key) d.add(key,-1) d.add(key,399) etc. IMHO inc (for increment) is better. d.inc(key) add can be read as add key to d Mike -- http://mail.python.org/mailman/listi

Re: wxPython vs. pyQt

2005-03-18 Thread Mike P.
my favourite APIs (Qt, OpenGL, and OpenSceneGraph) under a completely Python environment - heaven from a development perspective. Mike. -- http://mail.python.org/mailman/listinfo/python-list

Re: importing two modules with the same name

2005-03-19 Thread Mike Meyer
Francisco Borges <[EMAIL PROTECTED]> writes: > I could simply copy optparse's code and hack it or I could simply import > it and overload some methods, which is what I think would be a cleaner > solution. So why aren't you willing to give your optparse module a different name?

Re: Pre-PEP: Dictionary accumulator methods

2005-03-20 Thread Mike Rovner
is that if method not found in dict it delegated to container type specified in constructor. It solves dict specialization without bloating dict class and is generic. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: creating generators from function

2004-12-08 Thread Mike Meyer
Simon Wittber <[EMAIL PROTECTED]> writes: >> A function containing an infinite loop will never return, so it is bugged >> and useless unless it does has an external effect with something like >> 'print xxx' within the loop. > > I thought the idiom: > > while True: > #code which iterates my s

Re: Ideas for projects

2004-12-08 Thread Mike Meyer
Phillip Bowden <[EMAIL PROTECTED]> writes: > I feel that I've learned the language pretty well, but I'm having > trouble thinking of a medium to large project to start. What are some > projects that you have written in the past with Python? Why start with a medium to large project when you can d

Re: Ideas for projects

2004-12-09 Thread Mike Meyer
"Fuzzyman" <[EMAIL PROTECTED]> writes: > Phillip Bowden wrote: > The first one is an online bookmarks manager. There are various of > these around - but none in python and none as straightforward as I > would like. It would be easy to get something working and then expand > it to do more things (l

Re: creating generators from function

2004-12-09 Thread Mike Meyer
Isaac To <[EMAIL PROTECTED]> writes: >>>>>> "Mike" == Mike Meyer <[EMAIL PROTECTED]> writes: > > Mike> I think it's a bit abnormal, because you have to scan the > Mike> loop body for breaks. I tend to write: > >

Distutils vs. Extension header files

2004-12-09 Thread Mike Meyer
I've got a package that includes an extension that has a number of header files in the directory with the extension. They are specified as "depends = [...]" in the Extension class. However, Distutils doesn't seem to do anything with them. If I do an sdist, the include files aren't added to the tar

Re: Distutils vs. Extension header files

2004-12-10 Thread Mike Meyer
[EMAIL PROTECTED] (David M. Cooke) writes: > vincent has the solution (you need to specify them in MANIFEST.in), > but I'll add my 2 cents. Yup. That solved the problem. > depends = [...] is used in building (it's like dependencies in make). > If one of those files change, distutils will rebuild

Re: newbie questions

2004-12-10 Thread Mike Meyer
Adam DePrince <[EMAIL PROTECTED]> writes: > Alright. Now, as Erik pointed out if you assign to the variable the > computer will add that to the local name space. This happens at > "compile" time (which is right after you hit enter twice at the CPython > command line.) > > For an example of this

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-10 Thread Mike Meyer
"Erik Johnson" <[EMAIL PROTECTED]> writes: > I am looking for some input on GUI libraries. Since you said others, I'll recommend PyQt. Major downside with it is that it costs money on Windows. > o What features does wxPython offer that Tkinter cannot (and vice > versa)? I don't know abo

Re: Deadlock detection

2004-12-10 Thread Mike Meyer
Adam DePrince <[EMAIL PROTECTED]> writes: > On Mon, 2004-12-06 at 06:21, Duncan Grisby wrote: >> Hi, >> >> Does anyone know of a deadlock detector for Python? I don't think it >> would be too hard to hook into the threading module and instrument >> mutexes so they can be tested for deadlocks. I

Re: New versions breaking extensions, etc.

2004-12-10 Thread Mike Meyer
"Jive" <[EMAIL PROTECTED]> writes: > "Nick Coghlan" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> To this date, no-one has cared enough about the problem to put in the > effort >> required to make the C API version agnostic. Given that the API almost > always >> remains *source*

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-11 Thread Mike Meyer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> It also has a widget for creating Windows "wizards" for walking >> through a set of options. > Besides the fact that wizards isn't really that great (read Cooper), if your > too

Re: lies about OOP

2004-12-13 Thread Mike Thompson
until then. Its emergence reflects a general maturation of concept and practice, sufficient to say that the Joy of OOP could be said to be "widely known." In actual fact, virtually all the design patterns came from the Interviews C++ GUI toolkit written in the early '90s. What an utterly brilliant piece of work that was. -- Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: lies about OOP

2004-12-14 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Instead of copy and paste, I use functions for code reuse. I didn't see > the light of OOP, yet. I use Python but never did anything with OOP. I > just can't see what can be done with OOP taht can't be done with > standart procedural programing.

Re: Module question

2004-12-15 Thread Mike Meyer
Grumman <[EMAIL PROTECTED]> writes: > Bill Turczyn wrote: >> Does python have a module similiar to the perl Spreadsheet::WriteExcel >> Thanks, >> Bill >> > In a pinch, you can output an HTML table, give the file an .xls > extension, and Excel will read it just fine. Welll, someone pointed out a t

Re: Winge IDE Issue - an suggestions?

2004-12-16 Thread Mike Thompson
Mike Thompson wrote: I've run into a problem using WingIDE. I have a dead simple script (which uses ElementTree): from elementtree.ElementTree import Element, SubElement, tostring Just to be clear: that's the effbot's ElementTree package at http://effbot.org/zone/element-ind

Re: Html or Pdf to Rtf (Linux) with Python

2004-12-16 Thread Mike Meyer
Axel Straschil <[EMAIL PROTECTED]> writes: > Hallo! > >> However, our company's product, PDFTextStream does do a phenomenal >> job of extracting text and metadata out of PDF documents. It's >> crazy-fast, has a clean API, and in general gets the job done very >> nicely. It presents two points of

Re: create lowercase strings in lists - was: (No subject)

2004-12-16 Thread Mike Meyer
"Mark Devine" <[EMAIL PROTECTED]> writes: > Sorry for not putting a subject in the last e-mail. The function lower suited > my case exactly. Here however is my main problem: > Given that my new list is : > [class-map match-all cmap1', 'match ip any', 'class-map match-any cmap2', > 'match any', '

Re: Winge IDE Issue - an suggestions?

2004-12-16 Thread Mike Thompson
e late at night - WingIDE bug seemed the only explanation, although it was puzzling me that something so obvious could make it through their QA. Thanks again. -- Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: create lowercase strings in lists - was: (No subject)

2004-12-16 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > Mark Devine wrote: > >> Actually what I want is element 'class-map match-all cmap1' from list 1 to >> match 'class-map cmap1 (match-all)' or 'class-map cmap1 mark match-all done' >> in list 2 but not to match 'class-map cmap1'. >> Each element in both l

Re: Python IDE

2004-12-16 Thread Mike Meyer
dware platforms, one condition being that the port wound up in the GCC suite. I believe they got bought by redhat. Phillip Greenspun once ran a company on this model as well. It did well until the venture capata -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/hom

Re: Python IDE

2004-12-16 Thread Mike Meyer
A: What's the most obnoxious thing on Usenet? Q: topposting. "Dan Perl" <[EMAIL PROTECTED]> writes: > "fuzzylollipop" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> no it was a sideways remark at all the software socialists that thing >> EVERYTHING should be free, never said any

Re: BASIC vs Python

2004-12-16 Thread Mike Meyer
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: >>>and it was the only interpreter I've ever used that had no compilation >>>phase whatsoever) is no easier to deal with than compiled C. Ditto for >>>the various flavors of LISP I've worked with. > I do find working with an interpreter easier than

Re: Python IDE

2004-12-16 Thread Mike Meyer
"Dan Perl" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> A: What's the most obnoxious thing on Usenet? >> Q: topposting. > > What is "Jeopardy", Alex? You got

Re: BASIC vs Python

2004-12-16 Thread Mike Meyer
Andrew Dalke <[EMAIL PROTECTED]> writes: > Adam DePrince > Given the hardware constraints of the early 1980s, which > language do you think should have been used instead of BASIC? Logo. It was invented in 1968, when mainframes weren't much more powerfull than those '80s microcomputers. It had sta

Re: BASIC vs Python

2004-12-17 Thread Mike Meyer
Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> writes: > On Fri, 17 Dec 2004 01:43:56 -0600, rumours say that Mike Meyer > <[EMAIL PROTECTED]> might have written: >>Assembler was better - at least you had recursion with >>assembler. > You had recur

Re: BASIC vs Python

2004-12-17 Thread Mike Meyer
Peter Hickman <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> BASIC as implented by Microsoft for the Apple II and the TRS 80 (among >> others) is simply the worst programming language I have ever >> encountered. Assembler was better - at least you had recursion w

Re: [OT] Python IDE

2004-12-17 Thread Mike Meyer
Q: What's the second most annoying thing to do on Usenet? A: Fail to properly trim quotes. "Dan Perl" <[EMAIL PROTECTED]> writes: > "Fuzzyman" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Dan Perl wrote: >>> "M

Re: Why no list heritable type?

2004-12-17 Thread Mike Meyer
Jeff Shannon <[EMAIL PROTECTED]> writes: > Sion Arrowsmith wrote: > Additionally, as I understand it UserList and UserDict are implemented > entirely in Python, which means that there can be significant > performance differences as well. Actually, UserList and UserDict are just wrappers around th

Re: BASIC vs Python

2004-12-17 Thread Mike Meyer
Adam DePrince <[EMAIL PROTECTED]> writes: > On Fri, 2004-12-17 at 12:52, Mike Meyer wrote: >> Peter Hickman <[EMAIL PROTECTED]> writes: >> > Basic has progressed much since you last looked at it, time to update >> > your facts. Basic has recursion, it compi

Re: A completely silly question

2004-12-17 Thread Mike Meyer
That doesn't do what he wants, because it doesn't return until you hit a newline. The answer is system dependent. Or you can use massive overkill and get curses, but if you're on windows you'll have to use a third party curses package, and maybe wrap it -- Mike Meyer <[EMA

Re: A completely silly question

2004-12-17 Thread Mike Meyer
Steven Bethard <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> That doesn't do what he wants, because it doesn't return until you hit >> a newline. > Of course if the intent is to have this work with terminal input, then > yes, sys.stdin.read(1) is pro

Re: Confused updating 2.3 to 2.4 on Linux

2004-12-17 Thread Mike Meyer
Glen <[EMAIL PROTECTED]> writes: > Being a new'ish user to both Linux and Python, I've been 'happily' > learning Python (2.3) with Idle and Tkinter as installed with Mandrake > 10. > All seemed to work without any errors, but starting Python from Idle > or a console displays the same statup text,

Re: BASIC vs Python

2004-12-17 Thread Mike Meyer
"not [quite] more i squared" <[EMAIL PROTECTED]> writes: > Adam DePrince wrote: > >>>Given the hardware constraints of the early 1980s, which >>>language do you think should have been used instead of BASIC? >> Lisp >> Forth > Exactly my pick Logo (my pick) has been called "Lisp without the parent

Re: Why no list heritable type?

2004-12-17 Thread Mike Meyer
Jeff Shannon <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>Jeff Shannon <[EMAIL PROTECTED]> writes: >>>Additionally, as I understand it UserList and UserDict are implemented >>>entirely in Python, which means that there can be significant >>&g

Re: A completely silly question

2004-12-17 Thread Mike Meyer
David Bolen <[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: > >> Steven Bethard <[EMAIL PROTECTED]> writes: >> >> > Amir Dekel wrote: >> >> What I need from the program is to wait for a single character >> &

Re: BASIC vs Python

2004-12-17 Thread Mike Meyer
Scott Robinson <[EMAIL PROTECTED]> writes: > Forth seems better than basic, but is *weird* (I tried it for a > while). I'm not sure going from Forth to C (or Python) would be much > easier than Basic to C or Python. The biggest disappointment for > Forth was that no significant Forth chips were

Re: better lambda support in the future?

2004-12-17 Thread Mike Meyer
Jeff Shannon <[EMAIL PROTECTED]> writes: > Steven Bethard wrote: > Hm, possibly. I must confess that my direct knowledge is limited to a > fairly narrow set of languages, and that C and C++ are the only > statically-compiled languages I've used. Still, I'm not sure that > it's just a matter of f

A rational proposal

2004-12-17 Thread Mike Meyer
PEP: XXX Title: A rational number module for Python Version: $Revision: 1.4 $ Last-Modified: $Date: 2003/09/22 04:51:50 $ Author: Mike Meyer <[EMAIL PROTECTED]> Status: Draft Type: Staqndards Content-Type: text/x-rst Created: 16-Dec-2004 Python-Version: 2.5 Post-History: 30-Aug-2002 Ab

Re: collaborative editing

2004-12-10 Thread Mike Meyer
Robert Kern <[EMAIL PROTECTED]> writes: > Personally, I loathe writing at any length inside a Web browser and > prefer to use a real editor at all times. :-). w3m invokes $VISUAL on a temp file when you edit a TEXTAREA. It's *so* nice to be able to insert a file instead of cutting and pasting it.

Re: lies about OOP

2004-12-14 Thread Mike Meyer
[EMAIL PROTECTED] writes: > If OOP is so beneficial for large projects, why are the Linux kernel, > the interpreters for Perl and Python, and most compilers I know written > in C rather than C++? Because C++ combines the worst features of C and OO programming. It also makes some defaults go the w

Re: gather information from various files efficiently

2004-12-14 Thread Mike Meyer
Simon Brunning <[EMAIL PROTECTED]> writes: > On Tue, 14 Dec 2004 10:40:56 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >> Keith Dart wrote: >> > Sigh, this reminds me of a discussion I had at my work once... It seems >> > to write optimal Python code one must understand various probabilites of >

Winge IDE Issue - an suggestions?

2004-12-16 Thread Mike Thompson
em. I've reported the problem to wingware.com, but I need to keep going, so I thought I'd ask here for clues. I'm using WingIDE 2.0.1-1, Professional on Windows XP. Py2.3.3 -- Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no list heritable type?

2004-12-16 Thread Mike Meyer
"Robert Brewer" <[EMAIL PROTECTED]> writes: >> Why aren't built >> in lists and dictionaries real heritable types that can save >> this kind of patchwork? > > They are since Python 2.2 (IIRC): And before Python 2.2 there was the UserList class in the standard library. Which is still there in 2.

Re: Html or Pdf to Rtf (Linux) with Python

2004-12-16 Thread Mike Meyer
Axel Straschil <[EMAIL PROTECTED]> writes: > Hello! > >> That's easy. Load the HTML in MS Word, and save it as RTF. Script it >> via COM using the python win32all (I think that's what it's now >> called) package. > As I wrote in my posting and the subject: linux ;-) > I could try to do this with o

Re: BASIC vs Python

2004-12-16 Thread Mike Meyer
"Thomas Bartkus" <[EMAIL PROTECTED]> writes: > The "interpreted" nature of the existing Python language has little to do > with how it compares to other languages. Most languages, including BASIC, > are available in either flavor - interpreted or compiled. And either way, > it's still the same la

Re: Socket being garbage collected too early

2004-12-16 Thread Mike Meyer
Scott Robinson <[EMAIL PROTECTED]> writes: > I have been having trouble with the garbage collector and sockets. > Unfortunately, google keeps telling me that the problem is the garbage > collector ignoring dead (closed?) sockets instead of removing live > ones. My problem is > > > x.sock=so

Re: A rational proposal

2004-12-18 Thread Mike Meyer
"Raymond L. Buvel" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> PEP: XXX >> Title: A rational number module for Python > > > I think it is a good idea to have rationals as part of the standard > distribution but why not base this on the gmpy modu

Re: A rational proposal

2004-12-18 Thread Mike Meyer
"John Roth" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> PEP: XXX >> Title: A rational number module for Python >> The ``Rational`` class shall define all the standard mathemati

Re: A rational proposal

2004-12-18 Thread Mike Meyer
Jp Calderone <[EMAIL PROTECTED]> writes: > They do handle decimals. They handle any object which define __cmp__, > or the appropriate rich comparison methods. That settles that. They're gone from the proposal. So is the method inverse, as that's simply 1/rational.

Re: A beginner's problem...

2004-12-18 Thread Mike Meyer
[Format recovered from top posting.] "James Martin" <[EMAIL PROTECTED]> writes: > > > "Amir Dekel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hello everyone, >> First, I have to say that Python is one of the coolest programing >> languages I have seen. >> And now for the prob

Re: BASIC vs Python

2004-12-18 Thread Mike Meyer
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: I like your categories, but you forgot one. > On Fri, 17 Dec 2004 13:54:45 -0500, Adam DePrince <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: >> I'd like to ask everybody a simple question. How many computer >> languages are you

Re: A beginner's problem...

2004-12-18 Thread Mike Meyer
Amir Dekel <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Doing a second import will find the module in sys.modules and not >> bother looking in the file system. The solution is to reload(module) >> instead of import module. >> What if I import usi

Re: How about "pure virtual methods"?

2004-12-19 Thread Mike Meyer
Noam Raphael <[EMAIL PROTECTED]> writes: > What I suggest is a new class, called notimplemented (you may suggest > a better name). It would get a function in its constructor, and would > just save a reference to it. The trick is that when a new type (a > subclass of the default type object) is cre

Re: BASIC vs Python

2004-12-19 Thread Mike Meyer
Scott Robinson <[EMAIL PROTECTED]> writes: > On Fri, 17 Dec 2004 20:41:11 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote: > >>Scott Robinson <[EMAIL PROTECTED]> writes: >> >>> Forth seems better than basic, but is *weird* (I tried it for a >>>

Re: BASIC vs Python

2004-12-19 Thread Mike Meyer
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > After all, AREXX was the "VBA" of the Amiga... My first real > Python program worked with an AREXX script to handle outgoing email That's funny. My mail reader on the Amiga was an Arexx script driving the Thinker hypertext engine. It slurped u

Re: expression form of one-to-many dict?

2004-12-19 Thread Mike Meyer
Nick Craig-Wood <[EMAIL PROTECTED]> writes: > It would be nice if setdefault didn't evaluate the second argument > unless it needed it. However I guess it would have to be a language > feature to do that. Personally, I'd love a language feature that let you create a function that didn't evaluate

Re: A completely silly question

2004-12-19 Thread Mike Meyer
Craig Ringer <[EMAIL PROTECTED]> writes: > On Sat, 2004-12-18 at 00:40, Amir Dekel wrote: >> This must be the silliest question ever: >> >> What about user input in Python? (like stdin) >> Where can I find it? I can't find any references to it in the documentation. > > Under UNIX, I generally eit

Re: A rational proposal

2004-12-20 Thread Mike Meyer
[EMAIL PROTECTED] (Christopher A. Craig) writes: > I've been thinking about doing this for a while. cRat > (http://sf.net/projects/pythonic) already meets these qualifications > except that I need to add decimal support to it now that decimals are > in the language. I could rewrite the existing

Re: Writev

2004-12-20 Thread Mike Meyer
Adam DePrince <[EMAIL PROTECTED]> writes: > I want to include it because POSIX has a single OS call that > conceptually maps pretty closely to writelines. I just want to point out that on some systems, POSIX is a compatability layer, not an OS layer. On those systems, the implementer of writev is

Re: expression form of one-to-many dict?

2004-12-20 Thread Mike Meyer
[EMAIL PROTECTED] (Bengt Richter) writes: > On Sun, 19 Dec 2004 21:29:27 +0100, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > (or maybe a restricted unquote_arg function for better safety). > E.g., double back-tick is a syntax error now, so you could write > > def ternary(c, ``t, ``f): >

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Mike Meyer
Michael Hoffman <[EMAIL PROTECTED]> writes: > Doug Holton wrote: >> Istvan Albert wrote: >>> All that boo does is borrows a few syntactical constructs >>> from python. Calling it virtually identical >>> is *very* misleading. >> The syntax is indeed virtually identical to python. You are yet >> ano

Re: A rational proposal

2004-12-21 Thread Mike Meyer
Nick Coghlan <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> I'm willing to do the work to get >> decimals working properly with it. > > Facundo's post reminded me of some of the discussion about the > interaction between floats and Decimal that wen

<    7   8   9   10   11   12   13   14   15   16   >