[issue46036] Single-phase initialized modules gets initialized multiple times in 3.10.0

2021-12-10 Thread Daniel
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

[issue1398] Can't pickle partial functions

2007-11-07 Thread Daniel
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

[issue3869] Arrow keys not working with Python 2.6rc1

2008-09-14 Thread Daniel
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

[issue3869] Arrow keys not working with Python 2.6rc1

2008-09-14 Thread Daniel
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

[issue3869] Arrow keys not working with Python 2.6rc1

2008-09-14 Thread Daniel
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

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-01-18 Thread Daniel
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

[issue46958] json dump/dumps prints each array element on a new line (bad for readability)

2022-03-08 Thread Daniel
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

[issue46958] json dump/dumps prints each array element on a new line (bad for readability)

2022-03-08 Thread Daniel
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

[issue38014] Python 3.7 does not compile

2019-09-02 Thread Daniel
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

[issue45737] assertLogs to optionally not disable existing handlers

2021-11-06 Thread Daniel
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

[issue45737] assertLogs to optionally not disable existing handlers

2021-11-06 Thread Daniel
Change by Daniel <3dan...@hotmail.com>: -- components: +Library (Lib) versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue45737> ___ ___

[issue45737] assertLogs to optionally not disable existing handlers

2021-11-06 Thread Daniel
Change by Daniel <3dan...@hotmail.com>: -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue45737> ___ ___ Python-bugs-li

[issue45973] Not possible to clear PyImport_Inittab after PyImport_AppendInittab

2021-12-03 Thread Daniel
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

[issue40026] Create render_*_diff variants to the *_diff functions in difflib

2020-03-20 Thread Daniel
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

[issue37625] Class variable is still accessible after class instance has been overwritten out

2019-07-18 Thread Daniel
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

[issue37625] Class variable is still accessible after class instance has been overwritten out

2019-07-19 Thread Daniel
Daniel added the comment: Thanks, just didn't expect that behavior. -- ___ Python tracker <https://bugs.python.org/issue37625> ___ ___ Python-bugs-list m

[issue31298] Error when calling numpy.astype

2017-08-28 Thread Daniel
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

[issue9033] cmd module tab misbehavior

2018-01-17 Thread Daniel
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

[issue32035] Documentation of zipfile.ZipFile().writestr() fails to mention that 'data' may also be bytes

2017-11-15 Thread Daniel
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

[issue13214] Cmd: list available completions from the cmd.Cmd subclass and filter out EOF handler(s)

2018-01-10 Thread Daniel
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

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-09-10 Thread Daniel
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

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-09-10 Thread Daniel
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

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-09-11 Thread Daniel
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

[issue19120] shlex.shlex.lineno reports a different number depending on the previous token

2013-09-28 Thread Daniel
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

[issue19120] shlex.shlex.lineno reports a different number depending on the previous token

2013-09-28 Thread Daniel
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

[issue19372] getaddrinfo() bug

2013-10-23 Thread Daniel
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

[issue20723] Make test (Python 3.3.4)

2014-02-21 Thread Daniel
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

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-23 Thread Daniel
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

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-24 Thread Daniel
Daniel added the comment: Thank you :) Daniel. -- ___ Python tracker <http://bugs.python.org/issue2698> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-01-04 Thread Daniel
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"

[issue23471] 404 Not Found when downloading Python 3.4.3rc1 Documentation

2015-02-16 Thread Daniel
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

[issue24366] Simple indentation

2015-06-02 Thread Daniel
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

[issue17703] Trashcan mechanism segfault during interpreter finalization in Python 2.7.4

2015-04-18 Thread Daniel
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

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2021-12-10 Thread Daniel Diniz
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

[issue1182143] making builtin exceptions more informative

2021-12-10 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +iritkatriel ___ Python tracker <https://bugs.python.org/issue1182143> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue766910] fix one or two bugs in trace.py

2021-12-10 Thread Daniel Diniz
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

[issue44413] OverflowError: mktime argument out of range after 2019

2021-12-15 Thread Daniel McDonald
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

[issue44413] OverflowError: mktime argument out of range after 2019

2021-12-15 Thread Daniel McDonald
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

[issue44413] OverflowError: mktime argument out of range after 2019

2021-12-15 Thread Daniel McDonald
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

[issue44413] OverflowError: mktime argument out of range after 2019

2021-12-15 Thread Daniel McDonald
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

[issue44413] OverflowError: mktime argument out of range after 2019

2021-12-15 Thread Daniel McDonald
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

[issue45959] Teach pprint about dict views

2021-12-16 Thread Daniel Diniz
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

[issue45959] Teach pprint about dict views

2021-12-16 Thread Daniel Diniz
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

[issue1062277] Pickle breakage with reduction of recursive structures

2021-12-16 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.11 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue1062277> ___ ___ Python-bugs-list mailin

[issue9917] resource max value represented as signed when should be unsigned

2021-12-16 Thread Daniel Diniz
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

[issue678264] test_resource fails when file size is limited

2021-12-16 Thread Daniel Diniz
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

[issue41033] readline.c: endless loop on SIGWINCH when loaded twice

2021-12-17 Thread daniel hahler
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

[issue41033] readline.c: endless loop on SIGWINCH when loaded twice

2021-12-17 Thread daniel hahler
Change by daniel hahler : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue41033> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46127] Missing HTML span element in exceptions.html

2021-12-19 Thread Daniel Diniz
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

