[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-29 Thread Stefan Behnel
Stefan Behnel added the comment: Yes, the situation didn't change. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset ecb272bae417 by Gregory P. Smith in branch '3.3': Remove issue 19081 Misc/NEWS entry since it isn't entirely fixed yet. http://hg.python.org/cpython/rev/ecb272bae417 New changeset 03fc7449f204 by Gregory P. Smith in branch 'default': Remove issue 19

[issue15731] Mechanism for inheriting docstrings and signatures

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Perhaps, something like @functools.inherit decorator could help: https://gist.github.com/1st1/8703533 (just a quick illustration). -- ___ Python tracker __

[issue15731] Mechanism for inheriting docstrings and signatures

2014-01-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19658] inspect.getsource weird case

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Duplicate of #17526. -- nosy: +yselivanov resolution: -> duplicate status: open -> closed ___ Python tracker ___ __

[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Tim, Eric, Please review the attached patch. -- keywords: +patch nosy: +tim.peters, yselivanov Added file: http://bugs.python.org/file33809/inspect_classify_01.patch ___ Python tracker

[issue20442] inspect: Document Signature & Parameter constructors' signatures

2014-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a3201aab2b8 by Yury Selivanov in branch 'default': inspect.docs: Document constructors for Signature & Parameter #20442 http://hg.python.org/cpython/rev/0a3201aab2b8 New changeset 885c709d0dde by Yury Selivanov in branch '3.3': inspect.docs: Docume

[issue20442] inspect: Document Signature & Parameter constructors' signatures

2014-01-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings
Larry Hastings added the comment: That's a really good idea! I'm still thinking about how I'd do it, but I think I'm gonna give it a try. -- ___ Python tracker ___

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unless some known bugs are being fixed, this should be 3.4 only. -- nosy: +rhettinger ___ Python tracker ___

[issue20444] Reduce logging.config.Converting duplication of code

2014-01-29 Thread dongwm
Changes by dongwm : -- components: Library (Lib) files: logging_config.patch keywords: patch nosy: dongwm priority: normal severity: normal status: open title: Reduce logging.config.Converting duplication of code type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/f

[issue16991] Add OrderedDict written in C

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Can we still merge this in 3.4? -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mai

[issue20443] __code__. co_filename should always be an absolute path

2014-01-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20443] __code__. co_filename should always be an absolute path

