Re: BeautifulSoup error

2006-06-15 Thread William Xu
"Serge Orlov" <[EMAIL PROTECTED]> writes: [...] > Upgrading python-beautifulsoup is a good idea, since there were two bug > fix releases after 3.0.1 I just downloaded latest version 3.0.3 from its homepage, seems it still has the same problem. -- William PL/I -- "the fatal disease" -- belongs

Need help with apack compression code

2006-06-15 Thread kuwanger
I've been working on some python code to have an open source apack compression (http://www.ibsensoftware.com/products_aPACK.html is a link to the original proprietary version). Just to clarify the legality of all of this, from decompressor source written by Dwedit in arm/thumb assembly I ended up

Re: Looking for examples related to advanced python string, list and map operations

2006-06-15 Thread gene tani
A.M wrote: > Hi, > > > > Is there any online resource that gives examples about advanced python > string, list and map operations? > http://goog-goopy.sourceforge.net/goopy.functional.html#-variance http://oakwinter.com/code/functional/documentation.html -- http://mail.python.org/mailman/listin

Re: BeautifulSoup error

2006-06-15 Thread Serge Orlov
William Xu wrote: > Hi, all, > > This piece of code used to work well. i guess the error occurs after > some upgrade. > > >>> import urllib > >>> from BeautifulSoup import BeautifulSoup > >>> url = 'http://www.google.com' > >>> port = urllib.urlopen(url).read() > >>> soup = BeautifulSoup() > >>> so

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

2006-06-15 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > the problem is not the ABI, but the runtime libraries. From what you're > saying, it looks like we will have to standardize on VS2003. As I said, > we need to buy VS anyway because of the MFC support. On the other hand, > I really worry about all those people that want to

Re: BeautifulSoup error

