Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #56911
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mohsen@pahlevanzadeh.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'correct.': 0.07; "(i'd": 0.09; 'lines.': 0.09; 'pep': 0.09; 'skip:# 30': 0.09; 'skip:# 60': 0.09; 'val': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '10:45': 0.16; 'create)': 0.16; 'finney': 0.16; 'merely': 0.16; 'skip:q 30': 0.16; 'subject:object': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; '(or': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'easier': 0.31; 'indentation': 0.31; 'writes:': 0.31; 'run': 0.32; 'another': 0.32; 'guess': 0.33; 'subject:from': 0.34; "can't": 0.35; 'shows': 0.36; 'useful': 0.36; 'url:org': 0.36; 'should': 0.36; 'thank': 0.38; 'ben': 0.38; 'improving': 0.38; 'read': 0.60; 'is.': 0.60; "you're": 0.61; 'discuss': 0.62; 'complete': 0.62; 'lastly,': 0.84; 'short,': 0.84; 'subject:add': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pahlevanzadeh.org; s=default; h=Content-Transfer-Encoding:Mime-Version:Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID; bh=QUN5+4m/KKcV45u6oOhnVL23Jsp2RNsMWz4tuzcd2Io=; b=Ubs8XddWbleDirve4jDvEpGolv1Zck4Zq/zWefi9QraXNRRJSv0ABDeVRp3ZVFPhEx7XeohC7byipxjy/0CIEyyXDpS5KYHEeNgdLI95SPJ1thicX28ooBE8kj3FW8r7z6qw10Nz/P1/CboSWrRLzVDjD05HdLxJ8wSKdwbtJtI=; |
| Subject | Re: how to add object from dict |
| From | Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org> |
| To | Ben Finney <ben+python@benfinney.id.au> |
| Date | Thu, 17 Oct 2013 03:38:52 +0330 |
| In-Reply-To | <7wwqlcixup.fsf@benfinney.id.au> |
| References | <1381961694.21908.13.camel@debian> <7wwqlcixup.fsf@benfinney.id.au> |
| Content-Type | text/plain; charset="UTF-8" |
| X-Mailer | Evolution 3.8.5-2 |
| Mime-Version | 1.0 |
| Content-Transfer-Encoding | 8bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - part7.royal-servers.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - pahlevanzadeh.org |
| X-Get-Message-Sender-Via | part7.royal-servers.com: authenticated_id: mohsen@pahlevanzadeh.org |
| Cc | python-list@python.org |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1127.1381968554.18130.python-list@python.org> (permalink) |
| Lines | 39 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1381968554 news.xs4all.nl 15897 [2001:888:2000:d::a6]:54918 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:56911 |
Show key headers only | View raw
On Thu, 2013-10-17 at 10:45 +1100, Ben Finney wrote:
> Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org> writes:
>
> > and another file,(projectsFind.py) i have the following code:
> > #################################################################3
> > for key, val in
> > self.projectsInstance.addOnFieldsInstance.items():
> > instance = getattr(self,"%s" % val)
> > print val
> > #QtCore.QObject.connect(instance,
> > QtCore.SIGNAL(_fromUtf8("stateChanged (int)")),
> > #lambda:
> > self.projectsInstance.setFilterDict_Find("TWCH",self,"addonfields",instance.CheckState(),instance))
> > ######################################################################3
>
> The above code has been mangled, and the indentation isn't correct. I
> don't want to guess what it was originally; better that you find a user
> agent which won't wrap your code lines.
>
> The code is also difficult to read because it's got a lot of
> camelCaseNames and it's hard to see what the intent is. (I'd advise
> improving the code to conform to PEP 8, which will make your code easier
> to discuss with the Python community.)
>
> Lastly, it's not complete: we can't run it to see what you're seeing.
>
> Please re-work (or create) a short, self-contained, complete example
> that shows the behaviour <URL:http://sscce.org/>.
>
> --
> \ “Wrinkles should merely indicate where smiles have been.” —Mark |
> `\ Twain, _Following the Equator_ |
> _o__) |
> Ben Finney
>
Thank you for your useful link , i paste my code into :
http://www.heypasteit.com/clip/1008
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to add object from dict Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org> - 2013-10-17 03:38 +0330
csiph-web