[issue18596] enable usage of AddressSanitizer in CPython [PATCH]

2013-07-31 Thread halfie
halfie added the comment: Using, # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS __attribute__((no_address_safety_analysis)) __attribute__ ((noinline)) instead of, # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS __attribute__((no_address_safety_analysis)) seems to be a more future-proof

[issue18585] Add a text truncation function

2013-07-31 Thread Vajrasky Kok
Vajrasky Kok added the comment: Monsieur Pitrou, thanks for the explanation. Actually, IMHO I prefer, 'hello (...)' should be the minimum words we can use not '(...)' because '(...)' does not make any sense. But, anyway, it's your call. :) Anyway, using your summarize2.patch:

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: See issue10068 and issue7140. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18214 ___ ___ Python-bugs-list

[issue17933] format str bug in urllib request.py

2013-07-31 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/issue17933 ___

[issue18573] In unittest.TestCase.assertWarns doc there is some text about assertRaises()

2013-07-31 Thread py.user
py.user added the comment: What second line? the second line patched in the diff file -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18573 ___

[issue18605] 2.7: test_threading hangs on Solaris 9

2013-07-31 Thread Maciej Bliziński
New submission from Maciej Bliziński: Python version: 2.7.5 OS: Solaris 9 Architecture: sparc Looks similar to Issue5114 and Issue6643 but both are now closed. It seems specific to Solaris 9, I'm not seeing this issue on Solaris 10. The symptom is that test_threading hangs indefinitely

[issue17998] internal error in regular expression engine

2013-07-31 Thread Larry Hastings
Larry Hastings added the comment: There is now a need to rush. I'm hoping to cut the release in about two days, so we can have Python 3.4a1 on time. Can we resolve this in the next day or two? Sorry for the short notice. -- ___ Python tracker

[issue18257] Two copies of python-config

2013-07-31 Thread Larry Hastings
Larry Hastings added the comment: Is there any resolution for this likely to happen soon? I'm hoping to cut Python 3.4a1 in about two days, so one of three things is gonna happen: 1) This gets fixed. 2) This gets lowered from release blocker. 3) The release slips. --

[issue5845] rlcompleter should be enabled automatically

2013-07-31 Thread Larry Hastings
Larry Hastings added the comment: This issue seems to have stalled. But it's still marked as a release blocker, which means I can't release Python 3.4a1 in two days if this issue is still open. One of three things will happen: 1) This issue is marked closed. 2) This issue is downgraded from

[issue18071] _osx_support compiler_fixup

2013-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset addd9210816b by Ned Deily in branch '2.7': Issue #18071: Extension module builds on OS X could fail with TypeError http://hg.python.org/cpython/rev/addd9210816b -- nosy: +python-dev ___ Python tracker

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2013-07-31 Thread Larry Hastings
Larry Hastings added the comment: This is still marked as a release blocker. I guess this is a tickler for Ezio to go check and see if there's a new entities file. Ezio: can you get this issue closed or downgraded in the next two days? -- ___

[issue18071] Extension module builds fail on OS X with TypeError if Xcode command line tools not installed

2013-07-31 Thread Ned Deily
Ned Deily added the comment: Alexey's analysis is correct. The problem is seen when the Xcode command line tools are not installed. When building an extension module, Distutils is then unable to find a compiler at the normal path and consults the 'xcrun' utility to find the location of an

[issue5845] rlcompleter should be enabled automatically

2013-07-31 Thread Steven D'Aprano
Steven D'Aprano added the comment: On 31/07/13 17:14, Larry Hastings wrote: IMO the optimal solution is that tab preceded by only whitespace indents, and tab preceded by any non-whitespace character attempts to complete. Can we goad readline into behaving this way? Yes we can. Attached

[issue10496] Python startup should not require passwd entry

2013-07-31 Thread Charles-François Natali
Charles-François Natali added the comment: Is there a hope to get this fixed? It can be needed to e.g. run python as nobody user (used for example for CGI scripts, etc). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496

[issue18606] Add statistics module to standard library

2013-07-31 Thread Steven D'Aprano
New submission from Steven D'Aprano: I proposed adding a statistics module to the standard library some time ago, and received some encouragement: http://mail.python.org/pipermail/python-ideas/2011-September/011524.html Real life intervened, plus a bad case of over-engineering, but over the

[issue9035] os.path.ismount on windows doesn't support windows mount points

