[issue8657] urlparse.urlunsplit should be smarter about +

2010-05-08 Thread Dan Buch
Dan Buch added the comment: Is simply adding 'git+' entries comprehensive enough? I'd have said the same thing about the addition of the 'svn+' entries, fwiw :) Is adding hardcoded entries like this the preferred way to extend urlparse?

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker <http://bugs.python.org/issue8666> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8668] add a 'develop' command

2010-05-08 Thread Dan Buch
New submission from Dan Buch : make a 'develop' command in distutils2 a la setuptools (unless, of course, this has already been unilaterally refused via distutils-sig or other communication) -- assignee: tarek components: Distutils2 messages: 105359 nosy: meatballhat, tare

[issue8669] lack of bdist_rpm module raises error on 'setup.py --help-commands'

2010-05-08 Thread Dan Buch
New submission from Dan Buch : Running 'python setup.py --help-commands' in the distutils2 package raises an error because there is no 'bdist_rpm' module. Should references to 'bdist_rpm' be removed, or should the 'bdist_rpm' module be (re?)introduced

[issue8669] lack of bdist_rpm module raises error on 'setup.py --help-commands'

2010-05-08 Thread Dan Buch
Changes by Dan Buch : Added file: http://bugs.python.org/file17269/distutils2-bdist-rpm-error.txt ___ Python tracker <http://bugs.python.org/issue8669> ___ ___ Python-bug

[issue8324] add a distutils test command

2010-05-08 Thread Dan Buch
Dan Buch added the comment: For what it's worth, I'm trying to adapt the setuptools command of the same name in a feature branch called "mbh/adding-test-command" --> http://bitbucket.org/meatballhat/distutils2/ Not sure how the roundup/ split is usually handled, s

[issue8324] add a distutils test command

2010-05-09 Thread Dan Buch
Dan Buch added the comment: Should I assume that unittest2 is an installation requirement of distutils2, or is it preferable to try using unittest2 and falling back to a custom TestLoader? Sorry if I'm reading too much into this :-/ -- ___ P

[issue8324] add a distutils test command

2010-05-09 Thread Dan Buch
Dan Buch added the comment: @merwok I know ;-) ... should I assume that it's an installation requirement a la `install_requires=['unittest2']`, or do:: try: load_tests_with_unittest2() except ImportError: load_tests_with_cus

[issue8324] add a distutils test command

2010-05-09 Thread Dan Buch
Dan Buch added the comment: @mfoord thank you for the clarification! :) -- ___ Python tracker <http://bugs.python.org/issue8324> ___ ___ Python-bugs-list mailin

[issue8679] write a distutils to distutils2 converter

2010-05-11 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker <http://bugs.python.org/issue8679> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8680] Add a sandbox in Distutils2

2010-05-11 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker <http://bugs.python.org/issue8680> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-05-11 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker <http://bugs.python.org/issue8688> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8591] update mkpkg to latest coding standards

2010-05-12 Thread Dan Buch
Dan Buch added the comment: I've started work on cleanup of ``mkpkg.py`` per instruction from jafo, am pushing to a branch 'mbh/mkpkg-cleanup' of my distutils2 fork: http://bitbucket.org/meatballhat/distutils2/changeset/be40174c59e2 I'll attach pat

[issue8705] shutil.rmtree with empty filepath

2010-05-13 Thread Dan Koch
New submission from Dan Koch : The following sequence raises an exception, but nonetheless removes all files from the Desktop under Windows Vista. import os, shutil, user desktop_dir = os.path.join(user.home, 'Desktop') os.chdir(desktop_dir) shutil.rmtree('') This

[issue8698] PEP 391: Adding documentation of logging.config.dictConfig

2010-05-13 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker <http://bugs.python.org/issue8698> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2142] difflib.unified_diff(...) produces invalid patches

2010-05-13 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker <http://bugs.python.org/issue2142> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8704] cgitb sends a bogus HTTP header if the app crashes before finishing headers

2010-05-13 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker <http://bugs.python.org/issue8704> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8706] accept keyword arguments on all base type methods and builtins

2010-05-13 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker <http://bugs.python.org/issue8706> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4138] IDLE crashes in my Windows Vista

