ANN: Pymazon 0.9 released!

2010-06-26 Thread Chris Colbert
I am happy to announce the 0.9 release of Pymazon. http://code.google.com/p/pymazon/ Pymazon is a Python implemented downloader for the Amazon MP3 store. This release is a near-full rewrite which brings a brand new GUI design and a host of new features: Notably: - Pymazon now supports MP3 downl

Re: best way to increment an IntVar?

2010-06-26 Thread rantingrick
On Jun 26, 5:36 pm, Terry Reedy wrote: > Rick, I am one of the all-too-few people who review tracker issues and > occasionally close them. I do not 'hate' you and have never > 'brow-beaten' you. Yes and i never said you did, i am sorry if you felt my words were directed towards you, please belie

Roman Polansky RAPED Semantha Geimer Orally, Analy and Vaginally - TRAUMA for victim is so much that she wants it to be out of sight from her

2010-06-26 Thread small Pox
Roman Polansky RAPED Semantha Geimer Orally, Analy and Vaginally - TRAUMA for victim is so much that she wants it to be out of sight from her Full Court Declaration of ROMAN POLANSKY http://www.netlexfrance.net/29/09/2009/roman-polanski-a-respected-fugitive-case-n%C2%B0-a-334139/ http://www.thes

ANN: GMPY 1.12 and GMPY2 unstable released

2010-06-26 Thread casevh
Everyone, I'm pleased to annouce the release both a production and experimental release of GMPY. GMPY is a wrapper for the MPIR or GMP multiple-precision arithmetic library. GMPY is available for download from: http://code.google.com/p/gmpy/ Production release -- GMPY 1.12 is th

How Non-Torah Zionist Rabbi Sholom Rubashkin, a former vice president of Agriprocessors Inc became so rich and EARNED 27 years in JAIL ? Most Jew Lawyers are LIARS !!!

2010-06-26 Thread small Pox
How Non-Torah Zionist Rabbi Sholom Rubashkin, a former vice president of Agriprocessors Inc became so rich and EARNED 27 years in JAIL ? Most Jew Lawyers are LIARS !!! Former slaughterhouse exec gets 27 years for fraud By MICHAEL J. CRUMB (AP) – 4 days ago CEDAR RAPIDS, Iowa — A former Iowa koshe

Re: Dutch Racists - Using the "Decoy Jews" to spread Anti-Semitism - Who is using Whom ?

2010-06-26 Thread FatBytestard
On Sat, 26 Jun 2010 21:32:23 -0700 (PDT), small Pox wrote: >By You're an idiot. Take your SPAM elsewhere. -- http://mail.python.org/mailman/listinfo/python-list

Dutch Racists - Using the "Decoy Jews" to spread Anti-Semitism - Who is using Whom ?

2010-06-26 Thread small Pox
Dutch may use 'decoy Jews' to fight racism By TOBY STERLING (AP) – 1 day ago AMSTERDAM — A hidden-camera video showing Jews being harassed on the street in a Moroccan neighborhood of Amsterdam has led Dutch authorities to consider combating hate crimes with "decoy Jews" — undercover police officer

Re: Continuously running scripts question

2010-06-26 Thread Lawrence D'Oliveiro
In message , Ian Kelly wrote: > I use cron. > > Con: Most cron implementations have a maximum frequency of once per > minute. Another con is: what happens if a run takes longer than the invocation frequency? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message , Roy Smith wrote: > I recently fixed a bug in some production code. The programmer was > careful to use snprintf() to avoid buffer overflows. The only problem > is, he wrote something along the lines of: > > snprintf(buf, strlen(foo), foo); A long while ago I came up with this macr

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message , Nobody wrote: > Ask anyone with a surname like O'Neil, O'Connor, O'Leary, etc; they've > probably broken a lot of web apps *without even trying*. Last I checked, I couldn’t post comments on freedom-to-tinker.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python dynamic attribute creation

2010-06-26 Thread Carl Banks
On Jun 25, 8:24 pm, WANG Cong wrote: > Understand, but please consider my proposal again, if we switched to: > > setattr(foo, 'new_attr', "blah") > > by default, isn't Python still dynamic as it is? (Please teach me if I > am wrong here.) > > This why I said the questionable thing is not so much r

Re: Why is obfuscation considered so magical? (was: Why Is Escaping Data Considered So Magical?)

2010-06-26 Thread geremy condra
On Sat, Jun 26, 2010 at 8:50 PM, Ben Finney wrote: > Lawrence D'Oliveiro writes: > >> I see that you published my unobfuscated e-mail address on USENET for >> all to see. I obfuscated it for a reason, to keep the spammers away. >> I'm assuming this was a momentary lapse of judgement, for which I

