[issue39660] Contextvars: Optional callbacks on state change

2020-02-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2020-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Noted, but making it a keyword only argument would break a lot of existing code that has always just been passing three positional args. Needless pain. -- stage: patch review -> resolved status: open -> closed

[issue39652] sqlite3 bug handling column names that contain square braces

2020-02-16 Thread Simon Willison
Simon Willison added the comment: Oh how interesting - yes it looks like this is deliberate behavior introduced in this commit: https://github.com/python/cpython/commit/0e3f591aeeef9ed715f8770320f4c4c7332a8794 -- ___ Python tracker

[issue39660] Contextvars: Optional callbacks on state change

2020-02-16 Thread Leonard Lausen
New submission from Leonard Lausen : contextvars provide APIs to manage, store, and access context-local state. Unfortunately, if Python is used as a frontend for a native libray (eg accessed via ctypes), and in case that the state of interest is managed in the native library, contextvar API

[issue39652] sqlite3 bug handling column names that contain square braces

2020-02-16 Thread Raul Gallegos
Raul Gallegos added the comment: Thanks for reporting this issue, I have a PR here https://github.com/python/cpython/pull/18533 but that still needs some clarification, because there were some tests that were actually testing that we were stripping everything after the square brackets.

[issue39652] sqlite3 bug handling column names that contain square braces

2020-02-16 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17908 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18533 ___ Python tracker ___

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2020-02-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2020-02-16 Thread Dima Tisnek
Dima Tisnek added the comment: I think this deserves discussion :) On one hand, it's a welcome change, on another it's kind of a regression. Up until 3.8, our tests used to look like this: --- # code under test async def foo(): return await bar() # test async def helper(value):

[issue39659] pathlib calls `os.getcwd()` without using accessor

2020-02-16 Thread Barney Gale
New submission from Barney Gale : Whereas most calls to `os` functions from `pathlib.Path` methods happen via `pathlib._Accessor` methods, retrieving the current working directory does not. This problem occurs when calling the `pathlib.Path.cwd()`, `~resolve()` and `~absolute()` methods.

[issue39617] max_workers argument to concurrent.futures.ProcessPoolExecutor is not flexible enough

2020-02-16 Thread sds
sds added the comment: I don't think you need this complexity - just keep the pool max size and submit jobs only when the loadavg drops below the threshold. See my implementation attached. -- Added file: https://bugs.python.org/file48898/run-at-load-avg.py

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2020-02-16 Thread Kyle Stanley
Kyle Stanley added the comment: > Can this issue be closed, I see it was merged successfully? Yep, I'll go ahead and close the issue now. Thanks for the reminder; I got caught up in a few other projects. -- stage: patch review -> resolved status: open -> closed

[issue39649] bdb.Bdb.format_stack_entry: checks for obsolete __args__

2020-02-16 Thread daniel hahler
daniel hahler added the comment: Sure: https://github.com/python/cpython/pull/18531 -- ___ Python tracker ___ ___ Python-bugs-list

[issue39649] bdb.Bdb.format_stack_entry: checks for obsolete __args__

2020-02-16 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +17907 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18531 ___ Python tracker ___

[issue39645] Expand concurrent.futures.Future's public API

2020-02-16 Thread Guido van Rossum
Guido van Rossum added the comment: I'll leave it to Brian and/or Antoine to review this. Good luck! -- ___ Python tracker ___ ___

[issue39649] bdb.Bdb.format_stack_entry: checks for obsolete __args__

2020-02-16 Thread Guido van Rossum
Guido van Rossum added the comment: That seems to be a correct observation. @blueyed, do you want to submit a PR to gt rid of the redundant check? -- ___ Python tracker ___

[issue39658] Include user scripts folder to PATH on Windows

2020-02-16 Thread Luca
New submission from Luca : When installing Python on Windows, and selecting the option “Add Python to PATH”, the following folders are added to the "PATH" environment variable: - C:\Users\[username]\AppData\Local\Programs\Python\Python38\Scripts\ -

[issue27657] urlparse fails if the path is numeric

2020-02-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset ea316fd21527dec53e704a5b04833ac462ce3863 by Senthil Kumaran in branch '3.8': Revert "[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-16839)" (GH-18525) https://github.com/python/cpython/commit/ea316fd21527dec53e704a5b04833ac462ce3863

[issue39657] Bezout and Chinese Remainder Theorem in the Standard Library?

