Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
comments! Markus Meyer [1] Google Groups: Python 2.5 Schedule (18 messages) http://groups.google.ca/group/comp.lang.python/browse_thread/thread/2f8be89236999a37/f6f95174484c24cc?hl=en [2] Microsoft Visual C++ Toolkit 2003 http://msdn.microsoft.com/visualc/vctoolkit2003/ -- http://mail.python.org

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
Scott, Scott David Daniels wrote: > [EMAIL PROTECTED] wrote: > > Hi everyone, > > > > which compiler will Python 2.5 on Windows (Intel) be built with? > > Same as for Python 2.4 (the decision was taken a while ago). > Intel sells a compatible compiler, I believe. the problem is not the ABI, but t

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
Mr Roboto wrote: > I haven't personally tried a Python compile w/ this, but I'll > share it in hopes that it'll help: one can download a free copy > of Visual C++ 2K5 *Express* from microsoft itself. If you're > interested, try: The problem is, when you compile an extension module with VS (Expre

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
Hi Scott, thanks for keeping up the friendly discussion. Comments below. Scott David Daniels wrote: > The disruption in Python 2.4 in switching from one compiler (VC6) to > another VS2003 was not insubstantial. By sticking with VS2003, sometime > users can at least use the same tool for Python 2

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
Hi Fredrik, first, thanks for PIL, I use it extensively in my daily work ;) Fredrik Lundh wrote: > huh? 2.5 isn't released yet. if you *have* a Python app, you can > continue to use the same compiler when you upgrade from 2.4 and 2.5. > it's not like anyone is forcing you to uninstall the compi

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
Fredrik, Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > I'm not sure how that backs the point you made. Infact, you're saying > > that people accepted that Python 2.4 was compiled with VS2003 because > > VC6 could not longer be bought. How is that different from the current > > situation wh

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
Scott, thanks for your clear words. Scott David Daniels wrote: > Nor was it clear to the PyDev community. Microsoft offered free > development systems to those among the PyDev group who were core > developers, and we took that offer. At the time we had no idea > it was on such a short-windowed

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-15 Thread meyer
> This is the .NET 11 SDK, I belive it includes the 2003 compiler (*): Last time I checked the .NET SDK they had the C# compiler in there, but not the C++ optimizing 2003 compiler. Might be wrong though -- http://mail.python.org/mailman/listinfo/python-list

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-16 Thread meyer
Martin, thanks for the tip, I wasn't fully aware of that. OTOH, though GCC might be a theoretical alternative, it isn't a practical one for many situations: * In a professional environment, it opens up another can of potential problems, where one would rather like to stay with one single compiler

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-17 Thread meyer
Martin, Martin v. Löwis wrote: > > * In a professional environment, it opens up another can of potential > > problems, where one would rather like to stay with one single > > compiler/build system. > That's a theoretic argument to me: Can you name four or five problems > out of that can? In bigge

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-19 Thread meyer
Roel Schroeven wrote: > [EMAIL PROTECTED] schreef: > > * The code created by the Windows GCC is not as good as the one created > > by the Microsoft compiler > > Isn't Python for other platforms built with GCC? Seems to me that if it > GCC is good enough for other platforms, it's good enough for Win

Re: 10 sec poll - please reply!

2012-11-20 Thread Alan Meyer
On 11/20/2012 11:29 AM, mherrmann...@gmail.com wrote: > ... generate_keystrokes? ... Not bad. "gen_keystrokes", or even "keystrokes" might also do. I suggest using a name that is unique enough that you can grep through piles of code and find where it's used. "type" fails that test. "genera

Re: list comprehension to do os.path.split_all ?

2011-07-28 Thread Alan Meyer
On 7/28/2011 4:18 PM, gry wrote: [python 2.7] I have a (linux) pathname that I'd like to split completely into a list of components, e.g.: '/home/gyoung/hacks/pathhack/foo.py' --> ['home', 'gyoung', 'hacks', 'pathhack', 'foo.py'] os.path.split gives me a tuple of dirname,basename, but the

Re: Only Bytecode, No .py Files

2011-07-29 Thread Alan Meyer
On 07/26/2011 11:19 AM, Eldon Ziegler wrote: Is there a way to have the Python processor look only for bytecode files, not .py files? We are seeing huge numbers of Linux audit messages on production system on which only bytecode files are stored. The audit subsystem is recording each open failure

Re: Another win for profiling.

2011-07-29 Thread Alan Meyer
On 07/29/2011 07:46 AM, Roy Smith wrote: It's often said that you shouldn't try to guess what's slow, but use profiling tools to measure what's slow. I had a great example of that yesterday. ... Yes. My first experience of profiling was about 25 years ago. I was experimenting with Borland'

Re: Instant File I/O

2011-03-24 Thread Jordan Meyer
That did the trick! Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Directly Executable Files in Python

