Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
4k views

I am running a function, provision_ec2_node(), via the default asyncio event loop thread executor. The function takes a number of arguments which I pass to the executor via functools.partial(). task =...
Nick Chammas's user avatar
  • 12.8k
16 votes
2 answers
6k views

does python 3.5 provide functions that allow to test whether a given argument would fit the type hints given in the function declaration? if i have e.g. this function: def f(name: List[str]): ...
hiro protagonist's user avatar
22 votes
10 answers
78k views

I want to use PyCharm, so I downloaded and installed it (v. 4.5, community edition). I had previously installed Python 3.5 64-bit from python.org (I'm using Windows 10). To start using PyCharm, I need ...
Asier R.'s user avatar
  • 503
57 votes
2 answers
35k views

#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time async def foo(): await time.sleep(1) foo() I couldn't make this dead simple example to run: RuntimeWarning: coroutine 'foo' was never ...
smilingpoplar's user avatar
4 votes
1 answer
811 views

Python 3.5 for Windows is built with Visual Studio 2015: Microsoft Visual Studio 2015, which is the compiler used to build the official Python releases Which version of the Windows SDK should you ...
Colonel Panic's user avatar
16 votes
1 answer
9k views

Since Python 3.5 you can use Generics and other interesting stuff described in PEP-0484. I tried that and here's a code I have: from typing import TypeVar, Generic, Optional ... _T = TypeVar('T') ...
8bitjoey's user avatar
  • 1,185
3 votes
3 answers
3k views

I use OS X Yosemite with a Homebrew-installed Python 3.5. Trying to install NumPy with pip3 install numpy results in the following error Traceback (most recent call last): File "<string>"...
MortenB's user avatar
  • 193
359 votes
4 answers
174k views

One of the most talked-about features in Python 3.5 is type hints. An example of type hints is mentioned in this article and this one while also mentioning to use type hints responsibly. Can someone ...
Vaulstein's user avatar
  • 22.4k
24 votes
2 answers
21k views

Couldn't figure out how to use await from python 3.5-rc2 >>> async def foo(): ... pass ... >>> await foo() File "<ipython-input-10-a18cb57f9337>", line 1 await foo()...
balki's user avatar
  • 27.9k
-1 votes
1 answer
239 views

https://docs.python.org/3.5/library/token.html What are last four tokens about in the token definition of Python 3.5 grammar?
objmagic's user avatar
  • 1,024
-3 votes
1 answer
52 views

I've been trying to create a script that takes lists inside a dictionary, and edits them to create a grid-like thing. I'm trying to make a variable equivalent to the index of a value in the list, but ...
Johnny Sasaki's user avatar
2 votes
1 answer
38 views

I have installed virtualenvwrapper in a 3.5.0b1 virtualenv, called setupenv, to be able to generate new python 3.5 test environments easily. Looking over the list of installed packages, I did see ...
user4927615's user avatar
17 votes
3 answers
34k views

I have installed both Python 3.5 and Beautifulsoup4. When I try to import bs4, I get the error below. Is there any fix for that? Or should I just install Python 3.4 instead? Please be very explicit - ...
anne_t's user avatar
  • 435
244 votes
4 answers
125k views

I know @ is for decorators, but what is @= for in Python? Is it just reservation for some future idea? This is just one of my many questions while reading tokenizer.py.
Octavia Togami's user avatar

1
64 65 66 67
68