2013-07-31 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: Removed file: http://bugs.python.org/file31092/issue9035.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035 ___

[issue9035] os.path.ismount on windows doesn't support windows mount points

2013-07-31 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: Removed file: http://bugs.python.org/file31087/issue9035.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035 ___

[issue9035] os.path.ismount on windows doesn't support windows mount points

2013-07-31 Thread Tim Golden
Tim Golden added the comment: 4th and hopefully final patch. Added tests for byte paths. Reworked the ismount so it uses the original detection approach first (which is wholly lexical) and drops back to the volume path technique only if the path doesn't appear to be a drive or a share root.

[issue18257] Two copies of python-config

2013-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: I won't be able to work on this before 3.4a1 is released, and that shouldn't be a problem. I do think this should be fixed before the first beta though. (That said, I'd rather not work on this at all, I didn't introduce this problem) --

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch has tests and also removes several cleanup hacks. -- Added file: http://bugs.python.org/file31099/module_cleanup4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18214

[issue7140] imp.new_module does not function correctly if the module is returned from a function and used directly

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Work in progress in issue 18214. -- nosy: +pitrou resolution: - duplicate status: open - closed superseder: - Stop purging modules which are garbage collected before shutdown ___ Python tracker

[issue18604] Consolidate gui available checks in test.support

2013-07-31 Thread R. David Murray
R. David Murray added the comment: I think it is fine to backport this, since it only affects tests, and allows the backported idle tests to be consistent. For 3/4, I agree that requires should skip always if the GUI infrastructure is not available. The don't skip if main logic is

[issue18606] Add statistics module to standard library

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suppose you should write a PEP for the module inclusion proposal (and for a summary of the API). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18606

[issue18605] 2.7: test_threading hangs on Solaris 9

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please at least run test_threading in verbose mode, to know which test exactly hangs: ./python -m test -v test_threading Sorry, I meant: ./python -m test.regrtest -v test_threading -- ___ Python tracker

[issue18605] 2.7: test_threading hangs on Solaris 9

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please at least run test_threading in verbose mode, to know which test exactly hangs: ./python -m test -v test_threading Also, please try with the default branch too (which will become 3.4 when released). Instructions to check out the code:

[issue18606] Add statistics module to standard library

2013-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: At first glance statistics.sum does the same as math.fsum (and statistics. add_partial seems to be a utility for implementing sum). I agree that a PEP would be useful. -- nosy: +ronaldoussoren ___ Python tracker

[issue7674] select.select() corner cases: duplicate fds, out-of-range fds

2013-07-31 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7674 ___ ___ Python-bugs-list

[issue5302] Allow package_data specs/globs to match directories

2013-07-31 Thread Éric Araujo
Éric Araujo added the comment: packaging is not in the stdlib anymore, and the successors to distutils2 may or may not use package_data in setup.cfg. This is obsolete. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5302

[issue13463] Fix parsing of package_data

2013-07-31 Thread Éric Araujo
Éric Araujo added the comment: packaging is not in the stdlib anymore, and the successors to distutils2 may or may not use package_data in setup.cfg. This is obsolete. -- resolution: - wont fix stage: test needed - committed/rejected ___ Python

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-31 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: tim.golden - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4708 ___ ___ Python-bugs-list

[issue3099] On windows, import nul always succeed

2013-07-31 Thread Tim Golden
Tim Golden added the comment: This one seems to have been fixed by the importlib rebuild. I haven't bothered to trace the code path, but certainly import nul returns the expected ImportError: No module named 'nul' in both Debug Release builds. -- resolution: - works for me stage: -

[issue2889] curses for windows (alternative patch)

2013-07-31 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: tim.golden - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___ ___ Python-bugs-list

[issue16921] Docs of subprocess.CREATE_NEW_CONSOLE are wrong

2013-07-31 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16921 ___

[issue7443] test.support.unlink issue on Windows platform

2013-07-31 Thread Tim Golden
Tim Golden added the comment: This has been covered off by work done with the test.support package including context managers for temporary files / directories, and a waitfor mechanism which waits some time if a file can't be accessed. -- resolution: - works for me status: open -

[issue7443] test.support.unlink issue on Windows platform

2013-07-31 Thread R. David Murray
R. David Murray added the comment: The support package is fixed (I presume :), but there was also a desire expressed to expose this functionality in shutil, since it can arise in normal Python programs as well as in the test suite. Given that the fix has been successful in the test suite,

