[issue8632] subprocess doesn't handle Windows built-in commands as os.system() does

2010-05-05 Thread Alex Quinn
New submission from Alex Quinn : The documentation says subprocess replaces os.system(). However, subprocess does not handle built-in Windows shell commands as os.system() does. Works: - os.system("dir /w") - subprocess.Popen("cmd /c dir /w", stdout=subprocess.PIPE).commun

[issue8632] subprocess doesn't handle Windows built-in commands as os.system() does

2010-05-05 Thread Alex Quinn
Alex Quinn added the comment: Sorry. My mistake. Thanks for clarifying. -- ___ Python tracker <http://bugs.python.org/issue8632> ___ ___ Python-bugs-list mailin

[issue2754] Mac version of IDLE doesn't scroll as expected

2008-05-04 Thread Alex Robinson
New submission from Alex Robinson <[EMAIL PROTECTED]>: On a Mac running 10.5.2 in IDLE 1.2.1, the scroll bars don't move as expected & track pad/mouse scrolling is not enabled. I believe this is also the case on Tiger (10.4) When using the scroll bar to scroll up through code,

[issue4135] help("modules ftp") fails due to test modules

2008-10-16 Thread Alex Coventry
New submission from Alex Coventry <[EMAIL PROTECTED]>: The modules test.bad_coding and test.badsyntax_pep3120.py cause the command "help('modules ftp')" to fail with the errors LookupError: unknown encoding: uft-8 and SyntaxError: Non-UTF-8 code starting with '

[issue4135] help("modules ftp") fails due to test modules

2008-10-16 Thread Alex Coventry
Changes by Alex Coventry <[EMAIL PROTECTED]>: -- versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4135> ___ __

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2008-10-18 Thread Alex Willmer
Changes by Alex Willmer <[EMAIL PROTECTED]>: -- nosy: +moreati ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2636> ___ ___ Python

[issue4357] frozen?set operations create incorrectly initialized instances of subclasses

2008-11-19 Thread Alex Samuel
New submission from Alex Samuel <[EMAIL PROTECTED]>: Methods of set and frozenset that return new set or frozenset instances return instances of subclasses, but these instances are not initialized correctly. In the attached code sample, z is an instance of MySet but MySet.__new__ and

[issue4357] frozen?set operations create incorrectly initialized instances of subclasses

2008-11-19 Thread Alex Samuel
Alex Samuel <[EMAIL PROTECTED]> added the comment: In the sample code I attached, z is an instance of MySet under 3.0rc2. Is that expected? Thanks, Alex Mark Dickinson wrote: > Mark Dickinson <[EMAIL PROTECTED]> added the comment: > > The bug is that the set operation

[issue4610] Unicode case mappings are incorrect

2008-12-09 Thread Alex Stapleton
New submission from Alex Stapleton <[EMAIL PROTECTED]>: Following a discussion on reddit it seems that the unicode case conversion algorithms are not being followed. $ python3.0 Python 3.0rc1 (r30rc1:66499, Oct 10 2008, 02:33:36) [GCC 4.0.1 (Apple Inc. build 5488)] on darwin Type

[issue4610] Unicode case mappings are incorrect

2008-12-10 Thread Alex Stapleton
Alex Stapleton <[EMAIL PROTECTED]> added the comment: I agree with loewis that ICU is probably the best way to get this functionality into Python. lemburg, yes it seems like extending those methods would be required at the very least. We would probably also need to support ICUs collat

[issue4679] Fork + shelve causes shelve corruption and backtrace

2008-12-16 Thread Alex Roper
New submission from Alex Roper : Hi, I wrote a simple script (attached) to do some preprocessing of MediaWiki XML dumps. When it has a 8 MB chunk ready to dump to disk, it forks, and the child writes it out and (will) compress it, then exit. The main thread continues as before. Note that the

[issue4610] Unicode case mappings are incorrect

2008-12-20 Thread Alex Stapleton
Alex Stapleton added the comment: I am trying to get a PEP together for this. Does anyone have any thoughts on how to handle comparison between unicode strings in a locale aware situation? Should __lt__ and __gt__ be specified as ignoring locale? In which case do we need to add a new method

[issue4765] IDLE fails to "Delete Custom Key Set" properly

