Re: Sniffing Text Files

2005-09-22 Thread Mike Meyer
David Pratt <[EMAIL PROTECTED]> writes: > Hi. I have files that I will be importing in at least four different > plain text formats, one of them being tab delimited format, a couple > being token based uses pipes (but not delimited with pipes), another > being xml. There will likely be others as w

Re: C#3.0 and lambdas

2005-09-23 Thread Mike Meyer
"A.M. Kuchling" <[EMAIL PROTECTED]> writes: > Agreed; python-dev has gotten pretty boring with all the endless discussions > over some minor point. Of course, it's much easier and lower-effort to > propose a syntax or nitpick a small point issue than to tackle a big > complicated issue like static

Re: Sniffing Text Files

2005-09-23 Thread Mike Meyer
David Pratt <[EMAIL PROTECTED]> writes: > Thanks Mike for your reply. I am not aware of libmagic and will look > to see what it provides. and ... Skip Montanaro <[EMAIL PROTECTED]> writes: > You can also run the file(1) command and see what it says. I seem > to recall someone asking about the e

Re: Parsing an HTML a tag

2005-09-24 Thread Mike Meyer
"beza1e1" <[EMAIL PROTECTED]> writes: > I do not really know, what you want to do. Getting he urls from the a > tags of a html file? I think the easiest method would be a regular > expression. I think this ranks as #2 on the list of "difficult one-day hacks". Yeah, it's simple to write an RE that

Re: Parsing an HTML a tag

2005-09-24 Thread Mike Meyer
"beza1e1" <[EMAIL PROTECTED]> writes: > I think for a quick hack, this is as good as a parser. A simple parser > would miss some cases as well. RE are nearly not extendable though, so > your critic is valid. Pretty much any first attempt is going to miss some cases. There libraries available that

Re: ncurses programming

2005-09-26 Thread Mike Meyer
Torsten Bronger <[EMAIL PROTECTED]> writes: > Hallöchen! > > "ncf" <[EMAIL PROTECTED]> writes: > >> [...] >> >> Py Docs: http://docs.python.org/lib/module-curses.html > > This document suggests that Python+ncurses won't work on windows. > What's the reason for this? Could it be that ncurses doe

Re: attribute error

2005-09-26 Thread Mike Meyer
"M.N.A.Smadi" <[EMAIL PROTECTED]> writes: > HI; > > I am having the following error. I am using someone else's code and > all they are doing is pass an argv to a function then > > def execute_action(manager, argv): > method_name = argv.pop(0).lower() > > > and am getting this strange error.

Re: Overhead of individual python apps

2005-09-27 Thread Mike Meyer
"Qopit" <[EMAIL PROTECTED]> writes: > When running in Windows, launching each application generates a > process, and each of those processes ends up taking up > 4MB of system > memory. This memory usage is as reported by the Windows Task manager > for the python.exe image name. The first step is

Re: Human readable number formatting

2005-09-27 Thread Mike Meyer
Alex Willmer <[EMAIL PROTECTED]> writes: > When reporting file sizes to the user, it's nice to print '16.1 MB', > rather than '16123270 B'. This is the behaviour the command 'df -h' > implements. There's no python function that I could find to perform this > formatting , so I've taken a stab at it

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin writes: > Chris Gonnerman <[EMAIL PROTECTED]> writes: >> -- Make it easy to do right. >> >> What you are promoting is the first philosophy: Tie the programmer's >> hands so he can't do wrong. Python for the most part follows the >> second philosophy, making

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin writes: > Gregor Horvath <[EMAIL PROTECTED]> writes: >> > to be able to share private variables with other classes under certain >> > circumstances, it's better to use something like C++'s "friend" >> > declaration, where you can export the variables to a spec

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> Note that the quoted article only applies to *writing* attributes. It >> doesn't say anything about needing accessors to *read* a >> variable. This encourages me th

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> > Generally that sounds reasonable. Obviously there are other examples >> > when (e.g. for security) you have to make sure that variables can't be >> > re

Re: A quick c.l.p netiquette question