[issue10496] Python startup should not require passwd entry

2013-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___

[issue17616] wave.Wave_read and wave.Wave_write can be context managers

2013-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8327780d3841 by R David Murray in branch 'default': #17616: wave.open now supports the 'with' statement. http://hg.python.org/cpython/rev/8327780d3841 -- nosy: +python-dev ___ Python tracker

[issue17616] wave.Wave_read and wave.Wave_write can be context managers

2013-07-31 Thread R. David Murray
R. David Murray added the comment: Thanks, Claudiu. -- nosy: +r.david.murray resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17616

[issue5845] rlcompleter should be enabled automatically

2013-07-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: If R. David agrees (assuming no patch is coming forward), it could be degrated to deferred-blocker, and the alpha phases could be used to see how annoyed people are with tab not working. -- ___ Python tracker

[issue10878] asyncore does not react properly on close()

2013-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am re-closing as there is no defined bug to fix, and 2.7 is closed to enhancements. -- resolution: - invalid stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker

[issue17350] Use STAF call python script will case 1124861 issue in 2.7.2 version

2013-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: In in absence of the information needed to consider this a current Python bug, I am closing it as either out-of-date (already fixed) or invalid (a third-party problem). -- resolution: - out of date stage: test needed - committed/rejected status: open

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-07-31 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/issue18214 ___

[issue18607] struct.unpack

2013-07-31 Thread Andres Adjimann
New submission from Andres Adjimann: There is something wrong with struct.unpack. import struct print struct.calcsize('BHB') 8 print struct.calcsize('BHB') 8 print struct.calcsize('BHB') 9 -- messages: 194009 nosy: Andres.Adjimann priority: normal severity: normal status:

[issue5845] rlcompleter should be enabled automatically

2013-07-31 Thread R. David Murray
R. David Murray added the comment: Yeah, deferred blocker is fine with me. -- priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5845 ___

[issue10496] Python startup should not require passwd entry

2013-07-31 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___

[issue15699] PEP 3121, 384 Refactoring applied to readline module

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch fixing a few issues (i.e. crashes). Reading the module state requires the GIL to be held, but it was taken too late when the hooks are called. -- keywords: +patch nosy: +pitrou Added file:

[issue15699] PEP 3121, 384 Refactoring applied to readline module

2013-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4594c7dfeeb by Antoine Pitrou in branch 'default': Issue #15699: The readline module now uses PEP 3121-style module initialization, so as to reclaim allocated resources (Python callbacks) at shutdown. http://hg.python.org/cpython/rev/e4594c7dfeeb

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-07-31 Thread Christian Heimes
Christian Heimes added the comment: ping... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17899 ___ ___ Python-bugs-list mailing list

[issue15699] PEP 3121, 384 Refactoring applied to readline module

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now committed. Let's hope this doesn't break anything. -- resolution: - fixed stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15699

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch with a hack in Lib/site to unpatch builtins early at shutdown. -- Added file: http://bugs.python.org/file31101/module_cleanup5.patch ___ Python tracker rep...@bugs.python.org

[issue18607] struct.unpack

2013-07-31 Thread Andres Adjimann
Andres Adjimann added the comment: sorry my bad. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18607 ___

[issue18607] struct.unpack

2013-07-31 Thread Tim Peters
Tim Peters added the comment: Looks fine to me. The third one uses native size and alignment (see the Byte Order, Size, and Alignment section of the struct docs). After the first 5 B's, a pad byte is inserted so that the next H is properly aligned (to a 2-byte boundary). That makes 6 bytes

[issue15699] PEP 3121, 384 Refactoring applied to readline module

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks ok on the buildbots. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15699 ___ ___

[issue16662] load_tests not invoked in package/__init__.py