2008-10-18 Thread Dan Rippon
Dan Rippon <[EMAIL PROTECTED]> added the comment: It's been fixed. http://svn.python.org/view?rev=66518&view=rev -- nosy: +rippond ___ Python tracker <[EMAIL PROTECTED]> <http://b

[issue2980] Pickle stream for unicode object may contain non-ASCII characters.

2008-10-21 Thread Dan Dibagh
Dan Dibagh <[EMAIL PROTECTED]> added the comment: Your reasoning shows a lack of understanding how Python is actually used from a programmers point of view. Why do you think that "noticing" a problem is the same thing as entering as a python bug report? In practice there a

[issue2980] Pickle stream for unicode object may contain non-ASCII characters.

2008-10-21 Thread Dan Dibagh
Dan Dibagh <[EMAIL PROTECTED]> added the comment: I am well aware why my example produces an error from a technical standpoint. What I'm getting at is the decision to implement PyUnicode_EncodeRawUnicodeEscape the way it is. Probably there is nothing wrong with it, but how am I suppo

[issue2980] Pickle stream for unicode object may contain non-ASCII characters.

2008-10-24 Thread Dan Dibagh
Dan Dibagh <[EMAIL PROTECTED]> added the comment: > Which PEP specifically? PEP 263 only mentions the unicode-escape > encoding in its problem statement, i.e. as a pre-existing thing. > It doesn't specify it, nor does it give a rationale for why it behaves > the way it doe

[issue3774] tkinter Menu.delete bug

2008-11-03 Thread Dan OD
Dan OD <[EMAIL PROTECTED]> added the comment: Sorry to drag this up again, but if no-one has any complaints it would be a huge help if gpolo's patch could be checked in. Thanks ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3023] Problem with invalidly-encoded command-line arguments (Unix)

2008-12-30 Thread Dan Dever
Dan Dever added the comment: >> What if someone puts unconvertible strings in the password database? > > Which database? It sounds like a different issue. It's yet another special case of the more general issue, which is that Unix strings are strings of bytes that may or m

[issue38446] Ambiguous signature for builtins.__build_class__

2019-10-11 Thread Dan Snider
New submission from Dan Snider : The function has the following signature documented: __build_class__(func, name, *bases, metaclass=None, **kwds) This implies that `func` and `name` are not positional only parameters when in fact, they are. Another problem with that signature is that

[issue38579] 'u' formatted arrays mostly prevent appends of 4 byte characters

2019-10-24 Thread Dan Snider
New submission from Dan Snider : Unicode characters with code points above u+ can only be added to the end of an array, and only from a call to the "fromunicode" method. This is because "fromunicode" uses a different procedure to modify the array compared to __new__,

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Dan Snider
New submission from Dan Snider : When the following program has been input (into 32 bit 3.8.0 Python running on windows 10), all IDLE processes and windows will immediately and irrevocably hang the instant the open parentheses at the end of the statement "Object(" is rendered

[issue43545] Use LOAD_GLOBAL to set __module__ in class def

2021-03-18 Thread Dan Snider
New submission from Dan Snider : Other than obvious performance implications this has, usage of LOAD_NAME makes defining cls.__name__ from within metaclass.__prepare__ difficult. -- messages: 389026 nosy: bup priority: normal severity: normal status: open title: Use LOAD_GLOBAL to set

[issue43947] lambdas stored with assignment expressions are unoptimized

2021-04-26 Thread Dan Snider
New submission from Dan Snider : >>> import dis >>> @dis.dis ... def funcdef(k): return k in {None} ... 2 0 LOAD_FAST 0 (k) 2 LOAD_CONST

[issue39442] from __future__ import annotations makes dataclasses.Field.type a string, not type

2021-05-21 Thread Dan Cecile
Change by Dan Cecile : -- nosy: +dcecile ___ Python tracker <https://bugs.python.org/issue39442> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44611] CPython uses deprecated randomness API

2021-07-12 Thread Dan Stromberg
New submission from Dan Stromberg : CPython 3.9 uses CryptGenRandom(), which has been deprecated by Microsoft. I'm told the randomness produced by CryptGenRandom() is fine, but Microsoft has introduced a newer API for getting randomness. For these reasons, Python/bootstrap_hash.c shou

[issue44611] CPython uses deprecated randomness API

2021-07-12 Thread Dan Stromberg
Dan Stromberg added the comment: Yes, cng-portal. On Mon, Jul 12, 2021 at 3:24 PM Thomas Grainger wrote: > > Thomas Grainger added the comment: > > https://docs.microsoft.com/en-us/windows/win32/seccng/cng-portal ? > > --

