Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'output': 0.05; 'operand': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'run,': 0.09; 'python': 0.11; 'camp': 0.16; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'typeerror:': 0.16; 'url:tutor': 0.16; 'discussion': 0.18; "skip:' 30": 0.19; 'help.': 0.21; 'example': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'idea': 0.28; 'url:mailman': 0.30; 'code': 0.31; 'usually': 0.31; 'kim': 0.31; 'produces': 0.31; 'writes:': 0.31; 'this.': 0.32; 'url:python': 0.33; 'actual': 0.34; 'subject:the': 0.34; 'problem': 0.35; 'problem.': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'thank': 0.38; 'ben': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'free': 0.61; 'forum': 0.61; 'providing': 0.61; "you'll": 0.62; 'complete': 0.62; 'show': 0.63; 'details': 0.65; 'assistance': 0.66; 'clearer': 0.84; 'received:125': 0.84; 'type(s)': 0.84; 'hate': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: Plotting the integer-and-fraction remainder of a function value modulo 360 Date: Thu, 10 Apr 2014 17:13:57 +1000 References: <1397104347.74031.YahooMailNeo@web161504.mail.bf1.yahoo.com> <85eh15zsvx.fsf@benfinney.id.au> <1397106229.8794.YahooMailNeo@web161502.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:ZiOXZcSsPJPGYgAuBHExsonECIw= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397114054 news.xs4all.nl 2868 [2001:888:2000:d::a6]:42076 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70019 Kim Plofker writes: > This produces the following error message: Thank you for providing an actual code example (though not one I can run, since it isn't a complete Python program). Particularly, thank you for providing the *actual* error output; this makes it much clearer what is happening. It's always best to show the complete error output since usually there are details in the output that narrow down the problem. > ... > TypeError: unsupported operand type(s) for %: > 'sage.symbolic.expression.Expression' and > 'sage.symbolic.expression.Expression' This is indeed a problem specific to the types defined by Sage. You'll need to start a discussion in a Sage-specific discussion forum. > Many thanks again for any help. You will likely still need assistance with Python to continue with this. Once you have a better idea what part is Sage-specific and what part is general Python, feel free to ask here. Or if you prefer, there is a beginner-level Python discussion forum at . -- \ “Know what I hate most? Rhetorical questions.” —Henry N. Camp | `\ | _o__) | Ben Finney