Re: What are the other options against Zope?

2005-07-02 Thread Mike Meyer
Terry Hancock <[EMAIL PROTECTED]> writes: > This is true in the same sense that Python is unnecessary > because all programs can be written in assembler. Or machine > code for that matter. Entered by flipping switches, even -- throw > away that keyboard. > > I have actually seen this done, BTW.

Re: What are the other options against Zope?

2005-07-03 Thread Mike Meyer
Christopher Subich <[EMAIL PROTECTED]> writes: > That, and the file format definitely isn't robust to bit-rot that > happened too often on FAT16/32 filesystems. >From where I sit, the critical difference between the registry and a set of .ini files (or Unix rc files) is that the registry requires

Re: website catcher

2005-07-03 Thread Mike Meyer
"jwaixs" <[EMAIL PROTECTED]> writes: > If I should put the parsedwebsites in, for example, a tablehash it will > be at least 5 times faster than just putting it in a file that needs to > be stored on a slow harddrive. Memory is a lot faster than harddisk > space. And if there would be a lot of peo

Re: How do you program in Python?

2005-07-03 Thread Mike Meyer
anthonyberet <[EMAIL PROTECTED]> writes: > My question isn't as all-encompassing as the subject would suggest... > > I am almost a Python newbie, but I have discovered that I don't get > along with IDLE, as i can't work out how to run and rerun a routine > without undue messing about. > > What I w

Re: Python for everything?

2005-07-03 Thread Mike Meyer
Joseph Garvin <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > >>You wind up >>having to invoke the function through your data object, and then pass >>the data object in - sort of as an explicit "self". >> > Yeah, and us pythonists hate expl

Re: looping over a big file

2005-07-03 Thread Mike Meyer
Roy Smith <[EMAIL PROTECTED]> writes: > The "right" way to do this is: > > for line in file ("filename"): >whatever > > The file object returned by file() acts as an iterator. Each time through > the loop, another line is read and returned (I'm sure there is some > block-level buffering goin

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-03 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > I don't object to adding sum and product to the language. I don't object > to adding zip. I don't object to list comps. Functional, er, functions > are a good thing. We should have more of them, not less. Yes, but where should they go? Adding functions

Re: math.nroot

2005-07-04 Thread Mike Meyer
"George Sakkis" <[EMAIL PROTECTED]> writes: > "Steven D'Aprano" <[EMAIL PROTECTED]> wrote: > >> But it doesn't make sense to say that two flags are equal: >> >> keep_processing = True >> more_reading_needed = True >> while more_reading_needed and keep_processing: >> get_more_records() >>

Re: threads and sleep?

2005-07-05 Thread Mike Meyer
Jeffrey Maitland <[EMAIL PROTECTED]> writes: > What I would like to do is have say 1 thread use as much of a given > CPU as possible and if a new thread is started (added) that if a CPU > is available use it instead of using the same cpu. That way it should > speed the application up. The standalo

Re: Folding in vim

2005-07-05 Thread Mike Meyer
Sybren Stuvel <[EMAIL PROTECTED]> writes: > Andrea Griffini enlightened us with: >> - never ever use tabs > > I always use one tab for indents, and set my editor to display it as > four spaces. I like being able to unindent a line by deleting a single > character. I don't see a reason why _not_ to

Re: How do you program in Python?

2005-07-05 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Tom Anderson wrote: >> +1 insight of the century. This is the heart of the unix way - lots >> of simple little programs that do exactly one thing well, and can be >> composed through simple, clean interfaces. For actually getting >> things done, a toolkit

Re: Lisp development with macros faster than Python development?..

2005-07-05 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: >> Well, his Viaweb company was founded in about '95, right? So he probably just >> used Lisp because Python wasn't as well known yet. ;-) > > David > > That is what I thought too. It makes sense but I wasn't sure. Still > ain't. > The problem is t

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-06 Thread Mike Meyer
Ron Adam <[EMAIL PROTECTED]> writes: > So doing this would give an error for functions that require an argument. > > def foo(x): > return x > > a = None > b = foo(a)# error because a dissapears before foo gets it. So how do I pass None to a function? > >>TypeErro

Re: Favorite non-python language trick?

