[issue21706] Add base for enumerations (Functional API)

2014-06-10 Thread Dmitry Korchemny
Dmitry Korchemny added the comment: I think that the situation when you want start numbering from 0 is rather common, especially when you need to define bit fields as enumeration or when you need to implement an interface with other languages (e.g., C

[issue16089] _elementtree.TreeBuilder broken with a non-C-deriving element_factory

2012-11-09 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: There are still some false-positive warnings caused by C code that affect docutils (see http://sourceforge.net/tracker/?func=detail&atid=422030&aid=3555164&group_id=38414). Look at this traceback for exmaple: http://paste.ubuntu.com/134

[issue16089] _elementtree.TreeBuilder broken with a non-C-deriving element_factory

2012-11-09 Thread Dmitry Shachnev
Changes by Dmitry Shachnev : ___ Python tracker <http://bugs.python.org/issue16089> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue16089] _elementtree.TreeBuilder broken with a non-C-deriving element_factory

2012-11-09 Thread Dmitry Shachnev
Changes by Dmitry Shachnev : ___ Python tracker <http://bugs.python.org/issue16089> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue16891] Fix docs about module search order

2013-01-08 Thread Dmitry Mugtasimov
New submission from Dmitry Mugtasimov: http://docs.python.org/2/tutorial/modules.html should be rewritten. AS IS 6.1.2. The Module Search Path When a module named spam is imported, the interpreter first searches for a built-in module with that name. If not found, it then searches for a file

[issue16891] Fix docs about module search order

2013-01-08 Thread Dmitry Mugtasimov
Dmitry Mugtasimov added the comment: UPDATE: CHANGE http://stackoverflow.com/questions/14183541/why-python-finds-module-instead-of-package-if-they-have-the-same-name#comment19687166_14183541 TO http://stackoverflow.com/questions/14183541/why-python-finds-module-instead-of-package-if-they-have

[issue16891] Fix docs about module search order

2013-01-08 Thread Dmitry Mugtasimov
Dmitry Mugtasimov added the comment: As I investigate it a little closer it seems to me that it is not a documentation issue, but an implementation issue. http://docs.python.org/2/reference/simple_stmts.html#import "A package can contain other packages and modules while modules cannot co

[issue16891] Fix docs about module search order

2013-01-08 Thread Dmitry Mugtasimov
Dmitry Mugtasimov added the comment: A lot of people are still using python 2.7, even 2.6. For me it would be a nice fix in docs since I spent a plenty of time, trying to figure out what is going on. In my previous comment I also pointed out that implementation probably should be fixed too

[issue16891] Fix docs about module search order

2013-01-08 Thread Dmitry Mugtasimov
Dmitry Mugtasimov added the comment: Further investigation led me to the conclusion that "TO BE" should look like this: 6.1.2. The Module Search Path When a module named spam is imported, the interpreter first searches in the containing package (the package of which the current m

[issue17143] trace.py uses _warn without importing it

2013-02-06 Thread Dmitry Jemerov
New submission from Dmitry Jemerov: trace.py in Python 3.3 standard library uses the _warn function without importing it. As a result, an attempt to use a now-deprecated function fails with a NameError: > python3 Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11) [GCC 4.2.1 (Apple

[issue17143] trace.py uses _warn without importing it

2013-02-06 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: Workaround: "import warnings; trace._warn = warnings.warn" after importing trace -- ___ Python tracker <http://bugs.python.o

[issue17761] platform._parse_release_file doesn't close the /etc/lsb-release file, doesn't know about 'Ubuntu'

2013-09-18 Thread Dmitry Shachnev
Changes by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker <http://bugs.python.org/issue17761> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22048] Add weighted random choice to random package

2014-07-23 Thread Dmitry Korchemny
New submission from Dmitry Korchemny: Need to have a function for weighted randomization: given a dictionary: key -> weight (= non-negative number), return a key of the dictionary with the probability proportional to its weight. This capability is basic and is badly miss

[issue20093] Wrong OSError message from os.rename() when dst is a non-empty directory

2013-12-29 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: This is a result of http://hg.python.org/cpython/rev/6903f5214e99. Looks like we should check the error code and conditionally set the file name to either src or dst. -- nosy: +haypo, mitya57 ___ Python tracker

[issue20208] Clarify some things in porting HOWTO

2014-01-09 Thread Dmitry Shachnev
Changes by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker <http://bugs.python.org/issue20208> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14983] email.generator should always add newlines after closing boundaries

2014-02-09 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: Thank you for committing this! -- ___ Python tracker <http://bugs.python.org/issue14983> ___ ___ Python-bugs-list mailin

[issue5742] inspect.findsource() should look only for sources

2009-04-12 Thread Dmitry Vasiliev
New submission from Dmitry Vasiliev : Currently help(zlib) gives the following traceback: Python 3.1a2+ (py3k:71538M, Apr 12 2009, 21:54:44) >>> import zlib >>> help(zlib) Traceback (most recent call last): File "", line 1, in File "Lib/site.py&q

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-18 Thread Dmitry Jemerov
New submission from Dmitry Jemerov : On Windows, mimetypes initialization reads the list of MIME types from the Windows registry. It assumes that all characters are Latin-1 encoded, and fails when it's not the case, with the following exception: Traceback (most recent call last):

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-20 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: The problem doesn't happen on Python 3.1.2 because it doesn't have the code in mimetypes that accesses the Windows registry. Haven't tried the 3.2 alphas yet. -- ___ Python tracker <http

[issue8123] TypeError in urllib when trying to use HTTP authentication

2010-07-23 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: Patch (with unittest) attached. -- keywords: +patch Added file: http://bugs.python.org/file18139/8123.patch ___ Python tracker <http://bugs.python.org/issue8

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-23 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: Patch (suggested fix and unittest) attached. -- keywords: +patch Added file: http://bugs.python.org/file18143/9291.patch ___ Python tracker <http://bugs.python.org/issue9

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-23 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: And by the way I've verified that the problem doesn't happen in py3k trunk. -- ___ Python tracker <http://bugs.python.

[issue9360] nntplib cleanup

2010-07-23 Thread Dmitry Jemerov
New submission from Dmitry Jemerov : The patch performs an extensive cleanup of nntplib: - Change API methods to return strings instead of bytes. This breaks API compatibility, but given that the parameters need to be passed as strings and many of the returned values would need to be passed

[issue9360] nntplib cleanup

2010-07-23 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: This is an issue only for the actual article content, right? I'll be happy to extend the API to allow getting the original bytes of the article content, while keeping the rest of API (like group names) string-

[issue9520] Add Patricia Trie high performance container (python's defaultdict(int) is unusable on datasets with 10, 000, 000+ keys.)

2010-08-04 Thread Dmitry Chichkov
New submission from Dmitry Chichkov : On large data sets (10-100 million keys) the default python dictionary implementation fails to meet memory and performance constraints. It also apparently fails to keep O(1) complexity (after just 1M keys). As such, there is a need for good, optimized

[issue9520] Add Patricia Trie high performance container

2010-08-05 Thread Dmitry Chichkov
Dmitry Chichkov added the comment: Thank you for your comment. Perhaps we should try separate this into two issues: 1) Bug. Python's dict() is unusable on datasets with 10,000,000+ keys. Here I should provide a solid test case showing a deviation from O(1); 2) Feature request/idea

[issue9520] Add Patricia Trie high performance container

2010-08-05 Thread Dmitry Chichkov
Dmitry Chichkov added the comment: No. I'm not simply running out of system memory. 8Gb/x64/linux. And in my test cases I've only seen ~25% of memory utilized. And good idea. I'll try to play with the cyclic garbage collector. It is harder than I thought to make a solid synt

[issue9520] Add Patricia Trie high performance container

2010-08-08 Thread Dmitry Chichkov
Dmitry Chichkov added the comment: Yes. Data containers optimized for very large datasets, compactness and strict adherence to O(1) can be beneficial. Python have great high performance containers, but there is a certain lack of compact ones. For example, on the x64 machine the following

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2017-01-01 Thread Dmitry Shachnev
Changes by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker <http://bugs.python.org/issue28401> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2017-01-06 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: [Matthias Klose (doko) 2016-10-27 15:45] > I'm not sure that you really want this, because it would make it impossible > to build an extension for the stable ABI for a debug build. It looks like that is already impossible: /usr/include/python3.5

[issue17354] TypeError when running setup.py upload --show-response

2013-03-05 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: When running `python3 setup.py sdist upload --show-response`, one may get this exception: Traceback (most recent call last): File "setup.py", line 47, in requires=['dbus'] File "/usr/lib/python3.2/distutils/cor

[issue17640] from distutils.util import byte_compile hangs

2013-04-05 Thread Dmitry Sivachenko
New submission from Dmitry Sivachenko: The following problem exists in python3.3.0 and python3.3.1rc1. >From the command line it works: root@dhcp175-40-red:~ # python3 Python 3.3.1rc1 (default, Apr 5 2013, 18:03:56) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd10 Type "help"

[issue17640] from distutils.util import byte_compile hangs

2013-04-13 Thread Dmitry Sivachenko
Dmitry Sivachenko added the comment: No, I meant Ctrl+D. I use FreeBSD-10. -- ___ Python tracker <http://bugs.python.org/issue17640> ___ ___ Python-bugs-list m

[issue11245] Implementation of IMAP IDLE in imaplib?

2013-05-14 Thread Dmitry Shachnev
Changes by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker <http://bugs.python.org/issue11245> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: This is the possible patch for this proposal: https://mail.python.org/pipermail/python-ideas/2014-October/029826.html. -- components: Library (Lib) messages: 229167 nosy: vlth priority: normal severity: normal status: open title: Possible

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: def _extract_tb_or_stack_iter(curr, limit, extractor): # Distinguish frames from tracebacks (need to import types) if limit is None: limit = getattr(sys, 'tracebacklimit', None) elif limit < 0 and isinstance(curr, types.

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Sorry, first time posting here; accidently pressed Enter. -- hgrepos: +275 ___ Python tracker <http://bugs.python.org/issue22

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- keywords: +patch Added file: http://bugs.python.org/file36891/9f618a0c2880.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Thanks. I replied to your comments at Retvield. I'll update the patch tomorrow. -- ___ Python tracker <http://bugs.python.org/is

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Here's the updated (optimized) patch -- hgrepos: +277 ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Pytho

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Added file: http://bugs.python.org/file36899/9cb7aaad1d85.diff ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bug

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- hgrepos: -277 ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- hgrepos: -275 ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Renamed the cond variable, added tuple unpacking instead of using a single variable. -- Added file: http://bugs.python.org/file36916/tb_patch.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Removed file: http://bugs.python.org/file36916/tb_patch.diff ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list m

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- hgrepos: +278 ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Added file: http://bugs.python.org/file36918/4a0ec19e4288.diff ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bug

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- hgrepos: -278 ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Removed file: http://bugs.python.org/file36918/4a0ec19e4288.diff ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bug

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Added file: http://bugs.python.org/file36919/tb_patch_2.diff ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list m

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-23 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I think the reason this patch hasn't been discussed well is that it only changes the behavior for traceback.*_tb functions that only deal with tracebacks. I commented on the review page that we don't have to change the behavior of traceback.*_stack

[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol "ffi_call_win32"

2014-11-01 Thread Dmitry Sivachenko
Dmitry Sivachenko added the comment: On modern FreeBSD version (10/stable) on i386 arch it fails with the following error: build/temp.freebsd-10.0-RELEASE-p10-i386-3.4/usr/ports/lang/python34/work/Python-3.4.2/Modules/_ctypes/libffi/src/x86/ffi.o: In function `.LBB4_4': /usr/ports

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-04 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I'm not sure what would be the best way to support negative limit for stack functions. Actually, I think the current behavior is not intuitive. For example we could make positive limit mean the same thing for traceback and stack functions (load N en

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-11 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I updated the patch. -- Added file: http://bugs.python.org/file37181/traceback.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22930] Value of time.timezone is sometimes wrong

2014-11-24 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: Here, on Linux, I get: $ python3 -c "import time; print(time.timezone)" -14400 … which means I am in UTC+4. However, Russia recently (in October) switched time, and moved from UTC+4 to UTC+3 timezone (my tzdata is up-to-date), so this reporte

[issue22752] incorrect time.timezone value

2014-11-24 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: Is it possible to set timezone based on localtime(current_time) where current_time is the result of time() call? This bug is not just about returning the wrong timezone. Because of it, the full time string produced with Python may be wrong. For example, my

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2014-11-24 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: The value of time.timezone may be wrong sometimes (see http://bugs.python.org/issue22752), so I think the email library should not use it: $ python3 -c "from email.utils import formatdate; print(formatdate(localtime=True))" Mon, 24 Nov 2014 19:1

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2014-11-24 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: This patch fixes the issue for me. -- keywords: +patch Added file: http://bugs.python.org/file37266/issue22932.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-30 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Revisiting this issue, I realize that I made quite a few mistakes (because this was the first issue I submitted). The patch is definitely minor, and I'm no longer interested in it. This issue may now be closed. C

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-30 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-30 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- status: closed -> open ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: This is a complete implementation of negative limits for functions from traceback module (see this proposal - https://mail.python.org/pipermail/python-ideas/2014-August/029105.html). I also added some tests. -- components: Library (Lib) files

[issue22619] Possible implementation of negative limit for traceback functions

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Indeed, this is an exact duplicate, but I feel like that issue is an embarrassment: too many unnecessary actions, bad patches, and most of messages are totally useless. I wanted to start over for once, so I closed that issue. Pardon my initial ignorance

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue22974> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22619] Possible implementation of negative limit for traceback functions

2014-12-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Moved the latest patch with implementation and tests from issue 22974 (http://bugs.python.org/issue22974). -- status: closed -> open Added file: http://bugs.python.org/file37341/traceback_patch_2.diff ___ Pyt

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Removed file: http://bugs.python.org/file37336/traceback_patch_2.diff ___ Python tracker <http://bugs.python.org/issue22974> ___ ___ Python-bug

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2014-12-08 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: Here is the updated patch based on Alexander’s suggestion. Works fine, the only difference with previous behavior is that the zero time zone is now + instead of -. -- Added file: http://bugs.python.org/file37394/issue22932_v2.patch

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2014-12-09 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: Thanks, I did not know that. Here is version 3. -- Added file: http://bugs.python.org/file37402/issue22932_v3.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Python Developer's Guide said to ping the issue, in case of one-month long inactivity period. -- ___ Python tracker <http://bugs.python.org/is

[issue23167] Marshal docs say format version is 3; actual format version is 4

2015-01-04 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: Documentation on marshal module says that format version is 3, but Py_MARSHAL_VERSION is set to 4. Search for marshal-related issues gave me an idea that this is a documentation bug. -- assignee: docs@python components: Documentation files

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-05 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I understand that this issue is far from being important, but this is going to be the fourth unreviewed file in this issue. I noted all your comments to me and fixed the patch accordingly, but ever since November I'm the only one who posts something he

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-06 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Some of the patches (including the latest one) were missing Mercurial header. I'm uploading the properly formatted patch (traceback_rev_fixed.diff) -- Added file: http://bugs.python.org/file37615/traceback_rev_fixed

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Thank you, Terry. You got the proposal right. I'm glad you noticed the issues with tests, I updated the patch to fix them. -- Added file: http://bugs.python.org/file37628/traceback_rev2.diff ___ Python tr

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Hold on, I found 2 more bugs. Will update the patch soon. -- ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Pytho

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I improved tests for *_stack and *_tb functions, fixed a few typos and added more comments. -- Added file: http://bugs.python.org/file37632/traceback_rev3.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Removed file: http://bugs.python.org/file36919/tb_patch_2.diff ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bug

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Removed file: http://bugs.python.org/file37181/traceback.diff ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bugs-list m

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : Removed file: http://bugs.python.org/file37341/traceback_patch_2.diff ___ Python tracker <http://bugs.python.org/issue22619> ___ ___ Python-bug

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2015-01-11 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: This patch adds a test case for formatdate() function. Before applying issue22932_v3.patch it fails, after applying that patch it succeeds. Sorry for the delay caused by holidays. -- Added file: http://bugs.python.org/file37675/issue22932_test.patch

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2015-01-12 Thread Dmitry Shachnev
Changes by Dmitry Shachnev : Added file: http://bugs.python.org/file37683/issue22932_combined.diff ___ Python tracker <http://bugs.python.org/issue22932> ___ ___ Pytho

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2015-01-13 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: Can it be that you have outdated tzdata? -- ___ Python tracker <http://bugs.python.org/issue22932> ___ ___ Python-bugs-list m

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2015-01-15 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: Now the patch works with tzdata >= 2011k, which is quite old. @David: yes, with the unpatched version only one of the tests should fail. -- Added file: http://bugs.python.org/file37721/issue22932_combined_v2.d

[issue24309] string.Template should be using str.format and/or deprecated

2015-05-27 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: I came across this piece of code in Lib/string.py:146: # We use this idiom instead of str() because the latter will # fail if val is a Unicode containing non-ASCII characters. return '%s' % (mapping[named],) This seems vestigial. I thi

[issue24309] string.Template should be using str.format and/or deprecated

2015-05-27 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Ugh, I guess I was too quick to propose deprecation, sorry :( But is it a strict "No" to the proposed use of str.format as well? This would be a (relatively) minor but useful change which, again, won't break anything. I can

[issue14003] __self__ on built-in functions is not as documented

2015-06-07 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- nosy: +vlth ___ Python tracker <http://bugs.python.org/issue14003> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation does'nt

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho : -- components: Library (Lib) nosy: Dmitry Odzerikho priority: normal severity: normal status: open title: itertools.tee causes segfault in a multithreading environment, while the equivalent implementation does'nt type: crash versions: Pytho

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
New submission from Dmitry Odzerikho: Hi, I'm using iterators returned by itertools.tee in different threads. The original iterator passed to itertools.tee is thread-safe, however, it doesn't guarantees that the cloned iterators are thread safe too. However the equivalent impleme

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho : Added file: http://bugs.python.org/file39757/test_segfault.py ___ Python tracker <http://bugs.python.org/issue24482> ___ ___ Python-bug

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho : Removed file: http://bugs.python.org/file39756/test_segfault.py ___ Python tracker <http://bugs.python.org/issue24482> ___ ___ Python-bug

[issue24309] string.Template should be using str.format and/or deprecated

2015-06-21 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue24309> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24548] Broken link in the unittest documentation

2015-07-01 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: The "Simple Smalltalk Testing: With Patterns" link from https://docs.python.org/3.5/library/unittest.html is dead. I found 2 "mirrors" but I don't think any of them should replace the broken link. 1. http://testingsoftware.blogs

[issue23661] Setting a exception side_effect on a mock from create_autospec does not work

2015-11-18 Thread Dmitry Andreychuk
Dmitry Andreychuk added the comment: python 3.4.3 is also affected. Is it possible to fix this in branch 3.4? -- nosy: +and versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue23

[issue26542] Wrongly formatted doctest block in difflib documentation

2016-03-11 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: Look at the documentation of difflib.SequenceMatcher.get_opcodes: https://docs.python.org/dev/library/difflib.html#difflib.SequenceMatcher.get_opcodes There, the result part of the example is rendered as plain reStructuredText, separately from the code

[issue26798] add BLAKE2 to hashlib

2016-05-08 Thread Dmitry Chestnykh
Dmitry Chestnykh added the comment: Christian: yes, and I'm also happy that you kept the drawing of hash tree, as it helps a lot with understanding of terminology. I had a quick look at the patch and it looks good to me. Some comments, which you can ignore: In keyed hashing example th

[issue26798] add BLAKE2 to hashlib

2016-05-08 Thread Dmitry Chestnykh
Dmitry Chestnykh added the comment: > I have replaced verify() with compare_digest(). +>>> compare_digesty(cookie, '0102030405060708090a0b0c0d0e0f00') Typo here. Also, this doesn't look like it compares the digest. Maybe you can keep the verify() function, but

[issue4356] Add "key" argument to "bisect" module functions

2015-03-06 Thread Dmitry Chichkov
Dmitry Chichkov added the comment: Use case: a custom immutable array with a large number of items and indirect key field access. For example ctypes.array, memoryview or ctypes.pointer or any other custom container. 1. I'm not sure how anyone can consider a precached key array as a righ

[issue22619] Possible implementation of negative limit for traceback functions

2015-03-21 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Again, I'm honestly sorry if I'm being annoying, but is there anything else that needs to be done in order to make this issue "resolved"? The stage is set to "patch review", although there were no messages posted since the l

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-19 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I'll do that tomorrow. The patch still needs a review though... -- ___ Python tracker <http://bugs.python.org/is

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-20 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Here's the documentation patch. -- Added file: http://bugs.python.org/file39152/traceback_limit_doc.diff ___ Python tracker <http://bugs.python.org/is

<    1   2   3   4   >