2005-09-29 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: >> I think you missed the other Peter's second post, where he points to >> his >> program: http://www.pick.ucam.org/~ptc24/yvfc.html >> I didn't read every one of his 158 lines, but his code is pure >> poetry, or >> possibly triple-distilled evil, depending

Re: attribute error

2005-09-29 Thread Mike Meyer
and', argv[2]) This should be execute_action('command', argv[2:]), with the ':' added. def execute_action(manager, argv): > method_name = argv.pop(0).lower() > > > > but i always thought that something like this will be standard stuff. >

Re: attribute error

2005-09-29 Thread Mike Meyer
telling you that string doesn't *have* a pop method. The interpreter is right. Strings are immutable, so "pop" doesn't make any sense for them. > Mike Meyer wrote: > > >In <[EMAIL PROTECTED]>, M.N.A.Smadi <[EMAIL PROTECTED]> typed: > >

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Mike Meyer
Paul Rubin writes: > Bill Mill <[EMAIL PROTECTED]> writes: >> Python is for consenting adults. > > Python might be for consenting adults, but multi-person software > projects are supposed to be done in the workplace, not the bedroom. > So there are still some software con

Re: Will python never intend to support private, protected and public?

2005-09-30 Thread Mike Meyer
Paul Rubin writes: > OTOH, "private" lets you say 100% for certain that another class > didn't clobber __xyz, and that any bug that clobbered it MUST reside > in the class that declared it. That makes auditing for __xyz-related > errors a lot simpler since you only have

Re: Hello gnome-terminal

2005-09-30 Thread Mike Meyer
egbert <[EMAIL PROTECTED]> writes: > When I start the following script in a gnome-terminal: > > #!/usr/bin/env python > import os > print "hello gnome-terminal" > print os.environ["PYTHONPATH"] > > I see the expected results in the same gnome-terminal window. > > However start

Re: Google Not Universal Panacea

2005-09-30 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > However, > > >> Are people really too lazy to do elementary research on Google? > > goes a bit too far in imputing motives to the enquirer and overlooking > the fact that there are some very good reasons for *not* using Google. Ok, *what* are the reasons

Re: where to post python code?

2005-09-30 Thread Mike Meyer
Alessandro Bottoni <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > >> the question it - where should i post the code to? >> It's not big enough to justify a source forge project, nor is it small >> enough to be considered a receipt fit for ASPN's Python Cookbook. > > Maybe "The Vaults of

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > [off-list] > > Peter Hansen wrote: >> Gerrit Holl wrote: >> >>>True. However, most mail to this mailinglist has less than 0.001 spam >>>probability. As you can see, this one had 0.048 - a vast score, almost >>>enough to put it in my unsure box. It seems t

Re: Will python never intend to support private, protected and public?

2005-09-30 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> So, fool._bar is now clobbered. Nuts, the _bar attribute is broken for >> *every* instance of Fools. According to you, the error must be in >> Fools. Care to point it

Re: Will python never intend to support private, protected and public?

2005-10-01 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> Unless your compiler detects and flags passing private variables to >> external functions all you've got is a convention that you don't pass >> private variables

Re: OT: Phases of the moon

2005-10-01 Thread Mike Meyer
Bart Lateur <[EMAIL PROTECTED]> writes: > Steven D'Aprano wrote: > >>A skeptical policeman who says he doesn't actually believe the moon >>affects behaviour nevertheless reports that "last weekend" things were >>really crazy, and it was a full moon. Somebody writes in to correct him: >>no, the ful

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> > Yes, the point is that it's something that you can check for by >> > examining the class in question without having to examine any other >> > classes. >>

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Well, it's a discussion of why a certain feature might be useful, not > that it's required. Mike Meyer points out some reasons it might be > hard to do smoothly without changing Python semantics in a deep way &g

Re: Program help

2005-10-02 Thread Mike Meyer
"FX" <[EMAIL PROTECTED]> writes: > can anybody write a code for a program that reads from a > /location/file & according to file contents, it execute script. e.g. if > file contains "mp" it runs media player. > I hope the code is small .. plz help me out! open http://www.mired.org/downloads/ > wi

Re: Python for search engine development

