[issue15581] curses: segfault in addstr()

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is output an unicode string? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-lis

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-10-17 Thread Ned Deily
Ned Deily added the comment: There seems to be a bootstrap issue here. Building with ./configure --with-pydebug --prefix=... on OS X in a clean source directory (hg purge --all), 'make' makes it to building the static libpython .a but then dies on the sysconfig generate-posix-vars step: ar r

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-10-17 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- title: Security bug in tkinter allows for untrusted code execution. -> Security bug in tkinter allows for untrusted, arbitrary code execution. ___ Python tracker ___

[issue16260] change bare except in locale.py

2012-10-17 Thread Ramchandra Apte
New submission from Ramchandra Apte: In Lib/locale.py:1860 , a bare except is used. It should be replaced with "except Error" as the setlocale() function raises `Error` if an error occurs. -- components: Library (Lib) messages: 173138 nosy: ramchandra.apte priority: normal severity: nor

[issue16260] change bare except in locale.py

2012-10-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: I am going to file a new bug for fixing the bare excepts in the std lib. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue16261] Fix bare excepts in various places in std lib

2012-10-17 Thread Ramchandra Apte
New submission from Ramchandra Apte: Will attach patch. -- components: Library (Lib) messages: 173140 nosy: ramchandra.apte priority: normal severity: normal status: open title: Fix bare excepts in various places in std lib ___ Python tracker

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-10-17 Thread Trent Nelson
Trent Nelson added the comment: Ah, this is because of this OS X-specific snippet in sysconfig.get_platform(): elif osname[:6] == "darwin": import _osx_support osname, release, machine = _osx_support.get_platform_osx( get_config_var

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66959d419369 by Trent Nelson in branch '3.3': Issue #15298: fix an OS X bootstrap issue with _sysconfigdata.py. http://hg.python.org/cpython/rev/66959d419369 New changeset 429774e8d9f9 by Trent Nelson in branch 'default': Merge issue #15298: fix an

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-17 Thread Václav Šmilauer
Václav Šmilauer added the comment: Yes, that's what I suggested at the end of msg172656 - including modulename in the key. Brett, would it be OK if I make patch against 3.3 (or head, if you prefer) to key by (modulename,filename) for compiled modules? I had a look at importlib.machinery.Exten

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-10-17 Thread devurandom
Changes by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15483] CROSS: initialise include and library paths in setup.py

2012-10-17 Thread devurandom
Changes by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue3754] cross-compilation support for python build

2012-10-17 Thread devurandom
Changes by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15484] CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig

2012-10-17 Thread devurandom
Changes by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-10-17 Thread devurandom
Changes by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue14598] _cursesmodule.c fails with ncurses-5.9 on Linux

2012-10-17 Thread devurandom
Changes by devurandom : -- nosy: +devurandom ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e879a453bb3 by Trent Nelson in branch '2.7': Issue #15819: use standard autoconf preset output variables. http://hg.python.org/cpython/rev/7e879a453bb3 New changeset 65b3c41052b6 by Trent Nelson in branch '3.2': Issue #15819: use standard autoconf

[issue15581] curses: segfault in addstr()

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems the bug was fixed for 3.3 in issue12567. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-17 Thread Matthias Klose
New submission from Matthias Klose: seen with the 3.3 branch and the trunk: also, I think using python now unconditionally breaks the cross builds, so this should call PYTHON_FOR_BUILD, not python. /bin/mkdir -p Include hg: no-repository, python: found! cannot run ../Parser/asdl_c.py -h Includ

