<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.python.general">
    <title>gmane.comp.python.general</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736180"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736179"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736178"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736177"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736176"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736175"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736174"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736173"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736172"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736171"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736170"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736169"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736168"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736167"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736166"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736165"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736164"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736163"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736162"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/736161"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736180">
    <title>Re: python game</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736180</link>
    <description>&lt;pre&gt;Thankyou this was very helpful
&lt;/pre&gt;</description>
    <dc:creator>Jackson Kemp</dc:creator>
    <dc:date>2013-06-20T02:15:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736179">
    <title>Re: A few questiosn about encoding</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736179</link>
    <description>&lt;pre&gt; 

Yeah, and your difficulty explaining the Unicode implementation reminds me of a passage from the Python zen:

 "If the implementation is hard to explain, it's a bad idea."
&lt;/pre&gt;</description>
    <dc:creator>Rick Johnson</dc:creator>
    <dc:date>2013-06-20T01:46:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736178">
    <title>Re: Default Value</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736178</link>
    <description>&lt;pre&gt;

"How" is easy: it is stored inside the function object, where the code 
can get to it. To be precise, in the function object's __defaults__ 
attribute:

py&amp;gt; def f(a=1, b=5, c="hello world"):
...     pass
...
py&amp;gt; f.__defaults__
(1, 5, 'hello world')


"Why" is even easier: because the creator of Python decided to do it this 
way.

This is called "early binding" -- the default value is bound (assigned) 
to the parameter early in the process, when the function is created. This 
has a few advantages:

- It is the most efficient: the cost of evaluating the defaults 
  only happens once, when the function is created, not over and 
  over again, every time the function is called.

- It is usually what people expect. If you have a function with
  a default, you normally expect the default to be set once, and 
  not re-evaluated each time.

- If you start with "early binding", it is trivial to get "late
  binding" semantics instead; but if you start with late binding,
  it's less convenient to get early binding sem&lt;/pre&gt;</description>
    <dc:creator>Steven D'Aprano</dc:creator>
    <dc:date>2013-06-20T01:17:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736177">
    <title>Re: Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736177</link>
    <description>&lt;pre&gt;
General debugging tip: Syntax errors are sometimes discovered quite
some way below the actual cause. The easiest way to figure out what's
the real cause is to start cutting away unnecessary code until all
that's left is the tiniest part that still has the error. This is also
very helpful as a prerequisite to posting on a list like this, so even
if you can't find the problem yourself by this method (you often will,
though), it's well worth doing.

ChrisA
&lt;/pre&gt;</description>
    <dc:creator>Chris Angelico</dc:creator>
    <dc:date>2013-06-20T01:09:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736176">
    <title>Re: Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736176</link>
    <description>&lt;pre&gt;Fixed, the problem was in 
HANGMANPICS 

I didn't open the brackets.

Thank you guys :)
&lt;/pre&gt;</description>
    <dc:creator>Arturo B</dc:creator>
    <dc:date>2013-06-20T01:02:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736175">
    <title>Re: Don't feed the troll...</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736175</link>
    <description>&lt;pre&gt;

+1000



&lt;/pre&gt;</description>
    <dc:creator>Steven D'Aprano</dc:creator>
    <dc:date>2013-06-20T00:47:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736174">
    <title>Re: Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736174</link>
    <description>&lt;pre&gt;Sorry, I'm new in here

So, if you want to see the complete code I've fixed it:
http://www.smipple.net/snippet/a7xrturo/Hangman%21%20%3A%29

And here is the part of code that doesn't work:


#The error is marked in the whitespace between letter and in
 
def displayBoard(HANGMANPICS, missedLetters, correctLetters, secretWord):
    print (HANGMANPICS[len(missedLetters)])
    print()
   
    print('Missed letters: ', end='')

#Starts problem

     for letter in missedLetters:

#Finishes problem

        print(letter, end=' ')
    print()

    blanks = '_' * len(secretWord)
 
    for i in range(len(secretWord)):
          if secretWord[i] in correctLetters:
              blanks = blanks[:i] + secretWord[i] + blanks[i+1:]
              
    for letter in blanks:
        print(letter, end=' ')
    print()
       


When I press F5 (Run) I get a window that says: 'Invalid Syntax' and the whitespace between letter and in is in color red 
&lt;/pre&gt;</description>
    <dc:creator>Arturo B</dc:creator>
    <dc:date>2013-06-20T00:32:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736173">
    <title>Re: Don't feed the troll...</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736173</link>
    <description>&lt;pre&gt;On Tue, 18 Jun 2013 20:46:28 -0700 (PDT), rurpy&amp;lt; at &amp;gt;yahoo.com declaimed the