2005-10-02 Thread Mike Meyer
"corebump" <[EMAIL PROTECTED]> writes: > hi everybody, > i planinng develop a search engine and i think using the python. Python > performance is enough this project? If you're going to do the heavy lifting in Python, maybe. It depends on what you're going to search, and the performance requirem

Re: Automating, Building, Testing and Deploying to Production Server

2005-10-02 Thread Mike Meyer
"yoda" <[EMAIL PROTECTED]> writes: > Hi Guys, > I've been used to deploying code to the production server by checking > out of subversion and manually sorting out any kinks. (yes, I know, it > sounds primitive) Actually, it sounds like your test/development environment is primitive. There should

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> > What convention? It just makes it possible to write code with some >> > specific invariants if there's a need to do so. >> That you don't pass private va

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> >> Compile-time restrictions don't matter for squat - you need >> >> serious restrictions on what the program can do at runtime. >> > You need both. &g

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> Which brings me to my point. Rather than trying to bandage Python to >> do what you want - and what, based on this thread, a lot of other >> people *don't* want - yo

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> I'd say CPython was missing the features that you need to guarantee >> that. Missing quite a *lot* of features, in fact. But Python has never >> been about keeping peo

Re: Will python never intend to support private, protected and public?

2005-10-03 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> > Privilege separation is considered a good coding practice. How does >> > Python help it? >> With conventions and name mangling. Which are only slightly less >>

Re: Will python never intend to support private, protected and public?

2005-10-03 Thread Mike Meyer
Paul Rubin writes: >> > That's not what privilege separation means. It means that the >> > privileged objects stay secure even when the unprivileged part of the >> > program is completely controlled by an attacker. >> In which case, what's "private" got to do with this?

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Mon, 03 Oct 2005 06:59:04 +, Antoon Pardon wrote: > Declared variables have considerable labour costs, and only marginal > gains. Since the steps you take to protect against other errors will also > protect against mistyping variables, declaratio

Re: Reply-To header

2005-10-03 Thread Mike Meyer
Peter Decker <[EMAIL PROTECTED]> writes: > Setting the default Reply-To: to the list means that 'Reply' sends > just to the list (the desired behavior most of the time), and 'Reply > to all' sends 2 copies. No, it sends one copy to the list, and one copy to the original author. This is the behavio

Re: Reply-To header

2005-10-03 Thread Mike Meyer
Roel Schroeven <[EMAIL PROTECTED]> writes: > Peter Decker wrote: >> Setting the default Reply-To: to the list means that 'Reply' sends >> just to the list (the desired behavior most of the time), and 'Reply >> to all' sends 2 copies. > The thing is: Reply-to has legitimate uses. I don't really unde

Re: Reply-To header

2005-10-03 Thread Mike Meyer
Roel Schroeven <[EMAIL PROTECTED]> writes: > Is that really the desired behaviour? IMO the least you can do if you're > searching for help is subscribing to the mailing list on which you're > looking for help. Me and many others don't like to receive replies > directly instead of via the mailing li

Re: Will python never intend to support private, protected and public?

2005-10-03 Thread Mike Meyer
Paul Rubin writes: >> A couple of other things to think about: >> Are you sure you want to use the C++ model for privilege separation? > I'm not sure what you mean by the C++ model. If you mean the Java > model, as I keep saying, applet sandbox security relies on it, so

Re: packaging a python project and associated graphics files

2005-10-03 Thread Mike Meyer
Rajarshi Guha <[EMAIL PROTECTED]> writes: > Hi, I've been trying to package a python project and I'm a little confused > about how I distribute some PNG's that the program uses as icons. > > Using distutils I can set the data_files argument of setup() and get my > data files located in, say, /usr/

Re: Controlling who can run an executable

2005-10-03 Thread Mike Meyer
"Cigar" <[EMAIL PROTECTED]> writes: > Now that I'm three months into the development of this program, my > client tells me she would like to protect her investment by preventing > her employees from doing the same to her. (Going to the competition > and using her program.) First thing to know; yo

Re: "no variable or argument declarations are necessary."