2005-07-06 Thread Mike Meyer
"Shai" <[EMAIL PROTECTED]> writes: > They're called "Special vars", and you need to define them (unlike > local LISP variables, which behave essentially like Python vars), but > then you use them just like other vars (that is, you usually bind them > with LET). This is the first I hear about them

RE: Do a "Python beginners e-mail list" exist?

2005-07-07 Thread Tony Meyer
> 1. I don't want to post banal questions about Python > to main Python list. Does a "banal Python questions > list" or a "Python beginners list" exist? Yes: There are plenty of people there that will be glad to help! =Tony.Meyer -- http://mail.

RE: Thoughts on Guido's ITC audio interview

2005-07-07 Thread Tony Meyer
> Everyone complaining about Eclipse in this thread needs to go > try 3.1. The interface is much much much more responsive. The problem with Eclipse, IMO, is Java. I've tried 3.1 on a WinXP machine and, like just about any Java program, it's incredibly slow and a real pain to use. On a (similar

RE: Thoughts on Guido's ITC audio interview

2005-07-07 Thread Tony Meyer
> Your first sentence contradicts the rest of your post; how is > Java the problem if it runs nice on a Mac and is sluggish on > Windows ? Because any Java program on (any version of) Windows (in my experience) is sluggish, and this is not true (again, in my experience) for Java programs on a Ma

RE: Thoughts on Guido's ITC audio interview

2005-07-07 Thread Tony Meyer
> "Java" as a term means different things to different people, Agreed. Python is similar in this respect - it's common to refer to cPython here as Python, for example. > but I expect most would think of the core language and its > standard library first and the JRE/JVM second. So saying "the

Re: f*cking re module

2005-07-07 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Thu, 07 Jul 2005 06:47:54 -0400, Chris Smith wrote: >> Oh, come on: what's a Perliodic Table of Operators, between friends? >> http://www.ozonehouse.com/mark/blog/code/PeriodicTable.html > That, and the discussion on operators by Larry Wall, are two

Re: question about introspection using inspect module

2005-07-07 Thread Mike Meyer
Benjamin Rutt <[EMAIL PROTECTED]> writes: > what I am actually trying to do is to build a database of Python > modules. so then later, I can write a tool in my favorite editor > (Emacs) to invoke some forms of completion against this database > (e.g. os.remov or socket. to see a list of all socket

Re: How do you program in Python?

2005-07-07 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > Hey, it's not fair to make fun of emacs now that I've mentioned vim > favourably so many times ;-) > > Seriously, nothing about emacs seems big or slow today. It has been > outbloated by pretty much everything else. Who could have imagined /that/ > ten yea

Re: Lisp development with macros faster than Python development?..

2005-07-07 Thread Mike Meyer
"Antoon Pardon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'll clarify. A lot of the time I hear arguments against > features that boils down to. It seems that you've lost some of the intent during the boiling. > 1) I don't need it. Is that what you get out of the oft-used "

Re: f*cking re module

2005-07-08 Thread Mike Meyer
Rocco Moretti <[EMAIL PROTECTED]> writes: > François Pinard wrote: > If your program had only minor errors, there was likely a good chance > that the compiler might guess correctly, and your program would > compile to what you wanted in the first place. If not, by continuing > on, the compiler can

Re: __autoinit__

2005-07-11 Thread Mike Meyer
"Ralf W. Grosse-Kunstleve" <[EMAIL PROTECTED]> writes: > --- Bengt Richter <[EMAIL PROTECTED]> wrote: >> No, that limitation wouldn't exist, so you wouldn't have to explain it ;-) >> I.e., the above would act like >> >> class Foo: >> x = Bar() >> def method_1(self, _anonymous_arg_1): >

Re: Fwd: Should I use "if" or "try" (as a matter of speed)?

2005-07-12 Thread Mike Meyer
Dark Cowherd <[EMAIL PROTECTED]> writes: > But one advise that he gives which I think is of great value and is > good practice is > "Always catch any possible exception that might be thrown by a library > I'm using on the same line as it is thrown and deal with it > immediately." Yuch. That sort

Re: new division in Pythonwin

2005-07-12 Thread Mike Meyer
"Jive Dadson" <[EMAIL PROTECTED]> writes: > I like to use Pythonwin as my desktop calculator. It's bothersome > to have to type in "from __future__ import division" into the > interactive window every time I open it. I've tried various ways to > attempt to get it to import new division at startu