[issue23224] bz2/lzma: Compressor/Decompressor objects are only initialized in __init__

2021-12-19 Thread Daniel Diniz
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

[issue46138] Strange behavior with lists

2021-12-20 Thread Daniel Frey
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

[issue44413] OverflowError: mktime argument out of range after 2019

2021-12-20 Thread Daniel McDonald
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

[issue44413] Improvement mktime error reporting

2021-12-20 Thread Daniel McDonald
Daniel McDonald added the comment: Sounds good, thank you, Terry -- type: enhancement -> behavior ___ Python tracker <https://bugs.python.org/issu

[issue46168] Incorrect format specified for the "style" key in the configuration file format formatter example

2021-12-23 Thread Daniel Diniz
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

[issue504219] locale.resetlocale is broken

2021-12-23 Thread Daniel Diniz
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

[issue46169] Same-moment datetimes with different ZoneInfo timezones are not considered ==

2021-12-23 Thread Daniel Diniz
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

[issue46169] Same-moment datetimes with different ZoneInfo timezones are not considered ==

2021-12-24 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +belopolsky ___ Python tracker <https://bugs.python.org/issue46169> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue978604] wait_variable hangs at exit

2021-12-25 Thread Daniel Diniz
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

[issue1438480] shutil.move raises OSError when copystat fails

2021-12-26 Thread Daniel Diniz
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

[issue14844] netrc does not handle accentuated characters

2021-12-26 Thread Daniel Diniz
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

[issue7687] Bluetooth support untested

2021-12-26 Thread Daniel Diniz
Change by Daniel Diniz : -- versions: +Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue7687> ___ ___ Python-bugs-list mailing list Unsub

[issue25044] bring BTPROTO_SCO inline with other Bluetooth protocols

2021-12-26 Thread Daniel Diniz
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

[issue22833] The decode_header() function decodes raw part to bytes or str, depending on encoded part

2021-12-30 Thread Daniel Lenski
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

[issue22833] The decode_header() function decodes raw part to bytes or str, depending on encoded part

2021-12-30 Thread Daniel Lenski
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_

[issue46236] PyFunction_GetAnnotations returning Tuple vs Dict

2022-01-02 Thread Daniel McCarney
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.

[issue22833] The decode_header() function decodes raw part to bytes or str, depending on encoded part

2022-01-11 Thread Daniel Lenski
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

[issue32912] Raise non-silent warning for invalid escape sequences

2022-01-13 Thread Daniel Carpenter
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.

[issue46440] ArgumentParser.parse_args exits on missing required argument with exit_on_error=False

2022-01-19 Thread Daniel Schulte
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

[issue1108] Problem with doctest and decorated functions

2007-09-05 Thread Daniel Larsson
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

[issue1108] Problem with doctest and decorated functions

2007-09-06 Thread Daniel Larsson
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

[issue1312] doctest EXCEPTION_RE can't handle preceding output

2007-10-22 Thread Daniel Nouri
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

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2011-09-29 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Gladly. :-) -- resolution: -> out of date stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue13062] Introspection generator and function closure state

2011-09-30 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue13062> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13264] Monkeypatching using metaclass

2011-10-25 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue13264> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13264] Monkeypatching using metaclass

2011-10-25 Thread Daniel Urban
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__['

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2011-10-26 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue13266> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13264] Monkeypatching using metaclass

2011-11-12 Thread Daniel Urban
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

[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Daniel Sturm
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

[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Daniel Sturm
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

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-01-09 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker <http://bugs.python.org/issue13742> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8777] Add threading.Barrier

2011-05-26 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- stage: -> committed/rejected ___ Python tracker <http://bugs.python.org/issue8777> ___ ___ Python-bugs-list mailing list Un

[issue12192] Doc that collection mutation methods return item or None

2011-05-27 Thread Daniel Stutzbach
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'

[issue11610] Improved support for abstract base classes with descriptors

2011-06-11 Thread Daniel Urban
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

[issue12345] Add math.tau

2011-06-17 Thread Daniel Stutzbach
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

[issue11610] Improved support for abstract base classes with descriptors

2011-06-20 Thread Daniel Urban
Daniel Urban added the comment: I've posted some comments on Rietveld. -- ___ Python tracker <http://bugs.python.org/issue11610> ___ ___ Python-bugs-list m

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-24 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12374> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12459] time.sleep(-1.0) behaviour

2011-07-01 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12459> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12457] type() returns incorrect type for nested classes

2011-07-01 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12457> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8639] Allow callable objects in inspect.getargspec

2011-07-09 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue8639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12559] gzip.open() needs an optional encoding argument

2011-07-14 Thread Daniel Urban
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

[issue12559] gzip.open() needs an optional encoding argument

2011-07-15 Thread Daniel Urban
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

[issue12575] add a AST validator

2011-07-16 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12575> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12434] Strengthen 2.7 io types warning

2011-07-18 Thread Daniel Stutzbach
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:

[issue12608] crash in PyAST_Compile when running Python code

2011-07-22 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12608> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12599] Use 'is not None' where appropriate in importlib

2011-07-22 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12599> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-23 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12617> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12647] Add __bool__ to None

2011-07-28 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12647> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-07-30 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker <http://bugs.python.org/issue12657> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11640] Shelve references globals in its __del__ method

2011-08-01 Thread Daniel Stutzbach
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

[issue12612] Valgrind suppressions

2011-08-01 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker <http://bugs.python.org/issue12612> ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   3   4   5   6   7   8   9   10   >