[issue23338] PyErr_Format in ctypes uses invalid parameter

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f28c8cca671 by Serhiy Storchaka in branch '2.7': Issue #23338: Fixed formatting ctypes error messages on Cygwin. https://hg.python.org/cpython/rev/1f28c8cca671 New changeset 36eca0b259e2 by Serhiy Storchaka in branch '3.4': Issue #23338: Fixed form

[issue10590] Parameter type error for xml.sax.parseString(string, ...)

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset fca669149d8a by Serhiy Storchaka in branch 'default': Issue #10590: xml.sax.parseString() now supports string argument. https://hg.python.org/cpython/rev/fca669149d8a -- ___ Python tracker

[issue10590] Parameter type error for xml.sax.parseString(string, ...)

2015-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue23338] PyErr_Format in ctypes uses invalid parameter

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Makoto. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22831] Use "with" to avoid possible fd leaks

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea94f6c87f5d by Serhiy Storchaka in branch 'default': Issue #22831: Use "with" to avoid possible fd leaks. https://hg.python.org/cpython/rev/ea94f6c87f5d -- nosy: +python-dev ___ Python tracker

[issue23860] Failure to check return value from lseek() in Modules/mmapmodule.c

2015-04-04 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Bill. If you want to work on similar issues see also issue 15948. -- components: +Extension Modules -Interpreter Core nosy: +berker.peksag, haypo, serhiy.storchaka stage: -> patch review versions: +Python 3.5 _

[issue15948] Unchecked return value of I/O functions

2015-04-04 Thread Berker Peksag
Changes by Berker Peksag : -- dependencies: +Failure to check return value from lseek() in Modules/mmapmodule.c ___ Python tracker ___ __

[issue23849] Leaks in test_deque

2015-04-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks, I'll take a look. -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue23640] Enum.from_bytes() is broken

2015-04-04 Thread Ethan Furman
Ethan Furman added the comment: With the patch: --> import enum --> class Huh(enum.IntEnum): ... blah = 2 ... --> Huh.blah.from_bytes(b'\04', 'big') Traceback (most recent call last): File "", line 1, in File "/home/ethan/source/python/issue23640/Lib/enum.py", line 222, in

[issue23027] test_warnings fails with -Werror

2015-04-04 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch. -- assignee: -> berker.peksag keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file38827/issue23027.diff ___ Python tracker _

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2015-04-04 Thread Berker Peksag
Berker Peksag added the comment: issue18383_remove_dups.patch looks good to me. A test would be nice. -- nosy: +berker.peksag ___ Python tracker ___ _

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47a61a1c97b3 by Serhiy Storchaka in branch 'default': Fixed test_enum for issue #15582. https://hg.python.org/cpython/rev/47a61a1c97b3 -- ___ Python tracker __

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset dedf481ec2be by Serhiy Storchaka in branch '2.7': Issue #15133: _tkinter.tkapp.getboolean() now supports long and Tcl_Obj and https://hg.python.org/cpython/rev/dedf481ec2be New changeset 117f45749359 by Serhiy Storchaka in branch '3.4': Issue #15133

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changed test_enum to make buildbots green, but perhaps the docstring of Enum should be changed, because it now is used for all Enum subclasses that doesn't define a docstring explicitly. An alternative solution is to set __doc__ of Enum subclasses to an empt

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-04 Thread Cédric Krier
Changes by Cédric Krier : -- title: Wrong FD_DIR file name on OpenBSD -> Wrong computation of max_fd on OpenBSD Added file: http://bugs.python.org/file38828/max_fd.patch ___ Python tracker

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-04 Thread Cédric Krier
Changes by Cédric Krier : Removed file: http://bugs.python.org/file38828/max_fd.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2015-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> berker.peksag stage: patch review -> commit review ___ Python tracker ___ ___ Python-bu

[issue23027] test_warnings fails with -Werror

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch fixes an error, but produces a warning about changed filters. The patch in issue18383 should fix it. The patch LGTM, but I left one question on Rietveld. -- dependencies: +test_warnings modifies warnings.filters when running with "-W defau

[issue23864] issubclass without registration only works for "one-trick pony" collections ABCs.

2015-04-04 Thread Martijn Pieters
New submission from Martijn Pieters: The collections.abc documentation implies that *any* of the container ABCs can be used in an issubclass test against a class that implements all abstract methods: > These ABCs allow us to ask classes or instances if they provide particular > functionality