RE: Are there any decent python memory profilers available?

2005-07-13 Thread Meyer, Tony
> Are there any decent python memory profilers available? As part of Google's "summer of code", Nick Smallbone (mentored by Michael Hudson and Jeremy Hylton) will be developing a Python memory profiler. I think the fact that this was a project suggestion by the PSF, and that it was accepted, i

Re: threads and sleep?

2005-07-13 Thread Mike Meyer
Andreas Kostyrka <[EMAIL PROTECTED]> writes: > That doesn't change the contrary facts: > > -) the general threading programming model is very hard to get right. > It's basically at the moment where we were with memory management at C > level. Painful, and errorprone. Nothing to be happy about. I'd

Re: Native ODBC access for python on linux?

2005-07-14 Thread Mike Meyer
"Thomas Bartkus" <[EMAIL PROTECTED]> writes: > Although I hear rumors about ODBC drivers on Linux, I confess I don't > understand the need. Certainly you can use Python with the MySQLdb module > from any Linux machine and query away at the server. As long as the MySQL > server accepts your IP/usr/

Re: goto

2005-07-18 Thread Mike Meyer
rbt <[EMAIL PROTECTED]> writes: > Many of the world's most profitable software companies (MS for example) > have thousands of goto statements in their code... oh the horror of it > all. Why aren't these enlightened-by-the-gods know-it-alls as profitable > as these obviously ignorant companies? Bec

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Mike Meyer
"Thomas Bartkus" <[EMAIL PROTECTED]> writes: >> > Re-train on a new platform, >> > and re-write from scratch? > > What do you do when an open source project you were using gets abandoned? cvs import -m "sources for orphaned project" > Hard to see much difference here. Doing support for objec

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-19 Thread Mike Meyer
Thomas Bartkus <[EMAIL PROTECTED]> writes: > On Mon, 18 Jul 2005 19:56:24 -0400, Mike Meyer wrote: > >> "Thomas Bartkus" <[EMAIL PROTECTED]> writes: >>>> > Re-train on a new platform, >>>> > and re-write from scratch? >&g

Re: goto

2005-07-19 Thread Mike Meyer
Rocco Moretti <[EMAIL PROTECTED]> writes: > Leif K-Brooks wrote: >> rbt wrote: >> >>>IMO, most of the people who deride goto do so because they heard or read >>> where someone else did. >> 1 GOTO 17 >> 2 mean,GOTO 5 >> 3 couldGOTO 6 >> 4 with GOTO 7 >> 5 what G

Re: retrieving https pages

2005-07-19 Thread Mike Meyer
Eric <[EMAIL PROTECTED]> writes: > I'm using Linux - Manriva LE2005, python 2.3 (or i can also use python 2.4 > on my other system just as well). > Anyways... > I want to get a web page containing my stock grants. > The initial page is an https and there is a form on it to > fill in your username

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Mike Meyer
"Simon Dahlbacka" <[EMAIL PROTECTED]> writes: > Short answer: Not using HTTP. > > However, you can use something like AJAX to just load new data from > time to time and not the entire page. AJAX is overkill for this. If you just want to automatically refresh the page automatically, you can use a

Re: email format in python

2005-07-19 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > Agree. In the case of user input validation, it might be ok to politely > inform the user that the address looks a bit funny, but refusing to work > with it will anger a user sooner or later. Yup. I use cryptographically signed addresses as one-time addre

Re: Read only files

2005-07-19 Thread Mike Meyer
Pranav Bagora <[EMAIL PROTECTED]> writes: > Hello, > > I am getting a permission Denied error when i am > trying to make changes in some read only files in a > directory. How do we check and change the read only > attributes of files in python. You want the os.stat and os.chmod functions.

Re: goto

2005-07-20 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Sybren Stuvel wrote: >> Mike Meyer enlightened us with: >> >>>>I dislike gotos because it is too easy to inadvertently create >>>>infinite loops. <10 WINK; 20 GOTO 10> >>> >>>And it

Re: Web-Forms

2005-07-21 Thread Mike Meyer
Mathias Waack <[EMAIL PROTECTED]> writes: > Hi, > > I need to access some information from a web site which are only accessible > through a form. Thus for each bucket of data you have to fill out the form, > submit it and wait for an answer. Very easy - if you don't have to check > some hundred t

