Python
Python is a dynamically typed programming language designed by Guido van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.
Here are 96,982 public repositories matching this topic...
-
Updated
Apr 13, 2020 - Python
There are some interesting algorithms in simulation from Physics, Chemistry, and Engineering especially regarding Monte Carlo simulation: Heat Bath algorithm, Metro-Police algorithm, Markov Chain Monte Carlo, etc.
The Tutorial section of the docs refers to to the most recent Flaskr application structure however the Testing Deep Dive section is still referring to an application structure from at least the 0.12 version of the tutorial which assumes an application structure that doesn't involve the app factory. This could certainly confuse a new comer... I mean not me.... I certainly wasn't confus
In the documentation it says:
Turns positive integers (indexes) into dense vectors of fixed size. eg. [[4], [20]] -> [[0.25, 0.1], [0.6, -0.2]]
Neither this explanation nor this example is very clear. I would suggest replacing this with
Turns positive integers (indexes) into dense vectors of fixed size. eg. [[4], [20]] -> [[0.25, 0.1], [0.6, -0.2]]
It's not clear from the website's documentation, or the --help output, how to do the following equivalent curl task:
Post a raw JSON query to ElasticSearch:
curl \
--header "Content-Type: application/json" \
--request POST \
--data '{ "_source": [ "restricted_countries.*" ], "query": { "match_all": {} }, "size": 1000 }' \
'http://localhost:9200/_search'
T
We're trying to fix as many broken links as possible before modules move into collections. This is the batch of broken links on some Ansible modules.
NOTE: the link checker sometimes reports an error where a link actually works. Ignore those if you find them.
ISSUE TYPE
- Documentation Report
COMPONENT NAME
When using the url http://docs.python-requests.org/en/latest/, it redirects to https://2.python-requests.org//en/latest/ (notice the extra / before en). This causes a HTTP 404.
Expected Result
The redirect should be to https://2.python-requests.org/en/latest/
Actual Result
HTTP 404
Reproduction Steps
Try to visit the latest en documentation for requests using the
In the IterativeImputer, min_value and max_value are defaulted to None. Internally, if they are None min and max value will be affected to -np.inf and np.inf, respectively.
We should change this behaviour and make that the default of min_value=-np.inf and max_value=np.inf directly.
https://twisted.readthedocs.io/en/latest/core/howto/defer-intro.html#inline-callbacks-using-yield says "On Python 3, instead of writing returnValue(json.loads(responseBody)) you can instead write return json.loads(responseBody). This can be a significant readability advantage, but unfortunately if you need compatibility with Python 2, this isn’t an option.".
-
Updated
Apr 7, 2020 - Python
-
Updated
Mar 5, 2020 - Python
Similar to certbot/certbot#7803, it seems like ideally our code should pass mypy's tests regardless of the Python version it is run on, but we currently specify that Python 2.7 should be used. Can we make our tests pass everywhere and stop pinning this?
CLN remove unreachable code in pandas/core/groupby/generic.py::DataFrameGroupBy::_transform_general
NOTE: I'd originally opened a PR to address this, but am now busy with other obligations + other PRs to respond to. So I'm opening it up as a good first issue for now, and will return to work on it if nobody takes it.
In pandas/core/groupby/generic.py::DataFrameGroupBy::_transform_general, it seems this branch is never reached:
I think listing anti-patterns with some basic reasoning about "why not" is a good idea.
Example - singleton. Although #256 has "won't fix" label
- it is in PRs section, and people (if searching history at all) are searching issues first.
- it was misspelled, Singelton instead of Singleton, therefore impossible to find
Listing most popular anti-patterns (without actual implementation) shou
-
Updated
Mar 20, 2020 - Python
I just wanted to point out that pycairo can be found in this GitHub repo, and that there it says installing it is as simple as pip install pycairo. Am I missing something or should this information be included in the docs? It would be much easier than locating and installing the appropriate version from [here](https://www.lfd.uci.edu/~gohlke/pythonlibs/#py
I am packaging pipenv for openSUSE, which means the tests must run without internet.
For the most part the internet detection and skipping works great, however I believe the following use the internet without having the internet marker.
test_download_filetest_pipenv_clean_pip_no_warningstest_environment_variable_value_does_not_change_hashtest_run_in_virtualenv- `tes
Credit goes to Javier Honduvilla Coto for find this: http://hondu.co/blog/open-and-python
I contacted him by email to clarify a few bits, and thought it'd be a nice addition here.
f = open('/tmp/a', 'w'); open(f.fileno()) # OK
open(open('/tmp/b', 'w').fileno()) # KOhttps://mybinder.org/ Should I make a binder ? :) Or if there is a binder link, it's well hidden.
Sphinx 2.1 breaks our docs build. The first break is that it is incompatible with sphinxcontrib-asyncio (it has its own built-in version). It also breaks references to built-in types as noted in tornadoweb/tornado#2673 (comment).
Problem Description
In https://github.com/mitmproxy/mitmproxy/blame/master/docs/src/content/tute-clientreplay.md#L35, Toggle Proxy is linked, but it no longer exists.
Steps to reproduce the behavior:
- GOTO https://docs.mitmproxy.org/stable/tute-clientreplay/
- GOTO https://addons.mozilla.org/en-us/firefox/addon/toggle-proxy-51740/
- SEE Oops! We can’t find that page
Sy
Alexnet implementation in tensorflow has incomplete architecture where 2 convolution neural layers are missing. This issue is in reference to the python notebook mentioned below.
Is there a reason why in travis CI config the command black --check . || true is run? I don't see the point in checking if files needs to be reformatted if it's just going to be ignored anyways.
Currently running black --line-length 127 --check . -> 399 files would be reformatted, 74 files would be left unchanged.
In additio
Jumping to a subsection via the sidenav will sometimes cause the page header to overlap the anchor point. When navigation is working correctly, there's a perceptible flicker/jump, so I'm guessing javascript is being used to calculate the offsets. Looking at mkdocs's docs, this isn't an issue. I'm wondering if this is something that will be fixed by upgrading mkdocs (#6623), or if it's a theme issu
Created by Guido van Rossum
Released February 20, 1991
- Organization
- python
- Website
- www.python.org
- Wikipedia
- Wikipedia
A description is incomplete. It should mention:
These patterns are not competing, but complementing each other. To achieve availability, one needs both fail-over and replication.
right after
"There are two main patterns to support high availability: fail-over and replication. "