[issue20765] Pathlib docs fail to mention with_name, with_suffix

2014-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 879861161b84 by Antoine Pitrou in branch 'default': Issue #20765: Add missing documentation for PurePath.with_name() and PurePath.with_suffix(). http://hg.python.org/cpython/rev/879861161b84 -- nosy: +python-dev

[issue20765] Pathlib docs fail to mention with_name, with_suffix

2014-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've now added the missing doc entries. Thanks for reporting! -- resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior versions: +Python 3.5 ___ Python tracker

[issue20772] Spam

2014-02-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -lcarrionr resolution: - invalid stage: - committed/rejected status: open - closed title: You only live once - Spam ___ Python tracker rep...@bugs.python.org

[issue20772] Spam

2014-02-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- Removed message: http://bugs.python.org/msg212205 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20772 ___

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Ryan Smith-Roberts
Ryan Smith-Roberts added the comment: I notified secur...@python.org and waited for the go-ahead (from Guido I think) before opening this bug. If today is the first that the PSRT is hearing about this, then the issue is broader than just the bugtracker. --

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, your message reached PSRT on Jan 12th. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20246 ___

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Christian Heimes
Christian Heimes added the comment: Sorry, you are right and I was wrong. :( Your mail *was* delivered to PSRT. But it failed to reach me because I was having issues with my @python.org account. The server-side spam filter is now deactivated and I receive all mails again. --

[issue20744] shutil should not use distutils

2014-02-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Why is _call_external_zip needed at all? The code says it is used when the zipfile module is not available, but that module is part of the stdlib and should always be available. -- nosy: +ronaldoussoren ___ Python

[issue20741] Documentation archives should be available also in tar.xz format

2014-02-25 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- assignee: - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20741 ___ ___ Python-bugs-list

[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-25 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20581 ___ ___

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2014-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4cd620d8c3f6 by R David Murray in branch 'default': whatsnew: DynanicClassAttribute (#19030), Py_SetStandardStreamEncoding (#16129) http://hg.python.org/cpython/rev/4cd620d8c3f6 -- ___ Python tracker

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2014-02-25 Thread R. David Murray
R. David Murray added the comment: I added docs for DynamicClassAttribute by copying the docstring. I think the doc entry could use some expansion, though, as it isn't obvious how to use it (or what, in fact, it does exactly). -- ___ Python

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2014-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4cd620d8c3f6 by R David Murray in branch 'default': whatsnew: DynanicClassAttribute (#19030), Py_SetStandardStreamEncoding (#16129) http://hg.python.org/cpython/rev/4cd620d8c3f6 -- ___ Python tracker

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-02-25 Thread Justin Foo
Justin Foo added the comment: I think getting this bug fixed would be really nice from a user experience point of view. I've further into this for my own setup, which is Python 3.3 64-bit, Visual C++ Express 2010 and the Windows SDK v7.1 (plus service packs), which is probably a typical

[issue20774] collections.deque should ship with a stdlib json serializer

2014-02-25 Thread Chris Adams
New submission from Chris Adams: Currently the stdlib json module requires a custom serializer to avoid throwing a TypeError on collections.deque instances: Python 3.3.4 (default, Feb 12 2014, 09:35:54) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin Type help, copyright,

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zachary. Here is a patch with a test. I'm not sure that it is successful on Windows. -- Added file: http://bugs.python.org/file34222/fileinput_hook_encoded_2.patch ___ Python tracker

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-25 Thread Tal Einat
Tal Einat added the comment: While we're bikeshedding, how about the more verbose PY_DECREF_AND_ASSIGN? That makes it clearer that an INCREF is not done. Regarding Kristján's suggestion of PY_ASSIGN and a complementary PY_STORE, IMO these names are too similar and the difference between them

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-25 Thread Zachary Ware
Zachary Ware added the comment: The new test passes on Windows with the whole patch applied, but fails without the changes to fileinput.py. Is this change meant to fix behavior, or just the memory usage issue? Just for completeness, here's the failure output (with unpatched fileinput.py):

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: While we're bikeshedding, how about the more verbose PY_DECREF_AND_ASSIGN? That makes it clearer that an INCREF is not done. Py_ASSIGN_AND_DECREF would be more correct. And Py_CLEAR can be renamed to Py_CLEAR_AND_XDECREF or Py_ASSIGN_NULL_AND_XDECREF.

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-25 Thread Marius Gedminas
Marius Gedminas added the comment: Near the top: Help on module xml.etree.ElementTree in xml.etree: NAME xml.etree.ElementTree FILE /usr/lib/python2.7/xml/etree/ElementTree.py MODULE DOCS http://docs.python.org/library/xml.etree.ElementTree DESCRIPTION ... --

[issue20775] Modifications to global variables ignored after instantiating multiprocessing.Pool

2014-02-25 Thread Naftali Harris
New submission from Naftali Harris: Hi everyone, It appears that if you use a global variable in a function that you pass to Pool.map, but modify that global variable after instantiating the Pool, then the modification will not be reflected when Pool.map calls that function. Here's a short

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-25 Thread Tal Einat
Tal Einat added the comment: PY_ASSIGN_AND_DECREF could seem to imply that the assigned value is DECREF-ed. I think PY_DECREF_AND_ASSIGN makes it clearer that the original value is DECREF-ed. I like PY_ASSIGN_NULL_AND_DECREF, though for the same reason as above, I'd name it

[issue20773] Improve docs for DynamicClassAttribute

2014-02-25 Thread Nick Coghlan
Nick Coghlan added the comment: Might be worth explaining by example - the use case is sufficiently obscure I don't believe it's comprehensible except in terms of we added it because we needed it. -- ___ Python tracker rep...@bugs.python.org

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What would be the failure output when comment out first 1, 2 or three checks? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20501 ___

[issue14222] Use time.steady() to implement timeout

2014-02-25 Thread Alexander Ljungberg
Alexander Ljungberg added the comment: This still appears to be an issue in Python 2.7. Queue.get routinely hangs for a very long time on the Raspberry Pi as it doesn't have a clock battery and often ends up significantly adjusting its system time soon after startup. -- nosy:

[issue19873] There is a duplicate function in Lib/test/test_pathlib.py

2014-02-25 Thread NAVNEET SUMAN
NAVNEET SUMAN added the comment: made patch according to Ezio Melotti -- keywords: +patch nosy: +NAVNEET.SUMAN Added file: http://bugs.python.org/file34224/remover_duplicate_function.patch ___ Python tracker rep...@bugs.python.org

[issue14222] Use time.steady() to implement timeout

2014-02-25 Thread STINNER Victor
STINNER Victor added the comment: You should upgrade to python 3.3! The pep 418 mentions different available modules for python 2. My new trollius project has for example an implementation in asyncio.time_monotonic. -- ___ Python tracker

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon
Brett Cannon added the comment: I have a fix, I just need to create a test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___ ___

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-25 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Better yet, embrace c++ and smart pointers :;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20440 ___

[issue20776] Add tests for importlib.machinery.PathFinder

2014-02-25 Thread Brett Cannon
New submission from Brett Cannon: Specifically tests that exercise uses of importlib.abc.PathEntryFinder (i.e. find_module() successfully, find_loader() failing and successful, find_spec() failing and successful). -- components: Library (Lib) messages: 212231 nosy: brett.cannon

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___ ___

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8899e4028561 by Gregory P. Smith in branch '3.3': Mention issue 20621 fix in the NEWS file for 3.3.5rc1. http://hg.python.org/cpython/rev/8899e4028561 -- ___ Python tracker rep...@bugs.python.org

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon
Brett Cannon added the comment: Fix and test is attached. Can someone review it so I can check it in and get a cherrypick? -- keywords: +patch stage: - commit review Added file: http://bugs.python.org/file34225/issue_20763.diff ___ Python tracker

[issue18704] IDLE: Integrate external code analysis tools

2014-02-25 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: IDLE: PEP8 Style Check Integration - IDLE: Integrate external code analysis tools ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18704

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Eric Snow
Eric Snow added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20774] collections.deque should ship with a stdlib json serializer

2014-02-25 Thread R. David Murray
R. David Murray added the comment: json is only designed to serialize standard data types out of the box. Anything else is an extension. I presume you are asking for this because a deque looks more-or-less like a list. I'm not sure that's reason enough, but we'll see what others think.

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20246 ___ ___

[issue20777] PyArg_ParseTupleAndKeywords does not respect arguments format.

2014-02-25 Thread Carlos Ferreira
New submission from Carlos Ferreira: PyArg_ParseTupleAndKeywords is not respecting the format string sy*ss When using the format sbss with the following valid arguments enp0s8, 0, 08:00:27:da:b3:47, 08:00:27:11:22:33 there is no error and the function succeeds in parsing the arguments. But

[issue20777] PyArg_ParseTupleAndKeywords does not respect arguments format.

2014-02-25 Thread Carlos Ferreira
Carlos Ferreira added the comment: (Please ignore the previous post) PyArg_ParseTupleAndKeywords is not respecting the format string sy*ss When using the format sbss with the following valid arguments enp0s8, 0, 08:00:27:da:b3:47, 08:00:27:11:22:33 there is no error and the function succeeds

[issue20764] os.walk recurses down even with dirnames deleted

2014-02-25 Thread Sworddragon
Sworddragon added the comment: It sounds like me that del dir_list does only delete the copied list while del dir_list[:] accesses the reference and deletes this list. If I'm not wrong with this assumption I think you was meaning dir_list instead of root_dir in your post. But thanks for the

[issue20764] os.walk recurses down even with dirnames deleted

2014-02-25 Thread Ned Deily
Ned Deily added the comment: Yes, I did indeed mean dir_list, not root_dir. Sorry for the confusion. One point: there is no copied list. del dir_list merely deletes the binding between the name dir_list and the list object returned by os.walk; the list object itself is unaltered but can no

[issue20775] Modifications to global variables ignored after instantiating multiprocessing.Pool

2014-02-25 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20775 ___ ___ Python-bugs-list mailing list

[issue20775] Modifications to global variables ignored after instantiating multiprocessing.Pool

2014-02-25 Thread Tim Peters
Tim Peters added the comment: This is expected. global has only to do with the visibility of a name within a module; it has nothing to do with visibility of mutations across processes. On a Linux-y system, executing Pool(3) creates 3 child processes, each of which sees a read-only *copy* of

[issue20775] Modifications to global variables ignored after instantiating multiprocessing.Pool

2014-02-25 Thread Naftali Harris
Naftali Harris added the comment: Oh, ok, that makes a lot of sense. Thanks for the clear and patient explanation, Tim! Sorry to have bothered the Python bug tracker with this. --Naftali -- resolution: - invalid status: open - closed ___ Python

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20763 ___

[issue20776] Add tests for importlib.machinery.PathFinder

2014-02-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20776 ___

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20767 ___

[issue20740] Remove invalid number from squares in introduction section

2014-02-25 Thread Pavel Kazakov
Pavel Kazakov added the comment: (Alternatively, we could redefine squares in Python. All other languages just have the regular squares; Python has a super *extra* square 2! That clearly makes squares in Python *better* than squares in other languages...) Heh. I initially wasn't sure if

[issue11588] Add necessarily inclusive groups to argparse

2014-02-25 Thread paul j3
paul j3 added the comment: The addition of a simple decorator to the 'ArgumentParser' class, would simplify registering the tests: def crosstest(self, func): # decorator to facilitate adding these functions name = func.__name__ self.register('cross_tests', name,

<    1   2