following:


We'd like to... but he keeps changing his identity (and one particular
identity just happens to choke Forte Agent's kill filter -- I've not
figured out how to get that one to work)
&lt;/pre&gt;</description>
    <dc:creator>Dennis Lee Bieber</dc:creator>
    <dc:date>2013-06-19T23:45:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736172">
    <title>Re: Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736172</link>
    <description>&lt;pre&gt;
Listen;

1) Post the code in the EMail, not an external link.

2) Don't Top Post.

3) That link doesn't exist. There are so many good hosting sites; why
use one that doesn't work?

4) Give us a minimal example. This should be easy; just remove the
code above and the code below. This is also a valid debugging
technique.

5) Images? Really?
&lt;/pre&gt;</description>
    <dc:creator>Joshua Landau</dc:creator>
    <dc:date>2013-06-19T23:15:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736171">
    <title>Re: python game</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736171</link>
    <description>&lt;pre&gt;This is prob'ly the freakiest thing I've ever run...

Anyhoo, I recommend that when you post slabs of code to a mailing list
you at least make it runnable for us. We don't have the images. I
"fixed" it by doing:
| playerImage = pygame.Surface((40, 40))
| bearImage = pygame.Surface((64, 64))
|
| playerImage.fill(pygame.Color("red"))
| bearImage.fill(pygame.Color("blue"))

I'll not just give you answers, here, but try and make you understand
what you need to do to make your code shiny. I'll answer your
questions on the way, though.

On 19 June 2013 21:18,  &amp;lt;jacksonkemp1234&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

You probably want to split up these lines; all the cool kids do:
| import sys
| import random
| import pygame
|
| from pygame.locals import *
| from threading import Timer

This is just style; you might wonder why people do this but it's
something I've found makes sense in the long run for some reason, and
it's recommended as such.



Ah! Pygame has a color module.

For example, instead of:
| windowsurface.fill(BLACK)

it'&lt;/pre&gt;</description>
    <dc:creator>Joshua Landau</dc:creator>
    <dc:date>2013-06-19T23:03:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736170">
    <title>Popen in Python3</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736170</link>
    <description>&lt;pre&gt;I am trying to invoke a binary that requires dll's in two places all of
which are included in the path env variable in windows. When running
this binary with popen it can not find either, passing env=os.environ
to open made no difference.

Anyone know what might cause this or how to work around this?

Thanks,
jlc
&lt;/pre&gt;</description>
    <dc:creator>Joseph L. Casale</dc:creator>
    <dc:date>2013-06-19T23:03:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736169">
    <title>Re: Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736169</link>
    <description>&lt;pre&gt;Mmmm....

Ok guys, thank you

I'm really sure that isn't a weird character, it is a space.

My Python version is 3.3.2, I've runed this code in Python 2.7.5, but it stills the same.

I've done what you said but it doesn't work.

Please Check it again here is better explained:

http://snipplr.com/view/71581/hangman/

&lt;/pre&gt;</description>
    <dc:creator>Arturo B</dc:creator>
    <dc:date>2013-06-19T22:53:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736168">
    <title>Re: Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736168</link>
    <description>&lt;pre&gt;
Are you running this in Python 2 or Python 3?  In Python 2, print is a
statement, not a function, and the end='' arguments would cause a
SyntaxError if you're not using the necessary __future__ import.
&lt;/pre&gt;</description>
    <dc:creator>Ian Kelly</dc:creator>
    <dc:date>2013-06-19T22:35:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736167">
    <title>Re: Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736167</link>
    <description>&lt;pre&gt;



Snipplr says that link doesn't exist.




I don't see anything obviously wrong with that code.  Are you sure that's
a real blank space, and not some weird character that *looks* like a space?

&lt;/pre&gt;</description>
    <dc:creator>John Gordon</dc:creator>
    <dc:date>2013-06-19T21:30:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736166">
    <title>Re: Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736166</link>
    <description>&lt;pre&gt;
If you want us to read it, put it in your message.  Show at least a few 
lines before and after the syntax error, and show the error itself, as 
text of course.  Use copy/paste.

Of course that assumes you're using a proper console/shell, and know how 
to use it.  So if you have to ask about that, start there.

In addition, specify the python version, and if appropriate, the OS and 
its version.

