instance_id
stringlengths
10
57
file_changes
listlengths
1
15
repo
stringlengths
7
53
base_commit
stringlengths
40
40
problem_statement
stringlengths
11
52.5k
patch
stringlengths
251
7.06M
nithinmurali__pygsheets-272
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pygsheets/authorization.py:authorize" ], "edited_modules": [ "pygsheets/authorization.py:authorize" ] }, "file": "pygsheets/authorization.py" } ]
nithinmurali/pygsheets
136c295143f6365bdbca70328a876b1cc66baab3
RuntimeError: dictionary changed size during iteration https://github.com/nithinmurali/pygsheets/blob/0e2468fe9a1957b19f1cebe3667c601c32942bbd/pygsheets/authorization.py#L94 You can't delete keys from a dictionary you are currently iterating.
diff --git a/.gitignore b/.gitignore index 9bc512f..3556492 100644 --- a/.gitignore +++ b/.gitignore @@ -1,22 +1,28 @@ +# Python *.pyc -.DS_Store -.coverage - +build/ +dist/ venv/ -.idea/ .cache/ .pytest_cache/ -build/ -dist/ -# docs/ +pygsheets.egg-info/ +.pytest_cache/ + +# File types *.json *.csv + +# Tests t...
nithinmurali__pygsheets-572
[ { "changes": { "added_entities": [ "pygsheets/authorization.py:_get_initial_user_authentication_credentials" ], "added_modules": [ "pygsheets/authorization.py:_get_initial_user_authentication_credentials" ], "edited_entities": [ "pygsheets/authorization.py:_...
nithinmurali/pygsheets
265f16caff33a7ee6eb0d648ec740d0e3eccf445
Token has been expired or revoked Hello! How can I disable frequent refresh of the Token? Quite often, you have to renew the token for the errors “Token has been expired or revoked.”
diff --git a/pygsheets/authorization.py b/pygsheets/authorization.py index 3da1580..7c921c3 100644 --- a/pygsheets/authorization.py +++ b/pygsheets/authorization.py @@ -5,6 +5,7 @@ import warnings from google.oauth2 import service_account from google.oauth2.credentials import Credentials +from google.auth.exception...
nltk__nltk-2564
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "nltk/lm/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nltk/util.py:ngr...
nltk/nltk
0a88301f9362d1c0bf546705826b52ab2dd5add5
nltk.everygrams() does not work with non-reusable iterables and iterables without lengths. `nltk.util.everygrams()` ([code](https://github.com/nltk/nltk/blob/develop/nltk/util.py#L577-L600), [docs](https://nltk.readthedocs.io/en/latest/api/nltk.html?highlight=everygrams#nltk.util.everygrams)) claims to support both seq...
diff --git a/AUTHORS.md b/AUTHORS.md index 6a233f99b..dcf297261 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -263,6 +263,8 @@ - Bonifacio de Oliveira <https://github.com/Bonifacio2> - Vassilis Palassopoulos <https://github.com/palasso> - Ram Rachum <https://github.com/cool-RR> +- Denali Molitor <https://github.com/dm...
nltk__nltk-2713
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "nltk/metrics/aline.py" } ]
nltk/nltk
af21c5836afccd1dc0fd24a8f86ebea9a96050d6
Wrong default value in aline.py I believe the value of `C_skip` in https://github.com/nltk/nltk/blob/develop/nltk/metrics/aline.py#L51 should be negative. In particular, the value in the original paper seems to be `-10`, not `10` (see https://webdocs.cs.ualberta.ca/~kondrak/papers/thesis.pdf, p. 54).
diff --git a/nltk/metrics/aline.py b/nltk/metrics/aline.py index 5e0b4f3b4..4be2b92de 100644 --- a/nltk/metrics/aline.py +++ b/nltk/metrics/aline.py @@ -47,7 +47,7 @@ except ImportError: inf = float("inf") # Default values for maximum similarity scores (Kondrak 2002: 54) -C_skip = 10 # Indels +C_skip = -10 # Inde...
nltk__nltk-2768
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nltk/translate/ribes_score.py:kendall_tau" ], "edited_modules": [ "nltk/translate/ribes_score.py:kendall_tau" ] }, "file": "nltk/translate/ribes_score.py" } ]
nltk/nltk
6c07b5e99389b47e13c5e70fa07b37ef29ea8f73
corpus ribes scorer throws division by zero error Division by zero error is constantly thrown for ````corpus_ribes()```` function. To replicate: Take the example from the docs (https://www.nltk.org/api/nltk.translate.html) and shorten some of the input sentences. In this case I only shortened hyp2 and hyp2a. `...
diff --git a/nltk/translate/ribes_score.py b/nltk/translate/ribes_score.py index 51981a2b7..ae2b9ca93 100644 --- a/nltk/translate/ribes_score.py +++ b/nltk/translate/ribes_score.py @@ -36,7 +36,7 @@ def sentence_ribes(references, hypothesis, alpha=0.25, beta=0.10): to http://www.kecl.ntt.co.jp/icl/lirg/ribes/ for ...
nltk__nltk-2769
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nltk/tokenize/punkt.py:PunktSentenceTokenizer.debug_decisions", "nltk/tokenize/punkt.py:format_debug_decision" ], "edited_modules": [ "nltk/tokenize/punkt.py:PunktSentenceTok...
nltk/nltk
1244ab9fc4b130ae20127267d49eea506e30a9ae
PunktSentenceTokenizer doesn't work with custom end sentence character Example: ``` import nltk from nltk.tokenize.punkt import PunktLanguageVars class ExtLangVars(PunktLanguageVars): sent_end_chars = ('.', '?', '!', '^') punkt_tk = nltk.data.load('tokenizers/punkt/english.pickle') punkt_tk._lang_vars ...
diff --git a/nltk/tokenize/punkt.py b/nltk/tokenize/punkt.py index 512f6630e..9f04be468 100644 --- a/nltk/tokenize/punkt.py +++ b/nltk/tokenize/punkt.py @@ -1285,27 +1285,27 @@ class PunktSentenceTokenizer(PunktBaseClass, TokenizerI): decision_text = match.group() + match.group("after_tok") to...
nltk__nltk-2801
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nltk/util.py:usage" ], "edited_modules": [ "nltk/util.py:usage" ] }, "file": "nltk/util.py" } ]
nltk/nltk
ab1027691fcd0e6e9d206156a4fd01eb0c5db626
More Python3.9 deprecations Running pytest with the new Python 3.9.4 shows a number of deprecation warnings about future failures to anticipate: ============================= test session starts ============================== platform linux -- Python 3.9.4, pytest-6.2.0, py-1.10.0, pluggy-0.13.1 [....] ========...
diff --git a/nltk/util.py b/nltk/util.py index c25a8fb33..383342a4e 100644 --- a/nltk/util.py +++ b/nltk/util.py @@ -37,32 +37,38 @@ from nltk.internals import raise_unorderable_types, slice_bounds ###################################################################### -def usage(obj, selfname="self"): +def usage(o...
nltk__nltk-2888
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nltk/grammar.py:pcfg_demo" ], "edited_modules": [ "nltk/grammar.py:pcfg_demo" ] }, "file": "nltk/grammar.py" }, { "changes": { "added_entities": null, ...
nltk/nltk
68e4e589eb62750993aabef5554548973fe1e280
CFG.fromstring cannot handle epsilons There are times when one wants to include an empty terminal, such as: ``` S -> A B A -> 'a' B -> 'b' | '' ``` However, when trying to read it via `CFG.fromstring`, I get ``` ERROR:root:An unexpected error occurred while tokenizing input ``` Interestingly, `Tree` has n...
diff --git a/nltk/grammar.py b/nltk/grammar.py index 49c38300a..630d5c6f7 100644 --- a/nltk/grammar.py +++ b/nltk/grammar.py @@ -5,6 +5,7 @@ # Edward Loper <edloper@gmail.com> # Jason Narad <jason.narad@gmail.com> # Peter Ljunglöf <peter.ljunglof@heatherleaf.se> +# Tom Aarsen <> # UR...
nltk__nltk-2910
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nltk/downloader.py:Downloader._download_package" ], "edited_modules": [ "nltk/downloader.py:Downloader" ] }, "file": "nltk/downloader.py" } ]
nltk/nltk
abbe86b8af660b4fdf477505b89d92dd5aa46519
Downloader fails when download_dir is a nested folder that doesn't exist ### Problem When the download folder doesn't exist, it is created by the downloader. But when that folder is nested, the creation fails. ### Code example ```python nltk.download("punkt", force=True, download_dir="some/nested/folder") ``` ...
diff --git a/AUTHORS.md b/AUTHORS.md index 04592e11c..8c7345577 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -286,6 +286,7 @@ - Ahmet Yildirim <https://github.com/RnDevelover> - Yuta Nakamura <https://github.com/yutanakamura-tky> - Adam Hawley <https://github.com/adamjhawley> +- Panagiotis Simakis <https://github.com...
nltk__nltk-3042
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nltk/tokenize/sonority_sequencing.py:SyllableTokenizer.assign_values", "nltk/tokenize/sonority_sequencing.py:SyllableTokenizer.validate_syllables" ], "edited_modules": [ "nlt...
nltk/nltk
13cea29c3f99db93296b10c6333368f88be4135d
Sonority sequencing syllable tokenizer performs significantly slower on numbers than on words The sonority sequencing syllable tokenizer (`nltk.SyllableTokenizer`) performs significantly slower on numbers than on words. It seems that the time complexity for words is O(n), which is okay, but O(n^2) for numbers, which is...
diff --git a/nltk/tokenize/sonority_sequencing.py b/nltk/tokenize/sonority_sequencing.py index 940370d58..1dc3538bc 100644 --- a/nltk/tokenize/sonority_sequencing.py +++ b/nltk/tokenize/sonority_sequencing.py @@ -98,14 +98,15 @@ class SyllableTokenizer(TokenizerI): try: syllables_values.ap...
nltk__nltk-3156
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "nltk/tokenize/simple.py:CharTokenizer" ] }, "file": "nltk/tokenize/simple.py" } ]
nltk/nltk
fc53edbf6f0763971afca5855386a2a382da37ac
Class 'CharTokenizer' is missing attribute '_string' I think the class `CharTokenizer` is missing the attribute `_string=""` https://github.com/nltk/nltk/blob/fc53edbf6f0763971afca5855386a2a382da37ac/nltk/tokenize/simple.py#L68-L77 Without this attribute, when trying to use the class, I get the following error: ...
diff --git a/nltk/tokenize/simple.py b/nltk/tokenize/simple.py index 71a02d309..54b2bf844 100644 --- a/nltk/tokenize/simple.py +++ b/nltk/tokenize/simple.py @@ -70,6 +70,8 @@ class CharTokenizer(StringTokenizer): is ever required directly, use ``for char in string``. """ + _string = None + def token...
nltk__nltk-3205
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nltk/translate/bleu_score.py:corpus_bleu" ], "edited_modules": [ "nltk/translate/bleu_score.py:corpus_bleu" ] }, "file": "nltk/translate/bleu_score.py" } ]
nltk/nltk
e0b05bb36f18b3d6b2a44e4a1831b05d586791f3
`corpus_bleu` function does not catch all the expections when calling `weights[0][0]` In your codes https://github.com/nltk/nltk/blob/e2d368e00ef806121aaa39f6e5f90d9f8243631b/nltk/translate/bleu_score.py#L201 I pass in `weights = array([0.25, 0.25, 0.25, 0.25])` and find this error: ``` File "/home/cyzhao/minico...
diff --git a/nltk/translate/bleu_score.py b/nltk/translate/bleu_score.py index f6c232e1c..da445bc3e 100644 --- a/nltk/translate/bleu_score.py +++ b/nltk/translate/bleu_score.py @@ -198,7 +198,7 @@ def corpus_bleu( try: weights[0][0] - except TypeError: + except: weights = [weights] m...
nokia__moler-191
[ { "changes": { "added_entities": [ "moler/cmd/unix/scp.py:Scp._handle_failed_host_key_verification" ], "added_modules": null, "edited_entities": [ "moler/cmd/unix/scp.py:Scp.__init__", "moler/cmd/unix/scp.py:Scp._parse_success", "moler/cmd/unix/scp.py:Scp....
nokia/moler
c0ca25a34f537640c26534e2c05e1955f241fcf5
Update failure patters in scp command Not a directory
diff --git a/moler/cmd/unix/scp.py b/moler/cmd/unix/scp.py index 8033ef50..4db8aa82 100644 --- a/moler/cmd/unix/scp.py +++ b/moler/cmd/unix/scp.py @@ -2,6 +2,7 @@ """ SCP command module. """ + from moler.cmd.unix.genericunix import GenericUnixCommand from moler.exceptions import CommandFailure from moler.exceptio...
nokia__moler-251
[ { "changes": { "added_entities": [ "moler/cmd/__init__.py:RegexHelper.groups" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "moler/cmd/__init__.py:RegexHelper" ] }, "file": "moler/cmd/__init__.py" }, { "changes": { ...
nokia/moler
728987dbf760e0316b9b4bc72d1431b364c01df6
wrong units recalculation in iperf iperf `_normalise_units()` assumes that `MBits/sec` means `1024*1024` bits In reality Mega means here `1000*1000`
diff --git a/moler/cmd/__init__.py b/moler/cmd/__init__.py index 13cbf39d..7784a9a0 100644 --- a/moler/cmd/__init__.py +++ b/moler/cmd/__init__.py @@ -37,5 +37,8 @@ class RegexHelper(object): def group(self, number): return self._match.group(number) + def groups(self): + return self._match.gro...
nolanbconaway__underground-30
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/underground/cli/stops.py:main" ], "edited_modules": [ "src/underground/cli/stops.py:main" ] }, "file": "src/underground/cli/stops.py" }, { "changes": { ...
nolanbconaway/underground
a2ddec274d2fd77db76f78a8dead315259ca9f1c
Cancelled trips listed Love the library, I use it to display some train times on a [small LED board](https://github.com/WardBrian/mta-board) in my apartment. I recently noticed it was listing some train times which were not actually present when I walked down to the Station. Apple Maps has those same trains listed,...
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e15ec3f..54a9735 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -4,11 +4,15 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + runs-on: ${{matrix.os}} strategy: matrix: - ...
nolar__kopf-618
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "examples/07-subhandlers/example.py:create_fn" ], "edited_modules": [ "examples/07-subhandlers/example.py:create_fn" ] }, "file": "examples/07-subhandlers/example.py" ...
nolar/kopf
1e517d07c9cd6b590ed9dfbea8f1a670b298c144
Add more readable @kopf.subhandler instead of @kopf.on.this/kopf.register ## Background A long time ago, when Kopf was only prototyped, sub-handlers were implemented via `@kopf.on.this()` decorator. The logic was so that if we all other handlers as `@kopf.on.{something}`, sub-handler should be also declared to be tr...
diff --git a/docs/handlers.rst b/docs/handlers.rst index 5703ccb..4e7dcaa 100644 --- a/docs/handlers.rst +++ b/docs/handlers.rst @@ -235,24 +235,25 @@ partials (`functools.partial`), or the inner functions in the closures: - item1 - item2 -Sub-handlers can be implemented either imperatively:: +Sub-h...
nolar__kopf-650
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "kopf/reactor/registries.py:match" ], "edited_modules": [ "kopf/reactor/registries.py:match" ] }, "file": "kopf/reactor/registries.py" } ]
nolar/kopf
81bdef3b6933b911ec9d2eb791c377ba95b64581
Error when starting up kopf ## Long story short Kopf starts up with error when using a handler with a callback & a core resource handler. ## Description Not sure if this is a bug or just a poorly written callback but it doesn't seem to make sense why the callback is being called when handling core resources. ...
diff --git a/kopf/reactor/registries.py b/kopf/reactor/registries.py index 87dcff3..d42f4a7 100644 --- a/kopf/reactor/registries.py +++ b/kopf/reactor/registries.py @@ -340,13 +340,13 @@ def prematch( ) -> bool: # Kwargs are lazily evaluated on the first _actual_ use, and shared for all filters since then. k...
nolar__kopf-726
[ { "changes": { "added_entities": null, "added_modules": [ "kopf/toolkits/hierarchies.py:_UNSET" ], "edited_entities": [ "kopf/toolkits/hierarchies.py:label", "kopf/toolkits/hierarchies.py:harmonize_naming", "kopf/toolkits/hierarchies.py:adjust_namespace" ...
nolar/kopf
e90ceaa9faeb000ea1ede52067b4389dd5609c92
Regression in kopf.adopt() in 1.30. ## Long story short The ``kopf.adopt()`` function now only appears to work where parent and child resources are both namespaced. This is not the only combination that is possible, and so code that previous relied on other possibilities now fails. ## Description For owner ref...
diff --git a/kopf/toolkits/hierarchies.py b/kopf/toolkits/hierarchies.py index 578b8ec..2c54a73 100644 --- a/kopf/toolkits/hierarchies.py +++ b/kopf/toolkits/hierarchies.py @@ -2,6 +2,7 @@ All the functions to properly build the object hierarchies. """ import collections.abc +import enum import warnings from typin...
nolar__kopf-731
[ { "changes": { "added_entities": [ "kopf/storage/states.py:HandlerState.as_active" ], "added_modules": null, "edited_entities": [ "kopf/storage/states.py:HandlerState.from_scratch", "kopf/storage/states.py:HandlerState.from_storage", "kopf/storage/states.p...
nolar/kopf
d29ac2bcb8481efd400910f36510f43dc1255851
Endless touch-dummy Annotation Patching On Pod Causes High API Load ## Long story short While looking into #685 I noticed weird patching behavior from kopf regarding the `touch-dummy` annotation. As soon as a pod reaches the completed state kopf constantly patches the `touch-dummy` annotation on the pod creating sig...
diff --git a/kopf/storage/states.py b/kopf/storage/states.py index f654c00..aa21170 100644 --- a/kopf/storage/states.py +++ b/kopf/storage/states.py @@ -49,7 +49,13 @@ class HandlerState: Note the difference: `HandlerOutcome` is for in-memory results of handlers, which is then additionally converted before ...
nolar__kopf-741
[ { "changes": { "added_entities": [ "kopf/engines/peering.py:guess_selectors" ], "added_modules": [ "kopf/engines/peering.py:guess_selectors" ], "edited_entities": [ "kopf/engines/peering.py:guess_selector", "kopf/engines/peering.py:touch_command" ...
nolar/kopf
7c86ca29ea8de4cdd42ff16872a17c98cbfa684a
Group_filter in scan_resources is always to None ## Long story short In my operator I'm scaling down all deployments in the cluster. By doing that it's scaling down also metrics-server. If the operator resume it tries to contact the /apis/metrics.k8s.io/v1beta1 endpoint at the startup and fail because metrics-server...
diff --git a/docs/resources.rst b/docs/resources.rst index 283cc34..5cf94fe 100644 --- a/docs/resources.rst +++ b/docs/resources.rst @@ -194,3 +194,15 @@ if there are some accidental overlaps in the specifications. Keep the short forms only for prototyping and experimentation mode, and for ad-hoc operators wi...
nolar__kopf-770
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "kopf/_cogs/clients/auth.py:reauthenticated_request", "kopf/_cogs/clients/auth.py:reauthenticated_stream" ], "edited_modules": [ "kopf/_cogs/clients/auth.py:reauthenticated_re...
nolar/kopf
c2216191e11c8476e418e3d578b0cc7bb035b82d
Authentication during startup ## Problem I'm trying to create/update CRDs using the `@kopf.on.startup()` event. However, it seems to me that the authentication even has not yet fired, which means that there is no valid connection to the Kubernetes api. I can get around this by running `config.load_kube_config()` an...
diff --git a/docs/authentication.rst b/docs/authentication.rst index d7ae95a..e17889d 100644 --- a/docs/authentication.rst +++ b/docs/authentication.rst @@ -14,6 +14,12 @@ authentication methods and piggybacks the existing Kubernetes clients. Custom authentication ===================== +In most setups, the normal a...
noppanut15__depthviz-55
[ { "changes": { "added_entities": [ "src/depthviz/core.py:DepthReportVideoCreator.__bg_color_validate" ], "added_modules": null, "edited_entities": [ "src/depthviz/core.py:DepthReportVideoCreator.__init__" ], "edited_modules": [ "src/depthviz/core.py:De...
noppanut15/depthviz
2ff0116c167d4870d86781d2291770595100f7bc
Feature Request: Background color options **Is your feature request related to a problem? Please describe.** A user wants to adjust the background color. A user reported that some VDO editing software (i.e., Adobe PR) cannot pick up a black color for chroma keying. **Describe the solution you'd like** Add an option to...
diff --git a/README.md b/README.md index 6bea6ab..7724b27 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,11 @@ depthviz -i <input_file> -s <source> -o <output_video.mp4> * `-o`, `--output <output_video.mp4>`: Path or filename for the generated video with the depth overlay. The output file format must be `.mp4`. ...
noppanut15__depthviz-56
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/depthviz/core.py:DepthReportVideoCreator.__init__" ], "edited_modules": [ "src/depthviz/core.py:DepthReportVideoCreator" ] }, "file": "src/depthviz/core.py" }, ...
noppanut15/depthviz
f24b3f7adea7a66417c43b7b38c5abf581a8bc93
Feature Request: Stroke width options **Is your feature request related to a problem? Please describe.** A user wants to adjust the width of the stroke. (text border) **Describe the solution you'd like** Add an option to specify the width of text stroke. (e.g., `--stroke-width <int>`) **Describe alternatives you've c...
diff --git a/README.md b/README.md index 7724b27..ab93fad 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,10 @@ depthviz -i <input_file> -s <source> -o <output_video.mp4> **Optional Arguments:** * `-d`, `--decimal-places <0-2>`: Number of decimal places to display in the depth overlay. Valid values are `0`, `1`, ...
noppanut15__depthviz-59
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/depthviz/core.py:DepthReportVideoCreator.__init__", "src/depthviz/core.py:DepthReportVideoCreator.save" ], "edited_modules": [ "src/depthviz/core.py:DepthReportVideoCreat...
noppanut15/depthviz
7548a55a1123df7cb7a966e7a8d0b73eaf023336
Increase video resolution A user reported that the overlay text breaks a little bit. We need to increase the video size from 640x360 maybe to 960x540 (with a specific bitrate, e.g., `5000k`) as we need to trade off between quality and processing time. ![Image](https://github.com/user-attachments/assets/3bdd0ffb-7a3...
diff --git a/src/depthviz/core.py b/src/depthviz/core.py index 90d62e5..6bc7f8e 100644 --- a/src/depthviz/core.py +++ b/src/depthviz/core.py @@ -17,6 +17,7 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__)) DEFAULT_FONT = os.path.abspath( os.path.join(BASE_DIR, "assets/fonts/Open_Sans/static/OpenSans-Bold.t...
nornir-automation__nornir-623
[ { "changes": { "added_entities": [ "nornir/core/inventory.py:InventoryElement.extended_groups", "nornir/core/inventory.py:Host.extended_data" ], "added_modules": null, "edited_entities": [ "nornir/core/inventory.py:BaseAttributes.dict", "nornir/core/invent...
nornir-automation/nornir
492f5e612e42b90560d1e8f793fa1d5e299987be
Inheritance Issue There appears to be an inheritance issue as found by Netigo @ https://nornir.discourse.group/t/inheritance-problem/645 If you recreate the inventory files at https://github.com/nornir-automation/nornir/blob/develop/docs/tutorial/inventory.ipynb Then try ``` leaf01_bma = nr.inventory.hosts["l...
diff --git a/docs/tutorial/inventory.ipynb b/docs/tutorial/inventory.ipynb index b1ec6a8..2721aad 100644 --- a/docs/tutorial/inventory.ipynb +++ b/docs/tutorial/inventory.ipynb @@ -877,7 +877,7 @@ { "data": { "text/plain": [ - "'acme.local'" + "'global.local'" ] }, "exec...
nosarthur__gita-100
[ { "changes": { "added_entities": [ "gita/__main__.py:f_context" ], "added_modules": [ "gita/__main__.py:f_context" ], "edited_entities": [ "gita/__main__.py:f_ll", "gita/__main__.py:f_git_cmd", "gita/__main__.py:main" ], "edited_m...
nosarthur/gita
2fc26e4038b39aed4a7aa313c2af46f7d770ee1f
Add context sub-command This is inspired by the [taskwarrior](https://taskwarrior.org/docs/) By using ``` gita context project1 ``` only repos in `project1` will be shown from this point on. For example `gita ll` only shows repos in `project1`. Maybe `project1` can be a `group` for now. To remove the cont...
diff --git a/gita/__main__.py b/gita/__main__.py index 1e47e31..03f3146 100644 --- a/gita/__main__.py +++ b/gita/__main__.py @@ -21,7 +21,7 @@ import pkg_resources from itertools import chain from pathlib import Path -from . import utils, info +from . import utils, info, common def f_add(args: argparse.Namespa...
nosarthur__gita-105
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gita/__main__.py:f_group", "gita/__main__.py:main" ], "edited_modules": [ "gita/__main__.py:f_group", "gita/__main__.py:main" ] }, "file": "gita/__main_...
nosarthur/gita
f6a1d98f81f23ad4789ad1af2d22f3cf829964ba
Add some additional options for group subcommand Few different ideas, all related to groups: 1. For `group add`, would it be possible to add a `--to <group>` flag, so it is easier to script the tool. Currently it requires the user to stop and enter the group name 1. Would a `group rename` be hard? 1. Would an `...
diff --git a/README.md b/README.md index 997b5a6..8644f43 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ The bookkeeping sub-commands are - `gita group add <repo-name(s)> -n <group-name>`: add repo(s) to a new group or existing group - `gita group [ll]`: display existing groups with repos - `gi...
nosarthur__gita-108
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gita/__main__.py:f_ll", "gita/__main__.py:main" ], "edited_modules": [ "gita/__main__.py:f_ll", "gita/__main__.py:main" ] }, "file": "gita/__main__.py" ...
nosarthur/gita
cd179b31458ccad98fdb62c13ba394a4fc7a2cf3
A no colour option for when running through either a script or cron. I am using gita to backup some repositories so need to run `gita ll` (just to see what will change) then do `gita pull`. Because this runs through cron, I get some ugly control characters instead of colours. Would it be possible to add a `--no-colours...
diff --git a/gita/__main__.py b/gita/__main__.py index e00f20d..13a048e 100644 --- a/gita/__main__.py +++ b/gita/__main__.py @@ -57,7 +57,7 @@ def f_ll(args: argparse.Namespace): if args.group: # only display repos in this group group_repos = utils.get_groups()[args.group] repos = {k: repos[k] f...
nosarthur__gita-122
[ { "changes": { "added_entities": [ "gita/__main__.py:f_shell" ], "added_modules": [ "gita/__main__.py:f_shell" ], "edited_entities": [ "gita/__main__.py:main" ], "edited_modules": [ "gita/__main__.py:main" ] }, "file": "gita...
nosarthur/gita
b88fe6e0a2ae6670d4264837bd61704341646a75
Allow execution of nested `git` commands Hi, thanks again for this excellent tool. The motivation comes from trying to get `gita` to checkout the latest tag for an entire group. The command is `git describe --abbrev=0 --tags` to get the latest tag, and `git checkout <tag>` to checkout the tag. This can be combined in b...
diff --git a/README.md b/README.md index f76c759..1c9b321 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ To see the pre-defined sub-commands, run `gita -h` or take a look at [cmds.yml](https://github.com/nosarthur/gita/blob/master/gita/cmds.yml). To add your own sub-commands, see the [customization section]...
nosarthur__gita-170
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gita/__main__.py:f_add", "gita/__main__.py:main" ], "edited_modules": [ "gita/__main__.py:f_add", "gita/__main__.py:main" ] }, "file": "gita/__main__.py...
nosarthur/gita
e1b16e0df4708e8ebe6a91c8009ab3e2bc8ccbc9
Allow automatic group creation on recursive add Use case: I've got tons of git repos I need to manage, but they are already nicely grouped into folders (e.g. `Work/Client-5/Project-4/Service-1/<code>`). Currently I'm using `gita add -r` to add them all, then grouping using bash (e.g. `for i in $(gita ls); do echo "targ...
diff --git a/README.md b/README.md index d260fac..4b4c516 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ The additional status symbols denote The bookkeeping sub-commands are - `gita add <repo-path(s)>`: add repo(s) to `gita` +- `gita add -a <repo-parent-path(s)>`: add repo(s) in <repo-parent-path(s)> rec...
nosarthur__gita-196
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gita/__main__.py:f_git_cmd", "gita/__main__.py:f_shell", "gita/__main__.py:f_super" ], "edited_modules": [ "gita/__main__.py:f_git_cmd", "gita/__main__.py:f_s...
nosarthur/gita
bdb046acefea0e9d32defb132deb9669532608be
`gita shell` without argument fails with UnboundLocalError: local variable 'i' referenced before assignment By now I have figured `gita shell` needs to be followed by arguments, but the error message is not very user-friendly. Typing `gita shell` by itself yields the following output: ``` gita shell Traceback (mos...
diff --git a/gita/__main__.py b/gita/__main__.py index 73e12fb..d489f55 100644 --- a/gita/__main__.py +++ b/gita/__main__.py @@ -303,20 +303,11 @@ def f_git_cmd(args: argparse.Namespace): Delegate git command/alias defined in `args.cmd`. Asynchronous execution is disabled for commands in the `args.async_black...
nosarthur__gita-241
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "gita/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gita/common.py:get_...
nosarthur/gita
619926e68c769133bdc5b5bae7c0aa65782a4c50
problem displaying repo status properly Hello, I have an odd problem displaying repo status properly. I run "gita ll" several times after each other. each run status is reported randomly for different repositories, that is, the status color changes from green to white, to back again. This of course makes the ...
diff --git a/gita/__init__.py b/gita/__init__.py index eeb79a3..33c0f41 100644 --- a/gita/__init__.py +++ b/gita/__init__.py @@ -1,3 +1,3 @@ import pkg_resources -__version__ = pkg_resources.get_distribution('gita').version +__version__ = pkg_resources.get_distribution("gita").version diff --git a/gita/common.py b/g...
nosarthur__gita-256
[ { "changes": { "added_entities": [ "gita/info.py:get_symbols" ], "added_modules": [ "gita/info.py:get_symbols" ], "edited_entities": [ "gita/info.py:get_repo_status", "gita/info.py:get_spaceship_status", "gita/info.py:_get_repo_status" ...
nosarthur/gita
28ffaf6095c97c31594513d9ae467e879f00a0a7
Customising edit status symbols It would be great to be able to configure the edit status symbols `*_-` to the characters and colors that the user prefers.
diff --git a/README.md b/README.md index 1ba5d33..a1f7df3 100644 --- a/README.md +++ b/README.md @@ -337,16 +337,17 @@ Here `branch` includes both branch name and status. Another choice is to enable `spaceship_status`, which mimics the symbols used in [spaceship-prompt](https://spaceship-prompt.sh/sections/git/#Git...
nosarthur__gita-257
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gita/info.py:get_info_funcs", "gita/info.py:get_symbols", "gita/info.py:get_repo_status", "gita/info.py:get_spaceship_status", "gita/info.py:_get_repo_status" ], ...
nosarthur/gita
091cd91c80e59f684b1c1aa9c05043d52cc60238
Revised symbols May I kindly suggest adopting the following symbols: symbol | meaning --- | --- `?` | Untracked changes `+` | Added changes `!` | Unstaged files `»` | Renamed files `✘` | Deleted files `$` | Stashed changes `=` | Unmerged changes `⇡` | Unpushed changes (ahead of remote branch) `⇣` | Unpulle...
diff --git a/README.md b/README.md index a1f7df3..79c6009 100644 --- a/README.md +++ b/README.md @@ -334,19 +334,16 @@ branch,commit_msg,commit_time ``` Here `branch` includes both branch name and status. - -Another choice is to enable `spaceship_status`, which mimics -the symbols used in [spaceship-prompt](https:/...
nosarthur__gita-96
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "gita/__main__.py:f_group", "gita/__main__.py:f_ungroup", "gita/__main__.py:main" ], "edited_modules": [ "gita/__main__.py:f_group", "gita/__main__.py:f_ungrou...
nosarthur/gita
bc33ff0907fed2a613f04c45dbedf035fd2bfef1
Add sub-commands for `gita group` IMO the command syntax is confusing - you have to pass a list of groups before you get any indication that a name will be requested. I spent 4-5min reading the help text thinking I was missing something, because there was no indication a name would be requested. At a minimum, updat...
diff --git a/gita/__main__.py b/gita/__main__.py index fa88600..1e47e31 100644 --- a/gita/__main__.py +++ b/gita/__main__.py @@ -67,8 +67,19 @@ def f_ls(args: argparse.Namespace): def f_group(args: argparse.Namespace): groups = utils.get_groups() - if args.to_group: - gname = input('group name? ') + ...
nosarthur__gita-99
[ { "changes": { "added_entities": [ "gita/__main__.py:f_clone", "gita/__main__.py:f_freeze" ], "added_modules": [ "gita/__main__.py:f_clone", "gita/__main__.py:f_freeze" ], "edited_entities": [ "gita/__main__.py:main" ], "edited_mo...
nosarthur/gita
f0bc6e58b6b5e169041f2a5cc1eb7dff51a2263f
Command for mass-clone Hi, thank you so much for gita, it's a very nice tool. The one thing I'm missing is a "clone" command. I'd like to have a list of URLs in the config file of gita, together with the location it should clone them on the filesystem. This would allow me to do a 'gita clone' which then would clo...
diff --git a/gita/__main__.py b/gita/__main__.py index 8d08742..9e4871c 100644 --- a/gita/__main__.py +++ b/gita/__main__.py @@ -72,6 +72,23 @@ def f_info(args: argparse.Namespace): yaml.dump(to_display, f, default_flow_style=None) +def f_clone(args: argparse.Namespace): + path = Path.cwd() + e...
nose-devs__nose2-232
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/plugins/loader/discovery.py:Discoverer._find_tests_in_file" ], "edited_modules": [ "nose2/plugins/loader/discovery.py:Discoverer" ] }, "file": "nose2/plugins/load...
nose-devs/nose2
dea5854cb40f1327989933004a8835e3766b33fd
nose2 cant import tests from package I have set up a virtual env and have a test structure that looks something like this: <path>/test_package/__init__.py test_foo.py:test_bar test_bar is a really simple test, it just passes. When I stand in "<path>/test_package" and run "nose2" I...
diff --git a/nose2/plugins/loader/discovery.py b/nose2/plugins/loader/discovery.py index 1ec69d6..73aa0fa 100644 --- a/nose2/plugins/loader/discovery.py +++ b/nose2/plugins/loader/discovery.py @@ -194,8 +194,8 @@ class Discoverer(object): return if module_name is None: - module_name =...
nose-devs__nose2-234
[ { "changes": { "added_entities": [ "nose2/collector.py:Test._get_objects" ], "added_modules": null, "edited_entities": [ "nose2/collector.py:Test._collector" ], "edited_modules": [ "nose2/collector.py:Test" ] }, "file": "nose2/collector.p...
nose-devs/nose2
5df9a70fe7089b49f42e5ac38a88847b0ba48473
Layers is incompatible with setuptools test Layers crashes when tests are run from setuptools via nose2.collector.collector ``` Traceback (most recent call last): File "setup.py", line 8, in <module> test_suite="nose2.collector.collector", File "C:\Python34\lib\distutils\core.py", line 149, in setup ...
diff --git a/nose2/collector.py b/nose2/collector.py index 70fcd87..63a1854 100644 --- a/nose2/collector.py +++ b/nose2/collector.py @@ -13,11 +13,16 @@ def collector(): ok = self._collector(result_) sys.exit(not ok) - def _collector(self, result_): + def _get_objects(self): ...
nose-devs__nose2-245
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/loader.py:PluggableTestLoader._makeFailedTest" ], "edited_modules": [ "nose2/loader.py:PluggableTestLoader" ] }, "file": "nose2/loader.py" } ]
nose-devs/nose2
bf9945309d5118ad4723619452c486593964d1b8
Loader errors throw away tracebacks and exception detail For instance if a generator test throws an AttributeError, the details of the attribute error are lost and the user only sees "AttributeError" -- not very helpful.
diff --git a/nose2/loader.py b/nose2/loader.py index 2778280..394899f 100644 --- a/nose2/loader.py +++ b/nose2/loader.py @@ -7,6 +7,8 @@ import logging import traceback +import six + from nose2 import events from nose2.compat import unittest @@ -114,7 +116,11 @@ class PluggableTestLoader(object): def _ma...
nose-devs__nose2-268
[ { "changes": { "added_entities": [ "nose2/suite.py:LayerSuite.handle_previous_test_teardown" ], "added_modules": null, "edited_entities": [ "nose2/suite.py:LayerSuite.run" ], "edited_modules": [ "nose2/suite.py:LayerSuite" ] }, "file": "n...
nose-devs/nose2
bbf5897eb1aa224100e86ba594042e4399fd2f5f
such and normal test cases: mixed up call order of it.has_setup and setUpClass As it is a little bit complicated to explain, I have created a working example as a gist: https://gist.github.com/jrast/109f70f9b4c52bab4252 I have several "normal" UnitTestCases and a few such tests. The problem is that the setUpClass ca...
diff --git a/nose2/suite.py b/nose2/suite.py index b52e0cb..f107489 100644 --- a/nose2/suite.py +++ b/nose2/suite.py @@ -22,6 +22,7 @@ class LayerSuite(unittest.BaseTestSuite): self.wasSetup = False def run(self, result): + self.handle_previous_test_teardown(result) if not self._safeMeth...
nose-devs__nose2-269
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/plugins/junitxml.py:JUnitXmlReporter.__init__", "nose2/plugins/junitxml.py:JUnitXmlReporter.testOutcome" ], "edited_modules": [ "nose2/plugins/junitxml.py:JUnitXmlRepor...
nose-devs/nose2
bbf5897eb1aa224100e86ba594042e4399fd2f5f
junit-xml does not output generated tests parameters I use generated tests with meaningfull parameters and I wish I could see them exported in junit-xml report. The patch looks pretty simple (junitxml.py): ```python def testOutcome(self, event): """Add test outcome to xml tree""" test =...
diff --git a/nose2/plugins/junitxml.py b/nose2/plugins/junitxml.py index c90450e..e61a08b 100644 --- a/nose2/plugins/junitxml.py +++ b/nose2/plugins/junitxml.py @@ -4,15 +4,71 @@ Output test reports in junit-xml format. This plugin implements :func:`startTest`, :func:`testOutcome` and :func:`stopTestRun` to compile a...
nose-devs__nose2-278
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/plugins/junitxml.py:JUnitXmlReporter.testOutcome" ], "edited_modules": [ "nose2/plugins/junitxml.py:JUnitXmlReporter" ] }, "file": "nose2/plugins/junitxml.py" }...
nose-devs/nose2
f4ab61b95a67aecf61abb161e4cf138bf8da6ce8
junit-xml always add logs in system_err This is really strange because logs are typically not outputted in stderr. In nosetests we did not have logs in case of successful test but now they are always displayed as system_err. May it be possible to output them in system_out instead ? In the testOutcome handler j...
diff --git a/nose2/plugins/junitxml.py b/nose2/plugins/junitxml.py index e61a08b..05cfee6 100644 --- a/nose2/plugins/junitxml.py +++ b/nose2/plugins/junitxml.py @@ -164,11 +164,10 @@ class JUnitXmlReporter(events.Plugin): skipped.set('message', 'expected test failure') skipped.text = msg - ...
nose-devs__nose2-369
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/plugins/layers.py:LayerReporter.describeTest" ], "edited_modules": [ "nose2/plugins/layers.py:LayerReporter" ] }, "file": "nose2/plugins/layers.py" }, { "...
nose-devs/nose2
862b130652b9118eb8d5681923c04edb000245d3
MP plugin does't call startSubprocess in subprocess My very quick diagnosis is: In [mp.py](https://github.com/nose-devs/nose2/blob/master/nose2/plugins/mp.py): - The new hook methods are registered on [line 27](https://github.com/nose-devs/nose2/blob/master/nose2/plugins/mp.py#L27) - However that is only called in the...
diff --git a/nose2/plugins/layers.py b/nose2/plugins/layers.py index 43025ca..eda14dc 100644 --- a/nose2/plugins/layers.py +++ b/nose2/plugins/layers.py @@ -235,6 +235,9 @@ class LayerReporter(events.Plugin): if event.errorList and hasattr(event.test, 'layer'): # walk back layers to build full des...
nose-devs__nose2-370
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/plugins/layers.py:LayerReporter.describeTest" ], "edited_modules": [ "nose2/plugins/layers.py:LayerReporter" ] }, "file": "nose2/plugins/layers.py" } ]
nose-devs/nose2
862b130652b9118eb8d5681923c04edb000245d3
Layer-reporter does not indent docstring Given a test def test_mymethond(self): """what this does hi there """ nose2 will output 'what this does' when the test is run, but the text will not be indented to reflect the layers used. Result of test run: TopLayer &nbsp;&nbsp;SecondLayer &nbsp;&nb...
diff --git a/nose2/plugins/layers.py b/nose2/plugins/layers.py index 43025ca..eda14dc 100644 --- a/nose2/plugins/layers.py +++ b/nose2/plugins/layers.py @@ -235,6 +235,9 @@ class LayerReporter(events.Plugin): if event.errorList and hasattr(event.test, 'layer'): # walk back layers to build full des...
nose-devs__nose2-439
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/plugins/prof.py:Profiler.__init__", "nose2/plugins/prof.py:Profiler.register", "nose2/plugins/prof.py:Profiler.startTestRun", "nose2/plugins/prof.py:Profiler.beforeSummaryR...
nose-devs/nose2
9583d518b338d70dbccc66604c6ff5ca6cfc912b
[profile plugin] hotshot is broken In Python there is a 10 years old bug and I stumbled upon it: http://bugs.python.org/issue900092 And quote from python [docs](https://docs.python.org/2/library/hotshot.html) about hotspot: ``` For common usage it is recommended to use cProfile instead. hotshot is not maintained and ...
diff --git a/nose2/plugins/prof.py b/nose2/plugins/prof.py index b24207f..1127f43 100644 --- a/nose2/plugins/prof.py +++ b/nose2/plugins/prof.py @@ -1,8 +1,8 @@ """ -Profile test execution using hotshot. +Profile test execution using cProfile. This plugin implements :func:`startTestRun` and replaces -``event.execut...
nose-devs__nose2-472
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/plugins/loader/functions.py:Functions.loadTestsFromName" ], "edited_modules": [ "nose2/plugins/loader/functions.py:Functions" ] }, "file": "nose2/plugins/loader/f...
nose-devs/nose2
049afb837852881460c18c81d32008c8fdef025b
Failed to run a specific test with mock.patch decorator using nose2 This is my test file `test_mock.py` that minimally reproduces the failure: ``` import unittest from unittest.mock import patch class TestMock(unittest.TestCase): @patch("urllib3.PoolManager") def test_foo(self, mock_urllib3_poolmana...
diff --git a/nose2/plugins/loader/functions.py b/nose2/plugins/loader/functions.py index d7b6563..5bd7212 100644 --- a/nose2/plugins/loader/functions.py +++ b/nose2/plugins/loader/functions.py @@ -87,6 +87,7 @@ class Functions(Plugin): parent, obj, name, index = result if (isinstance(obj, types.Func...
nose-devs__nose2-476
[ { "changes": { "added_entities": [ "nose2/plugins/loader/functions.py:FunctionTestCase.__repr__" ], "added_modules": [ "nose2/plugins/loader/functions.py:FunctionTestCase" ], "edited_entities": [ "nose2/plugins/loader/functions.py:Functions._createTests" ...
nose-devs/nose2
049afb837852881460c18c81d32008c8fdef025b
Test functions string repr contains 'transplant_class.<locals>.C' The internal `transplant_class` becomes visible when running test functions with nose2 -v.
diff --git a/nose2/plugins/loader/functions.py b/nose2/plugins/loader/functions.py index d7b6563..3e7aa95 100644 --- a/nose2/plugins/loader/functions.py +++ b/nose2/plugins/loader/functions.py @@ -140,6 +140,14 @@ class Functions(Plugin): return tests else: case = util.transplant_clas...
nose-devs__nose2-478
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/events.py:Event.__getstate__" ], "edited_modules": [ "nose2/events.py:Event" ] }, "file": "nose2/events.py" }, { "changes": { "added_entities": [ ...
nose-devs/nose2
049afb837852881460c18c81d32008c8fdef025b
Show parameter of subTest ``` class NumbersTest(unittest.TestCase): def test_even(self): """ Test that numbers between 0 and 5 are all even. """ for i in range(0, 6): with self.subTest(i=i): self.assertEqual(i % 2, 0) ``` https://docs.python.org/...
diff --git a/nose2/events.py b/nose2/events.py index aa9d38c..bb02c8f 100644 --- a/nose2/events.py +++ b/nose2/events.py @@ -4,7 +4,9 @@ # unittest2 is Copyright (c) 2001-2010 Python Software Foundation; All # Rights Reserved. See: http://docs.python.org/license.html +import sys import logging +import unittest ...
nose-devs__nose2-615
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nose2/session.py:Session.loadConfigFiles" ], "edited_modules": [ "nose2/session.py:Session" ] }, "file": "nose2/session.py" } ]
nose-devs/nose2
439d82c7dac0ab598dcb57bd1d911bac367efee3
v0.15.0 seemed to break my ini config Here is my ini config file: ``` [flake8] max-line-length = 120 extend-ignore = E722 [unittest] plugins = nose2.plugins.layers nose2.plugins.junitxml [junit-xml] always-on = False keep_restricted = False path = nosetests.xml test_fullname = False [layer-...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 3a842fb..5d0c4b3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -13,6 +13,13 @@ testsuites. Unreleased ---------- +Fixed +~~~~~ + +* Fix a bug with config loading which caused custom ini configs not to load if + they were not named with a ``.c...
nteract__papermill-423
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "papermill/cli.py" } ]
nteract/papermill
e7e83debf6e55a8051eb7b02d178d789dcc9a5f9
Typo in anti-flag for `--report-mode` There's a simple typo in the definition of `--report-mode`: https://github.com/nteract/papermill/blob/01ec212f14c76860f3788f6f92f9be27d5742ea3/papermill/cli.py#L150 All other flag values have an "anti-flag" of `--no-something`, `--report-mode` has `--not-report-mode` (_not_ v...
diff --git a/docs/reference/papermill-cli.rst b/docs/reference/papermill-cli.rst index 14cd680..426e266 100644 --- a/docs/reference/papermill-cli.rst +++ b/docs/reference/papermill-cli.rst @@ -64,7 +64,7 @@ Command Line options --log-level [NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL] ...
nteract__papermill-528
[ { "changes": { "added_entities": [ "papermill/translators.py:PowershellTranslator.translate_escaped_str", "papermill/translators.py:PowershellTranslator.translate_float", "papermill/translators.py:PowershellTranslator.translate_none", "papermill/translators.py:PowershellTra...
nteract/papermill
83f1d5d7467272dbdd0b259291e431900cfccfba
Update C# translator to support dotnet-interactive, include .net-fsharp and .net-powershell kernels In the most recent preview of .NET's support for Jupyter ([.NET Interactive](https://github.com/dotnet/interactive)), we changed the name of the executable from `dotnet-try` to `dotnet-interactive`, which now supports th...
diff --git a/papermill/translators.py b/papermill/translators.py index 137897a..18b62a7 100644 --- a/papermill/translators.py +++ b/papermill/translators.py @@ -368,6 +368,57 @@ class FSharpTranslator(Translator): return 'let {} = {}'.format(name, str_val) +class PowershellTranslator(Translator): + @cla...
nteract__papermill-544
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "papermill/execute.py:execute_notebook" ], "edited_modules": [ "papermill/execute.py:execute_notebook" ] }, "file": "papermill/execute.py" }, { "changes": { ...
nteract/papermill
d5299b0f2705d7a9175c377aa2a2f812c83239e3
Failure when a path is pathlib.Path The Papermill Python API fails if either of the path arguments supplied to `execute_notebook` is a `pathlib.Path`. This is because [`parameterize_path` assumes that the path is always a `str`](https://github.com/nteract/papermill/blob/d5299b0f2705d7a9175c377aa2a2f812c83239e3/papermil...
diff --git a/papermill/execute.py b/papermill/execute.py index 5a2a46f..c16aa88 100644 --- a/papermill/execute.py +++ b/papermill/execute.py @@ -2,6 +2,7 @@ import copy import nbformat +from pathlib import Path from .log import logger from .exceptions import PapermillExecutionError @@ -32,9 +33,9 @@ def execute...
nteract__papermill-564
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "papermill/cli.py:papermill" ], "edited_modules": [ "papermill/cli.py:papermill" ] }, "file": "papermill/cli.py" } ]
nteract/papermill
a501fe2352fccfd4499e2e44c155a0673b0f01c4
Support empty YAML configuration Just a suggestion, but it would be nice if empty YAML inputs were allowed. If I run `papermill ... --parameters_file /path/to/empty/file`, it crashes out with the following error: ```python Traceback (most recent call last): File "/usr/local/bin/papermill", line 8, in <module> ...
diff --git a/papermill/cli.py b/papermill/cli.py index c2c541e..a9062d2 100755 --- a/papermill/cli.py +++ b/papermill/cli.py @@ -223,11 +223,11 @@ def papermill( if inject_output_path or inject_paths: parameters_final['PAPERMILL_OUTPUT_PATH'] = output_path for params in parameters_base64 or []: - ...
nteract__papermill-629
[ { "changes": { "added_entities": [ "papermill/exceptions.py:PapermillExecutionError.__str__" ], "added_modules": null, "edited_entities": [ "papermill/exceptions.py:PapermillExecutionError.__init__" ], "edited_modules": [ "papermill/exceptions.py:Paper...
nteract/papermill
3f6225ed51e2d41904424059c95306b65be5fb81
PapermillExecutionError cannot be loaded from picklefile ## 🐛 Bug As part of my team's workflow, we extensively use Papermill to run notebooks as part of our Apache Airflow pipelines. When upgrading Airflow to version 2.X.X we found that our default error handling tools were no longer providing detailed errors from...
diff --git a/papermill/exceptions.py b/papermill/exceptions.py index ac3c49f..6a45a8c 100644 --- a/papermill/exceptions.py +++ b/papermill/exceptions.py @@ -23,18 +23,26 @@ class PapermillExecutionError(PapermillException): """Raised when an exception is encountered in a notebook.""" def __init__(self, cell...
nteract__papermill-654
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "papermill/abs.py:AzureBlobStore._split_url" ], "edited_modules": [ "papermill/abs.py:AzureBlobStore" ] }, "file": "papermill/abs.py" } ]
nteract/papermill
92b02321eb48a1be4297f73ab804e85ee1e20ea0
Azure blob storage handler wrong regex matching ## 🐛 Bug on `abs.py`, the class `AzureBlobStore` has a function to extract container name, blob name, sas token etc. ```python @classmethod def _split_url(self, url): """ see: https://docs.microsoft.com/en-us/azure/storage/common/storage-d...
diff --git a/papermill/abs.py b/papermill/abs.py index aa1c88a..700164f 100644 --- a/papermill/abs.py +++ b/papermill/abs.py @@ -30,7 +30,7 @@ class AzureBlobStore(object): see: https://docs.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-signature-part-1 # noqa: E501 abs://myac...
nteract__papermill-658
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "papermill/abs.py:AzureBlobStore._split_url" ], "edited_modules": [ "papermill/abs.py:AzureBlobStore" ] }, "file": "papermill/abs.py" }, { "changes": { "ad...
nteract/papermill
92b02321eb48a1be4297f73ab804e85ee1e20ea0
TypeError: pyarrow._hdfs.HadoopFileSystem__init__() takes at least 1 positional argument (0 given) ## 🐛 Bug In papermill==2.3.4, when I try to use HadoopFileSystem, I get the following error message. ``` $ papermill Untitled.ipynb hdfs://myhost/tmp.ipynb Executing: 0%| ...
diff --git a/papermill/abs.py b/papermill/abs.py index aa1c88a..700164f 100644 --- a/papermill/abs.py +++ b/papermill/abs.py @@ -30,7 +30,7 @@ class AzureBlobStore(object): see: https://docs.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-signature-part-1 # noqa: E501 abs://myac...
nteract__papermill-81
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "papermill/api.py:record", "papermill/api.py:display", "papermill/api.py:Notebook.display_output", "papermill/api.py:NotebookCollection.display_output" ], "edited_modu...
nteract/papermill
f3eb72e0db1cdf4ddf2d99ddfa38615b30c97e7e
Error on record() with new versions Versions above 0.11 seems to present an error when running the record() function. As the example on the readme file: ```python-traceback """notebook.ipynb""" import papermill as pm pm.record("hello", "world") pm.record("number", 123) pm.record("some_list", [1, 3, 5]) pm.r...
diff --git a/papermill/api.py b/papermill/api.py index 15b2745..8f68c88 100644 --- a/papermill/api.py +++ b/papermill/api.py @@ -32,7 +32,7 @@ def record(name, value): """ # IPython.display.display takes a tuple of objects as first parameter # `http://ipython.readthedocs.io/en/stable/api/generated/IPytho...
ntoll__uflash-27
[ { "changes": { "added_entities": [ "uflash.py:watch_file" ], "added_modules": [ "uflash.py:watch_file" ], "edited_entities": [ "uflash.py:main" ], "edited_modules": [ "uflash.py:main" ] }, "file": "uflash.py" } ]
ntoll/uflash
fe26fe8ea0b7943674cb8165e6939cba3ef0dc88
Add command line flag to watch the script for changes and re-flash I'm currently doing it with `inotifywait`, but I think that it might be usefull as part of uflash itself, with additional command line flag. ```bash while inotifywait -e modify my_script.py; do uflash my_script.py done ``` (BTW, :+1: for t...
diff --git a/AUTHORS b/AUTHORS index 0817aa1..c4d08fc 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,4 @@ Nicholas H.Tollervey (ntoll@ntoll.org) Matt Wheeler (m@funkyhat.org) Tom Viner (uflash@viner.tv) +Tom Gurion (nagasaki45@gmail.com) diff --git a/README.rst b/README.rst index 0451d63..610092f 100644 --- a/README....
ntoll__uflash-45
[ { "changes": { "added_entities": [ "uflash.py:get_minifier" ], "added_modules": [ "uflash.py:get_minifier" ], "edited_entities": [ "uflash.py:hexlify", "uflash.py:flash", "uflash.py:main" ], "edited_modules": [ "uflash.py:...
ntoll/uflash
8139fe11aa97c45334592cd8546ebb306ac41ccb
Allow for script minification There should be a flag (`--minify` and `-m`) that causes uflash to "minify" the Python script using various heuristics so it'll fit into the limited amount of memory available. See: https://github.com/mu-editor/mu/pull/385 for an example of what I mean.
diff --git a/requirements.txt b/requirements.txt index 40fe650..04c8918 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ pyflakes coverage sphinx pytest-cov +nudatus>=0.0.2 # Mock is bundled as part of unittest since Python 3.3 # mock_open can't read binary data in <= 3.4.2 diff --git a/ufla...
ntoll__uflash-9
[ { "changes": { "added_entities": [ "uflash.py:unhexlify", "uflash.py:extract_script", "uflash.py:extract" ], "added_modules": [ "uflash.py:unhexlify", "uflash.py:extract_script", "uflash.py:extract" ], "edited_entities": [ "uf...
ntoll/uflash
28bc481b67d67cc20aacc1191c87ac1e4c59bb34
Add ability to extract Python code from a .hex file. Because sometimes, you don't save the source file... ;-)
diff --git a/uflash.py b/uflash.py index 61fe83d..f5cd8a6 100644 --- a/uflash.py +++ b/uflash.py @@ -3,6 +3,7 @@ This module contains functions for turning a Python script into a .hex file and flashing it onto a BBC micro:bit. """ +import argparse import sys import os import struct @@ -19,8 +20,6 @@ _SCRIPT_ADDR ...
numba__numba-3151
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/config.py:_EnvReloader.process_environ" ], "edited_modules": [ "numba/config.py:_EnvReloader" ] }, "file": "numba/config.py" }, { "changes": { "adde...
numba/numba
5215237f67497c77d85642ee917b1553560bc194
Slow performance on repeated deserialization I'm running into performance problems when I deserialize a numba function many times within the same process. I have a small example here: ### Process 1 ```python import numba @numba.njit def f(x): total = 0 for i in range(len(x)): total += x[i] ...
diff --git a/docs/source/reference/envvars.rst b/docs/source/reference/envvars.rst index 3041af0f2..45e7cdf70 100644 --- a/docs/source/reference/envvars.rst +++ b/docs/source/reference/envvars.rst @@ -235,6 +235,20 @@ Compilation options portable code (portable within the same architecture and OS), si...
numba__numba-3720
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/sigutils.py:normalize_signature" ], "edited_modules": [ "numba/sigutils.py:normalize_signature" ] }, "file": "numba/sigutils.py" } ]
numba/numba
8cbe10b62488d95bc119090b79c14bb2e9474850
Fix needed for invalid signature specification error message <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aiss...
diff --git a/numba/sigutils.py b/numba/sigutils.py index e37b2c0c0..8c3c562b3 100644 --- a/numba/sigutils.py +++ b/numba/sigutils.py @@ -31,13 +31,16 @@ def normalize_signature(sig): elif isinstance(parsed, typing.Signature): args, return_type = parsed.args, parsed.return_type else: - raise Ty...
numba__numba-3722
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/cuda/cudadrv/devicearray.py:DeviceNDArrayBase.copy_to_host" ], "edited_modules": [ "numba/cuda/cudadrv/devicearray.py:DeviceNDArrayBase" ] }, "file": "numba/cuda/...
numba/numba
e475b97790a0dbdc5b255f332cdc7071b6327d62
Slicing device array with negative step produces wrong result ## Reporting a bug - [X] I am using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [X] I have included below a minimal working reproducer (if you are unsure how ...
diff --git a/numba/cuda/cudadrv/devicearray.py b/numba/cuda/cudadrv/devicearray.py index c5503b395..1f30862f3 100644 --- a/numba/cuda/cudadrv/devicearray.py +++ b/numba/cuda/cudadrv/devicearray.py @@ -220,6 +220,10 @@ class DeviceNDArrayBase(object): result_array = d_arr.copy_to_host() """ + ...
numba__numba-3883
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/analysis.py:dead_branch_prune" ], "edited_modules": [ "numba/analysis.py:dead_branch_prune" ] }, "file": "numba/analysis.py" } ]
numba/numba
532306131aa3072c50ae3a6b124824cf63b61b1f
is None branch incorrectly pruned in numba 0.43! The following code does not execute the is None branch in numba 0.43 on Mac OSX: ~~~python import numpy as np import numba @numba.jit def bug(a,b): if a.ndim == 1: if b is None: # FIXME Numba 0.43 - this branch is not executed when run...
diff --git a/numba/analysis.py b/numba/analysis.py index 08449494c..add81bacf 100644 --- a/numba/analysis.py +++ b/numba/analysis.py @@ -7,7 +7,7 @@ from collections import namedtuple, defaultdict from numba import ir from numba.controlflow import CFGraph -from numba import types +from numba import types, consts ...
numba__numba-3962
[ { "changes": { "added_entities": [ "numba/numpy_support.py:_check_struct_alignment" ], "added_modules": [ "numba/numpy_support.py:_check_struct_alignment" ], "edited_entities": [ "numba/numpy_support.py:as_struct_dtype", "numba/numpy_support.py:selec...
numba/numba
ca731bf94bc6b23cdc865470b9e98ef647c0b1c8
weird behavior of Records.make_c_struct. OK so the idea I want to implement is make a `cfunc` and pass that function into some C++ code which calls the function pointer as shown in this python script. Here `test_callback` is some cython module which compiles a C function which calls the function pointer. ``` from t...
diff --git a/.flake8 b/.flake8 index 3c2e9b1f4..5296ca11e 100644 --- a/.flake8 +++ b/.flake8 @@ -40,7 +40,6 @@ exclude = numba/parfor.py numba/numba_entry.py numba/stencilparfor.py - numba/numpy_support.py numba/ir.py numba/itanium_mangler.py numba/unittest_support.py @@ -252,7 +251,6 @...
numba__numba-5060
[ { "changes": { "added_entities": [ "numba/core/typing/builtins.py:NPTimedeltaAttribute.resolve___class__", "numba/core/typing/builtins.py:NPDatetimeAttribute.resolve___class__" ], "added_modules": [ "numba/core/typing/builtins.py:NPTimedeltaAttribute", "numba/co...
numba/numba
d66dc92eadc14595dd16512a40a9a660d2f1d22c
Problem lowering code using timedelta arrays Certain numba implementations of numpy functions rely on the `type` function. For example: https://github.com/numba/numba/blob/60d2bddd0a9ddf84cf900a70e4b7e17bcbe5dc87/numba/targets/arraymath.py#L246 However, `type` does not work with `timedelta64`, which means that f...
diff --git a/numba/core/typing/builtins.py b/numba/core/typing/builtins.py index 0aa397137..3d5dabb8a 100644 --- a/numba/core/typing/builtins.py +++ b/numba/core/typing/builtins.py @@ -704,6 +704,22 @@ class NumberAttribute(AttributeTemplate): return signature(ty) +@infer_getattr +class NPTimedeltaAttr...
numba__numba-5176
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/typing/templates.py:fold_arguments" ], "edited_modules": [ "numba/typing/templates.py:fold_arguments" ] }, "file": "numba/typing/templates.py" } ]
numba/numba
d7953a18dbf5ea231dc16e967ce8e9b754578ea6
Further problems with literally in overload I saw that @sklam fixed #5011 with #5018. I believe I have stumbled across another problem with `literally` in `@overload` present in 0.47 and 0.48dev0. The implementations of numpy functions with `axis` parameters use an idom like the following: ```python if axis == 0: ...
diff --git a/numba/typing/templates.py b/numba/typing/templates.py index f09dba502..03893ded1 100644 --- a/numba/typing/templates.py +++ b/numba/typing/templates.py @@ -7,6 +7,7 @@ import sys import inspect import os.path from collections import namedtuple +from collections.abc import Sequence from types import Met...
numba__numba-5209
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/entrypoints.py:init_all" ], "edited_modules": [ "numba/core/entrypoints.py:init_all" ] }, "file": "numba/core/entrypoints.py" }, { "changes": { ...
numba/numba
e216bbcf6406f47e4d225723a960f4c140f66c7e
Importing numba is slow Hello, on my Windows workstation with >1200 pip installed packages, `import numba` is very slow: ``` py -3.7-64 -X importtime -c "import numba" import time: self [us] | cumulative | imported package import time: 3069020 | 3235357 | pkg_resources import time: 2526 | ...
diff --git a/buildscripts/condarecipe.local/meta.yaml b/buildscripts/condarecipe.local/meta.yaml index f4636b9a3..c3b3c7473 100644 --- a/buildscripts/condarecipe.local/meta.yaml +++ b/buildscripts/condarecipe.local/meta.yaml @@ -34,6 +34,7 @@ requirements: - python - numpy - setuptools + - importlib_m...
numba__numba-5213
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/cpython/unicode.py:unicode_strip_left_bound", "numba/cpython/unicode.py:unicode_strip_right_bound" ], "edited_modules": [ "numba/cpython/unicode.py:unicode_strip_left_b...
numba/numba
13ece9b97e6f01f750e870347f231282325f60c3
Unicode lstrip/rstrip/strip do not handle all whitespace characters <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=i...
diff --git a/numba/cpython/unicode.py b/numba/cpython/unicode.py index 5ef88103c..1978e603a 100644 --- a/numba/cpython/unicode.py +++ b/numba/cpython/unicode.py @@ -1388,24 +1388,35 @@ def unicode_zfill(string, width): # ------------------------------------------------------------------------------ @register_jitable ...
numba__numba-5231
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/np/arraymath.py:np_asarray" ], "edited_modules": [ "numba/np/arraymath.py:np_asarray" ] }, "file": "numba/np/arraymath.py" }, { "changes": { "added_...
numba/numba
fd8c232bb37a1945e8dc8becef9fe05fdd78c4cf
np.asarray sometimes doesn't work on List ```python Python 3.7.6 (default, Jan 8 2020, 13:42:34) [Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np >>> from numba import njit >>> from numba.typed import ...
diff --git a/numba/np/arraymath.py b/numba/np/arraymath.py index be264303d..c7fa7c284 100644 --- a/numba/np/arraymath.py +++ b/numba/np/arraymath.py @@ -3877,6 +3877,20 @@ def np_asarray(a, dtype=None): def impl(a, dtype=None): return np.array(a, ty) + elif isinstance(a, types.containers.List...
numba__numba-5235
[ { "changes": { "added_entities": [ "numba/typed/listobject.py:impl_dtype" ], "added_modules": [ "numba/typed/listobject.py:impl_dtype" ], "edited_entities": null, "edited_modules": null }, "file": "numba/typed/listobject.py" }, { "changes": { ...
numba/numba
0f2f216484209c283108a31ebc57db4962ca6930
Add `dtype` property to `List` class <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissue). For more general...
diff --git a/numba/typed/listobject.py b/numba/typed/listobject.py index 4f4071e51..0416a615d 100644 --- a/numba/typed/listobject.py +++ b/numba/typed/listobject.py @@ -12,6 +12,7 @@ from numba import _helperlib from numba.core.extending import ( overload, overload_method, + overload_attribute, regis...
numba__numba-5295
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/typed/listobject.py:impl_extend" ], "edited_modules": [ "numba/typed/listobject.py:impl_extend" ] }, "file": "numba/typed/listobject.py" } ]
numba/numba
0f2f216484209c283108a31ebc57db4962ca6930
typed-list fails to refine via extend on unicode input ## Reporting a bug - [x] I am using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [x] I have included below a minimal working reproducer (if you are unsure how to wr...
diff --git a/numba/typed/listobject.py b/numba/typed/listobject.py index 4f4071e51..379f12aba 100644 --- a/numba/typed/listobject.py +++ b/numba/typed/listobject.py @@ -1049,6 +1049,8 @@ def impl_extend(l, iterable): ty = iterable.item_type elif hasattr(iterable, "yield_type"): # iterators and ge...
numba__numba-5325
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "numba/core/untyped_passes.py:TransformLiteralUnrollConstListToTuple", "numba/core/untyped_passes.py:MixedContainerUnroller", "numba/core/untyped_passes.py:I...
numba/numba
a4c4a8dceb0801672d6fda9199c36047dba16f0b
literal_unroll needs to know about `types.Named*Tuple` <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissue). ...
diff --git a/numba/core/untyped_passes.py b/numba/core/untyped_passes.py index 1a2a42481..157b4d198 100644 --- a/numba/core/untyped_passes.py +++ b/numba/core/untyped_passes.py @@ -602,7 +602,7 @@ class TransformLiteralUnrollConstListToTuple(FunctionPass): """ _name = "transform_literal_unroll_const_list_to_t...
numba__numba-5327
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "numba/cpython/hashing.py" } ]
numba/numba
a4c4a8dceb0801672d6fda9199c36047dba16f0b
Build failed: fatal error: omp.h: No such file or directory <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissu...
diff --git a/numba/cpython/hashing.py b/numba/cpython/hashing.py index 5119e8a32..01ec6da94 100644 --- a/numba/cpython/hashing.py +++ b/numba/cpython/hashing.py @@ -6,6 +6,7 @@ import math import numpy as np import sys import ctypes +import warnings from collections import namedtuple import llvmlite.binding as l...
numba__numba-5361
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/types/containers.py:DictItemsIterableType.__init__", "numba/core/types/containers.py:DictKeysIterableType.__init__", "numba/core/types/containers.py:DictValuesIterableType.__i...
numba/numba
0aaf62d830e7a9d1dc5ffbf710a7cd38caa52d1a
typed.Dict values() returns wrong results when dict key_type is np.int64 Hi, I noticed the following issue in Numba typed.Dict: when using dict with key_type=np.int64 getting the values from it using corresponding view might return keys instead. The following simple test works as a reproducer for me: ``` def...
diff --git a/numba/core/types/containers.py b/numba/core/types/containers.py index e9cc0ed2f..fa6ebd394 100644 --- a/numba/core/types/containers.py +++ b/numba/core/types/containers.py @@ -624,6 +624,7 @@ class DictItemsIterableType(SimpleIterableType): self.parent = parent self.yield_type = self.pare...
numba__numba-5390
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/funcdesc.py:FunctionDescriptor.lookup_module" ], "edited_modules": [ "numba/core/funcdesc.py:FunctionDescriptor" ] }, "file": "numba/core/funcdesc.py" } ]
numba/numba
700d38e4f5004d84966c260d5c9050d0fb637f5d
Cryptic error when compiling a function obtained via `exec` with bad `__name__` Possibly connected to these issues (found while searching for snippets from the stack trace): - https://github.com/numba/numba/issues/2547 - https://github.com/numba/numba/issues/3236 ## Reporting a bug - [x] I am using the latest...
diff --git a/numba/core/funcdesc.py b/numba/core/funcdesc.py index 6c1f8c0bc..4a9213077 100644 --- a/numba/core/funcdesc.py +++ b/numba/core/funcdesc.py @@ -84,12 +84,17 @@ class FunctionDescriptor(object): """ Return the module in which this function is supposed to exist. This may be a dummy...
numba__numba-5478
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/lowering.py:Lower.lower_assign" ], "edited_modules": [ "numba/core/lowering.py:Lower" ] }, "file": "numba/core/lowering.py" }, { "changes": { "...
numba/numba
1e2dc49c699b72c48b258a7c15998b505058289a
Default value is not literal <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissue). For more general "how do...
diff --git a/numba/core/lowering.py b/numba/core/lowering.py index 2f605d6a9..c49a220c3 100644 --- a/numba/core/lowering.py +++ b/numba/core/lowering.py @@ -550,10 +550,12 @@ class Lower(BaseLower): argty = self.typeof("arg." + value.name) if isinstance(argty, types.Omitted): ...
numba__numba-5480
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/untyped_passes.py:MixedContainerUnroller.apply_transform", "numba/core/untyped_passes.py:MixedContainerUnroller.unroll_loop" ], "edited_modules": [ "numba/core/unt...
numba/numba
917f582433170893f32ae51e5ca8fd8a8a736914
literal_unroll fails when mixing iteration over untyped list - [x] I am using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [x] I have included below a minimal working reproducer (if you are unsure how to write one see http...
diff --git a/README.rst b/README.rst index 9be382775..e56331f9b 100644 --- a/README.rst +++ b/README.rst @@ -41,7 +41,7 @@ Dependencies ============ * Python versions: 3.6-3.8 -* llvmlite 0.32.* +* llvmlite 0.31.* * NumPy >=1.15 (can build with 1.11 for ABI compatibility) Optionally: diff --git a/buildscripts/c...
numba__numba-5495
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/config.py:_EnvReloader.process_environ" ], "edited_modules": [ "numba/core/config.py:_EnvReloader" ] }, "file": "numba/core/config.py" }, { "changes"...
numba/numba
917f582433170893f32ae51e5ca8fd8a8a736914
Regression 0.49RC1 vs 0.48 (possibly SSA related) Hi, the following works in pure python and in Numba v0.48, but it's not working in 0.49rc. Sorry that the code is a bit convoluted, couldn't reduce it more than this. cc: @stuartarchibald ```python from numba import njit import numpy as np pol_data = np.a...
diff --git a/numba/core/config.py b/numba/core/config.py index 718846661..e4637e1f0 100644 --- a/numba/core/config.py +++ b/numba/core/config.py @@ -150,7 +150,9 @@ class _EnvReloader(object): # Whether to always warn about potential uninitialized variables # because static controlflow analysis cannot...
numba__numba-5527
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/typeinfer.py:TypeInferer.typeof_global" ], "edited_modules": [ "numba/core/typeinfer.py:TypeInferer" ] }, "file": "numba/core/typeinfer.py" } ]
numba/numba
1ea770564cb3c0c6cb9d8ab92e7faf23cd4c4c19
problem typing a global tuple of specific integer types as literal <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is...
diff --git a/numba/core/typeinfer.py b/numba/core/typeinfer.py index 9477a43d1..098fdf9c2 100644 --- a/numba/core/typeinfer.py +++ b/numba/core/typeinfer.py @@ -1491,9 +1491,11 @@ http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-has-an-u typ = typ.copy(readonly=True) if is...
numba__numba-5557
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/types/function_type.py:FunctionType.get_call_type" ], "edited_modules": [ "numba/core/types/function_type.py:FunctionType" ] }, "file": "numba/core/types/fun...
numba/numba
ce2139c7dd93127efb04b35f28f4bebc7f44dfd5
named parameters not recognized with first class functions - [x ] I am using the latest ~~released~~ **master** version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [x ] I have included below a minimal working reproducer (if you are unsure how to wri...
diff --git a/numba/core/types/function_type.py b/numba/core/types/function_type.py index 576a8cbd9..34a14e41d 100644 --- a/numba/core/types/function_type.py +++ b/numba/core/types/function_type.py @@ -4,7 +4,7 @@ __all__ = ['FunctionType', 'UndefinedFunctionType', 'FunctionPrototype', from abc import ABC, abstractme...
numba__numba-5624
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/analysis.py:dead_branch_prune" ], "edited_modules": [ "numba/core/analysis.py:dead_branch_prune" ] }, "file": "numba/core/analysis.py" }, { "changes"...
numba/numba
1dabbf67426ad6243f7b6d791d3d38dbb68ab33e
Jit produces wrong code with version 0.49.0 [Our library's](https://github.com/pymatting/pymatting/issues/15) tests [fail on all platforms](https://travis-ci.org/github/pymatting/pymatting/builds/678580669) when upgrading from numba version `0.48.0` to `0.49.0`. The smallest test case that I could come up with that ...
diff --git a/numba/core/analysis.py b/numba/core/analysis.py index 54342b488..9c5423738 100644 --- a/numba/core/analysis.py +++ b/numba/core/analysis.py @@ -283,6 +283,10 @@ def _fix_loop_exit(cfg, loop): return loop +# Used to describe a nullified condition in dead branch pruning +nullified = namedtuple('...
numba__numba-5627
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/ssa.py:_FixSSAVars._stmt_index" ], "edited_modules": [ "numba/core/ssa.py:_FixSSAVars" ] }, "file": "numba/core/ssa.py" }, { "changes": { "adde...
numba/numba
1dabbf67426ad6243f7b6d791d3d38dbb68ab33e
SSA pass causes invalid compilation (array write elided). From https://github.com/pymatting/pymatting/issues/15, whilst long, this compiles incorrectly if the SSA passes are enabled. Problem is marked in the source by `PROBLEM IS HERE` comment. ```python import numpy as np import llvmlite import numba import platf...
diff --git a/numba/core/ssa.py b/numba/core/ssa.py index d38918f8c..a4b30df67 100644 --- a/numba/core/ssa.py +++ b/numba/core/ssa.py @@ -430,15 +430,18 @@ class _FixSSAVars(_BaseHandler): return self._find_def_from_top(states, label, loc=loc) def _stmt_index(self, defstmt, block, stop=-1): - ...
numba__numba-5673
[ { "changes": { "added_entities": [ "numba/core/compiler.py:DefaultPassBuilder.define_nopython_lowering_pipeline", "numba/core/compiler.py:DefaultPassBuilder.define_typed_pipeline", "numba/core/compiler.py:DefaultPassBuilder.define_untyped_pipeline" ], "added_modules": n...
numba/numba
86e600d0ec867402cb4f41100295878586f2a019
tuple slicing fails in inlined functions Before submitting a bug report please ensure that you can check off these boxes: - [x] I am using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). 0.46.0 - [x] I have included below...
diff --git a/numba/core/compiler.py b/numba/core/compiler.py index 13ad9ec82..4962e19ae 100644 --- a/numba/core/compiler.py +++ b/numba/core/compiler.py @@ -435,11 +435,68 @@ class DefaultPassBuilder(object): - nopython - objectmode - interpreted + - typed + - untyped + - nopython lo...
numba__numba-5721
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/types/iterators.py:ArrayIterator.__init__" ], "edited_modules": [ "numba/core/types/iterators.py:ArrayIterator" ] }, "file": "numba/core/types/iterators.py" ...
numba/numba
64fbf2b821f185fd1048eb5cf399c3130d145d5c
issue with >1d array iteration numba 0.49.0 numpy 1.18.2 Python 3.8.2 (default, May 7 2020, 20:00:49) [GCC 7.3.0] on linux ```python import numba as nb import numpy as np @nb.njit() def outer_product_sum(x: np.ndarray, y: np.ndarray) -> np.ndarray: assert x.ndim == 2, "dimensions of both arrays must ...
diff --git a/numba/core/types/iterators.py b/numba/core/types/iterators.py index c66a706fd..2baf1d42a 100644 --- a/numba/core/types/iterators.py +++ b/numba/core/types/iterators.py @@ -103,5 +103,6 @@ class ArrayIterator(SimpleIteratorType): elif nd == 1: yield_type = array_type.dtype els...
numba__numba-5808
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/decorators.py:jit", "numba/core/decorators.py:njit" ], "edited_modules": [ "numba/core/decorators.py:jit", "numba/core/decorators.py:njit" ] }, ...
numba/numba
23a5c659e1122c607deb291ff5f7dd796f2a2915
No error for jit(nopython=True, forceobj=True) - [ x] I am using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [ x] I have included below a minimal working reproducer (if you are unsure how to write one see http://matthewro...
diff --git a/numba/core/decorators.py b/numba/core/decorators.py index 5ea8bbbbb..ba0125c16 100644 --- a/numba/core/decorators.py +++ b/numba/core/decorators.py @@ -143,6 +143,8 @@ def jit(signature_or_function=None, locals={}, target='cpu', cache=False, raise DeprecationError(_msg_deprecated_signature_arg.for...
numba__numba-5876
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/typeinfer.py:TypeInferer.typeof_global" ], "edited_modules": [ "numba/core/typeinfer.py:TypeInferer" ] }, "file": "numba/core/typeinfer.py" } ]
numba/numba
92df8df57dd31a3da51d3b0cf94a4ec2b591f71a
Improved error message for non existing variable Attempting to use a variable that has not been defined returns an error message that can be confusing for someone new to Numba. ```python @njit def foo(x): a = monkey return a foo(np.ones(2)) TypingError: Failed in nopython mode pipeline (step: nopyt...
diff --git a/numba/core/typeinfer.py b/numba/core/typeinfer.py index 59d041b9c..059019a18 100644 --- a/numba/core/typeinfer.py +++ b/numba/core/typeinfer.py @@ -1468,13 +1468,25 @@ http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-has-an-u # as a global variable t...
numba__numba-5879
[ { "changes": { "added_entities": [ "numba/np/linalg.py:_copy_to_fortran_order", "numba/np/linalg.py:ol_copy_to_fortran_order" ], "added_modules": [ "numba/np/linalg.py:_copy_to_fortran_order", "numba/np/linalg.py:ol_copy_to_fortran_order" ], "edited_...
numba/numba
92df8df57dd31a3da51d3b0cf94a4ec2b591f71a
np.linalg.pinv Unintended mutation of input <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissue). For more ...
diff --git a/numba/np/linalg.py b/numba/np/linalg.py index d206d8f17..01b6202c8 100644 --- a/numba/np/linalg.py +++ b/numba/np/linalg.py @@ -782,6 +782,38 @@ def _check_homogeneous_types(func_name, *types): raise TypingError(msg, highlighting=False) +def _copy_to_fortran_order(): + pass + + +@overlo...
numba__numba-5889
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/typing/templates.py:_OverloadFunctionTemplate.generic" ], "edited_modules": [ "numba/core/typing/templates.py:_OverloadFunctionTemplate" ] }, "file": "numba/...
numba/numba
92df8df57dd31a3da51d3b0cf94a4ec2b591f71a
Regression with literally and overloads with inline='always' - [x] I am using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [x] I have included below a minimal working reproducer (if you are unsure how to write one see http...
diff --git a/numba/core/typing/templates.py b/numba/core/typing/templates.py index 4370afdad..de3eb261d 100644 --- a/numba/core/typing/templates.py +++ b/numba/core/typing/templates.py @@ -517,9 +517,17 @@ class _OverloadFunctionTemplate(AbstractTemplate): inline_worker = InlineWorker(tyctx, tgctx, fcomp.l...
numba__numba-5912
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/types/functions.py:_ResolutionFailures._get_source_info", "numba/core/types/functions.py:_ResolutionFailures.format" ], "edited_modules": [ "numba/core/types/funct...
numba/numba
ae598dbf252bad3917b76d9e9844e6ab59bcd218
Typing errors in device functions aren't properly reported - [X] I am using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [X] I have included below a minimal working reproducer (if you are unsure how to write one see http:/...
diff --git a/.flake8 b/.flake8 index a764ad0b5..84837eef4 100644 --- a/.flake8 +++ b/.flake8 @@ -305,7 +305,6 @@ exclude = numba/tests/test_nested_calls.py numba/tests/test_chained_assign.py numba/tests/test_withlifting.py - numba/tests/test_errorhandling.py numba/tests/test_parfors.py numba...
numba__numba-5935
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/serialize.py:_reduce_function", "numba/core/serialize.py:_rebuild_function" ], "edited_modules": [ "numba/core/serialize.py:_reduce_function", "numba/core/...
numba/numba
9ce5c30d328a1ab2690fe4ea0880d32f1e9fa075
TypeError using default arguments with multiprocessing When using default arguments in a jit'ed function, I get a TypeError when the function is called from a `multiprocessing` worker and the default arguments are omitted. The function works when run single-threaded. Minimal working example: ```python from multipro...
diff --git a/numba/core/serialize.py b/numba/core/serialize.py index ef8c5af80..4cecf4d19 100644 --- a/numba/core/serialize.py +++ b/numba/core/serialize.py @@ -66,7 +66,7 @@ def _reduce_function(func, globs): cells = [cell.cell_contents for cell in func.__closure__] else: cells = None - retur...
numba__numba-6027
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/inline_closurecall.py:_get_callee_args", "numba/core/inline_closurecall.py:_fix_nested_array" ], "edited_modules": [ "numba/core/inline_closurecall.py:_get_callee_...
numba/numba
8611a7d23c00e0ae1fac23da89f13bdacd174bdb
overload inlining fails for builtin operators <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissue). For mor...
diff --git a/numba/core/inline_closurecall.py b/numba/core/inline_closurecall.py index be56fe051..a3ea57967 100644 --- a/numba/core/inline_closurecall.py +++ b/numba/core/inline_closurecall.py @@ -688,6 +688,8 @@ def _get_callee_args(call_expr, callee, loc, func_ir): args = list(call_expr.args) elif call_...
numba__numba-6028
[ { "changes": { "added_entities": [ "numba/cpython/tupleobj.py:getitem_literal_idx" ], "added_modules": [ "numba/cpython/tupleobj.py:getitem_literal_idx" ], "edited_entities": null, "edited_modules": null }, "file": "numba/cpython/tupleobj.py" } ]
numba/numba
d3b7ea1344779cf0bacfa82c754da5b71e133dbe
Tuple getitem cannot compile with IntegerLiterals as index - [x] I have tried using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [x] I have included below a minimal working reproducer (if you are unsure how to write one se...
diff --git a/numba/cpython/tupleobj.py b/numba/cpython/tupleobj.py index 7a547577f..34739623f 100644 --- a/numba/cpython/tupleobj.py +++ b/numba/cpython/tupleobj.py @@ -187,6 +187,24 @@ def iternext_unituple(context, builder, sig, args, result): builder.store(nidx, iterval.index) +@overload(operator.getite...
numba__numba-6072
[ { "changes": { "added_entities": [ "numba/core/typing/templates.py:FunctionTemplate.get_source_code_info" ], "added_modules": null, "edited_entities": [ "numba/core/typing/templates.py:AbstractTemplate.get_template_info", "numba/core/typing/templates.py:CallableTe...
numba/numba
6bb29300254a40d2be35a6c88906bd4ddaad2c4d
Error hidden when source is not available <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissue). --> ## R...
diff --git a/numba/core/typing/templates.py b/numba/core/typing/templates.py index 30082ce3b..33caa3257 100644 --- a/numba/core/typing/templates.py +++ b/numba/core/typing/templates.py @@ -285,6 +285,28 @@ class FunctionTemplate(ABC): key = key.im_func return key + @classmethod + def get_s...
numba__numba-6083
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/types/containers.py:List.unify" ], "edited_modules": [ "numba/core/types/containers.py:List" ] }, "file": "numba/core/types/containers.py" } ]
numba/numba
4aceb2727b2e07916d480573e536c35687ac3f40
list of list (nested build_list) fails on master <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissue). --> ...
diff --git a/numba/core/types/containers.py b/numba/core/types/containers.py index 67baead13..87f4258c9 100644 --- a/numba/core/types/containers.py +++ b/numba/core/types/containers.py @@ -442,7 +442,7 @@ class List(MutableSequence, InitialValue): use = siv if siv is None: ...
numba__numba-6111
[ { "changes": { "added_entities": [ "numba/core/types/containers.py:LiteralList.__getitem__", "numba/core/types/containers.py:LiteralList.__len__", "numba/core/types/containers.py:LiteralList.__iter__", "numba/core/types/containers.py:LiteralList.from_types", "numba/...
numba/numba
fbe65c23217b5b50faf55d830e160ff1af2dcf1b
Numba 0.51: avoid subclassing NamedTuple in LiteralStrKeyDict <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Ais...
diff --git a/numba/core/types/containers.py b/numba/core/types/containers.py index 87f4258c9..6191852af 100644 --- a/numba/core/types/containers.py +++ b/numba/core/types/containers.py @@ -468,19 +468,44 @@ class List(MutableSequence, InitialValue): initial_value=None) -class LiteralList(Litera...
numba__numba-6194
[ { "changes": { "added_entities": [ "numba/core/datamodel/models.py:DataModel.inner_models", "numba/core/datamodel/models.py:MemInfoModel.inner_models", "numba/core/datamodel/models.py:UniTupleModel.inner_models", "numba/core/datamodel/models.py:StructModel.inner_models" ...
numba/numba
0d2ac24f916c3bcc0c0444d969530bb207c362c1
Type inference recursion error for self referencing types I don't know if this should be labeled as a bug or missing feature, but is worth exposing it. Basicaly, here I am trying to self reference(forward declaration) a structref without using the undocumented DeferredType. <details><summary>example code</summary> ...
diff --git a/numba/core/datamodel/models.py b/numba/core/datamodel/models.py index 77b2fc90a..0d06c560d 100644 --- a/numba/core/datamodel/models.py +++ b/numba/core/datamodel/models.py @@ -1,4 +1,5 @@ from functools import partial +from collections import deque from llvmlite import ir @@ -103,11 +104,21 @@ class ...
numba__numba-6261
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "numba/np/arraymath.py" } ]
numba/numba
3b3eab8922c9ca199fc3b2c758886628a2ab7494
.ptp() not @njit compilable anymore? - [x] I have tried using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG). - [x] I have included below a minimal working reproducer (if you are unsure how to write one see http://matthewroc...
diff --git a/docs/source/reference/numpysupported.rst b/docs/source/reference/numpysupported.rst index 040351032..20e4de8cb 100644 --- a/docs/source/reference/numpysupported.rst +++ b/docs/source/reference/numpysupported.rst @@ -224,6 +224,7 @@ The following methods of Numpy arrays are supported: * :meth:`~numpy.ndarr...
numba__numba-6265
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "numba/core/ir_utils.py:get_ir_of_code" ], "edited_modules": [ "numba/core/ir_utils.py:get_ir_of_code" ] }, "file": "numba/core/ir_utils.py" } ]
numba/numba
3b3eab8922c9ca199fc3b2c758886628a2ab7494
Type cannot be determined when using 'if a not in b' in list construction - [x] I have tried using the latest released version of Numba - [x] I have included below a minimal working reproducer In trying to make a replacement for numpy's setxor1d I came across the following error (minimal example below): ``` @nb....
diff --git a/numba/core/ir_utils.py b/numba/core/ir_utils.py index 1d58c5c8b..ea537e74b 100644 --- a/numba/core/ir_utils.py +++ b/numba/core/ir_utils.py @@ -1669,12 +1669,30 @@ def get_ir_of_code(glbls, fcode): self.state.typemap = None self.state.return_type = None self.state.cal...
numba__numba-6373
[ { "changes": { "added_entities": [ "numba/core/types/functions.py:_PickleableWeakRef.__getnewargs__" ], "added_modules": [ "numba/core/types/functions.py:_PickleableWeakRef" ], "edited_entities": [ "numba/core/types/functions.py:WeakType._store_object" ...
numba/numba
3a682bd827e416335e3574bc7b10f0ec69adb701
Cannot cache functions with callable arguments <!-- Thanks for opening an issue! To help the Numba team handle your information efficiently, please first ensure that there is no other issue present that already describes the issue you have (search at https://github.com/numba/numba/issues?&q=is%3Aissue). --> ...
diff --git a/numba/core/types/functions.py b/numba/core/types/functions.py index 0c3926a0e..eafe45a3b 100644 --- a/numba/core/types/functions.py +++ b/numba/core/types/functions.py @@ -457,6 +457,20 @@ class MakeFunctionLiteral(Literal, Opaque): pass +class _PickleableWeakRef(weakref.ref): + """ + Allow ...