Re: [pypy-dev] PyPy 1.3 released

2010-06-26 Thread Armin Rigo
Hi, On Fri, Jun 25, 2010 at 05:27:52PM -0600, Maciej Fijalkowski wrote: python setup.py build As corrected on the blog (http://morepypy.blogspot.com/), this line should read: pypy setup.py build Armin. -- http://mail.python.org/mailman/listinfo/python-announce-list Support

Re: best way to increment an IntVar?

2010-06-26 Thread Stephen Hansen
[Sent to python-list and CC'd] On Fri, Jun 25, 2010 at 10:31 PM, rantingrick rantingr...@gmail.com wrote: Clearly the user is upset and blabbing all sorts of incendiary nonsense but again and again the good folks at SketchUp stay calm and always attempt to help. This is how i would like to

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Ian Kelly
On Thu, Jun 24, 2010 at 9:38 PM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message 2010062422432660794-angrybald...@gmailcom, Owen Jacobson wrote: Why would I write this when SQLAlchemy, even without using its ORM features, can do it for me? SQLAlchemy doesn’t seem very

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 messageslrni297ec.1m5.grahn+n...@frailea.sa.invalid, 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

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, python-list-requ...@python.org wrote: Send Python-list mailing list submissions to python-list@python.org To

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 - one of those

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 for

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: 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

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, without

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 alien8...@gmail.com wrote: On Jun 25, 8:42 pm, nanothermite911fbibustards nanothermite911fbibusta...@gmail.com 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

Re: deprecated string module issue

2010-06-26 Thread John Pinner
On Jun 25, 11:14 pm, Steven D'Aprano st...@remove-this- cybersource.com.au 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

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 alien8...@gmail.com wrote: On Jun 25, 8:42 pm, nanothermite911fbibustards nanothermite911fbibusta...@gmail.com

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: 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. my mum

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: improving python performance by extension module (64bit)

2010-06-26 Thread geremy condra
On Sat, Jun 26, 2010 at 7:11 AM, Nobody nob...@nowhere.com 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

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Roy Smith
In article 2010062522560231540-angrybald...@gmailcom, Owen Jacobson angrybald...@gmail.com 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: 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 tho...@jollans.com 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 time

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 nyamatongwe+thun...@gmail.com 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

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 tho...@jollans.com 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

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 nob...@nowhere.com 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

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: 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,

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!'

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

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

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. --

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 will be

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 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 Python 3,

Re: I strongly dislike Python 3

2010-06-26 Thread james
thanks for the info, christian! Quoting Christian Heimes li...@cheimes.de: 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

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

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/ --

Re: the bugerrd code

2010-06-26 Thread vikyh2001
Bruno Desthuilliers bruno.42.desthuilliers at 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

[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

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

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 not the number

Re: Another MySQL Problem

2010-06-26 Thread Victor Subervi
On Fri, Jun 25, 2010 at 2:15 AM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote: On Thu, 24 Jun 2010 09:59:41 -0430, Victor Subervi victorsube...@gmail.com declaimed the following in gmane.comp.python.general: I could have sworn the concept had been brought up some 8 months ago...

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: Test - Ignore, clicketh not on I!

2010-06-26 Thread John Bokma
Stephen Hansen me+list/pyt...@ixokai.io 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

Re: Test - Ignore, clicketh not on I!

2010-06-26 Thread Stephen Hansen
On 6/26/10 11:11 AM, John Bokma wrote: Stephen Hansenme+list/pyt...@ixokai.io 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,

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 on

Re: I strongly dislike Python 3

2010-06-26 Thread John Bokma
Stephen Hansen me+list/pyt...@ixokai.io 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

Re: I strongly dislike Python 3

2010-06-26 Thread Stephen Hansen
On 6/26/10 11:41 AM, John Bokma wrote: Stephen Hansenme+list/pyt...@ixokai.io 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

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 correct

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

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 experience

Re: I strongly dislike Python 3

2010-06-26 Thread Chris Rebert
On Sat, Jun 26, 2010 at 11:55 AM, Peter Kleiweg p.c.j.klei...@rug.nl 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

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

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 use it

Re: I strongly dislike Python 3

2010-06-26 Thread Ian Kelly
On Sat, Jun 26, 2010 at 11:38 AM, Lie Ryan lie.1...@gmail.com 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

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'Apranost...@remove-this- cybersource.com.au 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

Re: I strongly dislike Python 3

2010-06-26 Thread Brian J Mingus
On Sat, Jun 26, 2010 at 10:06 AM, Christian Heimes li...@cheimes.de 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

Re: I strongly dislike Python 3

2010-06-26 Thread Tim Delaney
On 27 June 2010 05:36, Brian J Mingus brian.min...@colorado.edu 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

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 Roseker...@polaris.net wrote:

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.

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

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 rantingr...@gmail.com 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,

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: [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 tjre...@udel.edu 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 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

Re: Python interface problem with Windows

2010-06-26 Thread Benjamin Kaplan
On Sat, Jun 26, 2010 at 2:45 PM, Kermit Rose ker...@polaris.net 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:  

[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

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

Re: I strongly dislike Python 3

2010-06-26 Thread Paul Rubin
Terry Reedy tjre...@udel.edu 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

Re: I strongly dislike Python 3

2010-06-26 Thread Terry Reedy
On 6/26/2010 8:02 PM, Paul Rubin wrote: Terry Reedytjre...@udel.edu 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

Re: I strongly dislike Python 3

2010-06-26 Thread Paul Rubin
Terry Reedy tjre...@udel.edu 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. ;) --

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 tjre...@udel.edu 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

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's

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 the whitespace

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 are

Re: Python dynamic attribute creation

2010-06-26 Thread Chris Rebert
On Sat, Jun 26, 2010 at 6:06 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: snip 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

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: 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

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 I

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: 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 st...@remove-this-cybersource.com.au wrote: snip CPython is a fairly plodding implementation. But that's due to the conservativeness of CPython: Unladen Swallow is faster, and PyPI is

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

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message mailman.2123.1277522976.32709.python-l...@python.org, 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

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message mailman.2126.1277534032.32709.python-l...@python.org, 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(

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 pan.2010.06.26.10.49.02.156...@nowhere.com, 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

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 nob...@nowhere.nil wrote: David Kastrup d...@gnu.org schrieb im Newsbeitragnews:87eifw50cd@lola.goethe.zz... small Pox smallpox...@gmail.com writes: Leslie Lamport is a Jew - His book is NOTORIOUSLY uninsightfulobfuscatory (nothing on the

Re: I strongly dislike Python 3

2010-06-26 Thread Aahz
In article mailman.2172.1277594845.32709.python-l...@python.org, Terry Reedy tjre...@udel.edu 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

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Aahz
In article i06cju$qq...@lust.ihug.co.nz, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.2123.1277522976.32709.python-l...@python.org, Tim Chase wrote: On 06/25/2010 07:49 PM, Lawrence D'Oliveiro wrote: ... I see that you published my unobfuscated e-mail

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 mailman.2123.1277522976.32709.python-l...@python.org, 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

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 messagemailman.2123.1277522976.32709.python-l...@python.org, 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

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

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 nanothermite911fbibusta...@gmail.com 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

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

2010-06-26 Thread Ben Finney
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand 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.

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 ben+pyt...@benfinney.id.au wrote: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand 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

Re: Python dynamic attribute creation

2010-06-26 Thread Carl Banks
On Jun 25, 8:24 pm, WANG Cong xiyou.wangc...@gmail.com 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

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message pan.2010.06.26.11.04.22.328...@nowhere.com, 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. --

Re: Why Is Escaping Data Considered So Magical?

2010-06-26 Thread Lawrence D'Oliveiro
In message roy-854954.20435125062...@news.panix.com, 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

Re: Continuously running scripts question

2010-06-26 Thread Lawrence D'Oliveiro
In message mailman.2077.1277482235.32709.python-l...@python.org, 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? --

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 officers

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 smallpox...@gmail.com wrote: By You're an idiot. Take your SPAM elsewhere. -- http://mail.python.org/mailman/listinfo/python-list

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

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

  1   2   3   >