Generally, you can find your own problem.  Syntax errors that seem 
confusing are frequently really on the line before the line in which 
they're "discovered."


&lt;/pre&gt;</description>
    <dc:creator>Dave Angel</dc:creator>
    <dc:date>2013-06-19T21:32:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736165">
    <title>Problem with the "for" loop syntax</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736165</link>
    <description>&lt;pre&gt;Hello guys...
I´m a begginer in Python, I'm doing a Hangman game, but I'm having trouble with this blank space. I would be greatful if you help me. :)

Here's my code:

http://snipplr.com/view/71581/hangman/

When I run the code it says: Invalid Syntax and this is the error:

http://i.imgur.com/jKYOPMY.png

http://i.imgur.com/ySoOZFR.png


Thank you guys :)
&lt;/pre&gt;</description>
    <dc:creator>arturo balbuena</dc:creator>
    <dc:date>2013-06-19T21:14:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736164">
    <title>Re: Don't feed the troll...</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736164</link>
    <description>&lt;pre&gt;
No, "blame" implies assumption of a particular point of
view.  From a troll's viewpoint, newsgroup participants that
*don't* respond are to blame because they deprive the troll
of his fun.

Our viewpoint is that of newsgroup participants.  We assume
they have volition, else this whole thread is pointless.
Since they have a choice of how to respond, then if they 
chose to respond in a way that produces an undesirable outcome, 
then it is fair "blame" them.

The troll is outside the volition of the group and so his
appearance is effectively an act of nature.


I am not "drawing the line for them", I am drawing it for
me.  I think you see a non-existent conflict because you are 
assume there is only one line.  I do not make that assumption.

If you think Nikos has crossed your line, then I acknowledge 
your right not to help him.  I even acknowledge your right
to flame him and encourage others to do so. 

My argument is that if you exercise your right (the flamage
part) the results on the newsgroup, when consi&lt;/pre&gt;</description>
    <dc:creator>rurpy&lt; at &gt;yahoo.com</dc:creator>
    <dc:date>2013-06-19T21:13:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736163">
    <title>Re: python game</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736163</link>
    <description>&lt;pre&gt;

Should this be moveRight instead of moveDown?

&lt;/pre&gt;</description>
    <dc:creator>Denis McMahon</dc:creator>
    <dc:date>2013-06-19T20:43:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736162">
    <title>Re: python game</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736162</link>
    <description>&lt;pre&gt;

Try changing this to draw the bears first, then the player.

&lt;/pre&gt;</description>
    <dc:creator>Denis McMahon</dc:creator>
    <dc:date>2013-06-19T20:41:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736161">
    <title>Re: Newbie: The philosophy behind list indexes</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736161</link>
    <description>&lt;pre&gt;
Thanks everyone for taking the time to offer some very insightful replies. Learning a new language is so much more fun with a group of friendly and helpful people around!
&lt;/pre&gt;</description>
    <dc:creator>ian.l.cameron&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2013-06-19T20:46:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/736160">
    <title>python game</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/736160</link>
    <description>&lt;pre&gt;I made this game where you move a player over bears, but the bears keep loading over the plaeyer making it hard to see it, also when i move down the player goes down to the right

here is my code:

import pygame, sys, random
from pygame.locals import *
from threading import Timer

#set up pygame
pygame.init()
mainClock = pygame.time.Clock()

#set up the window
WINDOW_WIDTH = 400
WINDOW_HEIGHT = 400
windowSurface = pygame.display.set_mode((WINDOW_WIDTH,
WINDOW_HEIGHT),0)
pygame.display.set_caption('Get the Bears')

#set up color constants
BLACK = (0,0,0)
BLUE = (0, 0, 255)
#set winning text
textFont = pygame.font.SysFont("impact", 60)
text = textFont.render("YOU WIN!", True, (193, 0, 0))

#set up the player and bear data structures
bearCounter = 0
NEW_BEAR = 40
BEAR_SIZE = 64
playerImage = pygame.image.load('hunter.png')
bearImage = pygame.image.load('bear.png')

player = pygame.Rect(300, 100, 40, 40)
bears = []
for i in range(20):
    bears.append(pygame.Rect(random.randint(0, WINDOW_WIDTH - BEAR_SIZE),
    &lt;/pre&gt;</description>
    <dc:creator>jacksonkemp1234&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2013-06-19T20:18:49</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.general</link>
  </textinput>
</rdf:RDF>