[issue13617] Reject embedded null characters in wchar* strings

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I added some comments in Rietveld. I see other instances of the use of non-checked PyUnicode_AsWideCharString() and PyUnicode_AsUnicode(). -- nosy: +serhiy.storchaka ___ Python tracker

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-17 Thread Larry Hastings
Larry Hastings added the comment: I don't know POSIX / UNIX all that well. Does it require that a stat call updates atime? Because that's one of those "how does it ever work" head-scratchers. (Maybe everybody always disables atime these days? I don't think I do.) -- _

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't know POSIX / UNIX all that well. Does it require that a stat > call updates atime? Because that's one of those "how does it ever > work" head-scratchers. (Maybe everybody always disables atime these > days? I don't think I do.) I think most Linux d

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-17 Thread Trent Nelson
Trent Nelson added the comment: Re: "how did it ever work"... on Solaris, because of the st_mtime failure, it doesn't even get a chance to fail on the subsequent st_atime. I suspect the only platform that's exercised the utimensat() to date is Linux, and either a) os.stat() doesn't affect ati

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2012-10-17 Thread Trent Nelson
Trent Nelson added the comment: Here's a thought... why not alter the test to work with fixed times and separate the atime tests from the mtime tests. For atime, we can set utime(filename, (0.0, ...)) and see if a subsequent os.stat() returns st_atime as 0.0 -- that'll tell us whether or not

[issue16257] test_socket.test_create_connection tests for wrong errno on Solaris

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5fa9d8603b6 by Trent Nelson in branch '3.2': Issue #16257: make test_create_connection() handle ENETUNREACH. http://hg.python.org/cpython/rev/b5fa9d8603b6 New changeset 6a938ce6315c by Trent Nelson in branch '3.3': Issue #16257: make test_create_co

[issue16257] test_socket.test_create_connection tests for wrong errno on Solaris

2012-10-17 Thread Trent Nelson
Changes by Trent Nelson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-17 Thread Matthias Klose
Matthias Klose added the comment: looking at the unused subprocess import in asdl_c.py, maybe some call-outs to svn/hg were made in the past? the patch removes the check for hg for the asdl.[ch] builds, and sets ADSLGEN to a appropriate python interpreter if one is found. fixes the build for

[issue16263] sendmsg, recvmsg, recvmsg_into et al not being detected on Solaris

2012-10-17 Thread Trent Nelson
New submission from Trent Nelson: Sample test_socket -v output: testSendmsgDataGenerator (test.test_socket.SendmsgUDPTest) ... skipped "don't have sendmsg" testSendmsgExcessCmsgReject (test.test_socket.SendmsgUDPTest) ... skipped "don't have sendmsg" testSendmsgGather (test.test_socket.Sendmsg

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-17 Thread Matthias Klose
Matthias Klose added the comment: r71315 did remove the call-out to hg, so it looks safe to not check for hg in ASDLGEN. -- ___ Python tracker ___ __

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-17 Thread Matthias Klose
Matthias Klose added the comment: typo, r71375 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-17 Thread Matthias Klose
Changes by Matthias Klose : -- components: +Build versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16264] test_logging failure on Windows 7 buildbot

2012-10-17 Thread Antoine Pitrou
New submission from Antoine Pitrou: Changeset d3c7ebdc71bb produced the following test failure on one of the stable buildbots: == FAIL: test_noserver (test.test_logging.SocketHandlerTest) --

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +trent ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16264] test_logging failure on Windows 7 buildbot

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 240fa6e93925 by Giampaolo Rodola' in branch 'default': test_logging.py: where needed use unittest's assertGreater, assertLesser, assertIs rather than assertTrue (also in order to debug issue 16264) http://hg.python.org/cpython/rev/240fa6e93925

[issue16264] test_logging failure on Windows 7 buildbot

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Committed http://hg.python.org/cpython/rev/240fa6e93925 in order to have a clearer look on what's going on. Will get back on this later today, after the next bb failure. -- ___ Python tracker

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-10-17 Thread Trent Nelson
Trent Nelson added the comment: That last commit fixes in-tree builds, but broke out-of-tree builds. I've refactored the patch (sysconfig.py.patch) to fix the issue, but it's getting progressively more hacky, so I wanted to see what other people think before proceeding. (That being said, it

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-17 Thread R. David Murray
R. David Murray added the comment: Yes, I think keeping this bug as the doc bug and opening a new one for the enhancement is the best way to go. -- versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue16259] Replace exec() in test.regrtest with __import__

2012-10-17 Thread R. David Murray
R. David Murray added the comment: That's a safe use of exec, since the name is coming from a loaded module and not from user input. Still, load_module would be cleaner. However, the real fix is to just delete that code. It is dead code...we always pass the indirect_test argument to dash_R.