2008-12-28 Thread Alex Fainshtein
New submission from Alex Fainshtein : How to reproduce: 1. Start IDLE -> "Python Shell" window opens. 2. Open Options|"Configure Idle...". 3. In "idle" dialog select "Keys" tab. 4. Click "Set as New Custom Key Set" button. 5 In "New

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-10 Thread Alex Robinson
New submission from Alex Robinson : Corrected code in writeframesraw(): self._datawritten = self._datawritten + len(data) * self._sampwidth else: self._file.write(data) self._datawritten = self._datawritten + len(data) * self._sampwidth Note that

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Alex Robinson
Alex Robinson added the comment: Oh golly. I was confused. For some reason I was thinking "writesamples()" when using "writeframes()". So the current code reads ok. Which makes this "bug" a request for writesamples() and readsamples() to be added to wave.py. Th

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Alex Robinson
Alex Robinson added the comment: Oh gob. I left a debug artifact in that code. wavs= [ wavs, wv ] needs to be without the 'wv'. ___ Python tracker <http://bugs.python.

[issue4913] wave.py: add writesamples() and readsamples()

2009-01-12 Thread Alex Robinson
Alex Robinson added the comment: I might be able to do doc/test/patch in a month or two, but know zero.zero about the process so would expect it to take far more than a few hours when I do have time. ___ Python tracker <http://bugs.python.org/issue4

[issue4913] wave.py: add writesamples() and readsamples()

2009-01-12 Thread Alex Robinson
Alex Robinson added the comment: Polo: "I could do it, but I'm in disagreement with big part of your patch." Why surely you can't mean the bug. :) (The test program has it fixed.) What is the disagreement? Apparently this bug system allows file attachments, so I will u

[issue4913] wave.py: add writesamples() and readsamples()

2009-01-12 Thread Alex Robinson
Alex Robinson added the comment: "8 bit samples stored as unsigned bytes"? 8 bit samples are 0..255 in the file. But to work with them, you'll want them -128..127. The code assumes DC==0 sample values for simplicity. "if len(wavs) not in [ 1, 2, 4 ]" ? That way if you&

[issue4913] wave.py: add writesamples() and readsamples()

2009-01-12 Thread Alex Robinson
Alex Robinson added the comment: "DC (0 hz) assumption"? wave.py makes the assumption that what the user wants is whatever happens to be in the file, however arbitrary. (That 8 bit samples are unsigned bytes is probably an artifact of early ADC logic. Typically you got an absolute, n

[issue4913] wave.py: add writesamples() and readsamples()

2009-02-08 Thread Alex Robinson
Alex Robinson added the comment: I'll upload the latest monkey-patch file, wave_futz.py, and test_wave.py, which has a gob of tests added to it. I found a 64-bit bug in the wave.py formats for 32-bit sample wave files. The pcm files read in to CoolEdit ok, including the 32-bit sample

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-03-07 Thread Alex Waygood
Alex Waygood added the comment: Thanks so much to Ken, Łukasz, Jelle, Guido, and everybody else who helped review these PRs! -- ___ Python tracker <https://bugs.python.org/issue45

[issue46961] Caching/interning of small ints sometimes fails

2022-03-08 Thread Alex Waygood
Alex Waygood added the comment: I think this might be a duplicate of Issue46361? -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue46

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-09 Thread Alex Waygood
Alex Waygood added the comment: +1 for the more minimal changeset proposed in PR 31781. I've never felt a need for NamedTuple multiple inheritance other than with Generic, so wouldn't be opposed to restricting it only to Generic. --

[issue46967] Type union for except

2022-03-09 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, Jelle Zijlstra, gvanrossum, iritkatriel ___ Python tracker <https://bugs.python.org/issue46967> ___ ___ Python-bug

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-09 Thread Alex Waygood
Alex Waygood added the comment: I agree with Jelle — a valid protocol cannot inherit from a concrete type, and the whole point of NamedTuple is that it creates a tuple subclass (and tuple is obviously a concrete type). -- ___ Python tracker

[issue46771] Add some form of cancel scopes

2022-03-10 Thread Alex Grönholm
Alex Grönholm added the comment: Yeah, I'm still interested. I'll create a new BPO when I have something. -- ___ Python tracker <https://bugs.python.o

[issue46677] TypedDict docs are incomplete

2022-03-10 Thread Alex Waygood
Change by Alex Waygood : -- stage: patch review -> backport needed ___ Python tracker <https://bugs.python.org/issue46677> ___ ___ Python-bugs-list mai

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-03-10 Thread Alex Waygood
Change by Alex Waygood : -- stage: patch review -> backport needed ___ Python tracker <https://bugs.python.org/issue46581> ___ ___ Python-bugs-list mai

[issue43224] Add support for PEP 646

2022-03-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue43224> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

2022-03-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +Jelle Zijlstra ___ Python tracker <https://bugs.python.org/issue46581> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46198] Duplicate and unused code in tests

2022-03-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood nosy_count: 3.0 -> 4.0 pull_requests: +29902 pull_request: https://github.com/python/cpython/pull/31801 ___ Python tracker <https://bugs.python.org/issu

[issue46198] Duplicate and unused code in tests

2022-03-10 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46982] Error in the experts list