Re: goto

2005-07-22 Thread Mike Meyer
Rocco Moretti <[EMAIL PROTECTED]> writes: >> My "favorite" infinte loop with while is: >>i = 0 >>while i < 20: >> do_process(i) >> Note the prominent *lack* of any change to i here? >> Oh, for: >> from i = 0 >> invariant 0 <= i <= 20 >> variant 21 - i >> until i >

Re: Generating images with text in them

2005-07-22 Thread Mike Meyer
[EMAIL PROTECTED] (phil hunt) writes: > On Thu, 21 Jul 2005 02:44:03 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote: >>While bitmap font files are not copyrightable, there are license issues >>with most of the "nicer" fonts you are probably talking about. > > Oh? I can understand them being copyrig

Re: Stupid question: Making scripts python-scripts

2005-07-22 Thread Mike Meyer
Bill Mill <[EMAIL PROTECTED]> writes: > On 7/21/05, Jan Danielsson <[EMAIL PROTECTED]> wrote: >> Hello all, >> >>How do I make a python script actually a _python_ in unix:ish >> environments? >> >> I know about adding: >> #!/bin/sh >> >>..as the first row in a shell script, but when I i

Re: time.time() under load between two machines

2005-07-23 Thread Mike Meyer
[EMAIL PROTECTED] writes: > I am seeing negative latencies of up to 1 second. I am using ntp to > synchronize both machines at an interval of 2 seconds, so the clocks > should be very much in sync (and are from what I have observed). I > agree that it is probably OS, perhaps I should hop over t

Re: Getting a dictionary from an object

2005-07-23 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 23 Jul 2005 11:48:27 +0300, Thanos Tsouanas wrote: >> Hello. >> >> I would like to have a quick way to create dicts from object, so that a >> call to foo['bar'] would return obj.bar. > > That looks rather confusing to me. Why not just call obj.

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

2005-07-23 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: >> * staticmethod Path.getcwd() -> Path.cwd() >> * bytes() / lines() / text() -> read_file_{bytes,lines,text} methods >> * write_{bytes,lines,text} -> write_file_{bytes,lines,text} methods > Under Linux isn't it possible to open and read from directories mu

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

2005-07-24 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 23 Jul 2005 17:51:31 -0600, John Roth wrote: > >> I also like to know the number of elements, which seems to make >> sense as len(path). Again, the number of characters in the path seems >> to be utterly useless information - at least, I can't

Re: How to run python script in background after i logout

2005-07-24 Thread Mike Meyer
Thanos Tsouanas <[EMAIL PROTECTED]> writes: > On Sun, Jul 24, 2005 at 12:51:17PM +0300, Thanos Tsouanas wrote: >> On Sun, Jul 24, 2005 at 02:43:44AM -0700, Harlin Seritt wrote: >> > I have a remote linux server where I can only access it via ssh. I have >> > a script that I need to have run all th

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

2005-07-24 Thread Tony Meyer
[...] > Open issues: [...] > What about path * 4? If you keep the current join meaning of __div__, then assigning any sort of multiplication meaning to __mul__ would not be a good idea, IMO. It's natural to expect that __div__ and __mul__ are opposites. I suppose this means that you could make _

Re: Counting processors

2005-07-26 Thread Mike Meyer
"k pur" <[EMAIL PROTECTED]> writes: > You can use > > print os.sysconf("SC_NPROCESSORS_CONF") > > works on Linux Works on FreeBSD as well. It hooks up to the sysconf C call. That's a Posix call, so this should work portably across Posix systems. I know Windows can be made Posix compliant, but I'm

Re: Safest manner to extend search path for modules?

2005-07-26 Thread Mike Meyer
"Joseph Turian" <[EMAIL PROTECTED]> writes: > Hi, > > What is the safest manner to extend search path for modules, minimizing > the likelihood of shooting oneself in the foot? > > The system (which includes scripts and their shared modules) may be > checked out in several different locations, but

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

2005-07-26 Thread Meyer, Tony
[using __div__ to mean join] > I think the '+' is used as a join for both strings > and lists, so it would probably be the better choice > as far as consistency with the language is concerned. +1. =Tony.Meyer -- http://mail.python.org/mailman/listinfo/python-list

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