2020-02-16 Thread Dennis Sweeney
New submission from Dennis Sweeney : Should something like the following go in the standard library, most likely in the math module? I know I had to use such a thing before pow(a, -1, b) worked, but Bezout is more general. And many of the easy stackoverflow implementations of CRT

[issue39655] Shared_Memory attaching to incorrect Address in Windows 10

2020-02-16 Thread Eryk Sun
Eryk Sun added the comment: shared_memory is not the problem here. Your example assumes that a.dtype is int64, but a numpy array defaults to "the minimum type required to hold the objects in the sequence", and the actual minimum depends on the size of the platform `long`. In Windows, a

[issue39382] abstract_issubclass() doesn't take bases tuple item ref

2020-02-16 Thread Yonatan Goldschmidt
Change by Yonatan Goldschmidt : -- pull_requests: +17906 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18530 ___ Python tracker ___

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Fixed the bug to default any macos into 'spawn' PR: GH-18529 -- nosy: +Ido Michael ___ Python tracker ___

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-02-16 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +17905 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18529 ___ Python tracker

[issue27657] urlparse fails if the path is numeric

2020-02-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 505b6015a1579fc50d9697e4a285ecc64976397a by Senthil Kumaran in branch '3.7': Revert "bpo-27657: Fix urlparse() with numeric paths (GH-661)" (#18526) https://github.com/python/cpython/commit/505b6015a1579fc50d9697e4a285ecc64976397a --

[issue37970] urllib.parse docstrings incomplete

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Tal, I can also fix that so we can close this issue. Are you talking about the Doc/library/urllib.parse.rst file? -- ___ Python tracker ___

[issue10572] Move test sub-packages to Lib/test

2020-02-16 Thread Ned Deily
Ned Deily added the comment: As noted in the review of the PR, keep in mind that tests are included in an installed Python instance; there is a list of test directories in the main Makefile (Makefile.pre.in) that is used by "make install". Any movement of test directories thus needs to

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Dennis Sweeney
Dennis Sweeney added the comment: Correction correction: returning zero preserves the invariant below. from math import gcd as GCD from functools import reduce from itertools import starmap, chain def gcd(*args): return reduce(GCD, args, 0) iterables = [[10, 20, 30], [],

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Dennis Sweeney
Dennis Sweeney added the comment: Correction: gcd(itertools.chain(iterables)) == gcd(*map(gcd, iterables)) -- ___ Python tracker ___

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think the behavior of gcd() == 0 is correct, but it should be documented, because it isn't completely obvious. Arguments for gcd() == 0: - Preserves the invariant gcd(itertools.chain(iterables)) == gcd(itertools.starmap(gcd, iterables)) in the case that

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-02-16 Thread Tal Einat
Tal Einat added the comment: Good catch, Stefen! This seems like we forgot to update multiprocessing.get_all_start_methods() when making the change to make "spawn" the default on macOS. I suggest updating it accordingly. -- keywords: +newcomer friendly nosy: +taleinat stage: ->

[issue39655] Shared_Memory attaching to incorrect Address in Windows 10

2020-02-16 Thread Orwell
Change by Orwell : -- title: Shared_Memory attaching to incorrect Address in Windows -> Shared_Memory attaching to incorrect Address in Windows 10 ___ Python tracker ___

[issue37970] urllib.parse docstrings incomplete

2020-02-16 Thread Tal Einat
Tal Einat added the comment: Ido Michael's PR GH-16458, which I've just merged, addresses the issues brought up here regarding the doc-strings. >From the discussion it seems that the documentation of these functions should >be updated as well. I'll leave this issue open until that's done as

[issue39656] shebanged scripts can escape from `venv` depending on how it was created

2020-02-16 Thread Anthony Sottile
New submission from Anthony Sottile : This is distilled from a larger example to be small/silly, however this caused real problems A script which was intended for python3.6 exactly was written as follows: ``` #!/usr/bin/env python3.6 ... ``` when creating a virtualenv with `python3.6 -m

[issue37970] urllib.parse docstrings incomplete

2020-02-16 Thread Tal Einat
Tal Einat added the comment: New changeset c33bdbb20cf55b3a2aa7a91bd3d91fcb59796fad by idomic in branch 'master': bpo-37970: update and improve urlparse and urlsplit doc-strings (GH-16458) https://github.com/python/cpython/commit/c33bdbb20cf55b3a2aa7a91bd3d91fcb59796fad -- nosy:

[issue39655] Shared_Memory attaching to incorrect Address in Windows

2020-02-16 Thread Orwell
New submission from Orwell : Shared Memory is attaching to incorrect memory location , ex : retried the documentation example. >>> import numpy as np >>> a = np.array([1, 1, 2, 3, 5, 8]) >>> from multiprocessing import shared_memory >>> shm = shared_memory.SharedMemory(create=True,

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Tim Peters
Tim Peters added the comment: This is almost all down to pragmatics for me. For sum() and prod(), if there are only two operands then there are trivial other ways to spell that (+ and *). So it makes most sense for them to accept iterables instead. Essentially, e.g., nobody would ever

[issue39654] pyclbr: remove old references to class browser & add explain readmodule

2020-02-16 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : This is something revealed during issue 39411. As @terry.reedy commented pyclbr's scope is extended to functions and classes instead of just classes. -- nosy: +BTaskaya, terry.reedy ___ Python tracker

[issue39654] pyclbr: remove old references to class browser & add explain readmodule

2020-02-16 Thread Hakan
Change by Hakan : -- keywords: +patch pull_requests: +17904 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18528 ___ Python tracker ___

[issue39654] pyclbr: remove old references to class browser & add explain readmodule

2020-02-16 Thread Hakan
Change by Hakan : -- assignee: docs@python components: Documentation nosy: docs@python, hakancelik priority: normal severity: normal status: open title: pyclbr: remove old references to class browser & add explain readmodule type: enhancement versions: Python 3.9

[issue10572] Move test sub-packages to Lib/test

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Moved all 6 modules tests under Lib/test/MODULE_NAME_test Created this PR: GH-18524 -- ___ Python tracker ___

[issue27657] urlparse fails if the path is numeric

2020-02-16 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +17903 pull_request: https://github.com/python/cpython/pull/18526 ___ Python tracker ___

[issue27657] urlparse fails if the path is numeric

2020-02-16 Thread Senthil Kumaran
Change by Senthil Kumaran : -- keywords: +patch pull_requests: +17902 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/18525 ___ Python tracker

[issue39104] ProcessPoolExecutor hangs on shutdown nowait with pickling failure

2020-02-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Thomas. Ii'd rather not backport delicate changes, so closing now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: -Python 3.7, Python 3.8 ___

[issue39104] ProcessPoolExecutor hangs on shutdown nowait with pickling failure

2020-02-16 Thread miss-islington
miss-islington added the comment: New changeset a5cbab552d294d99fde864306632d7e511a75d3c by Thomas Moreau in branch 'master': bpo-39104: Fix hanging ProcessPoolExecutor on shutdown nowait with pickling failure (GH-17670)

[issue10572] Move test sub-packages to Lib/test

2020-02-16 Thread Ido Michael
Change by Ido Michael : -- pull_requests: +17901 pull_request: https://github.com/python/cpython/pull/18524 ___ Python tracker ___

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Created 2nd PR with the Algorithm documentation: GH-18523 -- ___ Python tracker ___ ___

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2020-02-16 Thread Ido Michael
Change by Ido Michael : -- pull_requests: +17900 pull_request: https://github.com/python/cpython/pull/18523 ___ Python tracker ___

[issue35885] configparser: indentation

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Created PR GH-18522 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35885] configparser: indentation

2020-02-16 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +17899 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18522 ___ Python tracker ___

[issue39573] Make PyObject an opaque structure in the limited C API

2020-02-16 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +17898 pull_request: https://github.com/python/cpython/pull/18521 ___ Python tracker ___

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Can this issue be closed, I see it was merged successfully? -- ___ Python tracker ___ ___

[issue39653] test_posix fails during make test

2020-02-16 Thread Zachary
New submission from Zachary : Forgive me, for I am a newb and this is the first Python issue I have ever created. My system: Linux debian-thinkpad 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 GNU/Linux While attempting to run "make test" test_posix failed. As you can see in

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Mark Dickinson
Mark Dickinson added the comment: What's slightly more interesting is the return value for a single argument `a`, where we should be careful to return `abs(a)` rather than simply `a`. -- ___ Python tracker

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Mark Dickinson
Mark Dickinson added the comment: > Should it take variable number of positional arguments or a single iterable > argument as max() and min()? Good question: the obvious extension to the current function would be to allow it to take multiple scalar arguments. But I don't much like the

[issue39652] sqlite3 bug handling column names that contain square braces

2020-02-16 Thread Simon Willison
Change by Simon Willison : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39652] sqlite3 bug handling column names that contain square braces

2020-02-16 Thread Simon Willison
New submission from Simon Willison : Bit of an obscure bug this one. SQLite allows column names to contain [ and ] characters, even though those are often used as delimiters in SQLite. Here's how to create such a database with bash: ``` sqlite3 /tmp/demo.db < In [5]: cursor.fetchall()

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python as programming language provides builtin blocks. This is a good example of using functools.reduce(). But if you can provide an algorithm for calculating the GCD and LCM more efficient than sequential applying gcd() and lcm() for two arguments, it

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should it take variable number of positional arguments or a single iterable argument as max() and min()? What should it return for 0 arguments? -- ___ Python tracker

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-02-16 Thread Ben Darnell
New submission from Ben Darnell : Proactor and selector event loops behave differently when call_soon_threadsafe races with a concurrent call to loop.close(). In a selector event loop, call_soon_threadsafe will either succeed or raise a RuntimeError("Event loop is closed"). In a proactor

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 This isn't hard for us to do and may be occasionally useful. -- nosy: +rhettinger, tim.peters ___ Python tracker ___

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-02-16 Thread Ben Darnell
Ben Darnell added the comment: I just spent some time digging into this. Each call to `run_forever` starts a call to `_loop_self_reading`, then attempts to cancel it before returning:

[issue39633] venv does not include python. symlink by default

2020-02-16 Thread Eryk Sun
Eryk Sun added the comment: > That means that libraries should assume they are being installed into > venvs. Therefore makefiles should be invoking plain "python" rather > than "pythonX.Y" In Unix, 3.x virtual environments include a "python3" symlink or copy, even if created with a "python"

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread SilentGhost
SilentGhost added the comment: You could (should?) use reduce, then: >>> functools.reduce(math.gcd, (6, 30, 40, 60, 20, 40)) 2 -- nosy: +SilentGhost ___ Python tracker ___

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: It will take more time to write the statement itself and there are chances of getting mistakes as the statement is complicated. -- ___ Python tracker

[issue39650] Creating zip file where names in local header don't match with central header

2020-02-16 Thread Paul Marquess
New submission from Paul Marquess : Consider this code (based on code from an issue on StackOverflow) import zipfile import os allFilesToZip = ["/tmp/tom"] with zipfile.ZipFile(allZipPath, 'w') as allZip: for f in allFilesToZip: allZip.write(f, compress_type=zipfile.ZIP_DEFLATED)

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What problems it will create? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39649] bdb.Bdb.format_stack_entry: checks for obsolete __args__

2020-02-16 Thread SilentGhost
Change by SilentGhost : -- nosy: +gvanrossum versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue39649] bdb.Bdb.format_stack_entry: checks for obsolete __args__

