title: Python 3.5.1 - read multiple integers on the same input line into a list
body: <p>I'm using python 3.5.1 and running my file through command prompt on windows. The arguments are being passed after the program is run; ie the program prompts for input based on a previously generated list.</p>
  
  <p>I'm looking to read in multiple numbers on the same line separated by spaces.  Python 2.X it wouldn't have been an issue with raw_input but this is proving to be a challenge.</p>
  
  <pre><code>selection = list(map(int,input("Enter items to archive (1 2 etc):").split(",")))
  </code></pre>
  
  <p>If I enter two different numbers on the same line:</p>
  
  <blockquote>
    <p>Enter items to archive (1 2 etc):29 30  Traceback (most recent call
    last):   File "G:\Learning\Python\need_to_watch.py", line 15, in
    
         selection = list(map(int,input("Enter items to archive (1 2 etc):").split(",")))   File "", line 1
         29 30
             ^ SyntaxError: unexpected EOF while parsing</p>
  </blockquote>
  
  <p>I gave up on a single line and tried just doing it in a loop but I get a different error</p>
  
  <pre><code>data=[]
  while True:
          entry = int(input('Item number : '))
          data.append(entry)
          if entry == 'q':
              break
  </code></pre>
  
  <p>It tries to evaluate 'q' as a variable even though I haven't eval()'d anything.</p>
  
  <p>This question says to just use input().split() but it would appear that this no longer works....
  <a href="https://stackoverflow.com/questions/11404946/accepting-multiple-user-inputs-seperated-by-a-space-in-python-and-append-them-to">accepting multiple user inputs separated by a space in python and append them to a list</a></p>
  
  <p>I could try and catch the EOF exception, but that doesn't seem like the right way to do it, nor should it be necessary.</p>