Why is obfuscation considered so magical? (was: Why Is Escaping Data Considered So Magical?)

2010-06-26 Thread Ben Finney
Lawrence D'Oliveiro writes: > I see that you published my unobfuscated e-mail address on USENET for > all to see. I obfuscated it for a reason, to keep the spammers away. > I'm assuming this was a momentary lapse of judgement, for which I > expect an apology. Otherwise, it becomes grounds for an

Scholarly Documentary - 4000 Jews KNEW in ADVANCE of 911, They control Money, NWO - How the Jews did 9 11 ?

2010-06-26 Thread nanothermite911fbibustards
On Jun 26, 8:28 pm, nanothermite911fbibustards wrote: > USA will be DESTROYED the same way GERMANY was DESTROYED - What The > Zionist Jews Did To Germany > > http://www.youtube.com/watch?v=xw2FhXZ9tiw How the Jews did 9 11 4000 Jews KNEW in ADVANCE of 911, They control Money, NWO http://www.you

Scholarly Lecture - USA will be DESTROYED the same way GERMANY was DESTROYED - What The Zionist Jews Did To Germany

2010-06-26 Thread nanothermite911fbibustards
USA will be DESTROYED the same way GERMANY was DESTROYED - What The Zionist Jews Did To Germany http://www.youtube.com/watch?v=xw2FhXZ9tiw -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Tim Chase
On 06/26/2010 09:21 PM, Lawrence D'Oliveiro wrote: In message, Tim Chase wrote: On 06/25/2010 07:49 PM, Lawrence D'Oliveiro wrote: ... I see that you published my unobfuscated e-mail address on USENET for all to see. I obfuscated it for a reason, to keep the spammers away. I'm assuming this w

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Chris Rebert
On Sat, Jun 26, 2010 at 7:21 PM, Lawrence D'Oliveiro <> wrote: > In message , Tim Chase > wrote: > >> On 06/25/2010 07:49 PM, Lawrence D'Oliveiro wrote: >> ... > > I see that you published my unobfuscated e-mail address on USENET for all to > see. I obfuscated it for a reason, to keep the spammers

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Aahz
In article , Lawrence D'Oliveiro wrote: >In message , Tim Chase >wrote: >> >> On 06/25/2010 07:49 PM, Lawrence D'Oliveiro wrote: >> ... > >I see that you published my unobfuscated e-mail address on USENET for all to >see. I obfuscated it for a reason, to keep the spammers away. I'm assuming >thi

Re: I strongly dislike Python 3

2010-06-26 Thread Aahz
In article , Terry Reedy wrote: >On 6/26/2010 2:55 PM, Peter Kleiweg wrote: >> >> Some basic text string functions seem to be working on byte >> string functions as well, but sometimes they don't, and there's >> no rhyme in why it does or doesn't. >> >> >>> 'abcd'[0] == 'abcd'[:1] >> T

Re: Leslie Lamport is a Jew - His book is NOTORIOUSLY uninsightful and obfuscatory