[issue23864] issubclass without registration only works for "one-trick pony" collections ABCs.

2015-04-04 Thread Jon Clements
Changes by Jon Clements : -- nosy: +joncle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue23864] issubclass without registration only works for "one-trick pony" collections ABCs.

2015-04-04 Thread Martijn Pieters
Martijn Pieters added the comment: I should have added the mixin methods for the Sequence implementation; the more complete demonstration is: >>> from collections.abc import Sequence, Container, Sized >>> class MySequence(object): ... def __contains__(self, item): pass ... def __len__(s

[issue23857] Make default HTTPS certificate verification setting configurable via global ini file

2015-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Donald on all points. This shouldn't be done at the language level at all (why should it apply only to Python-written tools?). Having a centralized setting saying "I relinquish security on HTTPS accesses" sounds like a bad idea. And if this is sol

[issue23865] Fix possible leaks in close methods

2015-04-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch fixes two related issues in a number of modules. 1. close() methods sometimes release multiple resources. Every closing operation can fail, but it shouldn't prevent releasing other resources. See for example issue21802. 2. close() should be

[issue23861] Make stdprinter use DebugOutputString when no stdout/stderr available

2015-04-04 Thread Tim Golden
Tim Golden added the comment: Are we talking about re-implementing StdPrinter in terms of OutputDebugString? (Either always, on Windows, or as a fallback?) -- ___ Python tracker ___

[issue23640] Enum.from_bytes() is broken

2015-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The fact that derived_int.from_bytes() doesn't call the derived constructor clearly sounds like a bug to me, regardless of whether IntEnum also has its own bugs. -- nosy: +pitrou ___ Python tracker

[issue23864] issubclass without registration only works for "one-trick pony" collections ABCs.

2015-04-04 Thread Antti Haapala
Antti Haapala added the comment: This does apply to all versions of Python from 2.6 up. Registering does work of course. I believe the reason for not having the __subclasshook__ is the following sentence in PEP 3119: "ABCs are intended to solve problems that don't have a good solution at all

[issue23866] array module broken

2015-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou: The array.array constructor has stopped working. I feel like this may be due to the latest Argument Clinic changes. == ERROR: test_create_from_bytes (test.test_array.ByteTest) ---

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-04 Thread Stefan Krah
Stefan Krah added the comment: Unfortunately I don't have an OpenBSD install either. From the sysconf.c source ... http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/libc/gen/sysconf.c?rev=1.22&content-type=text/plain ... it seems that sysconf(_SC_OPEN_MAX) also calls getrlimit().

[issue23861] Make stdprinter use DebugOutputString when no stdout/stderr available

2015-04-04 Thread Steve Dower
Steve Dower added the comment: There's just a couple of places to add calls to OutputDebugString, plus we need to make creation always succeed on Windows. Not a huge change - it'll still write to the standard stream if it's there. -- ___ Python trac

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 973c9ec53bbb by Serhiy Storchaka in branch 'default': Fixed the array module broken in issue #23492. https://hg.python.org/cpython/rev/973c9ec53bbb -- ___ Python tracker

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-04 Thread Wolfgang Maier
Wolfgang Maier added the comment: the new test: test_exc('%x', '1', TypeError, "%x format: a number is required, not str") expects the wrong error message. python -m unittest -v test.test_format ... '%x' % '1' works? ... no Unexpected : '%x format: an integer is required, not str' ... -> i

[issue23866] array module broken

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 973c9ec53bbb by Serhiy Storchaka in branch 'default': Fixed the array module broken in issue #23492. https://hg.python.org/cpython/rev/973c9ec53bbb -- nosy: +python-dev ___ Python tracker

[issue23866] array module broken

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine. Fixed. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker __

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-04 Thread Cédric Krier
Cédric Krier added the comment: But sysconf(_SC_OPEN_MAX) uses rlim_cur which is too low instead of rlim_max. My proposal is indeed describe in msg219477, it is not prefect but at least better than the current one for OpenBSD. -- ___ Python tracker

[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2015-04-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch makes Argument Clinic to inline parsing code for most popular formats in functions with single positional argument. This makes parsing faster. -- components: Argument Clinic files: clinic_meth_o_inline.patch keywords: patch messages:

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-04 Thread Cédric Krier
Cédric Krier added the comment: Correctly cast to long instead of int. -- Added file: http://bugs.python.org/file38831/max_fd.patch ___ Python tracker ___ ___

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11e6986c794d by Serhiy Storchaka in branch 'default': Issue #23466: Fixed expected error message in test_format. https://hg.python.org/cpython/rev/11e6986c794d -- ___ Python tracker

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch, Wolfgang! Definitely we should make test_format more unittest compatible. -- ___ Python tracker ___ _

[issue23868] Uninitialized objects are tracked by the garbage collector

2015-04-04 Thread Hristo Venev
New submission from Hristo Venev: An object starts being tracked by the GC after being allocated, but before being initialized. If during initialization the GC runs, this may lead to tp_traverse being called on an uninitialized object. -- components: Interpreter Core messages: 240079 n

[issue23869] Initialization is being done in PyType_GenericAlloc

2015-04-04 Thread Hristo Venev
New submission from Hristo Venev: In PyType_GenericAlloc, the initialization is being done. Namely, the PyObject part of the object is initialized and it is tracked by the garbage collector. In the documentation it is stated that tp_alloc should do no initialization. -- messages: 24008

[issue23869] Initialization is being done in PyType_GenericAlloc

2015-04-04 Thread Hristo Venev
Changes by Hristo Venev : -- components: +Interpreter Core versions: +Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue23849] Leaks in test_deque

2015-04-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hmm, I don't see this on my build (Mac OS/X 10.10.2 clang-600.0.57): $ ./python.exe -m test.regrtest -R 3:3:reflog test_deque [1/1] test_deque beginning 6 repetitions 123456 .. 1 test OK. Nor do I see any flux using the test_deque's down repeat loop: $

[issue23849] Leaks in test_deque

2015-04-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looks like Benjamin had fixed this earlier today: https://mail.python.org/pipermail/python-checkins/2015-April/135444.html -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-04 Thread Jeff McNeil
Jeff McNeil added the comment: Whoops. Accidentally attached the wrong patch that I generated during testing. -- Added file: http://bugs.python.org/file38832/socket_eintr.1.patch ___ Python tracker

[issue23870] pprint collections classes

2015-04-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds support of all collections classes (except namedtuple) in pprint. It uses undocumented unstable private API. After implementing issue7434 the code could be rewritten with using public stable well-designed API. One day in the womb of tim

[issue23640] Enum.from_bytes() is broken

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This bug allows to create new bool instances. >>> false = bool.from_bytes(b'\0', 'big') >>> true = bool.from_bytes(b'\1', 'big') >>> bool(false) False >>> bool(true) True >>> false is False False >>> true is True False >>> false False >>> true False -

[issue20192] pprint chokes on set containing frozenset

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is reproducible on 2.7 example: >>> import pprint, datetime, test.test_datetime >>> naive = datetime.datetime.utcnow() >>> aware = >>> datetime.datetime.utcnow().replace(tzinfo=test.test_datetime.FixedOffset(-300, >>> "EST", 1)) >>> pprint.pprint({naive

[issue23728] binascii.crc_hqx() can return negative integer

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nobody proposed a patch, so I do this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23728] binascii.crc_hqx() can return negative integer

2015-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka keywords: +patch stage: needs patch -> patch review versions: +Python 3.4 Added file: http://bugs.python.org/file38834/binascii_crc_hqx_empty_data.patch ___ Python tracker

[issue23790] When xdrlib.Packer().pack_string() fails, the Packer is corrupted

2015-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2015-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue23860] Failure to check return value from lseek() in Modules/mmapmodule.c

2015-04-04 Thread Bill Parker
Bill Parker added the comment: I would check 23855 as well, since the malloc() missing a sanity check, which could be a more serious issue .. On Sat, Apr 4, 2015 at 1:32 AM, Berker Peksag wrote: > > Berker Peksag added the comment: > > Thanks for the patch, Bill. If you want to work on similar

[issue23501] Argument Clinic: generate code into separate files by default

2015-04-04 Thread Mark Lawrence
Mark Lawrence added the comment: I think this change in association with that in #23500 is causing builds to fail on Windows. error C2065: 'OS_STAT_METHODDEF' : undeclared identifier C:\cpython\Modules\posixmodule.c line 12083 -- nosy: +BreamoreBoy

[issue23501] Argument Clinic: generate code into separate files by default

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17eb29faebde by Serhiy Storchaka in branch 'default': Issue #23501: #include "clinic/posixmodule.c.h" was in the section skipped on Windows. https://hg.python.org/cpython/rev/17eb29faebde -- ___ Python t

[issue23501] Argument Clinic: generate code into separate files by default

2015-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Mark. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue23330] h2py.py regular expression missing