2014-01-29 Thread Yury Selivanov
New submission from Yury Selivanov: There are many issues on tracker related to the relative paths in co_filename. Most of them are about introspection functions in inspect module--which are usually broken after 'os.chdir'. Test case: create a file t.py: def foo(): pass print(foo.__cod

[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Yes. I'll create an issue for that. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread R. David Murray
R. David Murray added the comment: __file__ is absolute for imports, yes. I didn't check co_filename, maybe that needs to be fixed too. -- ___ Python tracker ___ __

[issue20417] ensurepip should not be installed with --without-ensurepip

2014-01-29 Thread Donald Stufft
Donald Stufft added the comment: Yes I am aware of that. However ensurepip is also required to maintain functionality of the "venv" module in 3.4. See the guidelines in http://www.python.org/dev/peps/pep-0453/#recommendations-for-downstream-distributors which explicitly mentions the fact that

[issue20417] ensurepip should not be installed with --without-ensurepip

2014-01-29 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Some distributions have policies about not bundling external code. ensurepip currently bundles some versions of setuptools and pip. -- ___ Python tracker _

[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Hm, maybe just for the imports? This simple script, run it directly: test.py: def foo(): pass print(foo.__code__.co_filename) "$ python3.4 test.py" will still print relative path "test.py". Hence, if you do 'os.chdir' in the above script, the introspect

[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread R. David Murray
R. David Murray added the comment: Note that this is fixed in 3.4. That is, in 3.4 __file__ paths are made absolute when the import happens. -- ___ Python tracker ___ _

[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Nick Coghlan
Nick Coghlan added the comment: As Brett said - let's do a documented deprecation in 3.5. -- ___ Python tracker ___ ___ Python-bugs-li

[issue20406] Use application icon for IDLE

2014-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin: is the medium 'python logo on white page' icon used in the Start menu in the repository or otherwise accessible? If not, could you upload it? --- I closed #15869 in favor of #1353344. Tk does not load .ico files (I tried). idle.gif is 16x16 because pc/

[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset d844b31471b5 by Antoine Pitrou in branch '3.3': Issue #20373: generalize use of test.script_helper in test_warnings. Patch by Arfrever. http://hg.python.org/cpython/rev/d844b31471b5 New changeset 04b658b3fe7c by Antoine Pitrou in branch 'default':

[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: There's not much point in changing the 2.7 tests at this point. It's reasonable to change both 3.3 and 3.x, so as to avoid divergence. -- ___ Python tracker __

[issue20373] Use test.script_helper.assert_python_ok() instead of subprocess.* in test.test_warnings

2014-01-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue14512] Pydocs module docs server not working on Windows.

2014-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: On current 3.3.4 and 3.4.0 start menus, clicking Module Docs does nothing that I can see except add a useless entry to the Frequent Programs list. I think the entry should be removed from the menu until it is made to work. All it does now is frustrate people

[issue19320] Tkinter tests ran with wantobjects is false

2014-01-29 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nice work, LGTM! -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1353344] python.desktop

2014-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just closed #15869 as a duplicate of this. I has another patch and possibly useful discussion. To move forward, a concrete repository patch is needed. I only see here pieces of such a patch. I do not know how much of the Windows installation files are in th

[issue15869] IDLE: Include .desktop file and icon

2014-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Older issue has more patches and more discussion. -- nosy: +terry.reedy resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> python.desktop ___ Python tracker

[issue20442] inspect: Document Signature & Parameter constructors' signatures

2014-01-29 Thread Yury Selivanov
New submission from Yury Selivanov: inspect.Signature & inspect.Parameter classes lack clear documentation about their constructors. Patch is attached. -- files: signature_docs_01.patch keywords: patch messages: 209684 nosy: eric.araujo, ezio.melotti, georg.brandl, larry, ncoghlan, ysel

[issue20011] Changing the signature for Parameter's constructor

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: I don't think this is a good idea, as it would require those who read with the code to know about this default. Explicit is definitely better than implicit in this case. -- nosy: +yselivanov resolution: -> rejected status: open -> closed

[issue8639] Allow callable objects in inspect.getfullargspec

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: This is now fixed in #17481. -- dependencies: +inspect.getfullargspec should use __signature__ nosy: +yselivanov resolution: -> fixed status: open -> closed ___ Python tracker

[issue19320] Tkinter tests ran with wantobjects is false

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Terry in issue20441 reported problems with same Tcl/Tk 8.5.2. -- ___ Python tracker ___ ___ Python

[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue19320. -- resolution: -> duplicate superseder: -> Tkinter tests ran with wantobjects is false ___ Python tracker ___

[issue15931] inspect.findsource fails after directory change

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Sadly, there is nothing we can do about it, as we simply don't have absolute paths in __file__ attributes in your case. -- nosy: +yselivanov resolution: -> rejected status: open -> closed ___ Python tracker

[issue20406] Use application icon for IDLE

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for desctop icon, see also issue1353344 and issue15869. -- ___ Python tracker ___ ___ Python-bu

[issue20231] Argument Clinic accepts no-default args after default args

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Should this one be closed now? FWIW, signature object validates this case now. -- dependencies: +Argument Clinic rollup patch, 2014/01/25 nosy: +yselivanov ___ Python tracker

[issue20406] Use application icon for IDLE

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We can steal icon from http://www.python.org/favicon.ico. It contains three variants for different size (16, 32 and 48 pixels). Here is extracted and converted to GIF images. Please try them and original favicon on Windows. Or may be we even can cut larger i

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Stefan, is this one still relevant? If it is, I can review it (I have a couple of things to improve) and push in 3.4, as it doesn't really change any API. -- nosy: +yselivanov versions: -Python 3.3 ___ Python track

[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am running tcl8.5.2.1 and tk8.5.2.0 as installed by Tools/buildbots/external.bat. I presume same for Windows buildbots. I did not find 'tcl' or 'tk' other than in test names in the log I checked. -- ___ Python tra

[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is Tcl/Tk patchlevel? It is reported somewhere in tests log. -- ___ Python tracker ___ ___ Py

[issue20441] Test_tcl.TclTest.test_split(list) failures on Windows, 2.7.

2014-01-29 Thread Terry J. Reedy
New submission from Terry J. Reedy: My Win7, AMD64 Win7, Server 2003, but not x86 Win7 buildbot or any others that run test == FAIL: test_split (test.test_tcl.TclTest)

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Brett Cannon
Brett Cannon added the comment: It all seems like a good idea to me and I like the Py_REPLACE naming (I was going to suggest Py_SWAP, but Py_XSWAP looks too weird to me). -- nosy: +brett.cannon ___ Python tracker

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not understand why that issue was closed. Probably Py_SETREF is not the best name but this can be discussed. Adverse idea about Py_INCREF also looked questionable. But many people supported the introduction of a macro for safe replacement. And now we s

[issue20439] inspect.Signature: Add Signature.format method to match formatargspec functionality

2014-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: For an api, given that we have formatargvalue(*getargvalues, ...) formatargspec(*getfullargspec, ...) we might add formatsignature(signature, ...) with the default being the same as str(signature). I checked the first 80 hits at http://code.ohloh.net/search?s=fo

[issue17727] document that some distributions change site.py defaults

2014-01-29 Thread Georg Brandl
Georg Brandl added the comment: Matthias and I agreed this isn't necessary since on the relevant distribution it's already documented. -- resolution: -> works for me status: open -> closed ___ Python tracker

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Something similar was proposed in issue3081. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs

[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Brett Cannon
Brett Cannon added the comment: I vote deprecation with no stated plans of removal -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Brett Cannon
Brett Cannon added the comment: Although I say do it in 3.5. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file33801/py_replace-3.4.patch ___ Python tracker ___ ___

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson, georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file33802/py_replace-3.3.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file33803/py_replace-2.7.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-01-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patches replaced idiomatic code Py_DECREF(ptr); ptr = new_value; to "Py_REPLACE(ptr, new_value);" which is expanded to { PyObject *__tmp__ = ptr; ptr = new_value; Py_DECREF(__tmp__); } (and same for Py_XDEC

[issue20418] socket.getaddrinfo fails for hostname that is all digits 0-9

2014-01-29 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The curses module also has many conditionally implemented functions. I think Argument Clinic can detect preprocessor instructions (#if/#ifdef/#ifndef/#else/#endif) and generate needed #if/#endif in generated file. This would be more robust than explicitly re

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch which replaces "Py_XDECREF(identifier); identifier = NULL;" to "Py_CLEAR(identifier);" (10 replaces in 7 files). It doesn't fix any bug (unless identifier is global variable), but makes a code a little cleaner. Compilers should generate e

[issue20439] inspect.Signature: Add Signature.format method to match formatargspec functionality

2014-01-29 Thread Yury Selivanov
New submission from Yury Selivanov: The ability to fine-tune formatting of Signature (currently Signature.__str__) might be useful for pydoc and idle. -- assignee: yselivanov messages: 209660 nosy: brett.cannon, larry, ncoghlan, terry.reedy, yselivanov priority: normal severity: normal

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings
Larry Hastings added the comment: Actually, forget about the file output preset. It wouldn't work for posixmodule. > 80% of the entry points are #ifdef conditional on platform functionality. Which means the Clinic generated stuff needs to be #ifdef too. It wouldn't be that hard to add the a

[issue20438] inspect: Deprecate getfullargspec?

2014-01-29 Thread Yury Selivanov
New submission from Yury Selivanov: Should we finally deprecate getfullargspec? With the AC and positional-only parameters support, getfullargspec doesn't provide full information anymore. By deprecation I mean changing its existing note "Consider using the new Signature Object interface, whic

[issue17481] inspect.getfullargspec should use __signature__

2014-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d1e8162e855 by Yury Selivanov in branch 'default': inspect.getfullargspec: Use inspect.signature API behind the scenes #17481 http://hg.python.org/cpython/rev/6d1e8162e855 -- nosy: +python-dev ___ Python

[issue17481] inspect.getfullargspec should use __signature__

2014-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0fa2750c7241 by Yury Selivanov in branch 'default': inspect.test.getfullargspec: Add a unittest to ensure correct annotations http://hg.python.org/cpython/rev/0fa2750c7241 -- ___ Python tracker

[issue17481] inspect.getfullargspec should use __signature__

2014-01-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17481] inspect.getfullargspec should use __signature__

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Committed. Thanks for the reviews! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue20422] Signature.from_builtin should raise a ValueError when no signature can be provided

2014-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9433b380ad33 by Yury Selivanov in branch 'default': inspect.Signature: Make from_builtin to raise an exception if no signature can http://hg.python.org/cpython/rev/9433b380ad33 -- nosy: +python-dev ___ Py

[issue20427] inspect.Signature should ensure that non-default params don't follow default ones

2014-01-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20427] inspect.Signature should ensure that non-default params don't follow default ones

2014-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca974997280d by Yury Selivanov in branch 'default': inspect.Signature: ensure that non-default params don't follow default ones #20427 http://hg.python.org/cpython/rev/ca974997280d -- nosy: +python-dev _

[issue20425] inspect.Signature should work on decorated builtins

2014-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9fedabb69e5 by Yury Selivanov in branch 'default': inspect.signature: Add support for decorated (wrapped) builtins #20425 http://hg.python.org/cpython/rev/a9fedabb69e5 -- nosy: +python-dev ___ Python tra

[issue20425] inspect.Signature should work on decorated builtins

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks for the review! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue20422] Signature.from_builtin should raise a ValueError when no signature can be provided

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: > Signature.from_function() and Signature.from_builtin() should both also be > documented, but we may want to wait for PEP 457 and #17373 in Python 3.5 > before sorting all that out. I would like to wait till 3.5 too. Right now both of them are sort of "privat

[issue20422] Signature.from_builtin should raise a ValueError when no signature can be provided

2014-01-29 Thread Yury Selivanov
Yury Selivanov added the comment: Nick, thanks for the review. Committed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings
Larry Hastings added the comment: Sorry for the fresh update, but here's revision 3. Only changes: * Gave os.access a -> bool return converter. * Fixed up a lot of whitespace. Now, major "things" are separated by two empty lines, but removed whitespace between #ifdef HAVE_SOMETHING

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-29 Thread Brian Quinlan
Changes by Brian Quinlan : -- assignee: -> bquinlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Larry Hastings
Larry Hastings added the comment: LGTM. If it compiles cleanly and passes the unit test suite--which obviously it should--you may check the 3.4 patch to trunk. -- nosy: +larry ___ Python tracker _

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings
Larry Hastings added the comment: By the way, my plan is to turn on the file preset just before checkin. The patch is *much* easier to read without turning that on first; with the file preset, now you have to keep two windows in sync to compare calls to PyArg_*(). --

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-29 Thread Larry Hastings
Larry Hastings added the comment: Here's a complete patch, converts everything that I think should be converted for 3.4. With this patch applied, all unit tests pass on my 64-bit Linux box. I plan to also run tests with the buildbots before checking it in. The patch... well, it's 14,000 line

[issue20436] test.regrtest is no more importable in 2.7

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Are you sure you don't have a test.py somewhere on your path? Oh, yes, I have. Sorry for the noise. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue20436] test.regrtest is no more importable in 2.7

2014-01-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Works here too. Are you sure you don't have a test.py somewhere on your path? -- ___ Python tracker ___

[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are other places where Py_DECREF is called after failed _PyBytes_Resize(). For example in PyBytes_FromObject(): if (_PyBytes_Resize(&new, size) < 0) goto error; ... error: /* Error handling when new != NULL */ Py_XD

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patches are generated by following command: spatch --in-place --sp-file py_clear.spatch --dir . -- ___ Python tracker ___ ___

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file33794/py_clear-3.4.patch ___ Python tracker ___ _

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file33795/py_clear-3.3.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file33796/py_clear-2.7.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue20437] Use Py_CLEAR to safe clear attributes

2014-01-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some time ago Victor proposed in issue16445 a large patch (275 changes) which replaces "Py_DECREF(expr); expr = NULL;" to safer "Py_CLEAR(expr);". That patch contained was so large because it included cases where expr is just a local variable, which are sa

[issue20436] test.regrtest is no more importable in 2.7

2014-01-29 Thread R. David Murray
R. David Murray added the comment: Still works fine for me, and I just updated. -- nosy: +r.david.murray ___ Python tracker ___ ___ Py

[issue20422] Signature.from_builtin should raise a ValueError when no signature can be provided

2014-01-29 Thread Nick Coghlan
Nick Coghlan added the comment: This proposal and patch look good to me. The current behaviour definitely isn't desirable: >>> import inspect >>> inspect.Signature.from_function(1) Traceback (most recent call last): File "", line 1, in File "/home/ncoghlan/devel/py3k/Lib/inspect.py", line

[issue19920] TarFile.list() fails on some files

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, good. But I still have several nitpicks. Here is revised patch. * Now ASCII encoding is used to test list() output. And tests now run even if sys.stdout is a StringIO. * test_list_verbose now test that printed files are actually separated by one new l

[issue20425] inspect.Signature should work on decorated builtins

2014-01-29 Thread Nick Coghlan
Nick Coghlan added the comment: Patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19281] add __objclass__ to the docs

2014-01-29 Thread Nick Coghlan
Nick Coghlan added the comment: Huh, I thought we did this back when Ethan was working on enum stuff, but I guess we never figured out exactly where to put it. Considering that question again now, I suggest adding it to the end of the subsection on implementing descriptors, since that's when i

[issue18321] Multivolume support in tarfile module

2014-01-29 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: > I cannot yet go into the details, because I have not tested the patch. > The comments, docstrings and quoting are not very consistent with the rest of > the module. There are a few spelling mistakes. I can try to take care of this, though it'd be bes

[issue18321] Multivolume support in tarfile module

2014-01-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: I cannot yet go into the details, because I have not tested the patch. The comments, docstrings and quoting are not very consistent with the rest of the module. There are a few spelling mistakes. The open_volume() method is more or less a copy of the open() met

[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread STINNER Victor
STINNER Victor added the comment: Ah yes, the bytes object is set to NULL. In fact, you don't need to call Py_CLEAR(&retval) in case of error, because retval is already NULL. Could you please update your patch to just do nothing on retval in case of error please? > 3.4 hasn't the problem. Yes

[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Bug can be reproduced if _PyBytes_Resize fails with out-of-memory error than NULL object decrefed. Buggy modules are _io, binascii and zlib. 3.4 hasn't the problem. Patch for 3.3 is attached. Fix goes to mimic 3.4 -- (replace Py_DECREF with Py_CLEAR), while for

[issue20436] test.regrtest is no more importable in 2.7

2014-01-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -m test.regrtest /home/serhiy/py/cpython-2.7/python: No module named test.regrtest It worked several days ago. -- components: Tests messages: 209630 nosy: ezio.melotti, michael.foord, pitrou, serhiy.storchaka priority: normal severity: no

[issue20424] _pyio.StringIO doesn't work with lone surrogates

2014-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test is backported to 2.7 in 3971e1b07af4. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

  1   2   >