2022-03-11 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +Jelle Zijlstra ___ Python tracker <https://bugs.python.org/issue46982> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46961] Caching/interning of small ints sometimes fails

2022-03-13 Thread Alex Waygood
Change by Alex Waygood : -- nosy: -AlexWaygood ___ Python tracker <https://bugs.python.org/issue46961> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47006] PEP 646: Decide on substitution behavior

2022-03-13 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker <https://bugs.python.org/issue47006> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue47016> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue47015] Update tests from asyncore to asyncio

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +asvetlov, giampaolo.rodola, josiahcarlson, stutzbach, yselivanov ___ Python tracker <https://bugs.python.org/issue47

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-16 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: +30031 pull_request: https://github.com/python/cpython/pull/31941 ___ Python tracker <https://bugs.python.org/issue46

[issue47050] Cannot install Python 3.10.3 on Windows

2022-03-17 Thread Alex Waygood
New submission from Alex Waygood : I have tried several times now to upgrade to Python 3.10.3 using the 64-bit installer for Windows at https://www.python.org/downloads/release/python-3103/. Each time, I encounter an error message stating that "The feature you are trying to use is

[issue47050] Cannot install Python 3.10.3 on Windows

2022-03-17 Thread Alex Waygood
Alex Waygood added the comment: Attaching the log file from the installation. -- Added file: https://bugs.python.org/file50687/installer_log_file.txt ___ Python tracker <https://bugs.python.org/issue47

[issue47050] Cannot install Python 3.10.3 on Windows

2022-03-17 Thread Alex Waygood
Alex Waygood added the comment: > Looks like you may have "cleaned up" your package cache at some point, which > means you can't uninstall the old version anymore. Not knowingly! > Try getting the 3.10.2 installer and running it directly.

[issue47050] Cannot install Python 3.10.3 on Windows

2022-03-17 Thread Alex Waygood
Alex Waygood added the comment: Hmm, well if I try running the 3.10.2 installer, it now presents me with an error message saying that "a newer version of Python 3.10 is already installed". -- ___ Python tracker <https://bugs.python.o

