Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41945
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!news.unit0.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.03; 'fixes': 0.07; 'enhancements': 0.09; 'exec': 0.09; 'release,': 0.09; 'subject:command': 0.09; 'subject:method': 0.09; 'subject:How': 0.10; 'python': 0.11; 'bug': 0.12; "wouldn't": 0.14; 'windows': 0.15; '(moving': 0.16; '2.3.4': 0.16; '2.7.3': 0.16; '2.7.3?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'it;': 0.16; 'packs,': 0.16; 'sane': 0.16; 'subject: \n ': 0.16; 'subject:class': 0.16; 'subject:object': 0.16; 'suggestion.': 0.16; 'unchanged': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'seems': 0.21; '(the': 0.22; 'command': 0.22; '2.x': 0.24; 'looks': 0.24; 'nearly': 0.26; 'switch': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'feature': 0.29; 'am,': 0.29; 'bigger': 0.30; 'change,': 0.30; 'strongly': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; '3.x': 0.31; 'run': 0.32; 'could': 0.34; 'problem': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'dates': 0.36; 'thanks': 0.36; 'behind': 0.37; 'received:209': 0.37; 'easiest': 0.38; 'machines': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'subject:" ': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'solve': 0.60; 'subject:? ': 0.60; 'most': 0.60; "you're": 0.61; 'back': 0.62; 'guarantee': 0.63; 'name': 0.63; 'our': 0.64; 'chance': 0.65; 'worth': 0.66; 'latest': 0.67; 'mar': 0.68; '26,': 0.68; 'subject:Get': 0.68; 'default': 0.69; '.....': 0.78; 'commands.': 0.84; 'kyle': 0.84; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=AD2TyIkKKUJWTjLvzWoynjvF1rmVpeYk1Fl6+540iaY=; b=kAMRytflrTP7ScjhfoMFMYsmWl4w+vSIrvu8TC0IWiswpIeFfCODTit2KZ+61k0ipS 70tYoqtn9Mho4TBn8Wldj7CVinuMnapNeY0LLmgYVkpLNzO4c0Xv3cN/urGDvDHxZlrt cMRL+b10AWT6JnvNIZ3qlrzIYoogloEFbEDSSf50zpO6fDPdTGIxsCK1usMwUgNW3+OJ DgF4+Pxgn6qjURavyVtFMCHQssTZKpiPPsBIahpgSk48lwOSxK9H8qyejowVX/7RwO/k u0u/Aaily8yrCWfEW8AIIDh891rcnSQ2jo+BsxkjdDHlUfEvxVNZCiprg1gFIdVvwDSa 9iIg== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.16.211 with SMTP id i19mr681369vdd.91.1364326764450; Tue, 26 Mar 2013 12:39:24 -0700 (PDT) |
| In-Reply-To | <c4405d82-2bf3-4d3d-8f7d-25d90915a8f1@v8g2000yqe.googlegroups.com> |
| References | <2461da1a-d7d8-465b-8c12-6dc78398ef79@googlegroups.com> <27d47c3b-18d7-4ef0-b6fb-d99482c72bdd@googlegroups.com> <mailman.3768.1364323431.2939.python-list@python.org> <c4405d82-2bf3-4d3d-8f7d-25d90915a8f1@v8g2000yqe.googlegroups.com> |
| Date | Wed, 27 Mar 2013 06:39:24 +1100 |
| Subject | Re: How to define "exec" method on a class object? Get syntax error due to built in command |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3772.1364326766.2939.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1364326766 news.xs4all.nl 6840 [2001:888:2000:d::a6]:35679 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:41945 |
Show key headers only | View raw
On Wed, Mar 27, 2013 at 6:24 AM, Kyle <stalkernew@gmail.com> wrote: > On Mar 26, 2:43 pm, Chris Angelico <ros...@gmail.com> wrote: >> On Wed, Mar 27, 2013 at 5:13 AM, Kyle <stalker...@gmail.com> wrote: >> > Thanks for the suggestion. Looks like we currently use 2.3.4. >> >> > This still wouldn't solve the problem because now the user would need to call something like getattr(wbt, "exec")(<args>) instead of wbt.exec(<args>) like all the other commands. >> >> > I think the easiest thing for me to do would be to just change the command name from exec to something else. >> >> ..... that's pretty ancient. Any chance you can upgrade at least to 2.7.3? >> >> ChrisA > > Unfortunately, while I could update my machine, there's no guarantee > others would have the same version--the 2.3.4 seems to be the default > on our machines and in the automount dirs. I strongly recommend upgrading. 2.3.4 dates back to 2004, that's roughly a decade of bug fixes and feature enhancements behind the times. 2.7.3 is the latest 2.x release, and most likely your code will run unchanged on it; if you can switch to 3.3.0 (the latest 3.x release), that would actually fix your exec problem, for what that's worth. (Moving to 3.3.0 would be a much bigger change, though, and one that's likely to require code edits.) It's a good thing Python has neither the number nor breadth of security vulnerabilities as Windows; you're using something nearly as old as an unpatched Windows XP, no service packs, no Windows Update, nothing... no sane systems administrator would let you put that on the internet. It may not be suicidal like that, but it's still ten years' worth of updates you're missing out on! ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to define "exec" method on a class object? Get syntax error due to built in command Kyle <stalkernew@gmail.com> - 2013-03-25 13:28 -0700
Re: How to define "exec" method on a class object? Get syntax error due to built in command Chris Angelico <rosuav@gmail.com> - 2013-03-26 07:43 +1100
Re: How to define "exec" method on a class object? Get syntax error due to built in command Kyle <stalkernew@gmail.com> - 2013-03-26 11:13 -0700
Re: How to define "exec" method on a class object? Get syntax error due to built in command Ethan Furman <ethan@stoneleaf.us> - 2013-03-26 11:36 -0700
Re: How to define "exec" method on a class object? Get syntax error due to built in command Chris Angelico <rosuav@gmail.com> - 2013-03-27 05:43 +1100
Re: How to define "exec" method on a class object? Get syntax error due to built in command Kyle <stalkernew@gmail.com> - 2013-03-26 12:24 -0700
Re: How to define "exec" method on a class object? Get syntax error due to built in command Chris Angelico <rosuav@gmail.com> - 2013-03-27 06:39 +1100
Re: How to define "exec" method on a class object? Get syntax error due to built in command Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-26 23:19 +0000
Re: How to define "exec" method on a class object? Get syntax error due to built in command Chris Angelico <rosuav@gmail.com> - 2013-03-27 12:27 +1100
csiph-web