2005-07-26 Thread Meyer, Tony
>>> Do people really like using __div__ to mean join? >> >> I think the '+' is used as a join for both strings and lists, so it >> would probably be the better choice as far as consistency with the >> language is concerned. > > The issue with that is that as long as we are subclassing > strings

Re: multiple inheritance super()

2005-07-27 Thread Mike Meyer
"Michele Simionato" <[EMAIL PROTECTED]> writes: >>I am mostly >>using old style (without type unification) init but this motivate the >>shift for the new style. Is there somewhere a document about this? > Yes, see http://www.python.org/2.3/mro.html by yours truly I'd also recommend reading http:/

Re: [OT] Problems with permissions etc

2005-07-27 Thread Mike Meyer
"Frank Millman" <[EMAIL PROTECTED]> writes: > While developing under linux, I use my own computer, as the only user, > so it has become my habit to login as root and do all my work as a > superuser. I know that this is not desirable, but it has become a > habit, which I am now trying to get out of

Re: searching string url

2005-07-27 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Anyway to the orginally replier - I wish it was homework ;-), that > would mean I wouldnt be trying to find myself a job as a recent > graduate... I decided to crawl something similar to the yellow pages > (do you have them in the US?) for my select area and then find

Re: monitor a folder for file creation, how?

2005-07-28 Thread Mike Meyer
fanbanlo <[EMAIL PROTECTED]> writes: > How do I monitor a folder for new file(s) creation? > How to use thread to do a wait until a new file is 'detected'? There's not a clean portable way to do this. The portable way is to poll the update time of the folder at regular intervals, and act when it

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

2005-07-28 Thread Tony Meyer
> def functions_which_modifies_some_file_in_place(path): > output = open(path+'.tmp', 'w') > . > > I dont want a seperator inserted between path and the new extension. Fair enough. Forget using '+' for join, then (which I was never that keen on - TIOWTDI), but I'm still -1 on using '/' for

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

2005-07-28 Thread Tony Meyer
> I, herewith, claim to have used it in the past. > > But I am indifferent as to if its needed, it just looks natural to me. So far there seem to have been a few +0s, but no +1s... > What I use quite often is:: > >path(__file__).dirname() / "somesiblingfileiknowisthere" > > you do not have

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

2005-07-28 Thread Tony Meyer
[using __div__ to mean join] > I'm not too happy with it, too, but do we have alternatives? > As paths are strings, we can hardly override the '+' operator, > so there's not much operators left. > > Of course, one can use joinwith() if he doesn't like '/'. My argument is that the alternative is

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

2005-07-28 Thread Tony Meyer
> Well, I actually had some correspondence with Jason on this > very subject a year or so ago: [...] > Obviously, I don't know how much weight Jason's original > ideas have on the prepped-for-syslib module, but it does > support what other people have been saying: that the Path > should behave

RE: Ten Essential Development Practices

2005-07-28 Thread Tony Meyer
[Robert Kern] > Sure, and I can find programming advice in the Old Testament, > too, if I try hard enough [...] > Proverbs 28:14 JPS "Happy is the man that feareth alway; > but he that hardeneth his heart shall fall into evil." > Obviously an exhortation to not ignore raised exceptions with > "ex

Re: writing a web client

2005-07-29 Thread Mike Meyer
"Fuzzyman" <[EMAIL PROTECTED]> writes: > Ajar wrote: >> I want to write a program which will automatically login to my ISPs >> website, retrieve data and do some processing. Can this be done? Can >> you point me to any example python programs which do similar things? >> >> Regards, >> Ajar > > Ver

Re: multiple inheritance super()

2005-07-29 Thread Mike Meyer
"Michele Simionato" <[EMAIL PROTECTED]> writes: > adding methods on the fly and metaclasses could live pretty well > without > multiple inheritance. There would be no real loss > of power and hopefully less monstruosities such > a Zope 2. But maybe this is just wishful thinking ... Um, no real lo

A replacement for lambda

2005-07-29 Thread Mike Meyer
I know, lambda bashing (and defending) in the group is one of the most popular ways to avoid writing code. However, while staring at some Oz code, I noticed a feature that would seem to make both groups happy - if we can figure out how to avoid the ugly syntax. This proposal does away with the wel