2006-06-15 Thread Ben Finney
William Xu <[EMAIL PROTECTED]> writes: > >>> import urllib > >>> from BeautifulSoup import BeautifulSoup > >>> url = 'http://www.google.com' > >>> port = urllib.urlopen(url).read() Gets the data from the HTTP response. (I'm not sure why you call this "port".) The data is HTML text encoded to a st

Re: a good programming text editor (not IDE)

2006-06-15 Thread Grant Edwards
On 2006-06-15, Dave Hansen <[EMAIL PROTECTED]> wrote: > Very small, very fast, very powerful, and very portable (though I'm > not sure about Mac...): Take a look at Jed from www.jedsoft.org. It's been my editor of choice for many years. Running Emacs on a machine with 8MB of RAM and 80MB of disk

Re: a good programming text editor (not IDE)

2006-06-15 Thread Grant Edwards
On 2006-06-15, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > You died in last century with your editor, we have tabs. My condolences. I hear there's a cure for that, though. -- Grant Edwards grante Yow! These PRESERVES at

MS VC++ Toolkit 2003 installer (VCToolkitSetup.exe)

2006-06-15 Thread atwardoch
I need to build some Win32 Python extensions. If somebody happens to have the Microsoft Visual C++ Toolkit 2003 installer (VCToolkitSetup.exe), please kindly contact me off-list at: list.adam [at] twardoch.com Thank you, Adam Twardoch -- http://mail.python.org/mailman/listinfo/python-list

Re: a good programming text editor (not IDE)

2006-06-15 Thread josiah . carlson
John Salerno wrote: > I know there's a request for a good IDE at least once a week on the ng, > but hopefully this question is a little different. I'm looking for > suggestions for a good cross-platform text editor (which the features > for coding, such as syntax highlighting, etc.) but not a full

BeautifulSoup error

2006-06-15 Thread William Xu
Hi, all, This piece of code used to work well. i guess the error occurs after some upgrade. >>> import urllib >>> from BeautifulSoup import BeautifulSoup >>> url = 'http://www.google.com' >>> port = urllib.urlopen(url).read() >>> soup = BeautifulSoup() >>> soup.feed(port) Traceback (most recent c

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Dan Bishop
John Salerno wrote: > So out of curiosity, I'm just wondering how everyone else came to learn > [Python] I first heard about Python in the footnotes for Bruce Eckels' book "Thinking in Java", which I had bought for a Java course I took in 2000. Eventually, I decided to take a look at python.org,

Re: a good programming text editor (not IDE)

2006-06-15 Thread Michael Williams
If you're on a Mac, I'd recommend TextWrangler (http:// www.barebones.com/products/textwrangler/) hands down. -- http://mail.python.org/mailman/listinfo/python-list

Re: Need Help comparing dates

2006-06-15 Thread John Machin
On 16/06/2006 11:23 AM, Ben Finney wrote: > [EMAIL PROTECTED] writes: > >> I am new to Python and am working on my first program. I am trying >> to compare a date I found on a website to todays date. The problem I >> have is the website only shows 3 letter month name and the date. >> Example: Jun

Re: Need Help comparing dates

2006-06-15 Thread Ben Finney
Tim Chase <[EMAIL PROTECTED]> writes: > If you need to map the month-strings back into actual dates, you > can use this dictionary: > > >>> month_numbers = dict([(date(2006, m, 1).strftime("%b"), m) > for m in range(1,13)]) Or you can just use the same format codes to specify that time.strpti

Re: Need Help comparing dates

2006-06-15 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] writes: > > I am new to Python and am working on my first program. I am trying > > to compare a date I found on a website to todays date. The problem I > > have is the website only shows 3 letter month name and the date. > > Example: Jun 1

Re: Need Help comparing dates

2006-06-15 Thread Tim Chase
> I am new to Python and am working on my first program. I am trying to > compare a date I found on a website to todays date. The problem I have > is the website only shows 3 letter month name and the date. > Example: Jun 15 No year, right? Are you making the assumption that the year is the curr

Re: Need Help comparing dates

2006-06-15 Thread Ben Finney
[EMAIL PROTECTED] writes: > I am new to Python and am working on my first program. I am trying > to compare a date I found on a website to todays date. The problem I > have is the website only shows 3 letter month name and the date. > Example: Jun 15 The 'datetime' module in the standard library

Pickling gotcha

2006-06-15 Thread George Sakkis
I stumbled on some weird pickling behavior that after some non-trivial debugging time turned out to be caused by __getstate__ returning an empty dict for some instances. As I found digging through the docs (http://pythondoc.kldp.net/lib/pickle-inst.html), surprisingly __setstate__ is not called nor

Re: API functions not working as expected

2006-06-15 Thread John Machin
On 16/06/2006 9:51 AM, Kirk McDonald wrote: > ... for reasons that are obvious in retrospect. Specifically, I am > talking about the PyNumber_InPlace* family of functions. For example, > the docs for InPlaceAdd say: > > PyObject* PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2) > Return value

Re: list of polynomial functions

2006-06-15 Thread Josiah Manson
> I'm curious why the very first attempt to call p(3) doesn't bomb > out with the NameError that "polys" wasn't defined before it even > got to the point of attempting to call it. In the first call, the 0th lambda function is evaluated, and it was defined as the constant function 1. The functions

Need Help comparing dates

2006-06-15 Thread colincolehour
I am new to Python and am working on my first program. I am trying to compare a date I found on a website to todays date. The problem I have is the website only shows 3 letter month name and the date. Example: Jun 15 How would I go about comparing that to a different date? The purpose of my progra

Re: code folding, a unique problem to python?

2006-06-15 Thread jussij
John Salerno wrote: > But my question is more general: is it possible to > implement code folding with Python given that it has > no real block delimiters? I can't speak for UltraEdit, but the Zeus will quite happily fold Python code: http://www.zeusedit.com/features.html Jussi Jumppanen Au

Video capture from webcam on Mac?

2006-06-15 Thread Joseph Chase
Is there a cross-platform solution for video capture from a webcam? I am aware of the Win32 videocapture library, but am unaware of how to accomplish the same functionality on the Mac side. Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: a good programming text editor (not IDE)

2006-06-15 Thread BartlebyScrivener
re soft word wrap >I have advocated seeing lines (with a CR and/or LF) as paragraphs, and > making the display of lines a matter of the particular display, not the > original data. That is much more natural for wrapped text, i.e. real > text rather than computer-parseable files. I agree. Meanwhi

Re: a good programming text editor (not IDE)

2006-06-15 Thread Dave Cook
On 2006-06-15, Dave Hansen <[EMAIL PROTECTED]> wrote: > Very small, very fast, very powerful, and very portable (though I'm > not sure about Mac...): Take a look at Jed from www.jedsoft.org. > > You might not find it pretty, however... But if your distro includes xjed (ubuntu/debian, but not newe

Re: a good programming text editor (not IDE)

2006-06-15 Thread david . reitter
Slawomir Nowaczyk wrote: > #> That's true, but even emacs and xemacs don't offer simple automatic > #> word wrap (i.e. wrap a line without splitting words or putting an eol > #> or hard carriage return at the end of every line). > > Of course it does... there is longlines.el and longlines-mode in

Re: Python is fun (useless social thread) ;-)

2006-06-15 Thread Remi Villatel
John Salerno wrote: [---CUT---] > So out of curiosity, I'm just wondering how everyone else came to learn > it. [---CUT---] I just needed it. I needed it to recode text files from my old Atari computer for my Linux box. I had already seen Python sources during some googling ses

API functions not working as expected

2006-06-15 Thread Kirk McDonald
... for reasons that are obvious in retrospect. Specifically, I am talking about the PyNumber_InPlace* family of functions. For example, the docs for InPlaceAdd say: PyObject* PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2) Return value: New reference. Returns the result of adding o1 a

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: Looking for examples related to advanced python string, list and map operations

2006-06-15 Thread James Stroud
A.M wrote: > Hi, > > > > Is there any online resource that gives examples about advanced python > string, list and map operations? > > > > Today I saw this and I found that I have to work more on mentioned topics: > > > > numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100,

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

2006-06-15 Thread Rob Williscroft
wrote in news:[EMAIL PROTECTED] in comp.lang.python: >> As nikie pointed out, you can buy a 1-year MSDN Pro Subscription that >> includes the VS2003 system. All that stopped is the free toolkit. > > The MSDN Pro Subscription is not really an option because we have no > use for the 2005 compile

Re: a good programming text editor (not IDE)

2006-06-15 Thread Neil Hodgson
John Salerno: > Based on another thread, I tried out Scite, but no matter what I do it > doesn't seem to remember the window size and position, or any options I > choose (like showing line numbers). It seems to always reset itself each > time I open it. SciTE is configured by modifying opt

Re: a good programming text editor (not IDE)

2006-06-15 Thread Slawomir Nowaczyk
On Thu, 15 Jun 2006 15:52:49 -0700 BartlebyScrivener <[EMAIL PROTECTED]> wrote: #> >> Most IDEs are rather weak as text editors compared to emacsen. #> #> That's true, but even emacs and xemacs don't offer simple automatic #> word wrap (i.e. wrap a line without splitting words or putting an eol #

Looking for examples related to advanced python string, list and map operations

2006-06-15 Thread A.M
Hi, Is there any online resource that gives examples about advanced python string, list and map operations? Today I saw this and I found that I have to work more on mentioned topics: numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33] print filter(lambda n: n % 2 == 0

Re: a good programming text editor (not IDE)

2006-06-15 Thread Tim Daneliuk
Istvan Albert wrote: > Scott David Daniels wrote: > >> To paraphrase someone else (their identity lost in my mental fog) about >> learning VI: >> "The two weeks you'll spend hating vi (or vim) as you learn it will >> be repaid in another month, ad the rest is pure profit." > > Time and

Re: list of polynomial functions

2006-06-15 Thread Tim Chase
> Just to be a bit more explicit: > In code like: > def make_polys(n): > """Make a list of polynomial functions up to order n.""" > p = lambda x: 1 > polys = [p] > for i in range(n): > polys.append(lambda x: polys[i](x)*x) > i=3 > > Th

Re: __lt__ slowing the "in" operator even if not called

2006-06-15 Thread Emanuele Aina
[EMAIL PROTECTED] dettagliò: > > Someone can explain me why? > > The list's __contains__ method is very simple [...] > So if you define "__lt__" in your object then the type gets a richcmp > function and your == test implicit in the 'in' search always incurs the > cost of figuring out that "__eq

Re: a good programming text editor (not IDE)

2006-06-15 Thread BartlebyScrivener
>> Most IDEs are rather weak as text editors compared to emacsen. That's true, but even emacs and xemacs don't offer simple automatic word wrap (i.e. wrap a line without splitting words or putting an eol or hard carriage return at the end of every line). I don't know if vim allows this. It's somet

Re: a good programming text editor (not IDE)

2006-06-15 Thread Dave Cook
On 2006-06-15, John Salerno <[EMAIL PROTECTED]> wrote: > I know there's a request for a good IDE at least once a week on the ng, > but hopefully this question is a little different. I'm looking for > suggestions for a good cross-platform text editor (which the features > for coding, such as syn

Scapy Port to Windows

2006-06-15 Thread Andrew
Hello Everyone I'm just writing to inform the newsgroup or anyone who is interested. I have some what of a working copy of scapy, ported to Windows, based on the notes provided on the scapy mailing list for reference http://www.secdev.org/projects/scapy/ (scapy windows) for python version 24 h

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

[OT] Re: Python open proxy honeypot

2006-06-15 Thread Serge Orlov
imcs ee wrote: > On 13 Jun 2006 15:09:57 -0700, Serge Orlov <[EMAIL PROTECTED]> wrote: > > Alex Reinhart wrote: > > My spam folder at gmail is not growing anymore for many months (it is > > about 600-700 spams a month). Have spammers given up spamming gmail.com > > only or is it global trend? > Gma

Re: a good programming text editor (not IDE)

2006-06-15 Thread Dave Hansen
On Thu, 15 Jun 2006 17:12:26 GMT in comp.lang.python, John Salerno <[EMAIL PROTECTED]> wrote: >I know there's a request for a good IDE at least once a week on the ng, >but hopefully this question is a little different. I'm looking for >suggestions for a good cross-platform text editor (which the

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

2006-06-15 Thread Scott David Daniels
Scott David Daniels wrote: > Jarek Zgoda wrote: >> Sorry, gals and guys, but if you force us to buy something irrelevant >> like VC2003, you will not get our sympathy. > Oh, no. And just when our bank account was getting full from your > appreciation of our efforts. Sorry guys, I'm getting a bit

Re: a good programming text editor (not IDE)

2006-06-15 Thread Roel Schroeven
[EMAIL PROTECTED] schreef: > If you use it for a little bit, one day you'll be editing a document in > Word, or notepad, or SciTE, or Eclipse; you'll instinctively type > '[ESC]:wq', and be suprised that the app is still open. That's when > you realize there's no turning back. Exactly... it happe

Re: a good programming text editor (not IDE)

2006-06-15 Thread Jarek Zgoda
Fredrik Lundh napisał(a): >> You died in last century with your editor, we have tabs. > > real python programmers don't use tabs. So I'll tab you the beer I owe you when we meet at EuroPython. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

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

2006-06-15 Thread Fredrik Lundh
Sybren Stuvel wrote: > Well, it's simply not true. I switched to Cygwin Python because then I > could use gcc to compile my extensions. and you're shipping extensions that works with a stock Python distribution ? or are we playing the "but if we ignore the context, a literal interpretation of y

Re: Python in Windows ng

2006-06-15 Thread Roel Schroeven
veritas schreef: > Can anyone tell me of a good newsgroup for running/programming Python on > Windows OS ? There is the python-win32@python.org mailing list which you can read as a newsgroup (gmane.comp.python.windows) via gmane.org. -- If I have been able to see further, it was only because I

Re: a good programming text editor (not IDE)

2006-06-15 Thread Slawomir Nowaczyk
On Thu, 15 Jun 2006 13:18:53 -0700 BartlebyScrivener <[EMAIL PROTECTED]> wrote: #> Emacs must be dying if this thread could get all the way to 20 with #> nobody arguing with the vi folks. We have learned the important lesson: those who are looking for true enlightenment will find Emacs anyway. We

Re: a good programming text editor (not IDE)

2006-06-15 Thread Scott David Daniels
Istvan Albert wrote: > Scott David Daniels wrote: > >> To paraphrase someone else (their identity lost in my mental fog) about >> learning VI: >> "The two weeks you'll spend hating vi (or vim) as you learn it will >> be repaid in another month, ad the rest is pure profit." > > Time and

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

2006-06-15 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > I understand that you are far in the release cycle and that this change > would maybe even delay the whole release process. Those are good > points. OTOH I think that sometimes it's better to change decisions in > light of new facts. There is no maybe to it. You could as

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: a good programming text editor (not IDE)

2006-06-15 Thread Fredrik Lundh
Jarek Zgoda wrote: > You died in last century with your editor, we have tabs. real python programmers don't use tabs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular expression for not-group

2006-06-15 Thread Chris Lasher
Man, that's a headslap-worthy overlooking of the obvious. Ha! =-) I was using the redemo.py that comes standard with Python but that Kodos app looks even neater! Thanks for the tip. Thanks Paddy. Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: a good programming text editor (not IDE)

2006-06-15 Thread John Salerno
Fredrik Lundh wrote: > hints: 1) editor wars are so last century. 2) emacs has already won. Uh oh, here we go.. ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: billionlaughs, on me :-(( - on winXP help!

2006-06-15 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: > Fredrik Lundh wrote: >> [EMAIL PROTECTED] wrote: >> >>> Looking up different blogs etc on xml parsers I wind up on the site of >>> Computer stuff, www.razorvine.net. >>> And in the browser torture section, the billionlaughs.xml link (that >>> you shouldn't use if you don'

Re: a good programming text editor (not IDE)

2006-06-15 Thread Jarek Zgoda
Fredrik Lundh napisał(a): >> Emacs must be dying if this thread could get all the way to 20 with >> nobody arguing with the vi folks. > 1) editor wars are so last century. > 2) emacs has already won. You died in last century with your editor, we have tabs. -- Jarek Zgoda http://jpa.berlios.d

Re: GUI in Python using wxGlade

2006-06-15 Thread UrsusMaximus
Ther is a short online tutorial on using wxGlade here http://www.serpia.org/wxgladeJohn";>wxGlade Tutorial -- http://mail.python.org/mailman/listinfo/python-list

Re: a good programming text editor (not IDE)

2006-06-15 Thread Fredrik Lundh
BartlebyScrivener wrote: > Emacs must be dying if this thread could get all the way to 20 with > nobody arguing with the vi folks. hints: 1) editor wars are so last century. 2) emacs has already won. -- http://mail.python.org/mailman/listinfo/python-list

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

2006-06-15 Thread Jarek Zgoda
Scott David Daniels napisał(a): >> Sorry, gals and guys, but if you force us to buy something irrelevant >> like VC2003, you will not get our sympathy. > > Oh, no. And just when our bank account was getting full from your > appreciation of our efforts. Prepare to be happy, as you owe us $.9

Re: Regular expression for not-group

2006-06-15 Thread Paddy
P.S. kodos might help you: http://kodos.sourceforge.net/ - Pad. -- http://mail.python.org/mailman/listinfo/python-list

Re: list of polynomial functions

2006-06-15 Thread Josiah Manson
> The `i` is the problem. It's not evaluated when the lambda *definition* > is executed but when the lambda function is called. And then `i` is > always == `n`. You have to explicitly bind it as default value in the > lambda definition: > > polys.append(lambda x, i=i: polys[i](x)*x

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

2006-06-15 Thread Jarek Zgoda
Fredrik Lundh napisał(a): >> Sorry, gals and guys, but if you force us to buy something irrelevant >> like VC2003, you will not get our sympathy. How should I explain my boss >> that we need to buy one Pro license more, just to be able to build our >> Python app? Please, don't left us with pants d

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

2006-06-15 Thread Fredrik Lundh
[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 where the VS2003 toolkit cannot longer be do

Re: a good programming text editor (not IDE)

2006-06-15 Thread Istvan Albert
Scott David Daniels wrote: > To paraphrase someone else (their identity lost in my mental fog) about > learning VI: > "The two weeks you'll spend hating vi (or vim) as you learn it will > be repaid in another month, ad the rest is pure profit." Time and again I hear this (no shortage o

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: Regular expression for not-group

2006-06-15 Thread Paddy
Chris Lasher wrote: > Is it possible to write a regular expression such that a "match" is > found provided the string does not match a group in the regex? Let me > give a concrete example. > > Suppose I want to find a match to any filename that does not end in > .py, (ignoring the obvious use of t

Re: Regular expression for not-group

2006-06-15 Thread adam johnson
You want to use negative lookahead eg.\.(?!py)it matches only if the characters ahead in the regex don't match the pattern in the brackets. http://docs.python.org/lib/re-syntax.html (about halfway down the page)On 15 Jun 2006 14:11:39 -0700, Chris Lasher <[EMAIL PROTECTED]> wrote: Is it possible t

Re: [Python-Dev] The baby and the bathwater (Re: Scoping, augmented assignment, 'fast locals' - conclusion)

2006-06-15 Thread Josiah Carlson
Boris Borcic <[EMAIL PROTECTED]> wrote: > [this is bytes of an oversized put-all-into-it intervention. A possibly > expanded > version will be submitted on clp with local followup before a couple days] > > Josiah Carlson wrote: > > [BB] > >> I'd say a first step in convincing me I am wrong wo

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

2006-06-15 Thread Scott David Daniels
Jarek Zgoda wrote: > Sorry, gals and guys, but if you force us to buy something irrelevant > like VC2003, you will not get our sympathy. Oh, no. And just when our bank account was getting full from your appreciation of our efforts. --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.or

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

Regular expression for not-group

2006-06-15 Thread Chris Lasher
Is it possible to write a regular expression such that a "match" is found provided the string does not match a group in the regex? Let me give a concrete example. Suppose I want to find a match to any filename that does not end in .py, (ignoring the obvious use of the .endswith('.py') string metho

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

2006-06-15 Thread Fredrik Lundh
Jarek Zgoda wrote: > Sorry, gals and guys, but if you force us to buy something irrelevant > like VC2003, you will not get our sympathy. How should I explain my boss > that we need to buy one Pro license more, just to be able to build our > Python app? Please, don't left us with pants down. huh?

Re: GUI in Python using wxGlade

2006-06-15 Thread John Salerno
[EMAIL PROTECTED] wrote: > I am a newbie. I was looking for some code where I could a list of > different items from a file and display it in a list box. Then give a > user the capability to select some. > > Basically, reading and writing to a file and displaying them in > different widgets...that

Re: a good programming text editor (not IDE)

2006-06-15 Thread Jarek Zgoda
BartlebyScrivener napisał(a): > Emacs must be dying if this thread could get all the way to 20 with > nobody arguing with the vi folks. Will the Windows vim and gvim users > vouch for its stability on Windows? Sure. Do you need any legal assistance? -- Jarek Zgoda http://jpa.berlios.de/ -- htt

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

2006-06-15 Thread Jarek Zgoda
Scott David Daniels napisał(a): > 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.4 and Python 2.5. It > does seem inevitable we will have to switch

Re: list of polynomial functions

2006-06-15 Thread Scott David Daniels
Fredrik Lundh wrote: > Tim Chase wrote: >>> The `i` is the problem. It's not evaluated when the lambda >>> *definition* is executed but when the lambda function is >>> called. And then `i` is always == `n`. You have to >>> explicitly bind it as default value in the lambda definition: >>> >>>

Re: a good programming text editor (not IDE)

2006-06-15 Thread Benji York
BartlebyScrivener wrote: > Emacs must be dying if this thread could get all the way to 20 with > nobody arguing with the vi folks. heh :) > Will the Windows vim and gvim users vouch for its stability on > Windows? It's very stable on Windows. -- Benji York -- http://mail.python.org/mailman/lis

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

2006-06-15 Thread Chris Lambacher
On Thu, Jun 15, 2006 at 08:36:21PM +0200, Jarek Zgoda wrote: > Fredrik Lundh napisa?(a): > > > hint: most people who provide third-party extensions to Python support > > more than just the latest Python version... > > We're happy with your support for us, Windows users, but you are an > exception

Re: GUI in Python using wxGlade

2006-06-15 Thread diffuser78
I am a newbie. I was looking for some code where I could a list of different items from a file and display it in a list box. Then give a user the capability to select some. Basically, reading and writing to a file and displaying them in different widgets...thats something I am looking for. If anyb

plotting to gif ?

2006-06-15 Thread robert
What is a good library for plotting graphs to (compressed) gif / jpg images? Has anybody experience with this? I want to put some simple 2D (and maybe 3D) graph data visualization on a web server. Currently I test-output the data through Gnuplot.py & Gnuplot. I'm quite confused about http://

Re: a good programming text editor (not IDE)

2006-06-15 Thread BartlebyScrivener
Emacs must be dying if this thread could get all the way to 20 with nobody arguing with the vi folks. Will the Windows vim and gvim users vouch for its stability on Windows? rd -- http://mail.python.org/mailman/listinfo/python-list

Re: nested functions

2006-06-15 Thread Kent Johnson
Fredrik Lundh wrote: > George Sakkis wrote: > >> It shouldn't come as a surprise if it turns out to be slower, since the >> nested function is redefined every time the outer is called. > > except that it isn't, really: all that happens is that a new function object > is created from > prebuilt p

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

2006-06-15 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > ... So I'd like to ask you: > why was the decision taken a while ago (and is not subject to > reconsideration) and what are the reasons for using VS2003? I mean > there must be a real good reason why you're doing this, as I only see > disadvantages in it. The disruption

Re: billionlaughs, on me :-(( - on winXP help!

2006-06-15 Thread jmdeschamps
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Looking up different blogs etc on xml parsers I wind up on the site of > > Computer stuff, www.razorvine.net. > > And in the browser torture section, the billionlaughs.xml link (that > > you shouldn't use if you don't know what your doing, as w

Re: a good programming text editor (not IDE)

2006-06-15 Thread John Salerno
Larry Bates wrote: > Nope, no Java knowledge necessary. Jython just compiles Python code > to java bytecode instead of python bytecode. Once it is in java bytecode > the JVM doesn't know where it came from. Well that's good to know. I guess there's not much of a point in writing pure Python co

Re: a good programming text editor (not IDE)

2006-06-15 Thread Larry Bates
John Salerno wrote: > Fredrik Lundh wrote: >> John Salerno wrote: >> jEdit is for me still the best text editor available. Very extensible with macros (which can be written in Jython with the appropriate plugin installed). >>> >>> I like the idea of being extensible, but of course I

Re: a good programming text editor (not IDE)

2006-06-15 Thread RunLevelZero
Your SciTE problem is easily fixable by choosing " options / Open Global Options File " and then there are plenty of settings. Use the SciTE.html file and it will explain them all and there are many but the defaults usually work well to start out. I have had no issues with Linux. I use Debian. H

Re: Python in Windows ng

2006-06-15 Thread Larry Bates
veritas wrote: > Can anyone tell me of a good newsgroup for running/programming Python on > Windows OS ? > > Thanks in advance . > > comp.lang.python is fine. If you want to use Python on Windows do yourself a favor and pick up a copy of Python Programming on Win32 (Mark Hammond and Andy Robi

Re: a good programming text editor (not IDE)

2006-06-15 Thread James Stroud
Ant wrote: >>I've tried a few others, like TextPad and Crimson, and right now I use >>UltraEdit, which I love actually, except for minor issues here and >>there. But it'd be nice to make the move, as much as possible, to free, >>open-source, cross-platform software. > > > Vim is great if you have

Re: Database read and write

2006-06-15 Thread Larry Bates
Stan Cook wrote: > Ok . I know I'm talking ancient history, but some of us are stuck > working with them. Is there anything for python which will ope, read, > and write to a Dbase 3 or 4 file? I really need your assistance on this > one. > > Regards, > > Stan Might want to check out: http://a

Re: a good programming text editor (not IDE)

2006-06-15 Thread Roel Schroeven
John Salerno schreef: > Sybren Stuvel wrote: > >> Vim is definitely the best. If you're a GUI man, you can use GVim. > > Ok, you guys are slowly converting me, but I do have one question: which > "version" of VIM should I use, or does it matter? I mean, there seem to > be at least two versions,

Re: a good programming text editor (not IDE)

2006-06-15 Thread Paddy
John Salerno wrote: > I know there's a request for a good IDE at least once a week on the ng, > but hopefully this question is a little different. I'm looking for > suggestions for a good cross-platform text editor (which the features > for coding, such as syntax highlighting, etc.) but not a full

Re: a good programming text editor (not IDE)

2006-06-15 Thread olsongt
John Salerno wrote: > Ant wrote: > > > jEdit is for me still the best text editor available. Very extensible > > with macros (which can be written in Jython with the appropriate plugin > > installed). > > I like the idea of being extensible, but of course I can only write in > Python. Are there an

Re: Trace KeyboardInterrupt exception?

2006-06-15 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > if you want to interrupt the code to find out where it is, > you can instead connect to it in gdb and get the python traceback of > each thread. > if you're interested I'll post the necesary gdb-macro for that (didn'

socket and Ctl-C workaround?

2006-06-15 Thread Tony Nelson
I've been trying to figure out why Ctl-C sometimes doesn't interrupt yum. It appears to be unresolved Python bug 926423, unresolved proposed patch 1102879, don't know if anything ever came of it. Note that I cannot ask all yum users to apply the patch. I'm not sure I should be getting rid of

Re: billionlaughs, on me :-(( - on winXP help!

2006-06-15 Thread Fredrik Lundh
Fredrik Lundh wrote: > takes requires that'll teach me to post to comp.lang.python while watching football... -- http://mail.python.org/mailman/listinfo/python-list

Re: billionlaughs, on me :-(( - on winXP help!

2006-06-15 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Looking up different blogs etc on xml parsers I wind up on the site of > Computer stuff, www.razorvine.net. > And in the browser torture section, the billionlaughs.xml link (that > you shouldn't use if you don't know what your doing, as was my case > (mea culpa)) > Think

billionlaughs, on me :-(( - on winXP help!

2006-06-15 Thread jmdeschamps
Looking up different blogs etc on xml parsers I wind up on the site of Computer stuff, www.razorvine.net. And in the browser torture section, the billionlaughs.xml link (that you shouldn't use if you don't know what your doing, as was my case (mea culpa)) Thinking I was about to crash the browser,

  1   2   3   >