[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-15 Thread Jayanth Koushik
Changes by Jayanth Koushik jnkous...@gmail.com: -- assignee: docs@python components: Documentation nosy: docs@python, jayanthkoushik priority: normal severity: normal status: open title: Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation type: enhancement

[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-15 Thread Jayanth Koushik
New submission from Jayanth Koushik: In the difflib documentation, multiple uses of 'splitlines' use '1' as the 'keepends' argument. In Python 2.x, 1 is not guaranteed to be True and while this is guaranteed in 3.x, it would be much clearer to specify the argument as 'True'. --

[issue8931] '#' has no effect with 'c' type

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16efa8d27e4c by Eric V. Smith in branch '3.4': Closed issue #8931: Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff. http://hg.python.org/cpython/rev/16efa8d27e4c -- nosy: +python-dev

[issue8931] '#' has no effect with 'c' type

2014-04-15 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8931 ___

[issue21146] update gzip usage examples in docs

2014-04-15 Thread Wolfgang Maier
Wolfgang Maier added the comment: well, buffering is not the issue here. It's that the file iterator used in the current example is line-based, so whatever the buffer size you're doing unnecessary inspection to find and split on line terminators. --

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Nathaniel Smith
New submission from Nathaniel Smith: Numpy would like to switch to using the CPython allocator interface in order to take advantage of the new tracemalloc infrastructure in 3.4. But, numpy relies on the availability of calloc(), and the CPython allocator API does not expose calloc().

[issue12220] minidom xmlns not handling spaces in xmlns attribute value field

2014-04-15 Thread Marek Stepniowski
Marek Stepniowski added the comment: I agree that Unsupported syntax is a more accurate message. Changed in the newest patch. -- Added file: http://bugs.python.org/file34866/minidom_space_char_in_namespace_unsupported.patch ___ Python tracker

[issue21191] os.fdopen() may eat file descriptor and still raise exception

2014-04-15 Thread Dima Tisnek
Dima Tisnek added the comment: Banjamin, Your patch looks good to me! I have a small concern regarding We now know we will succeed... -- should there be a test case to make sure fstat test here matches whatever test is/was done on a lower level? Or is your code now such that it will

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21233 ___ ___ Python-bugs-list

[issue21227] Decimal class error messages for integer division aren't good

2014-04-15 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- assignee: docs@python - skrah nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21227 ___

[issue21197] venv does not create lib64 directory and appropriate symlinks

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d9b24b2f1b8 by Vinay Sajip in branch '3.4': Issue #21197: Add lib64 - lib symlink in venvs on 64-bit non-OS X POSIX. http://hg.python.org/cpython/rev/4d9b24b2f1b8 New changeset 947515cc8957 by Vinay Sajip in branch 'default': Closes #21197: Add

[issue21191] os.fdopen() may eat file descriptor and still raise exception

2014-04-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Tue, Apr 15, 2014, at 2:34, Dima Tisnek wrote: Dima Tisnek added the comment: Banjamin, Your patch looks good to me! I have a small concern regarding We now know we will succeed... -- should there be a test case to make sure fstat test here

[issue21234] __contains__ and friends should check is for all elements first

2014-04-15 Thread Jurjen N.E. Bos
New submission from Jurjen N.E. Bos: It all started when adding an __equals__ method to a self made class. The effect was that my program slowed down enormously, which came as a surprise. This is because when doing an operation that does linear search through a container, the interpreter

[issue21203] logging configurators ignoring documented options

2014-04-15 Thread Vinay Sajip
Vinay Sajip added the comment: I'm not sure I can accept the change in 2.7, because it is technically a new feature and would mean that configs would not be treated the same way in all 2.7.x versions failing in some and not in others. You can get the equivalent behaviour using '()' rather

[issue21203] logging configurators ignoring documented options

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d33cbf02522 by Vinay Sajip in branch 'default': Closes #21203: Updated fileConfig and dictConfig to remove inconsistencies. Thanks to Jure Koren for the patch. http://hg.python.org/cpython/rev/2d33cbf02522 -- nosy: +python-dev resolution:

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Chris Rose
Chris Rose added the comment: Updated according to review. -- Added file: http://bugs.python.org/file34868/difflib-sm.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752 ___

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hi. I added a couple of comments for your previous patch, the new one doesn't seem to have a review link. -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Chris Rose
Chris Rose added the comment: Addressed comments regarding documentation and assertion formats in the test. -- Added file: http://bugs.python.org/file34869/difflib-sm.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-15 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, I'm feeling a bit uncomfortable with the patch I pushed. I think we should adjust the solution, to avoid having arguments to 'gen.send' packed in two nested tuples. Please take a look at the new patch (corowrapper_03.patch). It adds some amount of

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Chris Rose
Chris Rose added the comment: Patch against tip -- Added file: http://bugs.python.org/file34871/difflib-sm.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752 ___

[issue17861] put opcode information in one place

2014-04-15 Thread Kushal Das
Kushal Das added the comment: New patch from a clean repo, with changed opcode.h -- Added file: http://bugs.python.org/file34872/issue17861_v5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Armin Ronacher
New submission from Armin Ronacher: 3.4 deprecates load_module on the loaders and now proposes to use create_module (optionally) and exec_module. Unfortunately for external callers these interfaces are not useful because you need to reimplement _SpecMethods.create and a whole bunch of other

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Armin Ronacher
Armin Ronacher added the comment: On further investigation that is not even enough yet due to the new locking mechanism. I'm not even sure if exposing _SpecMethods would be enough. -- ___ Python tracker rep...@bugs.python.org

[issue837046] pyport.h redeclares gethostname() if SOLARIS is defined

2014-04-15 Thread Michael Stahl
Michael Stahl added the comment: we carry a patch in LibreOffice for exactly this problem: http://cgit.freedesktop.org/libreoffice/core/tree/external/python3/python-3.3.0-i42553.patch.2 this was found many years ago in OOo: https://issues.apache.org/ooo/show_bug.cgi?id=42553 there is at least

[issue1650090] doctest doesn't find nested functions

2014-04-15 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1650090 ___ ___

[issue15795] Zipfile.extractall does not preserve file permissions

2014-04-15 Thread Glenn Jones
Glenn Jones added the comment: Patch cleaned up based on previous comments. -- Added file: http://bugs.python.org/file34873/issue15795_cleaned.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15795

[issue21027] difflib new cli interface

2014-04-15 Thread Claudiu.Popa
Claudiu.Popa added the comment: Raymond, any news on this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21027 ___ ___ Python-bugs-list mailing

[issue1704474] optparse tests fail under Jython

2014-04-15 Thread Christian Hudon
Christian Hudon added the comment: Actually, the only optparse test failing on jython 2.7 beta 1 currently is the one that relies on sys.getrefcount. Adding a test_support.impl_detail() guard makes all the tests pass. (See attached patch.) I'd propose adding this patch to both the python3 and

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-15 Thread STINNER Victor
STINNER Victor added the comment: I think we should adjust the solution, to avoid having arguments to 'gen.send' packed in two nested tuples. I should check, but I think that Python create a tuple for you if you don't pass directly a tuple, so it's not very different. Anyway, it is only used

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-15 Thread Guido van Rossum
Guido van Rossum added the comment: I agree with Yuri and I approve of the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21209 ___ ___

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Eric Snow
Eric Snow added the comment: I agree that this is something we need to address in 3.5. Adding this to 3.4 won't be an option since it would require a new feature. However, Loader.load_module() is only deprecated (and won't be removed in 3.X), so the current approach will still work until we

[issue15795] Zipfile.extractall does not preserve file permissions

2014-04-15 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hello. I added a couple of comments to your latest patch. -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15795 ___

[issue10523] argparse has problem parsing option files containing empty rows

2014-04-15 Thread Caelyn McAulay
Caelyn McAulay added the comment: I've attached a patch making the changes I suggested, assuming that the current behaviour is desirable. It documents the behaviour of argparse on files with blank lines and changes the way the error message that argparse generates when encountering

[issue20318] subprocess.Popen can hang in threaded applications in Python 2

2014-04-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: I added a pointer to subprocess32 in the 2.7 subprocess docs in dd52365c8721. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Brett Cannon
Brett Cannon added the comment: Are you after just the module creation/initialization code so you can call exec_module() yourself, Armin, or do you want even more of the algorithm exposed (e.g. the lock stuff)? There are not tons of importlib users to the level of wanting to re-implement

[issue20103] Documentation of itertools.accumulate is confused

2014-04-15 Thread A.M. Kuchling
Changes by A.M. Kuchling a...@amk.ca: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20103 ___ ___

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Chris Rose
Chris Rose added the comment: As a historical record, it should be noted that this is driven by an actual use case: I was experimenting with using Bazaar's patience diff implementation, and I saw that in order for them to use a custom sequence matcher, they had to essentially copy-paste and

[issue21236] patch to use cabinet.lib instead of fci.lib (fixes build with Windows SDK 8.0)

2014-04-15 Thread Michael Stahl
New submission from Michael Stahl: building with MSVC2012 and the Windows SDK 8.0 fails according to this page, the fci.lib is no longer available and cabinet.lib should be used instead: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/3b85f36e-dffe-4589-adc3-13673b349812/ For

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21233 ___ ___ Python-bugs-list mailing

[issue1704474] optparse tests fail under Jython

2014-04-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch to add impl_detail() looks fine to me. -- versions: +Python 2.7, Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1704474 ___

[issue21222] Mock create_autospec with name argument fails

2014-04-15 Thread Michael Foord
Michael Foord added the comment: You can use kwargs.pop instead of the two step fetch and delete. For the test, could you add an assert that the name is used. Can you add an extra underscore to the method name, to make it: test_create_autospec_with_name -- nosy: +michael.foord

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Armin Ronacher
Armin Ronacher added the comment: I'm not sure myself what I need right now. I personally have avoided importlib/imp entirely for my code and I roll with manual module creation because it is most stable between 2.6 - 3.4 but it's getting more complicated to work because of all the new

[issue21237] Update Python 2/3 porting HOWTO's suggestion for dealing with map()

2014-04-15 Thread Brett Cannon
New submission from Brett Cannon: In Python 2.6 and newer you can import future_builtins and use everything from there. In Python 2.5 it should be itertools.imap(). This is much cleaner than the current suggestion at

[issue21220] Enhance obmalloc allocation strategy

2014-04-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Update patch with suggestions from Larry -- Added file: http://bugs.python.org/file34876/obmalloc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21220

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: In this patch, I deprecate the inspect.getfullargspec function in the documentation and raise an warnings.warn with DeprecationWarning. Need feedback, because the inspect.getargspec() informs the user that it can use the getfullargspec() and I think we

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Here is the output of my test: ./python3.5 -Wd test.py test.py:9: DeprecationWarning: Deprecated warnings.warn('Deprecated', DeprecationWarning) /private/tmp/python/lib/python3.5/inspect.py:955: DeprecationWarning: Use inspect.signature() instead of

[issue984870] curses: getmaxyx() breaks when the window shrinks

2014-04-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: I agree with Chris's logic; the incorrect size seems to be a curses/ncurses bug that has gotten fixed somewhere along the line. You also aren't able to shrink the terminal to be smaller than the size of a derived window created with derwin(), but you seem to

[issue15370] test_runpy should include namespace package tests

2014-04-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Because Nick both originally created this ticket and also added the new tests (http://hg.python.org/cpython/rev/51dddfead80a/), I'll assume he knew what he was doing when he named those methods, and simply forgot to close this issue. -- assignee: -

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-04-15 Thread Christian Theune
Changes by Christian Theune c...@gocept.com: -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18099 ___ ___

[issue21238] unittest.mock.Mock should not allow you to use non-existent assert methods

2014-04-15 Thread Michael Foord
New submission from Michael Foord: A common problem with unittest.mock.Mock is to mistype an assert method. Because mocks create attributes on demand your test will pass without error. We should raise an AttributeError if you access any attribute name (that doesn't exist) starting with assert

[issue20103] Documentation of itertools.accumulate is confused

2014-04-15 Thread Christian Hudon
Christian Hudon added the comment: Second revision, incorporating comments. Also document the behavior when passed an empty input iterable. -- Added file: http://bugs.python.org/file34878/accumulate2.diff ___ Python tracker rep...@bugs.python.org

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21235 ___ ___

[issue21239] unittest.mock.patch.stopall intermittently doesn't work when the same thing is patched multiple times

2014-04-15 Thread Michael Foord
New submission from Michael Foord: stopall does not always stop all patches to single target http://code.google.com/p/mock/issues/detail?id=226 What steps will reproduce the problem? python code to reproduce error import mock def myfunc(): return 'hello' m =

[issue21240] Add an abstactmethod directive to the Python ReST domain

2014-04-15 Thread Eric Snow
New submission from Eric Snow: I'd like to be able to mark abstract methods in the docs more explicitly and have their presentation in the docs be more obvious. So I'd like to propose abstractmethod as a new directive to join the existing ones (classmethod, staticmethod, etc.). (This is

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Eric Snow
Eric Snow added the comment: I've opened up #21240 to address the the docs concern. Thanks for bringing it up. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21235 ___

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2729823525fe by Yury Selivanov in branch '3.4': asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly http://hg.python.org/cpython/rev/2729823525fe New changeset 552ee474f3e7 by Yury Selivanov in branch 'default': asyncio.tasks:

[issue21240] Add an abstactmethod directive to the Python ReST domain

2014-04-15 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21240 ___ ___ Python-bugs-list

[issue21203] logging configurators ignoring documented options

2014-04-15 Thread Jure Koren
Jure Koren added the comment: I agree about the 2.7 branch, I did that one off the top of my head after struggling with backporting the code to 2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21203

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2014-04-15 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11316 ___ ___

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Brett Cannon
Brett Cannon added the comment: I was thinking about suggesting we don't code deprecate getfullargspec() but the function seems to be new to Python 3 and so that worry for Python 2/3 code is not founded. -- ___ Python tracker rep...@bugs.python.org

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Armin Ronacher
Armin Ronacher added the comment: Also mostly unrelated importlib now does something I have never seen an ABC do: the ABC has create_module but concrete implementations mostly have that function entirely absent. That should probably be reconsidered as it's super confusing. --

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Yury Selivanov
Yury Selivanov added the comment: How about we deprecate with a warning getfullargspec(); deprecate getargspec() in docs only (in 3.6 we'll fully deprecate all function parameters API except Signature)? -- ___ Python tracker rep...@bugs.python.org

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-15 Thread Yury Selivanov
Yury Selivanov added the comment: I should check, but I think that Python create a tuple for you if you don't pass directly a tuple, so it's not very different. That's what I thought, but still, better to have the code clearly expressing what it does, than relying on obscure

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21235 ___ ___

[issue2159] dbmmodule inquiry function is performance prohibitive

2014-04-15 Thread Eric Olson
Eric Olson added the comment: The performance is still an issue in python 3. Attaching a patch for python 3, performance numbers are below. Measuring ndbm time for a falsey check on an open db with 100 entries. gdbm performance is similar. Before patch: db is not None:

[issue21075] fileinput should use stdin.buffer for rb mode

2014-04-15 Thread Sam Kimbrel
Sam Kimbrel added the comment: Patch attached that checks for 'b' in self._mode and sets self._file to sys.stdin.buffer as appropriate. -- keywords: +patch nosy: +sam.kimbrel Added file: http://bugs.python.org/file34880/21075-fileinput-stdin.diff

[issue16236] Doc/Makefile should have $PYTHON=python2

2014-04-15 Thread Berker Peksag
Berker Peksag added the comment: You can now build the Python documentation with using Python 3. See msg216161 in issue 10224 for more information. -- nosy: +berker.peksag resolution: - out of date stage: - committed/rejected status: open - closed

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Just one thing, how do you work for the deprecation? 1. you deprecate in the doc for 3.5? 2. you deprecate in the code for 3.6? 3. you remove the code in 3.7? What's the strategy in this case or in general? Thanks --

[issue21241] Variable name with number causes interactive console to crash

2014-04-15 Thread Henk-Jaap Wagenaar
New submission from Henk-Jaap Wagenaar: Executing in the interactive console: foo1 = 0 and then foo1 gives Segmentation Fault: 11 on OS X 10.9.2, Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] If foo1 is defined in a program, and

[issue21241] Variable name with number causes interactive console to crash

2014-04-15 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar superhenkj...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21241 ___ ___

[issue21241] Variable name with number causes interactive console to crash

2014-04-15 Thread Ned Deily
Ned Deily added the comment: See Issue18458. Update to the latest Python 3.3.5 or 3.4.0. -- nosy: +ned.deily resolution: - duplicate stage: - committed/rejected superseder: - interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

[issue21234] __contains__ and friends should check is for all elements first

2014-04-15 Thread Wolfgang Maier
Wolfgang Maier added the comment: - if an object is in the container that is equal to the object, it will be slower, but not very much. You don't know that in general. It depends on where in the sequence the equal object sits, and also on how expensive the equality check is compared to the

[issue21241] Variable name with number causes interactive console to crash

2014-04-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21241 ___ ___ Python-bugs-list mailing

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Brett Cannon
Brett Cannon added the comment: How warnings are handled vary from case to case. Typically its documentation-only if we want to warn people that they shouldn't use something because there is a better alternative but the code is not fundamentally broken and its in Python 2. If there is

[issue21220] Enhance obmalloc allocation strategy

2014-04-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: In Python 3, arenas are allocated using mmap(), so wherever the arena ends up in the address space shouldn't matter, should it? Also, the new strategy adds an O(n) component in the allocator. -- nosy: +neologix, pitrou, tim.peters

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok, so in this case, I can only change the documentation with a .. deprecated:. But for the future, how can we know we have to deprecate this function for = 3.6 ? Will you parse the documentation and check there is an deprecation to add in the code? Or is

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Yury Selivanov
Yury Selivanov added the comment: I'd +1 for: 1. Deprecating getfullargsspec in docs; 2. Deprecating getargspec in docs and code (since it's an ancient and outdated API) Brett? -- ___ Python tracker rep...@bugs.python.org

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Brett, If you agree with Yury, I will provide a patch with these tasks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20438 ___

[issue20438] inspect: Deprecate getfullargspec?

2014-04-15 Thread Brett Cannon
Brett Cannon added the comment: Since getfullargspec is new in Python 3 and inspect.signature fundamentally improves things in Python 3 due to Argument Clinic I would say go ahead and code deprecate getfullargspec (we can do a DeprecationWarning for 3.5 and 3.6 and remove in 3.7; people

[issue21222] Mock create_autospec with name argument fails

2014-04-15 Thread Kushal Das
Kushal Das added the comment: New patchset with changes made as suggested. -- Added file: http://bugs.python.org/file34881/issue21222_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21222

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread A Kaptur
A Kaptur added the comment: v2 of the patch incorporating the comments at http://bugs.python.org/review/21217/ -- Added file: http://bugs.python.org/file34882/issue21217-v2.patch ___ Python tracker rep...@bugs.python.org

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread Yury Selivanov
Yury Selivanov added the comment: Apart from one nit, the patch is looking good. Also, could you please sign the contributor agreement, as described here: https://docs.python.org/devguide/coredev.html#sign-a-contributor-agreement -- ___ Python

[issue21242] Generalize configure check for working Python executable

2014-04-15 Thread Brett Cannon
New submission from Brett Cannon: configure.ac has a check that sets ASDLGEN based on what Python interpreter to use for running various scripts which generate files related to the AST. It probably should be generalized so that there's only one check for any script usage in Makefile.pre.in

[issue1521196] smtplib login fails with aol smtp server

2014-04-15 Thread R. David Murray
R. David Murray added the comment: This will be fixed as part of issue 15014, which also adds support for providing user created auth methods. -- resolution: - duplicate stage: test needed - committed/rejected status: open - closed superseder: - smtplib: add support for arbitrary

[issue17861] put opcode information in one place

2014-04-15 Thread Kushal Das
Kushal Das added the comment: New patch with changes as suggested by Brett. -- Added file: http://bugs.python.org/file34883/issue17861_v6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861

[issue20983] Python 3.4 'repair' Windows installation does not install pip setuptools packages

2014-04-15 Thread Don DeZutter
Don DeZutter added the comment: Martin: Thank you for your prompt and helpful response to my attempt to tag along to a possibly similar bug. I had been working on my issue for about two weeks and truly believed it was a bug before i adventured as I did. As you know, the difference between a

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2014-04-15 Thread Caelyn McAulay
Caelyn McAulay added the comment: Added comment to documentation concerning when the headers attribute gets set. I confirmed that the headers attribute is only ever set in the parse_request method of BaseHTTPRequestHandler and only if the request is successfully parsed as HTTP. --

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread Claudiu.Popa
Claudiu.Popa added the comment: - We added tests of decorated classes. The source of decorated classes does not include the decorators, which is different than the usual behavior of decorated functions. What is the correct behavior here? There is an open issue for this,

[issue1764286] inspect.getsource does not work with decorated functions

2014-04-15 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1764286 ___ ___

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread Yury Selivanov
Yury Selivanov added the comment: Claudiu: I'll take a look at your patch, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21217 ___ ___

[issue21242] Generalize configure check for working Python executable

2014-04-15 Thread Meador Inge
Meador Inge added the comment: I am not sure I follow. In configure.ac I see one check for Python: AC_SUBST(ASDLGEN) AC_CHECK_PROGS(PYTHON, python$PACKAGE_VERSION python3 python, not-found) if test $PYTHON = not-found; then ASDLGEN=@echo python: $PYTHON! cannot run

[issue21243] Auto-generate exceptions.c from a Python file

2014-04-15 Thread Brett Cannon
New submission from Brett Cannon: There isn't very much that's special about the various exceptions (although maybe there will be some day). Anyway, it seems like we could, if we so desired, define the exceptions in Python and then auto-generate the C code. The other option is to obviously

[issue21242] Generalize configure check for working Python executable

2014-04-15 Thread Meador Inge
Meador Inge added the comment: Ah, okay, this looks in reference to the opcode generation stuff in issue17861. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21242 ___

[issue21242] Generalize configure check for working Python executable

2014-04-15 Thread Brett Cannon
Brett Cannon added the comment: You figured out the reason for the interest; I filed the bug faster than Kushal could commit his code. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21242

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-15 Thread A Kaptur
A Kaptur added the comment: v3 of patch, including misc/news update, docstring for function, and removing class decorator tests, since it sounds like those are better handled in http://bugs.python.org/issue1764286. -- Added file: http://bugs.python.org/file34885/issue21217-v3.patch

[issue17861] put opcode information in one place

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 56e7fa27f979 by Kushal Das in branch 'default': Closes Issue 17861: Autogenerate Include/opcode.h from opcode.py. http://hg.python.org/cpython/rev/56e7fa27f979 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue21223] fix test_site/test_startup_imports when some of the extensions are built as builtins

2014-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ebb9595af548 by doko in branch '3.4': - Issue #21223: Pass test_site/test_startup_imports when some of the extensions http://hg.python.org/cpython/rev/ebb9595af548 -- nosy: +python-dev ___ Python tracker

[issue21236] patch to use cabinet.lib instead of fci.lib (fixes build with Windows SDK 8.0)

2014-04-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- components: +Build nosy: +loewis, zach.ware type: compile error - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21236 ___

[issue21223] fix test_site/test_startup_imports when some of the extensions are built as builtins

2014-04-15 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21223 ___

[issue17660] mock.patch could whitelist builtins to not need create=True

2014-04-15 Thread Berker Peksag
Berker Peksag added the comment: +.. note:: I think using a note directive is not necessary here. Also it looks a bit ugly :) https://dl.dropboxusercontent.com/u/166024/issue17660.png +.. versionchanged:: 3.5 + If you are patching builtins in a module then you don't +

  1   2   >