2011-03-28 Thread Jordan Meyer
Is it possible to make a directly executable (such as .exe on Windows) file from scripts written in Python? So as to prevent the end-user from having to download an interpreter to run the program. -- http://mail.python.org/mailman/listinfo/python-list

Re: Composition instead of inheritance

2011-05-02 Thread Alan Meyer
On 4/28/2011 1:15 PM, Ethan Furman wrote: For anybody interested in composition instead of multiple inheritance, I have posted this recipe on ActiveState (for python 2.6/7, not 3.x): http://code.activestate.com/recipes/577658-composition-of-classes-instead-of-multiple-inherit/ Comments welcome

Re: recursive methods require implementing a stack?

2016-04-06 Thread Carl Meyer
On 04/06/2016 03:08 PM, Random832 wrote: > On Wed, Apr 6, 2016, at 16:21, Charles T. Smith wrote: >> I just tried to write a recursive method in python - am I right that >> local >> variables are only lexically local scoped, so sub-instances have the same >> ones? Is there a way out of that? Do I

Re: pytz and Python timezones

2016-06-12 Thread Carl Meyer
Hi Johannes, On 06/11/2016 05:37 AM, Johannes Bauer wrote: > I try to create a localized timestamp > in the easiest possible way. So, intuitively, I did this: > > datetime.datetime(2016,1,1,0,0,0,tzinfo=pytz.timezone("Europe/Berlin")) That is indeed intuitive, but unfortunately (due to a misunde

Re: How well do you know Python?

2016-07-05 Thread Carl Meyer
On 07/05/2016 05:50 AM, Chris Angelico wrote: > On Tue, Jul 5, 2016 at 9:33 PM, Peter Otten <__pete...@web.de> wrote: >> Chris Angelico wrote: >> >>> On Tue, Jul 5, 2016 at 6:36 PM, Peter Otten <__pete...@web.de> wrote: What will $ cat foo.py import foo class A: pass p

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: PEP 350: Codetags

2005-09-26 Thread Tony Meyer
On 27/09/2005, at 12:21 PM, Paul Rubin wrote: > Neil Hodgson <[EMAIL PROTECTED]> writes: > >> The PEP system allows for the documentation of a convention as an >> "Informational PEP". Documenting conventions is useful. > > If the preferred method of doing something is > consistent enough that

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 Tony Meyer
On 28/09/2005, at 11:05 PM, Simon Brunning wrote: > On 9/28/05, could ildg <[EMAIL PROTECTED]> wrote: > >> Python is wonderful except that it has no real private and protected >> properties and methods. >> Every py object has dict so that you can easily find what fields >> and methods >> an obj

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

2005-09-28 Thread Tony Meyer
On 28/09/2005, at 11:54 PM, Paul Rubin wrote: > Tony Meyer <[EMAIL PROTECTED]> writes: > >> I'm not sure why I haven't seen this mentioned yet, but a leading >> double-underscore does really make a member private:... >> As you see, it's there in the

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

2005-09-28 Thread Tony Meyer
On 28/09/2005, at 11:55 PM, Simon Brunning wrote: > On 9/28/05, Tony Meyer <[EMAIL PROTECTED]> wrote: > >> I'm not sure why I haven't seen this mentioned yet, but a leading >> double-underscore does really make a member private: >> > > I though

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 Tony Meyer
On 29/09/2005, at 3:45 AM, Fredrik Lundh wrote: > Tony Meyer wrote: > >>> I thought about it, but I didn't mention it in the end because this >>> feature ("name mangling") isn't intended as a mechanism for making >>> things private - it

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: A Moronicity of Guido van Rossum

2005-09-29 Thread Tony Meyer
On 30/09/2005, at 9:50 AM, Delaney, Timothy (Tim) wrote: > You have to admit though, he's remarkably good at getting past > Spambayes. Despite classifying *every* Xah Lee post as spam, he still > manages to get most of his posts classified as 0% or 1% spam. I can't believe that people are using c

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Tony Meyer
> I know nobody wants to do add "white/black-listing", so we can do it > probabilistically. In case it is not obvious, mailings with the words > "jargon" or "moron" and their derrivatives should be flagged as 99.9% > probability for Moronicity Xha Lee, Jargonizer, spam. If spam bayes > can't > fi

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: A Moronicity of Guido van Rossum

2005-09-30 Thread Tony Meyer
On 30/09/2005, at 10:56 PM, Gerrit Holl wrote: > Tony Meyer wrote: > >> X-Spambayes-Classification: ham; 0.048 >> X-Spambayes-Evidence: '*H*': 0.90; '*S*': 0.00; 'bug.': 0.07; >> 'flagged': 0.07; >> "i'd&quo

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

  1   2   3   4   5   6   7   8   9   10   >