2010-06-26 Thread nanothermite911fbibustards
On Jun 24, 2:17 am, "Christian Stapfer" wrote: > "David Kastrup" schrieb im > Newsbeitragnews:87eifw50cd@lola.goethe.zz... > > > > > small Pox writes: > > >> Leslie Lamport is a Jew - His book is NOTORIOUSLY > >> uninsightful&obfuscatory (nothing on the design of LaTeX and macros, > >> no i

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message , Nobody wrote: > On Sat, 26 Jun 2010 12:40:41 +1200, Lawrence D'Oliveiro wrote: > I construct ad-hoc queries all the time. It really isn’t that hard to do safely. >>> >>> Wrong. >>> >>> Even if you get the quoting absolutely correct (which is a very big >>> "if"), you have

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message <2010062522560231540-angrybald...@gmailcom>, Owen Jacobson wrote: > It's not hard. It's just begging for a visit from the fuckup fairy. That’s the same fallacious argument I pointed out earlier. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message , Ian Kelly wrote: > Your example from the first post of the thread rewritten using sqlalchemy: > > conn.execute( > items.update() > .where(items.c.inventory_nr == modify_id) > .values( > dict( > (field[0], Params.getvalue("%s[%s]"

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message , Tim Chase wrote: > On 06/25/2010 07:49 PM, Lawrence D'Oliveiro wrote: > ... I see that you published my unobfuscated e-mail address on USENET for all to see. I obfuscated it for a reason, to keep the spammers away. I'm assuming this was a momentary lapse of judgement, for which I ex

Re: I strongly dislike Python 3

2010-06-26 Thread Steven D'Aprano
On Sun, 27 Jun 2010 01:06:12 +, Steven D'Aprano wrote: > On Sat, 26 Jun 2010 17:02:32 -0700, Paul Rubin wrote: [...] > To all the Python 3.x haters Hmmm, I just realised that it might seem that this was aimed at Paul directly. I'm sorry, I wasn't intending to imply that he's a Python 3 hate

Re: Python dynamic attribute creation

2010-06-26 Thread Steven D'Aprano
On Sat, 26 Jun 2010 18:35:25 -0700, Chris Rebert wrote: > On Sat, Jun 26, 2010 at 6:06 PM, Steven D'Aprano > wrote: >> CPython is a fairly plodding implementation. But that's due to the >> conservativeness of CPython: Unladen Swallow is faster, and PyPI is >> faster still, and the PyPI people ex

Re: I strongly dislike Python 3

2010-06-26 Thread Nobody
On Sat, 26 Jun 2010 21:08:48 +0200, Martin v. Loewis wrote: >> I think that's not true. If enough people want to support Python 2 it >> might be possible to advance Python 2. > > That won't be sufficient: enough people wanting support won't have any > effect. People also need to want it enough to

Re: I strongly dislike Python 3

2010-06-26 Thread Steven D'Aprano
On Sun, 27 Jun 2010 00:59:35 +0200, Laurent Verweijen wrote: > Something I really dislike, is that the "__cmp__"-method is gone. I > really hate to write 6 different functions, whereas I'm used to writing > a oneliners which covers each of the 6 cases. I haven't switched to > pyton 3 yet, but when

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
On 6/26/10 6:24 PM, Steven D'Aprano wrote: On Sun, 27 Jun 2010 03:38:30 +1000, Lie Ryan wrote: All in all, the new syntax requires 4 keystrokes, none of which are home keys; compared with old syntax which requires 1 keystroke in thumb's home position. Producing print function takes a little bit

Re: I strongly dislike Python 3

2010-06-26 Thread Nobody
On Sat, 26 Jun 2010 18:33:02 +0200, Thomas Jollans wrote: > * str is now unicode => unicode is no longer a pain in the a True. Now byte strings are a pain in the arse. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python dynamic attribute creation

2010-06-26 Thread Chris Rebert
On Sat, Jun 26, 2010 at 6:06 PM, Steven D'Aprano wrote: > CPython is a fairly plodding implementation. But that's due to the > conservativeness of CPython: Unladen Swallow is faster, and PyPI is > faster still, and the PyPI people expect to eventually be competitive > with C for speed. PyPy (htt

Re: I strongly dislike Python 3

2010-06-26 Thread Steven D'Aprano
On Sat, 26 Jun 2010 13:41:30 -0500, John Bokma wrote: >> Done means finished: complete, not going to be advanced any further. > > I think that's not true. If enough people want to support Python 2 it > might be possible to advance Python 2. I can't see that happening. In my experience those who

Re: I strongly dislike Python 3

2010-06-26 Thread Steven D'Aprano
On Sun, 27 Jun 2010 03:38:30 +1000, Lie Ryan wrote: > On 06/27/10 02:33, Thomas Jollans wrote: >>> > >>> > And here's the disadvantages: >>> > >>> > -The Python 3 syntax actually requires more keystrokes. >> Typically ONE extra character: the closing bracket. The opening bracket >> can replace t

Re: Python dynamic attribute creation

2010-06-26 Thread Steven D'Aprano
On Sat, 26 Jun 2010 10:10:39 -0700, Stephen Hansen wrote: > This characterization of adding attributes to an object as something > "else", some special kind of activity called "metaprogramming" I think I > reject outright, whereas I believe -- though I do not claim to speak for > him/her -- the OP

Re: I strongly dislike Python 3

2010-06-26 Thread Steven D'Aprano
On Sat, 26 Jun 2010 17:02:32 -0700, Paul Rubin wrote: > Terry Reedy writes: >> Having completely switched from 'printf(' to 'print ', I have had a bit >> of a problem switching back to 'print('. It is my single largest source >> of typos. But a decent system that puts me at the site of syntax err

Re: I strongly dislike Python 3

2010-06-26 Thread Paul Rubin
Terry Reedy writes: > To make your life easier, and even save keystrokes:.. def tp(*args): print(args) # tuple print Too much to remember, makes my life harder. If I were that organized, I'd figure out how to use the logging module. ;) -- http://mail.python.org/mailman/listinfo/python-

Re: I strongly dislike Python 3

2010-06-26 Thread Terry Reedy
On 6/26/2010 8:02 PM, Paul Rubin wrote: Terry Reedy writes: Having completely switched from 'printf(' to 'print ', I have had a bit of a problem switching back to 'print('. It is my single largest source of typos. But a decent system that puts me at the site of syntax errors alleviates this. Lo

Re: I strongly dislike Python 3

2010-06-26 Thread Paul Rubin
Terry Reedy writes: > Having completely switched from 'printf(' to 'print ', I have had a > bit of a problem switching back to 'print('. It is my single largest > source of typos. But a decent system that puts me at the site of > syntax errors alleviates this. Logic bugs are a much bigger problem.

Re: I strongly dislike Python 3

2010-06-26 Thread Terry Reedy
On 6/26/2010 11:59 AM, Stefan Reich wrote: I don't like Python 3. I love it. My complaint is about changing the syntax of "print". Having completely switched from 'printf(' to 'print ', I have had a bit of a problem switching back to 'print('. It is my single largest source of typos. But

[ANN] Oktest 0.4.0 released - a new-style testing library

2010-06-26 Thread Makoto Kuwata
I released Oktest 0.4.0. http://pypi.python.org/pypi/Oktest/ http://packages.python.org/Oktest/ Overview Oktest is a new-style testing library for Python. :: from oktest import ok ok (x) > 0 # same as assert_(x > 0) ok (s) == 'foo'# same as asser

Re: Python interface problem with Windows

2010-06-26 Thread Benjamin Kaplan
On Sat, Jun 26, 2010 at 2:45 PM, Kermit Rose wrote: > On 6/26/2010 5:27 PM, Robert Kern wrote: >> >> I do not provide Python support in private email. Please try the >> python-list: >> >>   http://mail.python.org/mailman/listinfo/python-list >> >> or its USENET gateway: >> >>   news:comp.lang.pyth

Re: I strongly dislike Python 3

2010-06-26 Thread Terry Reedy
On 6/26/2010 2:55 PM, Peter Kleiweg wrote: PSF is funding work on the email module. Problems with cgi and other internet interfacing modules are the main topic of discussion on py-dev this week. Some basic text string functions seem to be working on byte string functions as well, but sometim

Re: [ANN] Benchmarker 1.1.0 released - a samll benchmark utility

2010-06-26 Thread Makoto Kuwata
Terry, Thank you for trying Benchmarker. On Sun, Jun 27, 2010 at 7:15 AM, Terry Reedy wrote: > On 6/26/2010 1:09 PM, Makoto Kuwata wrote: >> >> I released Benchmarker 1.1.0. >> http://pypi.python.org/pypi/Benchmarker/ >> >> Benchmarker is a small utility to benchmark your code. >> >> >> Example >

Re: I strongly dislike Python 3

2010-06-26 Thread Laurent Verweijen
Since I was relatively new to python when python 3 was released (I'm using it since python 2.5) I don't really care about the print statement. Making print a function makes print less an exception since all other functions need brackets. I also like most of the other changes in python 3 like float

Re: best way to increment an IntVar?

2010-06-26 Thread Terry Reedy
On 6/25/2010 4:56 PM, Stephen Hansen wrote: On Fri, Jun 25, 2010 at 1:26 PM, rantingrick If *I* open an issue it will be ignored or quickly dismissed because the people in charge of the Python community hate me. Nonsense. Though an inflammatory, hyperbole-filled rant made up of nothi

Re: [ANN] Benchmarker 1.1.0 released - a samll benchmark utility

2010-06-26 Thread Terry Reedy
On 6/26/2010 1:09 PM, Makoto Kuwata wrote: I released Benchmarker 1.1.0. http://pypi.python.org/pypi/Benchmarker/ Benchmarker is a small utility to benchmark your code. Example === ex.py:: def fib(n): return n<= 2 and 1 or fib(n-1) + fib(n-2) from benchmarker import Be

Re: Python dynamic attribute creation

2010-06-26 Thread Alexander Kapps
Stephen Hansen wrote: On 6/26/10 9:01 AM, Alexander Kapps wrote: While I personally don't agree with this proposal (but I understand why some people might want it), I can see a reason. When disallowing direct attribute creation, those typos that seem to catch newcommers won't happen anymore. Wh

Re: Python interface problem with Windows

2010-06-26 Thread Kermit Rose
On 6/26/2010 5:27 PM, Robert Kern wrote: I do not provide Python support in private email. Please try the python-list: http://mail.python.org/mailman/listinfo/python-list or its USENET gateway: news:comp.lang.python On Sat, Jun 26, 2010 at 16:23, Kermit Rose wrote: Hello Robert. I h

Re: I strongly dislike Python 3

2010-06-26 Thread Tim Delaney
On 27 June 2010 05:36, Brian J Mingus wrote: > This comment and many others in this thread fail to address the substance > of the OP's point. Languages such as Python and Perl have adopted the > strange practice of making new versions of the language backwards > incompatible. Many other languages

Re: I strongly dislike Python 3

2010-06-26 Thread Brian J Mingus
On Sat, Jun 26, 2010 at 10:06 AM, Christian Heimes wrote: > Am 26.06.2010 17:59, schrieb Stefan Reich: > > The main problem is that Python 3 is incompatible with almost all > > scripts written for Python 2 (if they use print). And it gets worse: > > Python 3 scripts are incompatible with Python 2

Re: deprecated string module issue

2010-06-26 Thread Stephen Hansen
On 6/26/10 3:56 AM, John Pinner wrote: On Jun 25, 11:14 pm, Steven D'Aprano wrote: Terry made the very reasonable observation that you would serve the community, and thank us, by posting a bug report to pylint, rather than just ignoring it, and you respond with a totally bogus accusation of "ru

Re: I strongly dislike Python 3

2010-06-26 Thread Ian Kelly
On Sat, Jun 26, 2010 at 11:38 AM, Lie Ryan wrote: > What really matters is not the number of extra characters, but the > number of keystrokes. On a typical keyboard, producing a '(' requires 2 > keystrokes (Shift + 9) and another 2 keystrokes for ')' (Shift + 0). > Also, spacebar is a key in the h

Re: I strongly dislike Python 3

2010-06-26 Thread Peter Kleiweg
Stephen Hansen schreef op de 26e dag van de zomermaand van het jaar 2010: > On 6/26/10 11:55 AM, Peter Kleiweg wrote: > > > I have been using Python 3 for quite some time now, and this > [snip] > > I'm not advocating using Python 3 or that it doesn't have plenty of work to do > still. I don't us

CONTROLLED DEMOLITION INC explosive-charge placement technician Tom Sullivan 911 TESTIMONIAL Video

2010-06-26 Thread nanothermite911fbibustards
http://www.ae911truth.org/newsletter/2010/06/index.php#cdi Explosive Evidence at WTC Cited by Former CDI Employee News - News Releases By AE911Truth Written by Darcy Wearing and Richard Gage, AIA Thursday, 24 June 2010 18:55 Having had the privilege of speaking with Tom Sullivan, an actual explos

Re: I strongly dislike Python 3

2010-06-26 Thread Chris Rebert
On Sat, Jun 26, 2010 at 11:55 AM, Peter Kleiweg wrote: > Stephen Hansen schreef op de 26e dag van de zomermaand van het jaar 2010: >> There were various serious problems with Python 2 which could not be fixed in >> a backwards compatible way; we've been living with them for years and years >> now,

Re: I strongly dislike Python 3

2010-06-26 Thread Martin v. Loewis
>> No, "I'm" not trying to kill Python 2 at all. My current estimation is >> that I'll be using it for at least the next three years -- library >> conversion momentum is there, but its happening faster in the pure >> Python libraries then a few critical C extensions I rely upon. > > Based on my ex

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
On 6/26/10 11:55 AM, Peter Kleiweg wrote: I have been using Python 3 for quite some time now, and this [snip] I'm not advocating using Python 3 or that it doesn't have plenty of work to do still. I don't use it yet, so can't really comment on any of your issues except to ask: Have you opened

Re: I strongly dislike Python 3

2010-06-26 Thread Peter Kleiweg
Stephen Hansen schreef op de 26e dag van de zomermaand van het jaar 2010: > There were various serious problems with Python 2 which could not be fixed in > a backwards compatible way; we've been living with them for years and years > now, and it was decided that a single break to go back and corre

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
On 6/26/10 11:41 AM, John Bokma wrote: Stephen Hansen writes: No, "I'm" not trying to kill Python 2 at all. My current estimation is that I'll be using it for at least the next three years -- library conversion momentum is there, but its happening faster in the pure Python libraries then a few

Re: I strongly dislike Python 3

2010-06-26 Thread John Bokma
Stephen Hansen writes: > No, "I'm" not trying to kill Python 2 at all. My current estimation is > that I'll be using it for at least the next three years -- library > conversion momentum is there, but its happening faster in the pure > Python libraries then a few critical C extensions I rely upon

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
On 6/26/10 10:59 AM, Stefan Reich wrote: There's no "as long as" -- its done. Python 2 is over with 2.7. Well, then it is NOT done yet. And of course there is an "as long as". Yes, it is. 2.7 is in its release candidate phase right now. That means there are no more features, new development o

Re: Test - Ignore, clicketh not on I!

2010-06-26 Thread Stephen Hansen
On 6/26/10 11:11 AM, John Bokma wrote: Stephen Hansen writes: Please ignore, sorry about wasted post. Having a posting issue, need to test. If you mean with post Usenet, there are several groups dedicated to testing... I know. I don't access this forum via usenet, but via python-list. --

Re: Test - Ignore, clicketh not on I!

2010-06-26 Thread John Bokma
Stephen Hansen writes: > Please ignore, sorry about wasted post. Having a posting issue, need > to test. If you mean with post Usenet, there are several groups dedicated to testing... -- John Bokma j3b Hacking & Hiking in Mexico -

Re: I strongly dislike Python 3

2010-06-26 Thread Stefan Reich
Stephen. Stephen Hansen schrieb: If your biggest complaint is the print statement/function -- man, you're looking small, and are in for a world of hurt when you get to the bytes/[string|unicode] split hits. No, I'm not "looking small". I'm thinking big. I sometimes use seemingly small examples

Re: Another MySQL Problem

2010-06-26 Thread Victor Subervi
On Fri, Jun 25, 2010 at 2:15 AM, Dennis Lee Bieber wrote: > On Thu, 24 Jun 2010 09:59:41 -0430, Victor Subervi > declaimed the following in > gmane.comp.python.general: > >I could have sworn the concept had been brought up some 8 months > ago... Probably couched in relational database ter

Re: I strongly dislike Python 3

2010-06-26 Thread Lie Ryan
On 06/27/10 02:33, Thomas Jollans wrote: >> > >> > And here's the disadvantages: >> > >> > -The Python 3 syntax actually requires more keystrokes. > Typically ONE extra character: the closing bracket. The opening bracket > can replace the whitespace previously required. What really matters is no

Re: Python dynamic attribute creation

2010-06-26 Thread Stephen Hansen
On 6/26/10 9:01 AM, Alexander Kapps wrote: While I personally don't agree with this proposal (but I understand why some people might want it), I can see a reason. When disallowing direct attribute creation, those typos that seem to catch newcommers won't happen anymore. What I mean is this: I

[ANN] Benchmarker 1.1.0 released - a samll benchmark utility

2010-06-26 Thread Makoto Kuwata
I released Benchmarker 1.1.0. http://pypi.python.org/pypi/Benchmarker/ Benchmarker is a small utility to benchmark your code. Example === ex.py:: def fib(n): return n <= 2 and 1 or fib(n-1) + fib(n-2) from benchmarker import Benchmarker bm = Benchmarker(30) # or Benchm

Re: the bugerrd code

2010-06-26 Thread vikyh2001
Bruno Desthuilliers websiteburo.invalid> writes: > > Victoria Hernandez a écrit : > > The new mision I herits the buggered code (i do not the bugger). How > > do debugger him? Tahnk you very much. Vikhy :) > > http://docs.python.org/library/pdb.html#module-pdb > http://docs.python.org/library/u

Test - Ignore, clicketh not on I!

2010-06-26 Thread Stephen Hansen
Please ignore, sorry about wasted post. Having a posting issue, need to test. La de la la. Nothing to see here, move along. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org/mailman/listin

Re: I strongly dislike Python 3

2010-06-26 Thread Albert Hopkins
Python 3 is, by design, not 100% backwards compatible with Python 2. Not that I'm completely happy with everything in Python 3 but, in it's defense, discussion of Python 3 has been ongoing for years, almost as long as the existence of Python 2. So the discussion of what went into Python 3 is so o

Re: I strongly dislike Python 3

2010-06-26 Thread james
thanks for the info, christian! Quoting Christian Heimes : Am 26.06.2010 17:59, schrieb Stefan Reich: The main problem is that Python 3 is incompatible with almost all scripts written for Python 2 (if they use print). And it gets worse: Python 3 scripts are incompatible with Python 2! (If they

Re: I strongly dislike Python 3

2010-06-26 Thread Thomas Jollans
On 06/26/2010 05:59 PM, Stefan Reich wrote: > Hi there. > > Let me preface this by saying that I am a fan of Python. I use it > regularly and I like it a lot. > > That is, I am using and liking Python 2.6. > > I don't like Python 3. > > I won't comment on the advanced stuff that is changed in P

Re: Python dynamic attribute creation

2010-06-26 Thread Alexander Kapps
Ixokai wrote: In what possible way is: setattr(foo, 'new_attr', 'blah') getattr(foo, 'new_attr') delattr(foo, 'new_attr') Better then: foo.new_attr = 'blah' foo.new_attr del foo.new_attr I don't understand what your argument is or problem is with the regular syntax,

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
On Sat, Jun 26, 2010 at 8:59 AM, Stefan Reich < wertiges.prod...@googlemail.com> wrote: > My complaint is about changing the syntax of "print". > Okay. To reiterate, I am strongly in disfavor of Python 3 and will stick to Python > 2, for as least as long as Python 3 breaks my scripts. > This wi

Re: best way to increment an IntVar?

2010-06-26 Thread Michael Torrie
On 06/25/2010 04:15 PM, Emile van Sebille wrote: > Idle is dead -- long live idlefork! > > http://osdir.com/ml/python.idle/2002-09/msg00105.html Actually idlefork is dead. It was merged back into Idle sometime around Python 2.3. At least that's what its homepage claims. -- http://mail.python.o

Re: I strongly dislike Python 3

2010-06-26 Thread Christian Heimes
Am 26.06.2010 17:59, schrieb Stefan Reich: > The main problem is that Python 3 is incompatible with almost all > scripts written for Python 2 (if they use print). And it gets worse: > Python 3 scripts are incompatible with Python 2! (If they use print > variants, like writing to a file.) Seems

I strongly dislike Python 3

2010-06-26 Thread Stefan Reich
Hi there. Let me preface this by saying that I am a fan of Python. I use it regularly and I like it a lot. That is, I am using and liking Python 2.6. I don't like Python 3. I won't comment on the advanced stuff that is changed in Python 3, as I haven't look into that. My complaint is abou

Re: question about multiprocessing

2010-06-26 Thread hywhy
thanks,firend. I have a try with SyncManager, Is there any problem in my code? from multiprocessing.managers import SyncManager,BaseProxy import multiprocessing import Queue class ResourceController(object): def __init__(self): self.text = 'Hello world!' self.queue

Re: Emacs Form Feed (^L) Display Suggestion and Tips

2010-06-26 Thread .
Hello Xah, With your background and the time you spend with emacs/computers, I cannot explain to myself how you can read the news via a web interface like google news (google groups was a little better years ago, but now it is complete rubish). There are so many dedicated readers: emacs-gnus, tin

Re: Using Classes

2010-06-26 Thread Mag Gam
Oh wow. You went beyond :-) Let me rewrite the example. I only want to calculate the wait time which is basically the depart time minus the arrival time for multiple days. This is all on 1 station. June 26, 2010: Trian A, Arrived at 6:00AM, Depart at 9:00AM Trian B, Arrived at 2:00AM, Depart at

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread D'Arcy J.M. Cain
On Sat, 26 Jun 2010 12:04:38 +0100 Nobody wrote: > Ask anyone with a surname like O'Neil, O'Connor, O'Leary, etc; they've > probably broken a lot of web apps *without even trying*. At least it isn't a problem with the first name field. Oh, wait... -- D'Arcy J.M. Cain | Democracy is t

Re: importing modules from higher level directory

2010-06-26 Thread D'Arcy J.M. Cain
On Sat, 26 Jun 2010 11:10:06 +0200 Thomas Jollans wrote: > Also, please refrain from top posting. If you are going to berate people for bad netiquette you should learn it too. Please trim your included text. You included the entire rest of the OP's message including his signature after your res

Re: Python dynamic attribute creation

2010-06-26 Thread Thomas Jollans
On 06/26/2010 05:39 AM, WANG Cong wrote: > On 06/26/10 00:11, Neil Hodgson wrote: > >> WANG Cong: >> >>> 4) Also, this will _somewhat_ violate the OOP princples, in OOP, >>> this is and should be implemented by inherence. >> >>Most object oriented programming languages starting with Smalltalk

Re: value of: None is None is None

2010-06-26 Thread D'Arcy J.M. Cain
On Sat, 26 Jun 2010 11:02:55 +0200 Thomas Jollans wrote: > On 06/25/2010 10:41 PM, Alan G Isaac wrote: > None is None is None > > True > (None is None) is None > > False > None is (None is None) > > False > > Chained comparisons - one of those language features that some of the > t

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Roy Smith
In article <2010062522560231540-angrybald...@gmailcom>, Owen Jacobson wrote: > It's not hard. It's just begging for a visit from the fuckup fairy. QOTD? -- http://mail.python.org/mailman/listinfo/python-list

Re: improving python performance by extension module (64bit)

2010-06-26 Thread geremy condra
On Sat, Jun 26, 2010 at 7:11 AM, Nobody wrote: > On Fri, 25 Jun 2010 20:08:27 -0400, geremy condra wrote: > >> I have written Haskell that runs faster than C, and Forth that runs >> faster than C, > > Faster than *what* C, though? Well, than the C it was replacing, which is admittedly not much of

Re: improving python performance by extension module (64bit)

2010-06-26 Thread Nobody
On Fri, 25 Jun 2010 20:08:27 -0400, geremy condra wrote: > I have written Haskell that runs faster than C, and Forth that runs > faster than C, Faster than *what* C, though? With Haskell, there's seldom a significant performance hit for using -fvia-C, so you would probably have been able to get

Re: Help on finding word is valid as per English Dictionary through python

2010-06-26 Thread vaaljapie
On Fri, 25 Jun 2010 21:44:36 +0100, Mark Lawrence wrote: > Please don't top post! > > On 25/06/2010 15:20, Shashwat Anand wrote: >> why do you need that ? >> which platform are you onto ? Prime example of an idiot. His first line is 'Please don't top post' and what does he do 'top posts' > p.s.

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Nobody
On Fri, 25 Jun 2010 20:43:51 -0400, Roy Smith wrote: > To bring this back to something remotely Python related, the point of > all this is that security is hard. Oh, this isn't solely a security issue. Ask anyone with a surname like O'Neil, O'Connor, O'Leary, etc; they've probably broken a lot

Re: YANQUI courts were ALWAYS K A N G A R O O Courts - thats how they carried out GENOCIDE of NATIVES !!!

2010-06-26 Thread nanothermite911fbibustards
If any of you are surprised at my harshness at this YANQUI bustard, take from me 100% that this is a SPOOOK. I have caught a real one with a bait. On Jun 25, 10:30 pm, "n...@bid.nes" wrote: > On Jun 25, 8:42 pm, nanothermite911fbibustards > > wrote: > > YANQUI courts were ALWAYS   K A N G A R O

Re: deprecated string module issue

2010-06-26 Thread John Pinner
On Jun 25, 11:14 pm, Steven D'Aprano wrote: > On Fri, 25 Jun 2010 16:31:17 -0500, GrayShark wrote: > > Why the rudness Terry Jan Reedy? Get up on the wrong side of the bed? Or > > worse luck, no one on the other side to create a wrong side? > > I see only one person being rude here, and that's you

Re: YANQUI courts were ALWAYS K A N G A R O O Courts - thats how they carried out GENOCIDE of NATIVES !!!

2010-06-26 Thread nanothermite911fbibustards
On Jun 25, 10:30 pm, "n...@bid.nes" wrote: > On Jun 25, 8:42 pm, nanothermite911fbibustards > > wrote: > > YANQUI courts were ALWAYS   K A N G A R O O   Courts  -  thats how > > they carried out GENOCIDE of NATIVES !!! > >   You're stupid as well as biased. > [ TERRIBLY HURTING YANQUI SPOK F

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Nobody
On Sat, 26 Jun 2010 12:40:41 +1200, Lawrence D'Oliveiro wrote: >>> I construct ad-hoc queries all the time. It really isn’t that hard to >>> do safely. >> >> Wrong. >> >> Even if you get the quoting absolutely correct (which is a very big "if"), >> you have to remember to perform it every time,

Re: Python-list Digest, Vol 81, Issue 266

2010-06-26 Thread Thomas Jollans
On 06/26/2010 10:17 AM, anu python wrote: > > > Thanks for your reply to Shashwat Anand & thomas.sub( Help on finding > word is valid as per English Dictionary through python ) > > Let me try. Please don't top post (it makes it difficult to understand what you're replying to, and is thus con

Re: Python dynamic attribute creation

2010-06-26 Thread Neil Hodgson
WANG Cong: > From what you are saying, Smalltalk picks a way similar to setattr() in > Python? addInstVarName is a method on ClassDescription objects. > Because you mentioned 'addInstVarName' which seems to be a > method or a builtin function. If so, that is my point, as I mentioned > earlier

Re: importing modules from higher level directory

2010-06-26 Thread Thomas Jollans
On 06/26/2010 01:35 AM, Tom Pacheco wrote: > from .. import module > or > from ..module import foo > > this is intended for use within packages. And it only works within nested packages. Also, please refrain from top posting. > > see > http://www.python.org/dev/peps/pep-0328/ > > also search

Re: value of: None is None is None

2010-06-26 Thread Thomas Jollans
On 06/25/2010 10:41 PM, Alan G Isaac wrote: > Surprising for a moment, if you don't > immediatelyrecognize it as a chained comparison. > (Just sharing.) > Alan Isaac > None is None is None > True (None is None) is None > False None is (None is None) > False > Chained comparisons -

Re: Python-list Digest, Vol 81, Issue 266

2010-06-26 Thread anu python
Thanks for your reply to Shashwat Anand & thomas.sub( Help on finding word is valid as per English Dictionary through python ) Let me try. On Fri, Jun 25, 2010 at 8:57 PM, wrote: > Send Python-list mailing list submissions to >python-list@python.org > > To subscribe or unsubscribe v

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Robert Kern
On 2010-06-25 19:49 , Lawrence D'Oliveiro wrote: In message, Jorgen Grahn wrote: I thought it was well-known that the solution is *not* to try to sanitize the input -- it's to switch to an interface which doesn't involve generating an intermediate executable. In the Python example, that would

  1   2   >