2015-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23501] Argument Clinic: generate code into separate files by default

2015-04-04 Thread Mark Lawrence
Mark Lawrence added the comment: Serhiy, thank you for the quick fix :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-04 Thread STINNER Victor
STINNER Victor added the comment: I have a very good news for you: this issue and more generally all EINTR issues will be solved in Python 3.5. See the PEP 475. I'm not really interested to fix Python 2.7. -- ___ Python tracker

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: You may not be, but I am. :). Jeff is aware of PEP 475. Thanks for the awesome work on the real cleanup of this stuff in 3.5. Sanity at last. -- ___ Python tracker _

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2015-04-04 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23864] issubclass without registration only works for "one-trick pony" collections ABCs.

2015-04-04 Thread eryksun
eryksun added the comment: Probably I'm overlooking something, but why isn't this hook defined cooperatively, with a terminating base class method that returns True? If the call chain progresses to the base, then all of the interfaces have been satisfied. Otherwise one of the bases returns Not

[issue23871] turning itertools.{repeat, count} into indexable iterables

2015-04-04 Thread Antony Lee
New submission from Antony Lee: itertools.repeat and itertools.count could be made into indexable iterables (rather than iterators), rather than iterators, like range is right now. -- components: Library (Lib) messages: 240096 nosy: Antony.Lee priority: normal severity: normal status: o