Re: Block-structured resource handling via decorators

2005-07-29 Thread Mike Meyer
"John Perks and Sarah Mount" <[EMAIL PROTECTED]> writes: > When handling resources in Python, where the scope of the resource is > known, there seem to be two schools of thought: > > (1) Explicit: > f = open(fname) > try: > # ... > finally: > f.close() > > (2) Implicit: let the GC handle i

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

2005-07-29 Thread Tony Meyer
> We're talking at this point about how Path should work, not > whether it's preferable to os.path.join, even though that was > really the point of Reinhard's original post. That's not what I'm talking about. I'm talking about whether __div__ should be a shortcut to joinwith, or whether users sh

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

2005-07-29 Thread Tony Meyer
>> (Those who are offended by sweeping generalisations should >> ignore this next bit) [...generalisation bit snipped...] > This is not only bullshit, it's elitist bullshit. "Windows users are > more clueless than users of posix systems." Pfui. Prove it > or withdraw it. Sigh. I guess you di

Re: A replacement for lambda

2005-07-30 Thread Mike Meyer
[EMAIL PROTECTED] (Bengt Richter) writes: > On Fri, 29 Jul 2005 18:07:31 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote: >>I know, lambda bashing (and defending) in the group is one of the most >>popular ways to avoid writing code. However, while staring at some Oz >>cod

Re: Wheel-reinvention with Python

2005-07-30 Thread Mike Meyer
Torsten Bronger <[EMAIL PROTECTED]> writes: > Hallöchen! > Calvin Spealman <[EMAIL PROTECTED]> writes: >> The choice is GUI toolkits is largely seperate from >> Python. Consider that they are just bindings to libraries that are >> developed completely seperate of the language. GUI is should be >>

Re: multiple inheritance super()

2005-07-30 Thread Mike Meyer
"Michele Simionato" <[EMAIL PROTECTED]> writes: I think you're replying to me, but you didn't include any indication so I can't be sure. > If I understand correcly you have a situation like this: > > Base > > | > > Parent1 Mixin > | | > | | > Children1 > > Base > > | > > Paren

Re: Wheel-reinvention with Python

2005-07-31 Thread Mike Meyer
Torsten Bronger <[EMAIL PROTECTED]> writes: > Hallöchen! > Mike Meyer <[EMAIL PROTECTED]> writes: >> Torsten Bronger <[EMAIL PROTECTED]> writes: >>> Calvin Spealman <[EMAIL PROTECTED]> writes: >>>> The choice is GUI toolkits is large

Re: Wheel-reinvention with Python

2005-07-31 Thread Mike Meyer
Cliff Wells <[EMAIL PROTECTED]> writes: > On Sun, 2005-07-31 at 00:59 -0400, Mike Meyer wrote: > >> I don't particularly like Tkinter, but it seems to me that it's pretty >> much won. It seems to be installed on every desktop platform along >> with Python.

Re: Wheel-reinvention with Python

2005-07-31 Thread Mike Meyer
Jorge Godoy <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > > [ Having GUI stuff included on a standard installation of Python ] > >> However, you can get compilers for both that come bundled with a good >> GUI library. Could it be that that's what you rea

Re: Wheel-reinvention with Python

2005-07-31 Thread Mike Meyer
Paul Rubin writes: > The others are non-Pythonic because they're not included in the > standard distro and therefore the Pythonic "use the included > batteries" tenet says to use Tkinter despite its flaws. When did "use the included batteries" become pythonic? "import t

Re: multiple inheritance super()

2005-07-31 Thread Mike Meyer
"Michele Simionato" <[EMAIL PROTECTED]> writes: > Mike Meyer: >> I think you're replying to me, but you didn't include any indication >> so I can't be sure. > > Oops, sorry, yes, I was replying to you. > >> These two are cases of wha

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

2005-07-31 Thread Tony Meyer
> Yes, I read and understood it. Saying "Don't read this if > you don't want to be offended" doesn't make an offensive > statement inoffensive. No, but it makes complaining that it was offensive pointless. > I grant that Python is much easier to learn than other > programming languages; stude

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