2005-10-04 Thread Mike Meyer
Antoon Pardon <[EMAIL PROTECTED]> writes: > Op 2005-10-03, Steven D'Aprano schreef <[EMAIL PROTECTED]>: >> On Mon, 03 Oct 2005 13:58:33 +, Antoon Pardon wrote: > Declarations also allow easier writable closures. Since the declaration > happens at a certain scope, the run time can easily find th

Re: "no variable or argument declarations are necessary."

2005-10-04 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: >> My gut reaction is that it's a wash. The time taken to declare >> variables in well-written code in a well-designed language - meaning >> the declarations and use will be close together - isn't all that >> great, but neither are the savings. > You've g

Re: Reply-To header

2005-10-04 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> When I notice that a list is broken (RFC 2822 says that >> reply-to is for the *author* of the message; anyone else setting it is >> doing so in violation of the RFC, and hence broken, no matter h

Re: ssh or other python editor

2005-10-04 Thread Mike Meyer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >>- I'm a newbie at freeBSD so I think there is , but I don't know where. > Putty isn't doing any syntax coloring; it just draws things in the color > specified > by your editor. If you don't get any colors, it's probably beca

Re: Newbie Text Processing Question

2005-10-04 Thread Mike Meyer
[EMAIL PROTECTED] writes: > I'm a total newbie to Python so any and all advice is greatly > appreciated. Well, I've got some for you. > I'm trying to use regular expressions to process text in an SGML file > but only in one section. This is generally a bad idea. SGML family languages aren't easy

Re: "no variable or argument declarations are necessary."

2005-10-05 Thread Mike Meyer
Antoon Pardon <[EMAIL PROTECTED]> writes: >>> They also relieve a burden from the run-time, since all variables >>> are declared, the runtime doesn't has to check whether or not >>> a variable is accesible, it knows it is. >> Not in a dynamic language. Python lets you delete variables at run >> tim

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Mike Meyer
Pierre Barbier de Reuille <[EMAIL PROTECTED]> writes: > Mike Meyer a écrit : >> Antoon Pardon <[EMAIL PROTECTED]> writes: >> >>>Op 2005-10-03, Steven D'Aprano schreef <[EMAIL PROTECTED]>: >>> >>>>On Mon, 03 Oct 2005 13:58:

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Mike Meyer
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> I think we're using different definitions of statically typed >> here. A language that is statically typed doesn't *need* type >> inferencing - the types are all

Re: "no variable or argument declarations are necessary."

2005-10-06 Thread Mike Meyer
Barbier de Reuille <[EMAIL PROTECTED]> writes: > Dans l'article <[EMAIL PROTECTED]>, Mike Meyer a écrit : >> Pierre Barbier de Reuille <[EMAIL PROTECTED]> writes: >>> Mike Meyer a écrit : >>>> Antoon Pardon <[EMAIL PROTECTED]> writes

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-06 Thread Mike Meyer
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2005-10-06, DaveM <[EMAIL PROTECTED]> wrote: >>>Frankly, I can't watch Shakespeare or movies like "the full >>>monty" or "trainspotting" because I can't understand a damn >>>word they say. British talk sounds like gibberish to me for the >>>most part.

Re: Python recipes: list mixin, improved timeit, etc

2005-10-07 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Thu, 06 Oct 2005 21:03:33 -0700, barnesc wrote: >> I added some recipes to the Python Cookbook: >> >> - listmixin >> >>Use ListMixin to create custom list classes from a small subset of >>list methods: >> >>http://aspn.activestate.com

Re: os.access with wildcards

2005-10-07 Thread Mike Meyer
"mike" <[EMAIL PROTECTED]> writes: > Test for the existence of one or more matches of the wildcard > expression. > > For example: > > Are there any files that begin with 2005? > > This doesn't work (wish it did): > os.access('2005*',os.F_OK) I would considering it suprising if it worked.

Re: Matching zero only once using RE

2005-10-07 Thread Mike Meyer
"GregM" <[EMAIL PROTECTED]> writes: > I've looked at a lot of pages on the net and still can't seem to nail > this. Would someone more knowledgeable in regular expressions please > provide some help to point out what I'm doing wrong? > > I am trying to see if a web page contains the exact text: > Y

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Wed, 05 Oct 2005 09:38:49 +1000, Steven D'Aprano > <[EMAIL PROTECTED]> wrote or quoted : > >>Yes it is. HTML means that after I've specified my email client use my >>favourite font, in the size I like, people send me emails that over-ride >>my choice. I

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Tue, 04 Oct 2005 17:57:13 -, [EMAIL PROTECTED] (Gordon > Burditt) wrote or quoted : > >>HTML enables a heck of a lot of problems: "web bugs" in email, >>links to fake sites that appear as real ones in what shows up >>on the screen, Javascript virus

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sat, 08 Oct 2005 17:41:38 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>If you've got a browser with a better solution, what's the browser, >>and what's the solution? > Try Opera. You ca

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > This is one of the marvels of CSS once you get the hang of it. If you > don't like bright red letters on green backgrounds, you can CHANGE > that. You can change the fonts, sizes etc etc. You can if you want get > something very like plain ASCII text. Sho

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Paul Rubin writes: > I read mail over an ssh connection to a Unix shell. I have no easy > way to read html email with a graphics browser. You don't need a grahics browser - you just need a browser. I read mail in emacs, and use emacs-w3m to view html in the mailer. Work

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 04:44:25 -, [EMAIL PROTECTED] (Gordon > Burditt) wrote or quoted : > >>And how do you fix the problem of unsolicited USENET articles? >>(*ALL* of them are unsolicited to someone). Or unsolicited >>email? > > Read my essay. > http

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sat, 08 Oct 2005 19:56:50 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : > >>Show us *examples*! Do you create a style sheet for every site you >>visit that overrides there classes? What? > > Why

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > There is no fundamental reason that formatted spam should have an > easier time penetrating your defenses than plain text spam. Formatted spam can include pictures of words. That's a common spam tactic - send a multipart/alternative with a text part that l

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
"Dr.Ruud" <[EMAIL PROTECTED]> writes: > Let procmail make all those decisions and transformations for you. I prefer qmail dot-commands. It provides an architecture for controlling the delivery of email, and lets you write the smarts of the mail processing in whatever language you want. > I have a

Re: new forum -- homework help/chit chat/easy communication

2005-10-09 Thread Mike Meyer
Lasse Vågsæther Karlsen <[EMAIL PROTECTED]> writes: > Fredrik Lundh wrote: > >> "Unlike mainstream component programming, scripts usually >> do not introduce new components but simply "wire" existing >> ones. Scripts can be seen as introducing behavior but no >> new state. /.../ O

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Tim Tyler <[EMAIL PROTECTED]> writes: > In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: >> The technial problems have been solved for over a decade. NeXT shipped >> systems that used text/richtext, which has none of the problems that >

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Tim Tyler <[EMAIL PROTECTED]> writes: > In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: >> Roedy Green <[EMAIL PROTECTED]> writes: >> > Read my essay. >> > http://mindprod.com/projects.html/mailreadernewsreade

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > Perhaps you could slow them down with some randomly chosen questions > to prove they know something about you. Companies could do the same > thing. Challenge-response system are old hat. I use one, and it reduces my spam by three orders of magnitude. Most

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 05:55:01 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>Virus writers will love the ability to >>change peoples address books remotely. > Since this is just a broad brush view, I find it odd

Re: searching a project to contribute to

2005-10-09 Thread Mike Meyer
"Clint Norton" <[EMAIL PROTECTED]> writes: > Hi all, > I'm a student currently in the beginning of my master's degree and > I'm searching for an interesting open source project written in Python > to contribute to. > I have worked as a programmer for the past few years (mostly in > academia

Re: searching a project to contribute to

2005-10-09 Thread Mike Meyer
"Clint Norton" <[EMAIL PROTECTED]> writes: > Well, > I though about it but I'm looking for something a little more > interesting then bug fixing... Bug fixing is an easy way to start learning the code and providing an immediate contribution to the project. As for interesting - you gotta pick

Re: Jargons of Info Tech industry

2005-10-10 Thread Mike Meyer
Tim Tyler <[EMAIL PROTECTED]> writes: > The "user mode" uses style sheets you specify. > > There's a whole bunch of built-in ones - and you can cascade them: Yup, saw those. > ``There is also the inclusion of 12 packaged user style sheets and an easy > menu application interface (View > Style)

Re: Python's Performance

2005-10-10 Thread Mike Meyer
Donn Cave <[EMAIL PROTECTED]> writes: > I agree that there are many shades of grey here, but there's also a > real black that's sharply distinct and easy to find -- real native > code binaries are not interpreted. Except when they are. Many machines are microcoded, which means your "real native co

Re: Python's garbage collection was Re: Python reliability

2005-10-10 Thread Mike Meyer
Tom Anderson <[EMAIL PROTECTED]> writes: > Has anyone looked into using a real GC for python? I realise it would > be a lot more complexity in the interpreter itself, but it would be > faster, more reliable, and would reduce the complexity of extensions. > > Hmm. Maybe it wouldn't make extensions e

Re: Python's Performance

2005-10-10 Thread Mike Meyer
Donn Cave <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> > wrote: > >> Donn Cave <[EMAIL PROTECTED]> writes: >> > I agree that there are many shades of grey here, but there's also a >> &g

Re: convert char to byte representation

2005-10-10 Thread Mike Meyer
[Format recovered from top posting.] Larry Bates <[EMAIL PROTECTED]> writes: > Grant Edwards wrote: >> On 2005-10-10, Larry Bates <[EMAIL PROTECTED]> wrote: I am trying to xor the byte representation of every char in a string with its predecessor. But I don't know how to convert a char int

Why asci-only symbols?

2005-10-10 Thread Mike Meyer
Out of random curiosity, is there a PEP/thread/? that explains why Python symbols are restricted to 7-bit ascii? http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-

Re: Batteries Included?

2005-10-11 Thread Mike Meyer
"Alex" <[EMAIL PROTECTED]> writes: > One of the first things I wanted to do when I start learning Python was > to produce a simple standalone application that I could distribute to > my users (windows users). Python's moto is "Batteries Included", but > where are the batteries for making exe files

Re: Let My Terminal Go

2005-10-11 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Hello, > > A user of my application points me to a behavior in gVim, > the text editor, that I would like to implement in my > application. > > When gVim is launched from a shell terminal, it completely > frees the terminal. You can continue to use

Re: Jargons of Info Tech industry

2005-10-11 Thread Mike Meyer
[EMAIL PROTECTED] writes: > I don't know how much spam other people receive but on one account I > hardly receive any as I reserve it for friends and business. On another > I had about 40 spam messages which took all of ten seconds to delete. > Hardly a serious matter. You don't have a spam proble

Re: piping out binaries properly

2005-10-11 Thread Mike Meyer
Andy Leszczynski writes: > I have got following program: > > import sys > import binascii > from string import * > sys.stdout.write(binascii.unhexlify("41410A4141")) > > > when I run under Unix I got: > > $ python u.py > u.bin > $ od -t x1 u.bin > 000 41 41 0a 41 41 > > and under Windows/Cygwi

Re: piping out binaries properly

2005-10-11 Thread Mike Meyer
Andy Leszczynski writes: > Mike Meyer wrote: >> It's not normal to write binary content to stdout - you normally write > > Well, I grew up in the Unix world and it is normal over there. I watched the Unix world grow up, and it ain't normal to me. I don't think I&

Re: piping out binaries properly

2005-10-11 Thread Mike Meyer
marduk <[EMAIL PROTECTED]> writes: > On Wed, 2005-10-12 at 00:16 -0400, Mike Meyer wrote: > [...] >> It's not normal to write binary content to stdout - you normally write >> it to a file. Open the file with open(name, 'wb') to write binaries. >> >

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Casper H.S. Dik <[EMAIL PROTECTED]> writes: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >>Can I remind you that spam is approximately 70% of all email traffic these >>days? Most of that is blocked by the ISPs, but even so you are obviously >>one of the lucky few. > > 95% - 99% of all email, not 7

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 20:06:34 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>Nah, I've just know people who spend a lot of time - and money - >>dealing with spam, and we've discussed these issues at great

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 06:32:07 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>Formatted spam can include pictures of words. That's a common spam >>tactic - send a multipart/alternative with a text part that

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 19:25:46 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>The downside is that I have no idea how many people try to contact me >>out of the blue, or from an address other than the one I sent

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 19:25:46 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : > You don't need 100% spam blocking to effectively solve the spam > problem. You just have to make spam uneconomic. There are good reason

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Wed, 12 Oct 2005 21:46:12 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote > or quoted : > >>Viruses can mail out change of address messages to everyone in the >>compromised machine's address book today. >> >>Of course, viruses don't bother doing that - since

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > 3. prevent phishing. When PayPal sends you an email, you want to know > for sure it really is from PayPal. This means corporate users at > least will all have digital ids, and all emails will be digitally > signed. That won't prevent phishing, that will

Re: Jargons of Info Tech industry

2005-10-13 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Thu, 13 Oct 2005 01:32:03 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>That won't prevent phishing, that will just raise the threshhold a >>little. The first hurdle you have to get past is that most mail

Re: FORM data in cgi

2005-10-13 Thread Mike Meyer
"jponiato" <[EMAIL PROTECTED]> writes: > Greetings. > An HTML form submits it's data to a python cgi script on my server. This > script accepts this POST data, and uses urllib.urlopen() to call a different > cgi script (on an external server), passing this same data. I'm using > cgi.FieldStorag

Re: Jargons of Info Tech industry

2005-10-13 Thread Mike Meyer
Brendan Guild <[EMAIL PROTECTED]> writes: >> 2. flipping to a sender pays system so that the Internet does not >> subsidise spam. > > This is very promising. Our ISPs should put limits on how much email we > can send. The limits should be rather insane, nothing that any > nonspammer would ever co

Re: Python's garbage collection was Re: Python reliability

2005-10-14 Thread Mike Meyer
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > And regarding the "zero exceptions" - I know for sure that quite a few > programs were crashing when the transition in 68K from 24 bit > addresses to real 32 bit was done on popular systems like the ATARI ST > - as some smart-asses back then used the

Re: UI toolkits for Python

2005-10-14 Thread Mike Meyer
"Adriaan Renting" <[EMAIL PROTECTED]> writes: [On Qt] > I don't know how it performs on OSX, I think it works fine, as Qt is > available on OSX. Qt on OS X is halfway there. It looks - and acts - like an aqua application. However, to support the Command key, they hacked things so that it is report

Re: Jargons of Info Tech industry

2005-10-14 Thread Mike Meyer
Paul Rubin writes: >> Not so: you disable Java, Javascript and plugins. You leave the ability >> to format, colour and hint documents. This is not /that/ difficult. > Don't forget disabling Unicode. To kill web bugs, you have to turn off images, and anything else th

Re: UI toolkits for Python

2005-10-14 Thread Mike Meyer
"Adriaan Renting" <[EMAIL PROTECTED]> writes: >>>>Mike Meyer <[EMAIL PROTECTED]> 10/14/05 5:39 pm >>> > $"Adriaan Renting" <[EMAIL PROTECTED]> writes: > $[On Qt] > $>I don't know how it performs on OSX, I think it work

Re: Problem splitting a string

2005-10-14 Thread Mike Meyer
Robert Kern <[EMAIL PROTECTED]> writes: > Anthony Liu wrote: >> I have this simple string: >> >> mystr = 'this_NP is_VL funny_JJ' >> >> I want to split it and give me a list as >> >> ['this', 'NP', 'is', 'VL', 'funny', 'JJ'] > You could use regular expressions as Jason Stitt mentions, or you cou

Re: MD5 module Pythonicity

2005-10-14 Thread Mike Meyer
Leandro Lameiro <[EMAIL PROTECTED]> writes: > What's wrong in having a function like the one I said, that would > split files for you, feed md5.update and, when it is over, return the > digest? Nothing in particular; it's just a trivial thing to write. If you add every usefull utility function to

  1   2   3   4   5   6   7   8   9   10   >