[issue23872] Typo in response in smtpd

2015-04-04 Thread Hoolean
New submission from Hoolean: A spelling mistake is present: in all other instances in the class, the string is ' [SP ]', yet at this line it is [incorrectly] ' [SP ' character. I have attached a patch correcting this. -- components: Library (Lib) files: correction.patch keywords: patch

[issue23873] Removal of dead code in smtpd

2015-04-04 Thread Hoolean
New submission from Hoolean: Code was present that checked conditions that had previous been checked and had returned the function prematurely if the condition was true. As the condition has not changed before the check is made again, the condition will always be false and the code inside the

[issue23874] Encrypted MSI fails to install with code 2755

2015-04-04 Thread Jason R. Coombs
New submission from Jason R. Coombs: When installing Python (3.4.3 or 2.7.9) from an EFS encrypted installer file, the installation proceeds normally through the target selection and feature selection, but then immediately reports "/!\ The system cannot open the device or file specified," and

[issue23874] Encrypted MSI fails to install with code 2755

2015-04-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: A search for "EFS error code 2755" reveals others who have encountered this issue with other packages, so it's not unique to Python, though it may be something that Python might be able to address or may be unable to solve due to the required operations. ---

[issue23841] py34 OrderedDict is using weakref for root reference

2015-04-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antoine, I could use a second pair of eyes to see what is going on there. It looks like an upstream __del__() method is trying to iterate over an OrderedDict that was already being shutdown (the hardroot link no longer exists). That said, I don't see how

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2015-04-04 Thread Arnon Sela
Arnon Sela added the comment: I ran into similar issue on OSX. Multiprocessing system where processes issue sqlite3.connect(). Periodically it hangs. System is using Python 3.4.3 and sqlite3; it doesn't use tkinter Noticed the following: 1. This doesn't happen on Ubuntu 2. It happens even

[issue23872] Typo in response in smtpd

2015-04-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> commit review versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2015-04-04 Thread Ned Deily
Ned Deily added the comment: Arnon, what version of sqlite3 is the Python linked with? Try: python3.4 -c "import sqlite3;print(sqlite3.sqlite_version)" What kind of database access is happening in your program, i.e. strictly multi-read, one writer many reads, multiple-writers? Also, regardin

[issue19105] pprint doesn't use all width

2015-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d9520e2223f by Serhiy Storchaka in branch 'default': Updated pprint examples in according to issue #19105. https://hg.python.org/cpython/rev/6d9520e2223f -- ___ Python tracker