2005-07-31 Thread Tony Meyer
> Is classic Macintosh OS still supported on Python? No. At least, AFAIK, there is no intent to produce packages of new Python versions for Mac pre OS X. Old versions of Python still work, of course, but whatever version of Path makes it into Python (if any) is extremely unlikely to be supported

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

2005-07-31 Thread Tony Meyer
>> I agree. It's yuck. > > So don't use it. If it were that simple, I wouldn't have bothered bringing it up. I really do believe this is a case of "There should be one-- and preferably only one --obvious way to do it" (as well as "Explicit is better than implicit" and "Readability counts"). If

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

2005-07-31 Thread Tony Meyer
> While people are loathe to admit it, many stereotypes have > some basis in fact. The problem is when people extend that to generalize > about others (especially in a negative way). The intent was to use the basis-in-fact stereotype without having to explain in detail the factual basis, which

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

2005-07-31 Thread Tony Meyer
> Above all, nobody can tell me that there's any programmer who > doesn't instantly recognize '/' as a directory separator. There is a programmer who doesn't instantly recognise '/' as a directory separator. I teach programming. The above is true. I think that the statement "any programmer wou

RE: rfc822 module bug?

2005-08-01 Thread Tony Meyer
[rfc822 module bug] >> Date: Tue,26 Jul 2005 13:14:27 GMT +0200 >> >> It seems to be correct¹, but parsedate_tz is not able to >> decode it, it is confused by the absence of a space after >> the ",". [...] > I think I'll submit this bug on the Python web-site. Please don't. The rfc822 module is

Re: Wheel-reinvention with Python

2005-08-01 Thread Mike Meyer
Cliff Wells <[EMAIL PROTECTED]> writes: > On Sun, 2005-07-31 at 14:58 -0400, Mike Meyer wrote: >> And what do I use to bundle my application for Unix? Most of the >> things I build get installed on Unix servers. > You install GUI apps on Unix *servers*? Yup. Thanks to

Re: Wheel-reinvention with Python