[issue16265] Code sample does not collapse correctly

2012-10-17 Thread Yongzhi Pan
New submission from Yongzhi Pan: http://docs.python.org/py3k/tutorial/inputoutput.html#fancier-output-formatting In the last but second code sample in that section, the code is not correctly colored and cannot be correctly collapsed. Expanded: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab'

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-17 Thread Trent Nelson
Trent Nelson added the comment: With the caveat that I know absolutely nothing about locales, here's what I've been able to reduce the problem down to: zinc (alias s11, Solaris 11 x64): >>> locale.setlocale(locale.LC_ALL, 'C') 'C' >>> locale.strxfrm('a') 'a' >>> locale.setlo

[issue16266] Typo in tutorial

2012-10-17 Thread Yongzhi Pan
New submission from Yongzhi Pan: http://docs.python.org/py3k/tutorial/inputoutput.html#reading-and-writing-files The text: In text mode, the default is to convert platform-specific line endings (\n on Unix, \r\n on Windows) to just \n on reading and \n back to platform-specific line endings o

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-17 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I can reproduce this on my x86 Solaris 10 update 10. -- ___ Python tracker ___ ___ Python-bugs-list

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: With the system Python on s10: Python 2.6.8 (unknown, Apr 13 2012, 17:08:12) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.strxfrm('a') 'a' >>> locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') 'en

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-17 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: BTW, this works in python 3.2: x86, 32 bit python, Solaris 10 update 10: """ Python 3.2.3 (default, Apr 12 2012, 13:29:13) [GCC 4.7.0] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.setlocale(loca

[issue16266] Typo in tutorial

2012-10-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm not native English speaker, but for me it just means \r\n -> \n when read from stream and \n -> \r\n when write to stream if OS is Windows. That's correct. -- nosy: +asvetlov, chris.jerdonek ___ Python tracker

[issue15200] Faster os.walk

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Timing of walk depends on how deep we dive into the directories. $ ./python -m timeit -s "from os import walk" "for x in walk('/home/serhiy/py/1/2/3/4/5/6/7/8/9/cpython/'): pass" 10 loops, best of 3: 398 msec per loop $ ./python -m timeit -s "from os import

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: It only works on Python 3.2 because PyUnicode_FromWideChar is more permissive, it seems. The first character in the wchar_t string returned by Solaris is still 0x101010e. -- ___ Python tracker

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: (by the way, I also tried a memset() before calling wcsxfrm(): no change) -- ___ Python tracker ___

[issue16265] Code sample does not collapse correctly

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset a0fba0382ae0 by Andrew Svetlov in branch '3.2': Issue #16265: Fix collapsing of code sample in tutorial. http://hg.python.org/cpython/rev/a0fba0382ae0 New changeset 7c0de8be4eaf by Andrew Svetlov in branch '3.3': Merge issue #16265: Fix collapsing o

[issue16265] Code sample does not collapse correctly

2012-10-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks. -- nosy: +asvetlov resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.4 ___ Python tracker __

[issue15145] Faster *_find_max_char

2012-10-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file26093/find_max_char.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue16261] Fix bare excepts in various places in std lib

2012-10-17 Thread Brett Cannon
Brett Cannon added the comment: One thing to be aware of, Ramchandra, is that there might be a slight backwards-compatibility problem from tightening up what exceptions propagate. Now with proper documentation and only applying things to 3.4 this probably won't be a problem. -- nosy:

[issue15145] Faster *_find_max_char

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated to tip. But because results are contradictory and often patched version even slower vanilla (and I don't understand why it happens), I close the issue. I think all changes are irrelevant and differences are only compiler optimization artifacts.

[issue15145] Faster *_find_max_char

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the effort, Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15378] Underported Tools/unicode/comparecodecs.py

2012-10-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg165687 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15378] Underported Tools/unicode/comparecodecs.py

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can anyone look at this tiny patch? -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bug

[issue15378] Underported Tools/unicode/comparecodecs.py

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 98f64cbed2ac by Antoine Pitrou in branch '3.2': Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/98f64cbed2ac New changeset f281d7700339 by Antoine Pitrou in branch '3.3': Issue #15378: F

[issue15378] Underported Tools/unicode/comparecodecs.py

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is obviously good, thank you :) -- nosy: +pitrou resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9583] Document startup option/environment interaction

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f812212599b by Andrew Svetlov in branch '2.7': Issue #9583: Document startup option/environment interaction. http://hg.python.org/cpython/rev/2f812212599b New changeset a8052ad9752b by Andrew Svetlov in branch '3.2': Issue #9583: Document startup o

[issue9583] Document startup option/environment interaction

2012-10-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Applied patch. Thanks, Todd. I think the issue can be closed. -- nosy: +asvetlov versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2012-10-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea superseder: -> test_local.TestEnUSCollection failures on Solaris 10 ___ Python tracker ___ __

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread Christopher the Magnificent
New submission from Christopher the Magnificent: This may be an issue with the interpreter behavior or it may be a documentation issue. Note: I only selected Python 3.3 as the version, but it probably affects MANY other Python versions. Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think better to fix code to make first sample also work. It can be done as special cases in abc.abstractmethod to process classmethod/staticmethod objects properly. -- ___ Python tracker

[issue14621] Hash function is not randomized properly

2012-10-17 Thread Christian Heimes
Christian Heimes added the comment: I've modified unicodeobject's unicode_hash() function. V8's algorithm is about 55% slower for a 800 MB ASCII string on my box. Python's current hash algorithm for bytes and unicode: while (--len >= 0) x = (_PyHASH_MULTIPLIER * x) ^ (Py_uhash_t) *P

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-10-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever, gpolo ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15483] CROSS: initialise include and library paths in setup.py

2012-10-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-10-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16266] Typo in tutorial

2012-10-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: The last \n is needed for the reason Andrew mentioned, but it is true that the sentence could probably be rephrased to reduce the chance of confusion. -- ___ Python tracker __

[issue16266] Rephrase sentence in tutorial about universal newlines

2012-10-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: I would suggest something like this: "In text mode, the default when reading is to convert platform-specific line endings (\n on Unix, \r\n on Windows) to just \n. When writing in text mode, the default is to convert occurrences of \n back to platform-specifi

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread R. David Murray
R. David Murray added the comment: I've added the nosy list from issue 11610, in case complicating the implementation is seen as sub-optimal :) -- nosy: +Darren.Dale, benjamin.peterson, daniel.urban, dsdale24, eric.araujo, eric.snow, ncoghlan, python-dev, r.david.murray, stutzbach ___

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't see why classmethod/staticmethod should be special cased if it doesn't work for other decorators. -- ___ Python tracker ___

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread Darren Dale
Darren Dale added the comment: Quoting the documentation for abstractmethod: "When abstractmethod() is applied in combination with other method descriptors, it should be applied as the innermost decorator, as shown in the following usage examples:" The examples include staticmethod and classm

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-10-17 Thread Guilherme Polo
Guilherme Polo added the comment: It is a well known fact that the readprofile function uses exec, and it has been like that for more than 18 years. The parameters baseName and className defines the execution of the files $HOME/.{className}.tcl, $HOME/.{className}.py, $HOME/.{baseName}.tcl, an

[issue16266] Rephrase sentence in tutorial about universal newlines

2012-10-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks good to me, please apply it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue9583] Document startup option/environment interaction

2012-10-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close the issue. Feel free to reopen if clarification needed. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15450] Allow dircmp.subdirs to behave well under subclassing

2012-10-17 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13614] setup.py register fails if long_description contains ReST

2012-10-17 Thread Petri Lehtinen
Petri Lehtinen added the comment: Can this be closed? -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13614] setup.py register fails if long_description contains ReST

2012-10-17 Thread Éric Araujo
Éric Araujo added the comment: The changesets you see are in distutils2, I haven’t had a chance to backport them yet. -- stage: test needed -> commit review versions: +Python 3.4 ___ Python tracker ___

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2012-10-17 Thread Chris Calloway
Chris Calloway added the comment: I have a number of patches for this issue I have worked on during a few local Python user group hack nights. I have not submitted them yet, however, as they require some expository material here in order to illustrate how they address Jerdonek's points. I have

[issue16268] dir(closure) claims that a closure has no __dir__, only to work later after manually invoking __dir__ from its type

2012-10-17 Thread Christopher the Magnificent
New submission from Christopher the Magnificent: This is really short, you should spot the inconsistency in the result of the same function call fairly easily. Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyrigh

[issue16268] dir(closure) claims that a closure has no __dir__, only to work later after manually invoking __dir__ from its type

2012-10-17 Thread Kushal Das
Changes by Kushal Das : -- nosy: +kushaldas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread Christopher the Magnificent
Christopher the Magnificent added the comment: As Darren Dale pointed out, it looks like this is a (partial) documentation issue. I think it's plausible that someone like me, who has used abstractmethod by itself, would read the docs for abstractclassmethod and not re-read the docs on abstrac

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2012-10-17 Thread STINNER Victor
STINNER Victor added the comment: Python 3.2 rejects characters outside the range U+-U+10 in some operations, but not everywhere. I fixed Python 3.3 to be more strict and always reject characters outside this range. I noticed the Solaris issue with mbstowcs() on locale encodings different

[issue16267] order of decorators @abstractmethod and @classmethod is significant (is not documented to be in @abstractclassmethod which advises their combined use)

2012-10-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: After brief looking sources I figured out it can be solved by adding setters for __isabstractmethod__ to classmethod/staticmethod objects. It can be done, I'll try to make a patch. For property situation is worse: property is abstract if any of getter/setter/d

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15814] memoryview: equality-hash invariant

2012-10-17 Thread Mark Lawrence
Mark Lawrence added the comment: The 3.3.0 docs now state "Note Hashing of memoryviews with formats other than ‘B’, ‘b’ or ‘c’ as well as hashing of multi-dimensional memoryviews is possible in version 3.3.0, but will raise an error in 3.3.1 in order to be compatible with the new memoryview eq

[issue16268] dir(closure) claims that a closure has no __dir__, only to work later after manually invoking __dir__ from its type

2012-10-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch does not unquote strings ("spam\n" is interpreted as r"spam\n") and allows invalid entry such as "\\" or boo. -- nosy: +serhiy.storchaka stage: patch review -> needs patch versions: +Python 3.4 ___ Python

[issue15814] memoryview: equality-hash invariant

2012-10-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: 3.3.1 is correct, you apparently missed msg169425. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue12759] "(?P=)" input for Tools/scripts/redemo.py raises unnhandled exception

2012-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > My only question is, the exception we raise now says, there invalid >characters in the group name, whether in our case the group name is just empty. Good point. It would be better if you move the test outside isname() function and immediately raise an erro

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would prefer if you yanked PY_LITTLE_ENDIAN_FLAG. We don't need two different ways to do it. -- ___ Python tracker ___ __

[issue16203] Proposal: add re.fullmatch() method

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW, I prefer "fullmatch" as well :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue14900] cProfile does not take its result headers as sort arguments

2012-10-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm waiting for your patch. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread William Edwards
New submission from William Edwards: If you have 1024 file descriptors already open, the file descriptors created internally in multiprocessing.Queue will be beyond 1024 and the select() call buried deep in the Queue will throw an exception. In fact, all uses of select() in the Python libs sho

[issue16270] ftplib hangs when closing connection

2012-10-17 Thread Ugra Dániel
New submission from Ugra Dániel: With version 3.3 (64 bit on Arch Linux) Python now hangs when closing FTP connection on some sites: url = "ftp://ftp.fu-berlin.de/pub/misc/movies/database/ratings.list.gz"; with urllib.request.urlopen( url ): pass -- components: Library (Lib) m

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-17 Thread Christian Heimes
Christian Heimes added the comment: I've replaced the macros with PY_BIG_ENDIAN or PY_LITTLE_ENDIAN. Both are always defined and exactly one is set to 1, the other to 0. -- Added file: http://bugs.python.org/file27603/endian2.patch ___ Python tracker

[issue16270] ftplib hangs when closing connection

2012-10-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +3.3regression nosy: +giampaolo.rodola, orsenthil versions: +Python 3.4 ___ Python tracker ___ __

  1   2   >