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?
Changes by Dan Buch :
--
nosy: +meatballhat
___
Python tracker
<http://bugs.python.org/issue8666>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Dan Buch added the comment:
@mfoord thank you for the clarification! :)
--
___
Python tracker
<http://bugs.python.org/issue8324>
___
___
Python-bugs-list mailin
Changes by Dan Buch :
--
nosy: +meatballhat
___
Python tracker
<http://bugs.python.org/issue8679>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Dan Buch :
--
nosy: +meatballhat
___
Python tracker
<http://bugs.python.org/issue8680>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Dan Buch :
--
nosy: +meatballhat
___
Python tracker
<http://bugs.python.org/issue8688>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Dan Buch :
--
nosy: +meatballhat
___
Python tracker
<http://bugs.python.org/issue8698>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Dan Buch :
--
nosy: +meatballhat
___
Python tracker
<http://bugs.python.org/issue2142>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Dan Buch :
--
nosy: +meatballhat
___
Python tracker
<http://bugs.python.org/issue8704>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Dan Buch :
--
nosy: +meatballhat
___
Python tracker
<http://bugs.python.org/issue8706>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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.
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
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
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__,
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
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
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
Change by Dan Cecile :
--
nosy: +dcecile
___
Python tracker
<https://bugs.python.org/issue39442>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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 ?
>
> --
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
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
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
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
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
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
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
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.
Change by Dan Snider :
--
nosy: bup
priority: normal
severity: normal
status: open
title: add "
___
Python tracker
<https://bugs.python.org/issue39528>
___
___
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
Change by Dan Arad :
--
nosy: +Dan Arad
___
Python tracker
<https://bugs.python.org/issue28859>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
Changes by Dan Boswell :
___
Python tracker
<http://bugs.python.org/issue8739>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/
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
Change by Dan Snider :
--
nosy: -bup
___
Python tracker
<https://bugs.python.org/issue35331>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dan Snider :
--
nosy: +bup
___
Python tracker
<https://bugs.python.org/issue35331>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
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
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 ->
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
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
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
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
Change by Dan Hemberger :
--
pull_requests: +13820
pull_request: https://github.com/python/cpython/pull/13951
___
Python tracker
<https://bugs.python.org/issue16
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
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
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
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
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
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):
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
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
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
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
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:
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
__
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
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
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
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, "
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
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
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
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
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
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
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
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
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
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
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
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
Change by Dan Timofte :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue36626>
___
___
Python-bugs-list mailing list
Unsubscrib
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
Change by Dan Timofte :
--
keywords: +patch
pull_requests: +12770
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36626>
___
___
Py
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
101 - 200 of 403 matches
Mail list logo