Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9137
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bahamutzero8825@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; '2.7': 0.04; 'subject:Python': 0.06; 'formatting': 0.07; 'semantic': 0.07; 'unexpected': 0.07; 'python': 0.08; 'syntax.': 0.09; 'syntax': 0.11; '(e.g.,': 0.12; 'received:209.85.214.174': 0.13; 'received:mail-iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'believe.': 0.16; 'simplest': 0.16; 'subject:Newbie': 0.16; 'subject:Programming': 0.16; 'pm,': 0.16; 'suggest': 0.17; 'programming': 0.18; 'seems': 0.20; "doesn't": 0.22; 'header:In- Reply-To:1': 0.22; 'subject:help': 0.22; 'trying': 0.23; 'optional': 0.23; 'similar,': 0.23; 'vs.': 0.23; 'versions': 0.23; 'code': 0.24; 'bruce': 0.25; 'parameters': 0.25; 'statement': 0.25; 'string': 0.26; 'function': 0.26; 'received:209.85.214': 0.28; 'basics': 0.29; 'odd': 0.29; 'updated': 0.29; 'print': 0.32; 'message-id:@gmail.com': 0.32; 'rather': 0.33; 'to:addr:python- list': 0.34; 'header:User-Agent:1': 0.34; 'subject:Web': 0.34; 'things': 0.34; 'function.': 0.35; '(for': 0.36; 'some': 0.37; 'but': 0.37; 'could': 0.37; 'using': 0.37; 'received:192': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'cases,': 0.38; 'teaches': 0.38; 'something': 0.38; 'hello,': 0.38; 'think': 0.38; 'put': 0.38; 'common': 0.39; 'easier': 0.39; 'received:192.168.1': 0.39; 'either': 0.39; 'got': 0.39; 'subject:with': 0.39; "there's": 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'cause': 0.69; 'dealing': 0.69; 'with,': 0.77; 'differences,': 0.84; 'print()': 0.84; 'print.': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=6VGGGeNfQHZ88TClMFJTOvRNtxtBTku3857yfO9DBs0=; b=Q5Rp2KmbhJT5RhvbgzBmFnsGqExmOCx1kQo4lfkF5gkIGQEp2dI2f6XSKkptfstGD8 DWLn2D0MPsx0T5MocUXvFBarMqEzOwVauFv97NGf8MYmg/UadnidoTkV7yvHvva0NTx+ dn8mmrPjgNBBkmbgRdUW1vaEqmSCN2iaY3RKs= |
| Date | Sat, 09 Jul 2011 21:44:47 -0500 |
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
| MIME-Version | 1.0 |
| To | "comp.lang.python" <python-list@python.org> |
| Subject | Re: Newbie help - Programming the Semantic Web with Python |
| References | <1356CE18703044AEA015CB1C4BA9A3C7@BrucePC> |
| In-Reply-To | <1356CE18703044AEA015CB1C4BA9A3C7@BrucePC> |
| X-Enigmail-Version | 1.2 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| 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.818.1310265896.1164.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1310265896 news.xs4all.nl 21843 [2001:888:2000:d::a6]:52803 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:9137 |
Show key headers only | View raw
On 2011.07.09 08:32 PM, Bruce Whealton wrote: > Hello, > So, I got this book on Programming the Semantic Web about > the same time I started learning Python. The code seems to be > developed for python 2.7 and not 3, I believe. If you're going to learn Python 3, I suggest learning from a book that deals with Python 3 (if there's not an updated text for the area you're dealing with, go with something that teaches the basics). Once you have the basics down and you know the common differences, then it will be much easier to learn from a text that's based on Python 2 (you'll stumble a whole lot less when trying to learn from such texts). You'll also find some things in Python 3 that have been added to recent versions of Python 2 that the text may not cover (e.g., the old % string formatting syntax vs. the new format() string method). > If I was using python 3, it would require () around the thing that is > going to be printed, right? That's not really the right way to think of the print() function. The print statement has some very arbitrary syntax that could cause unexpected behavior if simply put in the print() function. The print function has parameters for optional behavior rather than odd syntax. In the simplest cases, print and print() are extremely similar, but print() has a bunch of functionality that is either difficult/annoying to decipher (for humans, not the interpreter) or simply doesn't exist in print.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Newbie help - Programming the Semantic Web with Python Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-09 21:44 -0500
csiph-web