2005-08-01 Thread Mike Meyer
Jorge Godoy <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > >> We already have multiple distributions of Python: CPython, IronPython, >> and Jython (and there's at least one more). We even have multiple >> distributions of CPython, what with Active State d

Re: Wheel-reinvention with Python

2005-08-01 Thread Mike Meyer
Torsten Bronger <[EMAIL PROTECTED]> writes: > Hallöchen! > Mike Meyer <[EMAIL PROTECTED]> writes: >> Torsten Bronger <[EMAIL PROTECTED]> writes: >>> [...] >>> >>> None of us has talked about changing syntax. However, the >>> stan

Re: Wheel-reinvention with Python

2005-08-01 Thread Mike Meyer
[EMAIL PROTECTED] (phil hunt) writes: > In practise any Python GUI is going to contain code from otyher > languages since if it was coded all the way down in python it would > be too slow. Not necessarily. My window manger is Python all the way down - it uses the Python Xlib implementation - and

Re: Wheel-reinvention with Python

2005-08-01 Thread Mike Meyer
Paul McNett <[EMAIL PROTECTED]> writes: > On Windows and Mac, you download the package and run through the wizard. Which package? I'm looking at the sourceforge download site, and don't see any packages for Python 2.4 on OS X 10.4. In fact, I don't see any packages for 10.4 at all. IIRC, they did

Re: Standards not standard

2005-08-01 Thread Mike Meyer
Dark Cowherd <[EMAIL PROTECTED]> writes: > Being able to write a usable GUI is key task for all programmers today No, it isn't. I'm a programmer. I never get paid to write usable GUIs. Most of my programs don't have a GUI at all. For those that do, I get paid to write a functional GUI. Clients tha

Re: Wheel-reinvention with Python

2005-08-02 Thread Mike Meyer
Cliff Wells <[EMAIL PROTECTED]> writes: >> > Regardless, when you say "Unix", what do you mean? You may as well say >> > "OS" as this term has little meaning. Linux (which flavor)? BSD? SCO? >> > HPUX? OS/X? Minix? Whichever way, I suspect that a bit of distutils >> > hacking would solve yo

Re: Wheel-reinvention with Python

2005-08-02 Thread Mike Meyer
Jorge Godoy <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>> In fact this sounds more like a joke I've heard a while ago: standards, >>> if you don't like the ones out there, create your own. >> Works for me. > What works for you? You believe th

Re: Wheel-reinvention with Python

2005-08-02 Thread Mike Meyer
[EMAIL PROTECTED] (phil hunt) writes: > On Tue, 02 Aug 2005 00:42:53 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote: >>[EMAIL PROTECTED] (phil hunt) writes: >>> In practise any Python GUI is going to contain code from otyher >>> languages since if it was coded al

Re: Wheel-reinvention with Python

2005-08-02 Thread Mike Meyer
Torsten Bronger <[EMAIL PROTECTED]> writes: > Hallöchen! > Mike Meyer <[EMAIL PROTECTED]> writes: >> Torsten Bronger <[EMAIL PROTECTED]> writes: >>> [...] >>> I'm interested in a language with a big community. This is my >>> definit

Re: Wheel-reinvention with Python

2005-08-02 Thread Mike Meyer
Paul McNett <[EMAIL PROTECTED]> writes: >>>project I've found, but still doable. >> Well, I've got a long history of installing things from source - >> going >> back to v6. On OS X, I like the darwin ports stuff, so I tried that: >> % sudo port install wxpython >> It blew up trying to compile wxpyt

Re: Wheel-reinvention with Python

2005-08-03 Thread Mike Meyer
Cliff Wells <[EMAIL PROTECTED]> writes: > On Tue, 2005-08-02 at 20:17 -0400, Mike Meyer wrote: > >> Um - you're not answering the question I asked. I asked "What app do I >> use to bundle my applications for Unix, ala py2exe (or whatever it is) >> for Wi

Re: Wheel-reinvention with Python

2005-08-03 Thread Mike Meyer
Torsten Bronger <[EMAIL PROTECTED]> writes: > Hallöchen! > Mike Meyer <[EMAIL PROTECTED]> writes: >> Torsten Bronger <[EMAIL PROTECTED]> writes: >>> Because such projects attract the greatest number of developers, >>> many of them being amongst

Re: Wheel-reinvention with Python

2005-08-03 Thread Mike Meyer
Cliff Wells <[EMAIL PROTECTED]> writes: > On Wed, 2005-08-03 at 09:47 -0400, Mike Meyer wrote: >> Cliff Wells <[EMAIL PROTECTED]> writes: >> > On Tue, 2005-08-02 at 20:17 -0400, Mike Meyer wrote: >> >> Um - you're not answering the question I asked

Re: Wheel-reinvention with Python

2005-08-03 Thread Mike Meyer
Mike Meyer <[EMAIL PROTECTED]> writes: >> I think you'll find that wxPython installs perfectly on Tiger using >> the package provided. Indeed, the only really painful platform to >> install wxPython on is Linux, where you pretty much need to build from >> source

Re: Standards not standard

2005-08-03 Thread Mike Meyer
Dark Cowherd <[EMAIL PROTECTED]> writes: >> > I really think that the community needs a lot more of STANDARDS not >> > a STANDARD GUI >> >> Standards happen in one of two ways. Either an 800-lb gorrilla >> establishes them by fiat, or a group of people interested in having >> their code play well

Re: Wheel-reinvention with Python

2005-08-04 Thread Mike Meyer
In <[EMAIL PROTECTED]>, Cliff Wells <[EMAIL PROTECTED]> typed: > On Thu, 2005-08-04 at 01:04 -0400, Mike Meyer wrote: > > Right. Let's go back to the original question: What's the app I use on > > Unix that acts like py2exe on Windows and py2app on Unix? >

Re: Python IDE's

2005-08-04 Thread Mike Meyer
bruno modulix <[EMAIL PROTECTED]> writes: > Jon Hewer wrote: >> I do use Vim a lot. I am currently using it for some PHP development >> i'm doing. I'm been using it so much recently that i keep pressing >> ESC and typing vi commands out of vi. >> >> But, if i use Vi, then whenever i want to tes

Re: pain

2005-08-04 Thread Mike Meyer
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2005-08-03, Mage <[EMAIL PROTECTED]> wrote: > >> Isn't jython slower (I mean performance) than java? As well as >> I understand jython code will be interpreted twice. > > Jython gets compiled into Java byte code just like Java gets > compiled into Jav

<    2   3   4   5   6   7   8   9   10   11   >