[issue44664] builtins.chr and the 'c' format flag raise different errors

2021-07-17 Thread Dan Snider
New submission from Dan Snider : chr (or anything else which calls `PyUnicode_FromOrdinal`) raises ValueError if its argument falls outside the range of valid Unicode code points, while `PyUnicode_FromFormat` raises OverflowError. Shouldn't the latter raise ValueError as

[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2021-09-17 Thread Dan Snider
Dan Snider added the comment: On Android, if os.close_range closes the file descriptor of the scandir iterator, the interpreter immediately crashes eg: >>> import os >>> os.scandir() >>> os.closerange(3,) fdsan: attempted to close file descriptor 3, expec

[issue45913] Doctest Seg Fault with Python 3.10 on CI

2021-11-27 Thread Dan Yeaw
New submission from Dan Yeaw : When running pytest --doctest-modules, I am getting seg faults on the GitHub Actions CI when running doctests covering module docstrings. runner@fv-az177-300:~/work/gaphor/gaphor$ source .venv/bin/activate (.venv) runner@fv-az177-300:~/work/gaphor/gaphor$ xvfb

[issue45913] readline + GTK + Pytest Seg Fault with Python 3.7 and 3.10 on CI

2021-11-28 Thread Dan Yeaw
Dan Yeaw added the comment: I continued to look in to this and updated the title of the issue, I don't think this is caused by doctest. I also updated a minimum example here: https://github.com/danyeaw/plugin-console-test If using pytest and GTK, any module loaded that makes use of rea

[issue39281] The CO_NESTED flag is associated with a significant performance cost

2020-01-09 Thread Dan Snider
New submission from Dan Snider : The title was carefully worded as I have no idea how or why what is happening is happening, only that it has been like this since a least 3.6.0. That version in particular, by the way, is able to execute a call to a python function with 1 argument 25% faster

[issue39303] Refactor cmd module

2020-01-11 Thread Dan Arad
New submission from Dan Arad : I've stumbled across the `cmd` module, had some difficulties in reading it, and wanted to help in making it more readable. I'm new to contributing to open source, and thought this could be a good exercise for me, and that if I could contribute alo

[issue39451] enum.Enum reference count leaks

2020-01-24 Thread Dan Gass
New submission from Dan Gass : Given (1) instantiation of an enumeration class with an invalid value (2) a try/except around the instantiation where the exception is ignored Then: An unneeded reference to the bad value is lost (as well as other values that I suspect are local variables within

[issue39451] enum.Enum reference count leaks

2020-01-26 Thread Dan Gass
Dan Gass added the comment: Sorry for not thinking of trying this sooner. Running garbage collection, import gc; gc.collect(), releases the resources and restores the expected reference counts. >From my perspective, this is satisfactory and could justify closing this bug >report.

[issue39528] add "

2020-02-01 Thread Dan Snider
Change by Dan Snider : -- nosy: bup priority: normal severity: normal status: open title: add " ___ Python tracker <https://bugs.python.org/issue39528> ___ ___

[issue14149] argparse: Document how to use argument names that are not Python identifiers

2020-02-05 Thread Dan Arad
Dan Arad added the comment: Hi everyone! I thought to take this issue up by updating the documentation. Is this still relevant? If so I think the best place to add the documentation is in the "name or flags" section, where people will go looking first. I think to add both the me

[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2020-02-05 Thread Dan Arad
Change by Dan Arad : -- nosy: +Dan Arad ___ Python tracker <https://bugs.python.org/issue28859> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41562] StreamReaderProtocol inheritance

2020-11-28 Thread Dan Pascu
Dan Pascu added the comment: While it may not be affected at a functional level (at least not in a way I can see right now), it is confusing when reading that code. Isn't clarity and avoiding confusion a desired trait for core python code? What about all these recommendations from th

[issue43341] functools.partial missing __weakref__ descriptor?

2021-02-27 Thread Dan Snider
New submission from Dan Snider : The only way to lookup weak references to functools.partial objects is with weakref.getweakrefs. I don't know if it's normal for extension types that define tp_weaklistoffset to not add a __weakref__ descriptor, but I figured at the very least

[issue43436] bounded _lru_cache_wrapprer behaves as if typed=True when it wasn't

2021-03-08 Thread Dan Snider
New submission from Dan Snider : Isn't the point of setting typed=True to make it so that e.g. True doesn't register as a hit when there is already a cache entry for 1.0? Assuming that is the case, although this report specifically targets 3.8 I found no indication that what I beli

[issue41562] StreamReaderProtocol inheritance

2020-08-15 Thread Dan Pascu
New submission from Dan Pascu : I noticed that StreamReaderProtocol is defined like this: class StreamReaderProtocol(FlowControlMixin, protocols.Protocol): ... but FlowControlMixin already inherits protocols.Protocol: class FlowControlMixin(protocols.Protocol): ... It seems

[issue42402] Termios module documentation is extremely lacking

2020-11-18 Thread Dan Merillat
New submission from Dan Merillat : "The interpretation of the flags and the speeds as well as the indexing in the cc array must be done using the symbolic constants defined in the |termios| module." (termios links to itself) These constants are not listed in the documentati

[issue42402] Termios module documentation is extremely lacking

2020-11-19 Thread Dan Merillat
Dan Merillat added the comment: Correction, the example source in the documentation is correct as there's no symbolic names for the tty attributes array, only the cc field. -- ___ Python tracker <https://bugs.python.org/is

[issue13829] exception error

2012-01-19 Thread Dan kamp
New submission from Dan kamp : Get this error when trying to run Moviegrabber on a mac running v2.7. Crash report below. Process: Python [2444] Path: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/C ontents/MacOS/Python Identifier

[issue13829] exception error

2012-01-20 Thread Dan kamp
Dan kamp added the comment: On Jan 20, 2012, at 4:20 PM, Brett Cannon wrote: > Can you isolate the cause? There is way too much in that core dump to try to > debug the problem. Without knowing what code in this Moviegrabber app caused > the bug we can't do anything to debug the

[issue13829] exception error

2012-01-22 Thread Dan kamp
Dan kamp added the comment: I have received this from the macpython listserv it that helps. Would really like to find this issue. >From the traceback, it appears that there is a problem with Python's _scproxy module; that's an internal helper C module that provides an interfac

[issue1521950] shlex.split() does not tokenize like the shell

2012-02-23 Thread Dan Christian
Dan Christian added the comment: I haven't been following this much. Sorry. My day job isn't in this area any more (and I'm stuck using 2.4 :-(). Looking at the docs, I notice the "old" is different from what it used to be. Notably: 'e;' gets split

[issue14242] Make subprocess.Popen aware of $SHELL

2012-03-09 Thread Dan Colish
New submission from Dan Colish : The hardcoding of /bin/sh in the Popen _execute_child method can be a point of frustration when so many users are used to their chosen environment shell. The module can easily support the re-use of the defined $SHELL variable. I've attached a patch which

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-12 Thread Dan Boswell
New submission from Dan Boswell : The current SMTP RFC (5321) states that 'a client MUST issue HELO or EHLO before starting a mail transaction'. The SMTP server should issue '503 Bad sequence of commands' if a client sends MAIL, RCPT or DATA commands before it sends an

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-12 Thread Dan Boswell
Dan Boswell added the comment: Attached a diff containing a unit-test for this behavior. -- keywords: +patch Added file: http://bugs.python.org/file24802/failing_test.diff ___ Python tracker <http://bugs.python.org/issue14

[issue8739] Update to smtpd.py to RFC 5321

2012-03-12 Thread Dan Boswell
Dan Boswell added the comment: I built on Michele's patch during the pycon sprint, addressing some of the concerns rightly raised in previous comment: 1. Turn off the SIZE extension if client uses HELO (though limits are still used internally to limit message size for DoS protection)

[issue8739] Update to smtpd.py to RFC 5321

2012-03-13 Thread Dan Boswell
Changes by Dan Boswell : ___ Python tracker <http://bugs.python.org/issue8739> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/

[issue36956] Calling "functions" used to implement generators/comps easily cause crash

2019-05-18 Thread Dan Snider
New submission from Dan Snider : As far as I know, generators, set comprehensions, list comprehensions, and dict comprehensions, (along with their asynchronous variants) are implemented by first calling the GET_(A)ITER opcode and then building and calling a function that acepts the resulting

[issue35331] Incorrect __module__ attribute for _struct.Struct and perhaps a few others

2019-05-23 Thread Dan Snider
Change by Dan Snider : -- nosy: -bup ___ Python tracker <https://bugs.python.org/issue35331> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35331] Incorrect __module__ attribute for _struct.Struct and perhaps a few others

2019-05-23 Thread Dan Snider
Change by Dan Snider : -- nosy: +bup ___ Python tracker <https://bugs.python.org/issue35331> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-24 Thread Dan Rose
New submission from Dan Rose : Checking membership in `itertools.count()` will either return True in linear time or enter an infinite loop that cannot be terminated with Ctrl-c. This ``` import itertools 1 in itertools.count(0,2) ``` It is expected that the above code will use an efficient

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread Dan Rose
Dan Rose added the comment: Reopening. While my behavioral expectation may be wrong, the current behavior is inappropriate. It would make more sense for count to have a `__contains__` method which raises a TypeError. -- resolution: rejected -> status: closed ->

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread Dan Rose
Dan Rose added the comment: The general problem with infinite iterators is indeed a bigger issue and its resolution would probably resolve this issue too. With the examples you gave at least the user can ctrl-c to interrupt. Entering an infinite, *uninterruptible* loop is a consequence so

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-25 Thread Dan Rose
Dan Rose added the comment: Oops you are right. These enter uninterruptible loops too. They are exceptional situations and should do the expected thing - throw exceptions as well. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37063] Incorrect application of func.__defaults__ by inspect's signature APIs

2019-05-27 Thread Dan Snider
New submission from Dan Snider : The interpreter matches the values in func.__defaults__ with the calculated positional argument names "right-to-left", while inspect does does so "left-to-right". In every day usage, for "normal" functions, generated by the comp

[issue37222] urllib missing voidresp breaks CacheFTPHandler

2019-06-10 Thread Dan Hemberger
New submission from Dan Hemberger : When using the CacheFTPHandler in the most basic of contexts, a URLError will be thrown if you try to reuse any of the FTP instances stored in the handler. This makes CacheFTPHandler unusable for its intended purpose. Note that the default FTPHandler

[issue16270] urllib hangs when closing connection

2019-06-10 Thread Dan Hemberger
Change by Dan Hemberger : -- pull_requests: +13820 pull_request: https://github.com/python/cpython/pull/13951 ___ Python tracker <https://bugs.python.org/issue16

[issue37222] urllib missing voidresp breaks CacheFTPHandler

2019-06-10 Thread Dan Hemberger
Change by Dan Hemberger : -- keywords: +patch pull_requests: +13819 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13951 ___ Python tracker <https://bugs.python.org/issu

[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-06-21 Thread Dan Snider
New submission from Dan Snider : At present, the bytecode compiler can generate 512 different unicode characters, one for each integral from the range [0-511), 512 being the total number of syntactically valid permutations of 3 octal digits preceded by a backslash. However, this does not

[issue30702] pickle uses getattr(obj, '__reduce__') instead of getattr(type(obj), '__reduce__')

2017-06-19 Thread Dan Snider
New submission from Dan Snider: That is inconsistent with every other object.__dunder_method__ which still work even if the instance gets an attribute with the same name. -- components: Library (Lib) messages: 296337 nosy: assume_away priority: normal severity: normal status: open

[issue30954] backport unittest.TestCase.assertLogs to 2.7?

2017-07-17 Thread Dan Lipsitt
New submission from Dan Lipsitt: Would it be appropriate to backport unittest.TestCase.assertLogs to python 2.7? This would be a useful feature for me. -- components: Library (Lib) messages: 298558 nosy: Dan Lipsitt, ezio.melotti, michael.foord, rbcollins priority: normal severity

[issue31168] IDLE hangs with absurdly long __repr__s

2017-08-09 Thread Dan Snider
New submission from Dan Snider: Objects with a 500,000+ character __repr__ will cause the IDLE shell to hang and thus lose any progress on open windows. 200,000 (on a decent system) seems to be the tipping point where it can never recover. -- assignee: terry.reedy components: IDLE

[issue31194] Inconsistent __repr__s for _collections objects

2017-08-13 Thread Dan Snider
New submission from Dan Snider: With the new C implementation of collections.OrderedDict, its repr correctly uses the subclass's name, unlike deque and defaultdict. class Thing(_collections.OrderedDict): pass >>> Thing() Thing([]) class Thing(_collections.deque):

[issue31248] method wrapper type has invalid __name__/__qualname__ 'method-wrapper'

2017-08-21 Thread Dan Snider
New submission from Dan Snider: Out of the 202 builtin/extension types easily accessible in sys.modules, that is the only one with a dash in its name. -- components: Library (Lib) messages: 300632 nosy: bup priority: normal severity: normal status: open title: method wrapper type has

[issue22281] ProcessPoolExecutor/ThreadPoolExecutor should provide introspection APIs

2017-09-02 Thread Dan O'Reilly
Dan O'Reilly added the comment: Unfortunately, I don't really have time to continue working on this anymore (or any of the other proposed patches I had submitted around 2014). -- ___ Python tracker <http://bugs.python.o

[issue31477] IDLE 'strip trailing whitespace' changes the value of multiline strings

2017-09-14 Thread Dan Snider
New submission from Dan Snider: This function is supposed to be purely cosmetic. It just cleans up the junk whitespace commonly left behind when coding. But it could cause a problem when someone expects some string they defined to stay the same value, and then use that function and all of a

[issue31563] Change repr of dict_keys, dict_values, and dict_items to use curly braces

2017-09-23 Thread Dan Snider
New submission from Dan Snider: They behave like sets yet their repr looks like a list: dict_keys([0, 1, 3, 4]). It should be dict_keys({0, 1, 2, 3, 4}). Ditto for odict_keys/odict_values. Maybe this is a holdover from when the repr of sets was Set([0, 1, 2, ...])? The reason I bring this up

[issue35331] Incorrect __module__ attribute for _struct.Struct and perhaps a few others

2018-11-27 Thread Dan Snider
New submission from Dan Snider : _struct.Struct not defining a valid __module__ by prefixing its tp_name slot with "_struct" is inconsistent with every other extension type which is available in the corresponding module globals. >From the documentation of the `tp_name` slot:

[issue5672] Implement a way to change the python process name

2018-12-28 Thread Dan Stromberg
Dan Stromberg added the comment: Isn't this "python script doesn't show up in top correctly" issue a matter of "#!/usr/bin/env python3"? If you "#!/usr/bin/python3" (for example) instead, top seems happy. -- nosy: +strombrg __

[issue35196] IDLE text squeezer is too aggressive and is slow

2019-01-02 Thread Dan Snider
Dan Snider added the comment: Not 100% sure if it's appropriate to post this here... so sorry if not. So anyway, the _MAX_COLS and _MAX_LINE constants used for `get_argspec` seem like they were intended to limit the generated text tips to at most 5 rows, 85 characters wide, which

[issue35714] Document that the null character '\0' terminates a struct format spec

2019-01-10 Thread Dan Snider
New submission from Dan Snider : ie.: >>> from struct import calcsize >>> calcsize('\144\u0064\000xf\U0031000\60d\121\U0051') 16 I'm sure some people think it's obvious or even expect the null character to signal EOF but it probably

[issue35937] Add instancemethod to types.py

2019-02-07 Thread Dan Snider
New submission from Dan Snider : Having the ability to add binding behavior to any callable is an incredibly useful feature if one knows how to take advantage of it, but unfortunately, nothing that currently (publicly) exists comes close to filling the gap `instancemethod`s secrecy leaves

[issue35979] Incorrect __text_signature__ for the __get__ slot wrapper

2019-02-12 Thread Dan Snider
New submission from Dan Snider : The current signature: "__get__($self, instance, owner, /)\n--\n\nReturn an attribute of instance, which is of type owner." doens't match how wrap_descr_get actually parses the arguments to __get__ with: PyArg_UnpackTuple(args, "

[issue36000] __debug__ is a keyword but not a keyword

2019-02-15 Thread Dan Snider
New submission from Dan Snider : keyword.py is used by stuff like the idle colorizer to help determine if an identifier is considered a keyword but it doesn't identify __debug__ despite the fact that the parser treats it exactly the same as None, True, and False. I could not find a

[issue36045] Help function is not much help with async functions

2019-02-19 Thread Dan Rose
New submission from Dan Rose : It is very important when using a callable to know whether it is async or not. It is expected that `builtins.help` function should provide the information needed to properly use the function, but it omits whether it is an async function or not. ``` import

[issue36045] builtins.help function is not much help with async functions

2019-02-19 Thread Dan Rose
Change by Dan Rose : -- title: Help function is not much help with async functions -> builtins.help function is not much help with async functions ___ Python tracker <https://bugs.python.org/issu

[issue36045] builtins.help function is not much help with async functions

2019-02-19 Thread Dan Rose
Dan Rose added the comment: Thanks for the suggestion, Raymond. I was toying with the idea of a PR, but wasn’t sure what the resolution should be, and it’s a rather subtle decision for my first contribution. It seems to me that this might be an oversight in PEP-0484, and the purest

[issue36045] builtins.help function is not much help with async functions

2019-02-19 Thread Dan Rose
Dan Rose added the comment: Note to future self: whatever solution should also play nice with functools.partial -- ___ Python tracker <https://bugs.python.org/issue36

[issue29944] Argumentless super() fails in classes constructed with type()

2017-04-08 Thread Dan Snider
Dan Snider added the comment: Just wanted to add that I found this when I was trying to find a way to decorate all methods in a class without using a metaclass or modifying __getattr__. Using Josh's workaround, here's a simple demonstration that (at least at first glance) prints

[issue30402] Unexpected and/or inconsistent del behavior

2017-05-18 Thread Dan Snider
New submission from Dan Snider: k = 'k' del [k] That deletes the variable k from the local scope (even though it *looks* like it's trying to delete a list containing 1 element which is equivalent to the variable k). But if using list literals to delete groups of objects is

[issue36283] eval is needlessly limited

2019-03-13 Thread Dan Snider
New submission from Dan Snider : The footnote about why eval/exec cannot be used for arbitrary code has been (for the most part) incorrect for quite some time as the signature for PyEval_EvalCodeEx demonstrates: PyObject* PyEval_EvalCodeEx(PyObject *co, PyObject *globals, PyObject *locals

[issue36539] Distutils VC 6.0 Errors When Using mingw-w64 GCC

2019-04-05 Thread Dan Yeaw
New submission from Dan Yeaw : I am using the mingw-w64-x86_64-python3 in MSYS2 on Windows to package a PyGObject app. When I try to pip install the app, I am getting errors about the VC 6.0 isn't supported. It looks like setuptools is trying to patch distutils msvc. The msvc9com

[issue36539] Distutils VC 6.0 Errors When Using mingw-w64 GCC

2019-04-06 Thread Dan Yeaw
Dan Yeaw added the comment: lazka: Thanks for you response. You are correct, the issue was that I had a pip installed version of setuptools somehow. It sounds like you think that all issues should go downstream to fixing them in the MINGW-packages. I am OK with this, it just seams like

[issue36617] The rich comparison operators are second class citizens

2019-04-12 Thread Dan Snider
New submission from Dan Snider : The rich comparison operators have an (far as I can tell, unnecessary) limitation compared to the other binary operators, being that the result of an unparenthesized comparison expression cannot be unpacked using the *iterable "unpack" operator

[issue36626] asyncio run_forever blocks indefinitely

2019-04-13 Thread Dan Timofte
New submission from Dan Timofte : after starting run_forever if all scheduled tasks are consumed run_once will issue a KqueueSelector.select(None) which will block indefinitely : https://www.freebsd.org/cgi/man.cgi?query=select&sektion=2&apropos=0&manpath=FreeBSD+12.0-RELEA

[issue36626] asyncio run_forever blocks indefinitely

2019-04-13 Thread Dan Timofte
Change by Dan Timofte : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue36626> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36626] asyncio run_forever blocks indefinitely

2019-04-14 Thread Dan Timofte
Dan Timofte added the comment: i will provide a patch, i'll make a pull request next week. a call to self._write_to_self() should also be added to create_task() before it returns . i'll make the correction for this as well. -- ___ Pyth

[issue36626] asyncio run_forever blocks indefinitely

2019-04-15 Thread Dan Timofte
Change by Dan Timofte : -- keywords: +patch pull_requests: +12770 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36626> ___ ___ Py

[issue36626] asyncio run_forever blocks indefinitely

2019-04-17 Thread Dan Timofte
Dan Timofte added the comment: `loop.call_soon_threadsafe(loop.stop)` solves the problem because it has the write_to_self there. I can use that or call loop._write_to_self() myself before calling loop.stop(). In my code i'm stoping the loop from the exception_handler not signal. The

<    1   2   3   4   5   >