New submission from Daniel :
The documentation
(https://docs.python.org/3/c-api/init.html#c.Py_NewInterpreter) states:
For modules using single-phase initialization, e.g. PyModule_Create(), the
first time a particular extension is imported, it is initialized normally, and
a (shallow) copy
New submission from Daniel:
Creating a function using functools.partial results in a function which
cannot be pickled.
Attached is a small testcase.
--
components: Library (Lib)
files: partial_bug.py
messages: 57200
nosy: danhs
severity: normal
status: open
title: Can't pickle pa
New submission from Daniel <[EMAIL PROTECTED]>:
On Xubuntu 8.04. In Python2.5 arrow keys allowed you to scroll through
previous lines typed but with 2.6rc1 this stopped working and it's now
just typing the ^[[A^[[B^[[D^[[C characters.
--
messages: 73229
nosy: Chewie
sever
Daniel <[EMAIL PROTECTED]> added the comment:
Yes I did the configure / compile myself.
After reading about readline in setup I am still unable to enable it but
I guess it is not a bug in Python but more a user problem.
I am quite puzzled as to why something like this would stop being
e
Daniel <[EMAIL PROTECTED]> added the comment:
That was it.
Needed to install libreadline5-dev.
Then the default settings for readline in Modules/setup needs
uncommented (line 165 in the current version) and it works.
Thank you kindly.
___
Python t
Daniel added the comment:
Sorry, I am on others problems and i don't have any time to look at a solution
:(
Daniel.
--
___
Python tracker
<http://bugs.python.org/i
Change by Daniel :
--
components: Library (Lib)
nosy: Entirity
priority: normal
severity: normal
status: open
title: json dump/dumps prints each array element on a new line (bad for
readability)
type: enhancement
versions: Python 3.11
___
Python
Change by Daniel :
--
keywords: +patch
pull_requests: +29873
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31762
___
Python tracker
<https://bugs.python.org/issu
New submission from Daniel :
Hi, I use macOS Catalina 10.15. I use Xcode 10 and Xcode 11, but with that
configuration, compiling Python 3.7.14 does not work for me. Any idea whats
causing this issue?
user@Users-MacBook-Pro Python-3.7.4 % ./configure
--with-framework-name=python36 --with
New submission from Daniel <3dan...@hotmail.com>:
At the moment, assertLogs removes the handlers attached to the logger.
In general this is good, because it reduces message spamming in the test logs.
However, if the code being tested is relying on a handler to do something, then
the test
Change by Daniel <3dan...@hotmail.com>:
--
components: +Library (Lib)
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue45737>
___
___
Change by Daniel <3dan...@hotmail.com>:
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue45737>
___
___
Python-bugs-li
New submission from Daniel :
Hello,
When embedding Python into a C application and not using Py_RunMain it is not
possible to remove a module added to PyImport_Inittab even if the interpreter
is finalized and a new is created.
One reason for not using Py_RunMain is to use python as a
New submission from Daniel :
Currently difflib offers no way to synthesize a diff output without having to
assemble the original and modified strings and then asking difflib to calculate
the diff.
It would be nice if I could just call a `render_unified_diff(a, b,
grouped_opcodes)` and get a
New submission from Daniel :
Not sure if this is the desired behavior but wanted to bring it up anyways.
When you have a class and have a variable in like:
class TestClass(object):
variable = []
then you run it through a loop like:
for num in range(10):
test = TestClass
Daniel added the comment:
Thanks, just didn't expect that behavior.
--
___
Python tracker
<https://bugs.python.org/issue37625>
___
___
Python-bugs-list m
New submission from Daniel:
Ubuntu 16.04.3
Python 3.5.2
Numpy version 1.11.0
Running the following two commands causes Python to crash:
import numpy as np
np.array([[1, 2],[3,4]]).astype(np.dtype([("a", np.float), ("b", np.str_)]))
The error occurs when running in an int
Daniel added the comment:
I can confirm this behaviour for python 3.6.0 on Mac OS X 10.12.6
--
nosy: +boompig
versions: +Python 3.6 -Python 2.7, Python 3.3, Python 3.4
___
Python tracker
<https://bugs.python.org/issue9
New submission from Daniel :
The documentation for "ZipFile.writestr(zinfo_or_arcname, data[,
compress_type])" says: "Write the string data to the archive; [...]"
--> https://docs.python.org/3/library/zipfile.html
I fails to mention that data could also be bytes.
The s
Daniel added the comment:
If you write a handler for EOF like so:
from cmd import Cmd
class FooShell(Cmd):
def do_EOF(self, args):
# exit on EOF
raise SystemExit()
shell = FooShell()
shell.cmdloop()
Then when running the shell, you can see "EOF&q
Daniel added the comment:
After contacting Microsoft they answered that they cannot fix that within the
VS2012 or VS2013 cycle. Very bad. Any ideas?
--
nosy: +m_python
___
Python tracker
<http://bugs.python.org/issue17
Daniel added the comment:
Here are some solutions which might help you until MS fixed the bug.
1) Even if the subsystem is Windows one solution is to call AllocConsole()
before Py_Initialize() to create a console.
2) Second Solution: If you don't want to open a console and your applic
Daniel added the comment:
Sorry, I used the latest Python3.4 branch, I haven't tested this with prior
versions.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Daniel:
See the example below (also attached).
First example: The lineno reported just after "word2" is pulled is 2.
Second example: The lineno reported just after "," is pulled is still 1.
This behaviour seems inconsistent. The lineno should increment e
Daniel added the comment:
>From the unfinished sentence:
I have repeated this on all versions of shlex on which I have tried. Including
Python 2.6, 2.7, 3.2 and 3.3.
--
___
Python tracker
<http://bugs.python.org/issu
New submission from Daniel:
I have two systems, one is CentOS 5.9 with kernel 2.6.18-348,
the other is CentOS 6.4 with kernel 2.6.32-358.
Python ver is 2.7.5.
both configure ok if no other option give,
But if I want configure with --enable-shared, CentOS 6.4 get a
You must get working
New submission from Daniel:
5 Error to make test with Python v.3.3.4
--
files: makeTest-python3-3-4.log
messages: 211867
nosy: datienzalopez
priority: normal
severity: normal
status: open
title: Make test (Python 3.3.4)
type: compile error
versions: Python 3.3
Added file: http
Daniel added the comment:
Hello,
I confirm : Python3.1.1
.../...
running build
running build_py
running build_ext
building 'cx_Freeze.util' extension
error: Unable to find vcvarsall.bat
I've got the r73896 file correction.
:(
D.
--
nosy: +Daniel26
version
Daniel added the comment:
Thank you :)
Daniel.
--
___
Python tracker
<http://bugs.python.org/issue2698>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel added the comment:
Thanks for your response!
I'm back after holidays :)
Yappy new year everybody!!!
Conserning our problem:
.../...
adding base module named weakref
running build
running build_py
running build_ext
Traceback (most recent call last):
File "setup.py"
New submission from Daniel:
Via Chrome on Android 4.4.
--
assignee: docs@python
components: Documentation
messages: 236095
nosy: docs@python, stringsonfire
priority: normal
severity: normal
status: open
title: 404 Not Found when downloading Python 3.4.3rc1 Documentation
type: behavior
Changes by Daniel :
--
files: indent.patch
keywords: patch
nosy: li4ick
priority: normal
severity: normal
status: open
title: Simple indentation
versions: Python 3.6
Added file: http://bugs.python.org/file39597/indent.patch
___
Python tracker
<h
Daniel added the comment:
Guillaume already mentioned this, its still causing a Fatal Error. To fix this
PyThreadState_GET() in Py_TRASHCAN_SAFE_BEGIN must be replaced with
_PyThreadState_Current
#define Py_TRASHCAN_SAFE_BEGIN(op) \
do { \
PyThreadState *_tstate
Daniel Diniz added the comment:
As Victor notes, this is a controversial issue. And I'll add that the need for
this feature seems not to have been brought up up in over a decade. So I'm
closing this.
--
resolution: -> rejected
stage: patch review -> resolved
status
Change by Daniel Diniz :
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue1182143>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Daniel Diniz :
--
nosy: +ajaksu2
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.7
___
Python tracker
<https://bugs.python.org/issue766
Daniel McDonald added the comment:
I'd like to politely request this issue be reopened.
We recently observed a similar, if not the same, OverflowError during
continuous integration using Github Actions on ubuntu-latest (20.04). We can
produce the error using pure Python without pytz
Daniel McDonald added the comment:
Thank you, Terry. I'm currently exploring modifications to the test Andrei made
within a fork of CPython using Github Actions (ubuntu-latest). These
modifications include debug prints in the CPython mktime call, and some
parameter exploration. I expe
Daniel McDonald added the comment:
The use of tm_isdst=1 appears to trigger the overflow, and occurs when varying
other aspects of the timetuple.
Python's mktime wrapper can throw OverflowError in two places. The thrown error
is the second location, following the call to glibc
Daniel McDonald added the comment:
Thank you, Christian, I apologize for missing your reply. That is great advice,
and I will do so.
--
___
Python tracker
<https://bugs.python.org/issue44
Daniel McDonald added the comment:
For reference, the bug reports with Debian and Ubuntu are at the following URLs:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001774
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1954963
Change by Daniel Diniz :
--
keywords: +patch
nosy: +ajaksu2
nosy_count: 4.0 -> 5.0
pull_requests: +28355
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30135
___
Python tracker
<https://bugs.python.org/i
Daniel Diniz added the comment:
I have tried to add this. The PR adds:
- PrettyPrinter._pprint_dict_view to handle dict_keys and dict_values (sorted
with _safe_key).
= PrettyPrinter._pprint_dict_items_view to handle dict_items (sorted using
_safe_tuple).
- Tests.
Would a NEWS entry or other
Change by Daniel Diniz :
--
versions: +Python 3.11 -Python 3.5
___
Python tracker
<https://bugs.python.org/issue1062277>
___
___
Python-bugs-list mailin
Change by Daniel Diniz :
--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python
3.5
___
Python tracker
<https://bugs.python.org/issue9
Change by Daniel Diniz :
--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python
3.5
___
Python tracker
<https://bugs.python.org/issue678
daniel hahler added the comment:
Yes, the example also does not segfault for me either (also with Python 3.8.12
I have now as `python3.8`), so this was likely only happening in the more
complex setup, and/or maybe with some specific version of readline back then.
--
title
Change by daniel hahler :
--
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue41033>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel Diniz added the comment:
That happens because EncodingWarning isn't highlighted as an Exception by
Pygments[0]. The doc page gets its exceptions diagram by:
".. literalinclude:: ../../Lib/test/exception_hierarchy.txt"
and all other entries are recognized by Pygments, so
Change by Daniel Diniz :
--
versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue23224>
___
___
Python-bug
New submission from Daniel Frey :
Hi
I found a strange behavior with lists. When I want to save the list {3,1,8}, it
saves the 8 at the first entry. Only when I add the integers 7 and 9, the 8 is
placed correctly. (See the attached picture)
Can anyone help me understand what is going on
Daniel McDonald added the comment:
A definitive assessment was obtained by Aurelien with Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001774
In brief, the OverflowError is expected and correct.
Two factors contribute to the difference in observed behavior. First, the
Daniel McDonald added the comment:
Sounds good, thank you, Terry
--
type: enhancement -> behavior
___
Python tracker
<https://bugs.python.org/issu
Daniel Diniz added the comment:
This example was added in issue 43047. It only seems to affect 3.10+ docs. Ian,
is this something you'd like to tackle?
--
keywords: +easy
nosy: +ajaksu2, iwienand
stage: -> needs patch
versions: +Python 3.10, Python 3.11 -Py
Change by Daniel Diniz :
--
nosy: +ajaksu2
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.3, Python
3.4
___
Python tracker
<https://bugs.python.org/issue504
Daniel Diniz added the comment:
Confirmed for 3.11 in Windows.
The C datetime code can be trivially fixed so your equality test returns True,
but there are two Python tests that depend on current behavior so it might not
be so easy. They were added with current code in issue 24773, to
Change by Daniel Diniz :
--
nosy: +belopolsky
___
Python tracker
<https://bugs.python.org/issue46169>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel Diniz added the comment:
Confirmed on Python 3.11.0a3+, assuming older versions also affected. This
issue has different versions of tests to confirm it, but I think not in a test
suite-friendly format yet.
There's also a patch and detailed analysis by gpolo indicating that it
Change by Daniel Diniz :
--
keywords: -easy
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3
___
Python tracker
<https://bugs.python.org/issue1438
Daniel Diniz added the comment:
Now that a PR has landed in #28806 to improve shlex, we need to check whether
this issue can/needs to move forward.
--
nosy: +ajaksu2, asvetlov
type: -> behavior
versions: +Python 3.10, Python 3.11, Python 3.9 -Python
Change by Daniel Diniz :
--
versions: +Python 3.10, Python 3.11
___
Python tracker
<https://bugs.python.org/issue7687>
___
___
Python-bugs-list mailing list
Unsub
Change by Daniel Diniz :
--
versions: +Python 3.11 -Python 3.4, Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.org/issue25044>
___
___
Python-bug
Daniel Lenski added the comment:
I recently ran into this bug as well.
For those looking for a reliable workaround, here's an implementation of a
'decode_header_to_string' function which should Just Work⢠in all possible
cases:
#!/usr/bin/python3
impo
Daniel Lenski added the comment:
Due to this bug, any user of this function in Python 3.0+ *already* has to be
able to handle all of the following outputs in order to use it reliably:
decode_header(...) -> [(str, None)]
or decode_header(...) -> [(bytes, str)]
or decode_
New submission from Daniel McCarney :
Hi there,
This is my first Python bug, hope I haven't missed anything important.
I noticed that the PyFunction_GetAnnotations function from the C API is
returning a PyTuple when I link Python 3.10 where historically it returned a
PyDict.
Change by Daniel Lenski :
--
keywords: +patch
pull_requests: +28748
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30548
___
Python tracker
<https://bugs.python.org/issu
Daniel Carpenter added the comment:
I'm not sure if this is an issue or by design, but this DeprecationWarning
behaves differently to other DeprecationWarnings.
A normal DeprecationWarning triggered by code in __main__ is printed by default:
$ python -c 'import warnings; warnings.
New submission from Daniel Schulte :
When calling ArgumentParser.parse_args(list_of_things_to_parse) sys.exit gets
called even though the parser was constructed with exit_on_error=False. It
doesn't matter if the parser has any subparsers added or not.
The docs say
> Normally, when
New submission from Daniel Larsson:
Seems like doctest won't recognize functions inside the module under
test are actually in that module, if the function is decorated by a
decorator that wraps the function in an externally defined function,
such as in this silly example:
# decorator.py
i
Daniel Larsson added the comment:
Here's a patch that alters the order of checks in DocTestFinder._from_module
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1108>
__--- doctest.py.orig 2007-09-05 1
New submission from Daniel Nouri:
doctest.DocTestParser._EXCEPTION_RE does not allow for output before the
actual traceback.
Attached is a simple test that demonstrates the problem. This patch
fixes it:
--- /usr/lib/python2.5/doctest.py 2007-10-22 21:45:21.0 +0200
+++ /home/daniel/tmp
Daniel Stutzbach added the comment:
Gladly. :-)
--
resolution: -> out of date
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue13062>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue13264>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel Urban added the comment:
> class Meta(ABCMeta):
> def __instancecheck__(cls, instance):
> # monkeypatching class method
> cls.__subclasscheck__ = super(Meta, cls).__subclasscheck__
This line is approximately the same as:
cls.__dict__['
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue13266>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel Urban added the comment:
> It seems to me this is not a bug.
+1
--
___
Python tracker
<http://bugs.python.org/issue13264>
___
___
Python-bugs-list mai
New submission from Daniel Sturm :
The mid index computation in _bisectmodule.c in both internal_bisect_right and
internal_bisect_left is done with:
mid = (lo + hi) / 2; // all three variables Py_ssize_t
which is susceptible to overflows for large arrays, which would lead to
undefined
Daniel Sturm added the comment:
TBH I saw this more as an opportunity to get used to the whole system, how to
create a patch, etc. :) Should've made it clearer at the start that this is
unlikely to ever be a problem, sorry (didn't see a way to set priority to low
myself).
If my
Changes by Daniel Stutzbach :
--
nosy: +stutzbach
___
Python tracker
<http://bugs.python.org/issue13742>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Stutzbach :
--
stage: -> committed/rejected
___
Python tracker
<http://bugs.python.org/issue8777>
___
___
Python-bugs-list mailing list
Un
Daniel Stutzbach added the comment:
> Comment: This rule applies to special methods like __getitem__
> and __setitem__. 'lis.append(item)' is equivalent to
> lis.__setitem__(len(lis):len(lis), item), so it should not be so
> surprising that it has the same return.
It'
Daniel Urban added the comment:
It doesn't work with staticmethod:
>>> import abc
>>>
>>> class C(metaclass=abc.ABCMeta):
... @staticmethod
... @abc.abstractmethod
... def foo(x):
... raise NotImplementedError()
...
>>> clas
Daniel Stutzbach added the comment:
On Wed, Jun 15, 2011 at 8:10 PM, Nick Coghlan wrote:
> I'd like to add a new constant to the math module:
>
> tau = 2*math.pi
>
> Rather than repeating all the reasons for why tau makes more sense than pi
> as the fundamental cir
Daniel Urban added the comment:
I've posted some comments on Rietveld.
--
___
Python tracker
<http://bugs.python.org/issue11610>
___
___
Python-bugs-list m
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12374>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12459>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12457>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue8639>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel Urban added the comment:
Here is a patch. If the code changes are acceptable I can also make a
documentation patch.
(I'm surprised to see 3.2 in "Versions". I thought 3.2 only gets bugfixes...)
--
keywords: +patch
nosy: +durban
Added file: http://bugs.pytho
Daniel Urban added the comment:
> If we go this way, the "errors" and "newline" argument should be added
> as well.
Yeah, I thought about that. I can make a new patch, that implement this, if
needed. Though it seems there is a real problem, the one that Amaury F
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12575>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel Stutzbach added the comment:
On Sat, Jul 16, 2011 at 2:04 AM, Eli Bendersky wrote:
> Therefore, I propose to change this error message to:
> "unicode argument expected, got '%s'"
> as Terry suggested.
>
Sounds good to me.
--
Added file:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12608>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12599>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12617>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12647>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Daniel Urban :
--
nosy: +durban
___
Python tracker
<http://bugs.python.org/issue12657>
___
___
Python-bugs-list mailing list
Unsubscribe:
Daniel Stutzbach added the comment:
Could you add a comment above the lines defining self._BytesIO, describing why
they're being set? Someone else might see them as unnecessary and rip them out
if there's no explanation.
Can a test launch Python in a subprocess, set up the approp
Changes by Daniel Stutzbach :
--
nosy: +stutzbach
___
Python tracker
<http://bugs.python.org/issue12612>
___
___
Python-bugs-list mailing list
Unsubscribe:
1 - 100 of 3314 matches
Mail list logo