2020-02-16 Thread daniel hahler
New submission from daniel hahler : It does: ``` if '__args__' in frame.f_locals: args = frame.f_locals['__args__'] else: args = None if args: s += reprlib.repr(args) else: s += '()' ``` However that appears to be

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-16 Thread Ananthakrishnan
New submission from Ananthakrishnan : If we have to find the gcd of three or more numbers, now we should use gcd(a, gcd(b, gcd(c, gcd(d, e) which will create lot of problems. math.gcd should take "n" number of arguments,like: gcd(a,b,c,) gcd(4,6,8)//returns 2 gcd(2,5,8,6)

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-02-16 Thread hai shi
hai shi added the comment: Leave a note for myself: I check the remaining object roughly(though dump_refs function), most of remaining object is 'str', such as: '0x7f779cf0 [13] str'->'0x7f779cf0 [26] str' So far, I don't know which file and fileno create those object. MAYBE I need

[issue4080] unittest: display time used by each test case

2020-02-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I updated the PR for Python 3.9. I think it's ready to be merged. Can someone involved in unittest take a look at it? -- ___ Python tracker

[issue39647] Update doc of init_config.rst

2020-02-16 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17897 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18520 ___ Python tracker ___

[issue39647] Update doc of init_config.rst

2020-02-16 Thread hai shi
New submission from hai shi : Due to issue36465, the desc of `dump_refs` in init_config.rst should be udpated. -- assignee: docs@python components: Documentation messages: 362066 nosy: docs@python, shihai1991, vstinner priority: normal severity: normal status: open title: Update doc of

[issue39617] max_workers argument to concurrent.futures.ProcessPoolExecutor is not flexible enough

2020-02-16 Thread Kyle Stanley
Change by Kyle Stanley : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39617] max_workers argument to concurrent.futures.ProcessPoolExecutor is not flexible enough

2020-02-16 Thread Kyle Stanley
Kyle Stanley added the comment: So, essentially, are you looking for a way to dynamically adjust ProcessPoolExecutor's (PPE) max_workers, rather than just upon initialization? This seems like it would be a very reasonable enhancement to the Executor API. Specifically for PPE, it would

[issue39641] concatenation of Tuples

2020-02-16 Thread bruce blosser
bruce blosser added the comment: ok - well sorry, I am obviously in way over my head, and now very confused... I was just going by what was being said on a number of python web sites, including one where I am taking a class in intermediate python coding, and thought I was seeing a

[issue39641] concatenation of Tuples

2020-02-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: [Bruce] > but try this, and it will NOT work: > > FatThing= [(5, 4, "First Place"), >(6, 6, "Fifer Place"), >(2, 2, "Slowr Place")] > print(FatThing) #this works > > FFThing = FatThing + ('22', '32', '55') #this causes an error!

[issue39644] Add Binary module.

2020-02-16 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39644] Add Binary module.

2020-02-16 Thread Mark Dickinson
Mark Dickinson added the comment: I'm going to close this, for two reasons: - It's not well-formed enough for a b.p.o. issue: there are too many details to be worked out and questions to be answered. As it stands, there's nothing actionable here. - Adding a new module to the Python std.

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: I think this is not present in python. This module should contain operations that can be performed on binary numbers. In the below examples a and b are binary numbers. binary.add(a,b) binary.sub(a,b) binary.mul(a,b) binary.div(a,b) binary.ones_complement(a)

[issue39644] Add Binary module.

2020-02-16 Thread SilentGhost
SilentGhost added the comment: >>> 0b1110 + 0b1010 24 >>> bin(0b1110 + 0b1010) '0b11000' Can you explain how this is not enough? -- ___ Python tracker ___

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: I meant a module for "binary number". It can do operations on binary number. -- ___ Python tracker ___

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Change by Ananthakrishnan : -- components: +Library (Lib) -C API ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39644] Add Binary module.