[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-18 Thread Alex Waygood
Change by Alex Waygood : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: patch review -> backport needed versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/i

[issue31552] IDLE: Convert browsers to use ttk.Treeview

2022-03-19 Thread Alex Waygood
Change by Alex Waygood : -- title: IDLE: Convert browswers to use ttk.Treeview -> IDLE: Convert browsers to use ttk.Treeview ___ Python tracker <https://bugs.python.org/issu

[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-19 Thread Alex Waygood
Change by Alex Waygood : -- versions: +Python 3.11 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue433030> ___ ___ Python-bugs-list mailin

[issue32927] Add typeshed documentation for unittest.TestCase._feedErrorsToResult and ._outcome

2022-03-20 Thread Alex Waygood
Alex Waygood added the comment: Typeshed maintainer here: I agree. Feel free to open an issue over at https://github.com/python/typeshed if this is still a problem! -- nosy: +AlexWaygood resolution: -> third party stage: -> resolved status: pending -&g

[issue47067] Add vectorcall for generica alias object

2022-03-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +JelleZijlstra, gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue47067> ___ ___ Python-bugs-list mailin

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2022-03-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, JelleZijlstra ___ Python tracker <https://bugs.python.org/issue43463> ___ ___ Python-bugs-list mailing list Unsub

[issue47073] Solution for recursion error when comparing dataclass objects

2022-03-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue47073> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-23 Thread Alex Waygood
Alex Waygood added the comment: Thanks Guido for your insight, and Jelle/Łukasz for the reviews and backports! I'm on holiday right now, but when I'm back, I'll take a look at maybe proposing some minor revisions to PEP 484 as well, as

[issue47105] [Doc] grp cites pwd.h instead of grp.h

2022-03-23 Thread Alex Hedges
New submission from Alex Hedges : The documentation page for the grp module says to "see ", even though the source code (https://github.com/python/cpython/blob/v3.11.0a6/Modules/grpmodule.c) uses grp.h. I plan to release a PR for this shortly. -- assignee: docs@python

[issue47105] [Doc] grp cites pwd.h instead of grp.h

2022-03-23 Thread Alex Hedges
Change by Alex Hedges : -- keywords: +patch pull_requests: +30176 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32091 ___ Python tracker <https://bugs.python.org/issu

[issue47166] Dataclass transform should ignore TypeAlias variables

2022-03-31 Thread Alex Waygood
Alex Waygood added the comment: I think implementing this would add complexity to the code in dataclasses.py (though Eric's the expert!). For your use case, is it essential that the type alias declaration be inside the class scope? Would it be possible for you to simply have the

[issue47213] Incorrect location of caret in SyntaxError

2022-04-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +pablogsal title: arrow at wrong place -> Incorrect location of caret in SyntaxError type: enhancement -> behavior ___ Python tracker <https://bugs.python.org/i

[issue47097] Document PEP 646

2022-04-04 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue47097] Document PEP 646

2022-04-04 Thread Alex Waygood
Alex Waygood added the comment: (Feel free to reopen this issue if there's more to be done, Matthew!) -- ___ Python tracker <https://bugs.python.org/is

[issue47050] Cannot install Python 3.10.3 on Windows

2022-04-05 Thread Alex Waygood
Alex Waygood added the comment: (My solution for now has been to install python on my other laptop. Thanks for the help Steve!) -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46134] Confusing error message for AttributeError with dataclasses

2022-04-05 Thread Alex Waygood
Alex Waygood added the comment: Closing due to lack of response from OP. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue47237] Inheritance from Protocol with property in dataclass makes them non-instantiatable

2022-04-06 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, JelleZijlstra, eric.smith, gvanrossum, kj ___ Python tracker <https://bugs.python.org/issue47237> ___ ___ Pytho

[issue47250] New object.__getstate__() method introduced refleaks

2022-04-07 Thread Alex Waygood
Change by Alex Waygood : -- title: Add object.__getstate__() introduced refleaks -> New object.__getstate__() method introduced refleaks ___ Python tracker <https://bugs.python.org/issu

[issue47234] PEP-484 "numeric tower" approach makes it hard/impossible to specify contracts in documentation

2022-04-08 Thread Alex Waygood
Alex Waygood added the comment: Please try to make your messages more concise. -- ___ Python tracker <https://bugs.python.org/issue47234> ___ ___ Python-bug

[issue13743] xml.dom.minidom.Document class is not documented

2019-09-24 Thread Alex Itkes
Alex Itkes added the comment: Although the Document, Element, etc. classes are well documented in online docs, it is sometimes easier to use pydoc to view the documentation. I think documentation strings should be included to these classes. Just created a PR adding some docstrings

[issue13743] xml.dom.minidom.Document class is not documented

2019-09-24 Thread Alex Itkes
Change by Alex Itkes : -- pull_requests: -15938 ___ Python tracker <https://bugs.python.org/issue13743> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13743] xml.dom.minidom.Document class is not documented

2019-09-24 Thread Alex Itkes
Change by Alex Itkes : -- pull_requests: +15939 pull_request: https://github.com/python/cpython/pull/16355 ___ Python tracker <https://bugs.python.org/issue13

[issue38302] __rpow__ not reached when __ipow__ returns NotImplemented

2019-09-28 Thread Alex Shkop
Change by Alex Shkop : -- keywords: +patch pull_requests: +16041 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16459 ___ Python tracker <https://bugs.python.org/issu

[issue38472] GCC detection in setup.py is broken

2019-10-14 Thread Alex Grund
New submission from Alex Grund : `setup.py` runs ` -E -v - /dev/null` to figure out include and library paths from the compiler in the function `add_gcc_paths`. However sample output from the compiler is: Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=g++ Ziel: x86_64-pc-linux

[issue38495] print built-in function docs bug

2019-10-16 Thread Alex Mashianov
New submission from Alex Mashianov : Python docs says print() function default sep='': http://joxi.ru/EA44JnfonNwLAb.png While in reality sep=' ': http://joxi.ru/n2YXyRsbw6oYm6.png Probably it's a bug with space not being escaped in html to prevent trimming. ---

[issue38526] zipfile.Path has the wrong method name

2019-10-19 Thread Alex Walters
New submission from Alex Walters : https://docs.python.org/3.8/library/zipfile.html#zipfile.Path.listdir The docs for zipfile.Path list a method named 'listdir', the closest approximation to the functionality described in the actual code is a method named 'iterdir' -

[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-20 Thread Alex Hall
New submission from Alex Hall : In a decorator such as `@a()`, the ast.Call node has a col_offset starting from the @ symbol. This doesn't happen for decorators without arguments (e.g. `@a`) or with some arguments (e.g. `@a(x)`). -- components: Interpreter Core

[issue38535] Incorrect col_offset for decorators with zero arguments (empty parentheses)

2019-10-20 Thread Alex Hall
Alex Hall added the comment: I assume this also happens on 3.9, it's just a bit hard for me to test that now. -- ___ Python tracker <https://bugs.python.org/is

[issue38472] GCC detection in setup.py is broken

2019-10-21 Thread Alex Grund
Alex Grund added the comment: This seems to be a locale issue. So a solution would be to use `LC_ALL=C` before invoking the compiler (or the cross-platform equivalent) -- ___ Python tracker <https://bugs.python.org/issue38

[issue38549] Compiler build paths and related environment variables are ignored for native builds

2019-10-21 Thread Alex Grund
New submission from Alex Grund : In e.g. Linux users can set CPATH and LIBRARY_PATH to a list of paths considered by e.g. GCC, Clang, ... as if they were passed to `-I`, `-L` These paths show up in the verbose compiler output too. However in native builds (not cross-compiling) these

[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Alex Hall
Change by Alex Hall : -- nosy: +Mark.Shannon ___ Python tracker <https://bugs.python.org/issue39316> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Alex Hall
Alex Hall added the comment: I just came across https://www.python.org/dev/peps/pep-0626/, seems like this would need to be fixed to satisfy the PEP, but on the latest CPython it's not: ``` ➜ ~ python3.10 ~/Downloads/trace_skipping_lines_bug.py 14 slug = "doing_the_thing" 1

[issue11354] argparse: nargs could accept range of options count

2021-03-20 Thread Alex Kanitz
Alex Kanitz added the comment: Given that people were asking for real-world use cases, here's one: high-throughput sequencing, e.g., in RNA-Seq (https://en.wikipedia.org/wiki/RNA-Seq), typically yields either one or two output files, depending on the type of the sequencing library. A

[issue17681] Work with an extra field of gzip and zip files

2021-04-22 Thread Alex Mijalis
Alex Mijalis added the comment: Agreed, it would be really nice to integrate these changes. These special fields are found in gzipped .bam files, a common DNA sequence alignment format used in the bioinformatics community. It would be nice to be able to read and write them with the standard

[issue32958] socket module calls with long host names can fail with idna codec error

2021-04-26 Thread Alex Vandiver
Alex Vandiver added the comment: It seems reasonable to fail on hostnames that are too long -- but it feels like the weirdness is that it is categorized as a UnicodeError, and not as, say, a ValueError. Would a re-categorization as ValueError seem like a reasonable adjustment here

[issue43121] Incorrect SyntaxError message for missing comma (3.10.a5)

2021-05-04 Thread Alex Hall
Alex Hall added the comment: Pablo, check out https://github.com/aroberge/friendly/discussions/197, particularly the second bullet point which has a dataset of syntax errors. -- nosy: +alexmojaki ___ Python tracker <https://bugs.python.

[issue31904] Python should support VxWorks RTOS

2021-05-08 Thread Alex Willmer
Change by Alex Willmer : -- nosy: -Alex.Willmer ___ Python tracker <https://bugs.python.org/issue31904> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
New submission from Alex DeLorenzo : According to the documentation, asyncio.as_completed() takes a positional argument, aws, as an iterable of awaitables[1]: asyncio.as_completed(aws, *, loop=None, timeout=None) Run awaitable objects in the aws iterable concurrently. As seen in

[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
Change by Alex DeLorenzo : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue44176> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
Change by Alex DeLorenzo : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue44176> ___ ___ Python-bugs-list mailing list Unsub

[issue44393] segfault with sys.setrecursionlimit

2021-06-11 Thread Alex Hall
New submission from Alex Hall : Found on: Python 3.9.5 GCC 11.1 on Linux (x86_64) Reproduced on: Python 3.9.5 Clang 9.0.8 Linux (arm) When setting the recursion limit to a high enough amount, trying to reach that recursion limit ends in a segmentation fault (stack overflow?) code: ```py

[issue44509] Build in type alias for paths

2021-06-25 Thread alex rakowski
New submission from alex rakowski : Hello, I've noticed that when type hinting paths, it often becomes a bit verbose: from typing import Union import pathlib custom_path = Union[str, pathlib.Path] def foobar(x:custom_path): ... Writing functions which handle paths are pretty ro

[issue44509] Build in type alias for paths

2021-06-25 Thread alex rakowski
alex rakowski added the comment: I just noticed this issue was raised and dismissed in PEP 519 -- Adding a file system path protocol. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue44576] AttributeError: incorrect line identified in Python 3.10

2021-07-07 Thread Alex Hall
Alex Hall added the comment: I believe this is the outcome of https://bugs.python.org/issue39316 which I filed, so I'm pulling in . Naturally I think the new behaviour is not a bug but a feature. I think it's more important for the traceback to show the attribute access (`two`

[issue44576] AttributeError: incorrect line identified in Python 3.10

2021-07-07 Thread Alex Hall
Alex Hall added the comment: (meant to say "so I'm pulling in @Mark.Shannon) -- ___ Python tracker <https://bugs.python.org/issue44576> ___ ___

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
New submission from Alex Waygood : In a Python dictionary, `.popitem()` returns (key, value) pairs from the dictionary in a LIFO order. `collections.OrderedDict` and `collections.Counter` both do the same. However, a class inheriting from `collections.abc.MutableMapping` (which includes, in

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger, stutzbach ___ Python tracker <https://bugs.python.org/issue44750> ___ ___ Python-bugs-list mailing list Unsub

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Raymond -- that makes sense, and seems very fair. I still think a note somewhere in the documentation stating this might be helpful -- as a user, it wasn't what I was expecting. I would argue this is especially true for UserDict, a class whic

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-13 Thread Alex Waygood
Alex Waygood added the comment: +1 to this suggestion. I had a use case for this the other day. It currently feels like something of a discrepancy between ABCs and `typing.Property`, which can be seen as analogous in some ways to "an ABC for the static type-checker". `typin

[issue44904] Erroneous behaviour for abstract class properties

2021-08-15 Thread Alex Waygood
Alex Waygood added the comment: This same bug (where classmethod properties are accidentally called by other parts of Python) is also present for non-abstract class properties, and has the side effect of causing doctest.py to crash with a fairly incomprehensible `AttributeError`: Script

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-16 Thread Alex Waygood
Alex Waygood added the comment: Tomasz -- as discussed in the original BPO issue for `abstractmethod` implementations (https://bugs.python.org/issue1706989), this works as a workaround: ``` >>> from abc import ABCMeta >>> class AbstractAttribute: ... __isabstr

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-16 Thread Alex Waygood
Alex Waygood added the comment: ^And, that only works for class attributes, not instance attributes. -- ___ Python tracker <https://bugs.python.org/issue44

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
New submission from Alex Zaslavskis : If we will try to split bytes we will got quite strange error in console. Traceback (most recent call last): File "C:/Users/ProAdmin/Desktop/bug_in_python.py", line 6, in byte_message.split(",") TypeError: a bytes-like object i

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Change by Alex Zaslavskis : -- type: compile error -> behavior ___ Python tracker <https://bugs.python.org/issue45087> ___ ___ Python-bugs-list mailing list Un

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Change by Alex Zaslavskis : Added file: https://bugs.python.org/file50258/bug_in_python.py ___ Python tracker <https://bugs.python.org/issue45087> ___ ___ Python-bug

<    1   2   3   4   5   6   7   8   9   10   >