2013-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Hah, I just ran into this too. I was perplexed why my load_tests() function wasn't being called and ended up pdb'ing unittest's discover, and found exactly this problem. I'm not surprised lifeless beat me to it. (My use case was to piggyback on

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79e2f5bbc30c by Antoine Pitrou in branch 'default': Issue #18214: Improve finalization of Python modules to avoid setting their globals to None, in most cases. http://hg.python.org/cpython/rev/79e2f5bbc30c -- nosy: +python-dev

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Let's wait for the buildbots on this one too. -- resolution: - fixed stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18214

[issue16662] load_tests not invoked in package/__init__.py

2013-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Seems like this patch does the trick for my very limited testing. -- keywords: +patch Added file: http://bugs.python.org/file31102/16662.diff ___ Python tracker rep...@bugs.python.org

[issue18608] Avoid keeping a strong reference to locale in the _io module

2013-07-31 Thread Antoine Pitrou
New submission from Antoine Pitrou: Keeping a strong reference to locale in _io prevents several modules from being collected before being wiped at shutdown. Attached patch stores a weakref instead. -- components: Library (Lib) files: io_locale_ref.patch keywords: patch messages:

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-07-31 Thread David Edelsohn
Changes by David Edelsohn dje@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18609 ___ ___ Python-bugs-list mailing

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-07-31 Thread David Edelsohn
New submission from David Edelsohn: test_ctypes now crashes on AIX after the ceval change to PyEval_CallObjectWithKeywords to check PyErr_Occurred(). #5 0x100ff0c8 in PyEval_CallObjectWithKeywords (func=0x300a4c3c, arg=0x3062bb24, kw=0x0) at Python/ceval.c:4066 #6 0x10166bfc in

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-07-31 Thread Donald Stufft
Changes by Donald Stufft donald.stu...@gmail.com: -- nosy: +dstufft ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16487 ___ ___ Python-bugs-list

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-31 Thread Catherine Devlin
Catherine Devlin added the comment: Thanks, Antoine - I've signed and submitted the Contributor's Agreement. -- Added file: http://bugs.python.org/file31104/Python Contributor Agreement Form - signed.pdf ___ Python tracker rep...@bugs.python.org

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-07-31 Thread Richard Oudkerk
Richard Oudkerk added the comment: I played a bit with the patch and -v -Xshowrefcount. The number of references and blocks left at exit varies (and is higher than for unpatched python). It appears that a few (1-3) module dicts are not being purged because they have been orphaned. (i.e. the

[issue18610] wsgiref.validator expects wsgi.input read to give exactly one arg

2013-07-31 Thread Robin Schoonover
New submission from Robin Schoonover: wsgiref.validator requires wsgi.input's read to always give EXACTLY one argument. This is incorrect. It's own documentation says: * That wsgi.input is used properly: - .read() is called with zero or one argument PEP says: A server should allow

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2013-07-31 Thread Robin Schoonover
Changes by Robin Schoonover ro...@cornhooves.org: -- title: wsgiref.validator expects wsgi.input read to give exactly one arg - wsgiref.validate expects wsgi.input read to give exactly one arg ___ Python tracker rep...@bugs.python.org

[issue11571] Turtle window pops under the terminal on OSX

2013-07-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571 ___

[issue18603] PyOS_mystricmp unused and no longer available

2013-07-31 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/issue18603 ___

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-31 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: Removed file: http://bugs.python.org/file31104/Python Contributor Agreement Form - signed.pdf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1666318 ___

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-31 Thread Christian Heimes
Christian Heimes added the comment: Hi Catherine, the contributor agreement must go through proper channels. The bug tracker is not the right place to post your agreement. Please follow the instructions at http://www.python.org/psf/contrib/ . You can submit the agreement electronically, too.

[issue17616] wave.Wave_read and wave.Wave_write can be context managers

2013-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f3b6eff2ede by R David Murray in branch 'default': #17616: Improve context manager tests, fix bugs in close method and mode docs. http://hg.python.org/cpython/rev/4f3b6eff2ede -- ___ Python tracker

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

2013-07-31 Thread Bill Gale
Bill Gale added the comment: so i hit the same exception, here is how i solved it. environment: windows 7 enterprise 64 bit python 2.7.5 64 bit visual studio 2008 32 bit issue: pip installs failed with the above exception. solution: there are two parts. 1. install 64 bit components to vs2008

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-31 Thread Vajrasky Kok
Vajrasky Kok added the comment: Hi Catherine, I saw your patch. It looks good, except you are trying to copy the directory onto its subdirectory. src_dir = tempfile.mkdtemp() dst_dir = os.path.join(tempfile.mkdtemp(), 'destination') I prefer it if you copy it to somewhere else. This would be

[issue17998] internal error in regular expression engine

2013-07-31 Thread Bohuslav Slavek Kabrda
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com: -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17998 ___ ___