2020-02-16 Thread SilentGhost
SilentGhost added the comment: Ananthakrishnan, you've marked this issue as belonging to C API component, why? Besides, all this functionality is already present in python, what is it you're actually interested in? What is not covered by the independent packages on pypi? -- nosy:

[issue39641] concatenation of Tuples

2020-02-16 Thread SilentGhost
SilentGhost added the comment: Bruce, error message says exactly why it doesn't work: you're trying to add a tuple to a list, and that doesn't work. There isn't a "third" string created anywhere, you're confused about the types of the objects. Also, please, do not re-open closed issues.

[issue39633] venv does not include python. symlink by default

2020-02-16 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue39641] concatenation of Tuples

2020-02-16 Thread bruce blosser
bruce blosser added the comment: read the advice... Yes this does work: ("Hello", 1, None) + (23, 19.5, "Goodbye") ('Hello', 1, None, 23, 19.5, 'Goodbye') because you are not creating a 3rd string! but try this, and it will NOT work: FatThing= [(5, 4, "First Place"), (6, 6,

[issue39646] compile warning in unicodeobject.c

2020-02-16 Thread hai shi
hai shi added the comment: I don't find a good idea so I just add init operation :( -- ___ Python tracker ___ ___ Python-bugs-list

[issue39646] compile warning in unicodeobject.c

2020-02-16 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17896 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18519 ___ Python tracker ___

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: It operates only on 0 and 1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: It is "addition". I meant binary addition: 1110+1010=11000. -1000=0111 -- ___ Python tracker ___

[issue39625] Traceback needs more details

2020-02-16 Thread Ammar Askar
Ammar Askar added the comment: I don't know how common this situation is, the fact that all constructors go to __init__ here makes it a little tough in this case but normally you'd be able to tell by the function name. One potential solution might be to show which file the error came from

[issue39644] Add Binary module.

2020-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is binary addition, how it differs from just addition, what type of objects it operates? -- ___ Python tracker ___