[issue16527] (very) long list of elif causes segfault
Marc-Andre Lemburg added the comment: On 22.11.2012 00:41, Alexis Daboville wrote: A possible cause (if I understood http://greentreesnakes.readthedocs.org/en/latest/nodes.html#If well) is that there are no elif nodes in the AST, elif are just plain ifs which are stored recursively in the else part of the previous if. This is likely the cause. It's possible that the Python compiler uses too much stack space, causing the stack to underrun, if the default recursion limit is too high. You should be able to check this by setting the recursion limit to a lower value: http://docs.python.org/3/library/sys.html?highlight=setrecursion#sys.setrecursionlimit It defaults to 1000. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 22 2012) Python Projects, Consulting and Support ... http://www.egenix.com/ mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ ::: Try our new mxODBC.Connect Python Database Interface for free ! eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16529] Compiler error when trying to compile ceval.c on OpenSUSE 11.3
New submission from Marc-Andre Lemburg: When trying to compile the hg checkout (2012-11-22), I'm getting a compiler error from GCC when trying to compile ceval.c on OpenSUSE 11.3 x64: gcc -pthread -c -Wno-unused-result -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include-DPy_BUILD_CORE -o Python/ceval.o Python/ceval.c Python/ceval.c: In function PyEval_EvalFrameEx: Python/ceval.c:3168:1: internal compiler error: in save_call_clobbered_regs, at caller-save.c:911 Please submit a full bug report, with preprocessed source if appropriate. See http://bugs.opensuse.org/ for instructions. make: *** [Python/ceval.o] Error 1 Here's the gcc version info: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.5/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.5 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.5 --enable-linux-futex --without-system-libunwind --enable-gold --with-plugin-ld=/usr/bin/gold --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux) Interestingly, this error does not happen when compiling the 3.3.0 release version. It looks similar to these two bugs that are related to some optimization bug in GCC: * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45259 (I can't reproduce this one) * https://bugzilla.redhat.com/show_bug.cgi?id=622060 (This was detected in Fedora for Python 3.1.2) I guess you could say that the compiler is broken, but I still think that Python's configure script should detect this and then disable --with-computed-gotos. -- components: Build, Interpreter Core messages: 176101 nosy: lemburg priority: normal severity: normal status: open title: Compiler error when trying to compile ceval.c on OpenSUSE 11.3 versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16529 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Alexis Daboville added the comment: I don't think it can be fixed with sys.setrecursionlimit for a few reasons: * I think the issue arises when the AST is built. Otherwise if we put code before the if it would execute. But that's not the case (try putting a print('hello') before the if and it won't print anything). - This also means that you cannot directly call sys.setrecursionlimit in the file with the elifs. - Though we can set recursion limit using a second file which will then import the elifs file: I tried with different limits and CPython still crash in the same way (and always with the same number of elifs, roughly, because I didn't binary search for the exact amount of elifs). - sys.setrecursionlimit controls the stack size of the running Python program, while here we break C stack directly before running Python bytecode. * When recursion limit is hit, an exception is raised, there's no segfault: def f(): ... f() ... f() # plenty of omitted lines RuntimeError: maximum recursion depth exceeded * Having a RuntimeError raised would be nice, though 'maximum recursion depth exceeded' may not be the best possible error message as from a 'Python user' POV there's no recursion here. --- A possible solution would be, I guess, to store elifs as excepts are stored. Instead of storing elifs recursively, the else part would just contain a list of if nodes (and if there is a else, well just store an if True node). Though I don't know how difficult it would be to implement that, or if it's likely to break a lot of things which relies on ifs/elifs to be stored that way. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Marc-Andre Lemburg added the comment: On 22.11.2012 10:26, Alexis Daboville wrote: Alexis Daboville added the comment: I don't think it can be fixed with sys.setrecursionlimit for a few reasons: I think you misunderstood. The suggestion was to use the sys function to check whether the segfault is indeed caused by the stack and where a more suitable would be. In order to check this, you need to set a new limit and then compile the example script. If this results in a RuntimeError instead of a segfault for some new value of the limit, we'd know that the problem is caused by the stack use of the compiler. * I think the issue arises when the AST is built. Otherwise if we put code before the if it would execute. But that's not the case (try putting a print('hello') before the if and it won't print anything). - This also means that you cannot directly call sys.setrecursionlimit in the file with the elifs. - Though we can set recursion limit using a second file which will then import the elifs file: I tried with different limits and CPython still crash in the same way (and always with the same number of elifs, roughly, because I didn't binary search for the exact amount of elifs). - sys.setrecursionlimit controls the stack size of the running Python program, while here we break C stack directly before running Python bytecode. It is also used by the compiler. From symtable.c: /* When compiling the use of C stack is probably going to be a lot lighter than when executing Python code but still can overflow and causing a Python crash if not checked (e.g. eval(()*30)). Using the current recursion limit for the compiler seems too restrictive (it caused at least one test to fail) so a factor is used to allow deeper recursion when compiling an expression. Using a scaling factor means this should automatically adjust when the recursion limit is adjusted for small or large C stack allocations. */ #define COMPILER_STACK_FRAME_SCALE 3 We may have to adjust that scaling factor. * When recursion limit is hit, an exception is raised, there's no segfault: def f(): ... f() ... f() # plenty of omitted lines RuntimeError: maximum recursion depth exceeded * Having a RuntimeError raised would be nice, though 'maximum recursion depth exceeded' may not be the best possible error message as from a 'Python user' POV there's no recursion here. You should be seeing maximum recursion depth exceeded during compilation if the RuntimeError is generated by the compiler - as Christian did for debug builds. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 22 2012) Python Projects, Consulting and Support ... http://www.egenix.com/ mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ ::: Try our new mxODBC.Connect Python Database Interface for free ! eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16382] Better warnings exception for bad category
Changes by Phil Elson pelson@gmail.com: Added file: http://bugs.python.org/file28072/pelson_warnings_fix_3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16382 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Mark Dickinson added the comment: I think the issue arises when the AST is built. It's occurring when generating a code object from the AST, after the AST is built: Python 3.3.0+ (3.3:bf1bf3bf3fe2, Nov 22 2012, 10:45:24) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. code = el.join(['if False: pass\n']*1) import ast tree = ast.parse(code) code_obj = compile(tree, 'noname.py', 'exec') Traceback (most recent call last): File stdin, line 1, in module RuntimeError: maximum recursion depth exceeded during compilation I don't know why you're getting a segfault rather than the above RuntimeError, though: on my machine this goes straight from working to the RuntimeError: code = el.join(['if False: pass\n']*2996) code_obj = compile(ast.parse(code), 'noname.py', 'exec') code = el.join(['if False: pass\n']*2997) code_obj = compile(ast.parse(code), 'noname.py', 'exec') Traceback (most recent call last): File stdin, line 1, in module RuntimeError: maximum recursion depth exceeded during compilation Crys: do you still see the segfault if COMPILER_STACK_FRAME_SCALE is #define'd to be 2 rather than 3? -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16522] Add 'FAIL_FAST' flag to doctest
Roundup Robot added the comment: New changeset e456da396ad9 by R David Murray in branch 'default': #16522: s/always 1/at most 1/. http://hg.python.org/cpython/rev/e456da396ad9 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16522 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16528] 3.2 docs not updating on docs.python.org
R. David Murray added the comment: I don't know. If it is would be in wherever documenting Python is these days. The policy is that only the versions in active maintenance are automatically rebuilt. 3.2 is technically no longer in maintenance, it's just that there are reasons that we are delaying the final release. But I remember Georg answering this question on one forum or another, saying that the switch in which versions get built happens when the new version's pages move from default to release. (So, it is always somewhat before the final release of the previous maintenance version.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16490] inspect.getargspec() and inspect.getcallargs() don't work for builtins
Changes by David Villa Alises david.vi...@gmail.com: -- nosy: +David.Villa.Alises ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16490 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12614] Allow to explicitly set the method of urllib.request.Request
Senthil Kumaran added the comment: Hello Miki Tebeka, The change requested by this issue (and provided by the patch) is already in place in 3.3. This was committed as part of issue1673007 has the same behavior too. I am closing this as duplicate. Thank you, Senthil -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12614 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16464] urllib.request: opener not resetting content-length
Andrew Svetlov added the comment: I'm agree with solution, see my comments in review for the patch. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16464 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16464] urllib.request: opener not resetting content-length
Andrew Svetlov added the comment: Perhaps it's a bit new behavior and should be applied to 3.4 only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16464 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15990] solidify argument/parameter terminology
Ezio Melotti added the comment: I modified the last patch to use bullet lists and include more examples, and also added a FAQ entry to explain the difference between args and parameters. I'll leave further comments on rietveld. -- nosy: +eric.araujo Added file: http://bugs.python.org/file28073/issue-15990-3-default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Serhiy Storchaka added the comment: This may be a duplicate of issue5765. -- nosy: +serhiy.storchaka resolution: - duplicate superseder: - stack overflow evaluating eval(() * 3) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16530] documentation of os.wait3
New submission from George Yoshida: Documentation defines os.wait3 function as : os.wait3([options]) but, this argument is required(no default options are set), so os.wait3(options) is the correct definition. http://docs.python.org/3.3/library/os.html#os.wait3 -- assignee: docs@python components: Documentation keywords: easy messages: 176112 nosy: docs@python, quiver priority: low severity: normal status: open title: documentation of os.wait3 type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16530 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Marc-Andre Lemburg added the comment: On 22.11.2012 17:15, Serhiy Storchaka wrote: This may be a duplicate of issue5765. It's certainly similar, but this ticket is not about expressions, it's about statements that are meant to be repeated often, so in a way less artificial :-) It would be interesting to see whether the scaling factor 3 is small enough to catch this case as well. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 22 2012) Python Projects, Consulting and Support ... http://www.egenix.com/ mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/ ::: Try our new mxODBC.Connect Python Database Interface for free ! eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16464] urllib.request: opener not resetting content-length
Alexey Kachayev added the comment: Fixed patch is attached. Documentation is updated. -- Added file: http://bugs.python.org/file28074/issue16464_fixed.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16464 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16528] 3.2 docs not updating on docs.python.org
Georg Brandl added the comment: That's correct. Documenting Python is in the devguide now; feel free to remark this somewhere. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13266] Add inspect.unwrap(f) to easily unravel __wrapped__ chains
Changes by Daniel Urban urban.dani...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13266 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16528] 3.2 docs not updating on docs.python.org
Chris Jerdonek added the comment: The policy is that only the versions in active maintenance are automatically rebuilt. 3.2 is technically no longer in maintenance, it's just that there are reasons that we are delaying the final release. Okay, below the devguide says it is still in maintenance. Should that be changed? There are 6 open branches right now in the Mercurial repository: * the default branch holds the future 3.4 version and descends from 3.3 * the 3.3 branch holds bug fixes for future 3.3.x maintenance releases and descends from 3.2 * the 3.2 branch holds bug fixes for an upcoming final 3.2.4 maintenance release and then for future 3.2.x security releases * the 3.1 branch holds security fixes for future 3.1.x security releases ... (from http://docs.python.org/devguide/devcycle.html#summary ) Perhaps that was the source of confusion for me. I was wondering if there was some other policy about when not to rebuild branches still in maintenance mode. But given that it's not really in maintenance mode any longer, that answers my question. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16528] 3.2 docs not updating on docs.python.org
Georg Brandl added the comment: 3.2 is still in maintenance, but the docs are not rebuilt daily for any past stable version, whether they are in maintenance or not. Maybe it's not such a big deal at all? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Christian Heimes added the comment: I'm unable to reproduce the issue with 3.3 and default head. With v3.3.0 the script causes a segfault. I guess Serhiy has a point, the fix for #5765 also fixes this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16528] 3.2 docs not updating on docs.python.org
Chris Jerdonek added the comment: It's not. Thanks for the clarification and info. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15990] solidify argument/parameter terminology
Chris Jerdonek added the comment: I have a number of comments but it is a holiday this weekend so I might not be able to get to it for a day or two. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16499] CLI option for isolated mode
Christian Heimes added the comment: How shall I handle venv? I'm reluctant to disable venv in site.py although it allows a user to modify sys.path. However it's only an issue under two circumstances: (1) The user either needs write permissions to the parent directory of the python executable. (2) The script doesn't hard code the path to the interpreter in its shebang. Point 1 allows the user to mess with the system in more serious ways. The second point can be avoided with a correctly written shebang line. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16499] CLI option for isolated mode
Antoine Pitrou added the comment: How shall I handle venv? I'm reluctant to disable venv in site.py although it allows a user to modify sys.path. However it's only an issue under two circumstances: (1) The user either needs write permissions to the parent directory of the python executable. (2) The script doesn't hard code the path to the interpreter in its shebang. Point 1 allows the user to mess with the system in more serious ways. The second point can be avoided with a correctly written shebang line. I agree that venv shouldn't be a problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16499 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14525] ia64-hp-hpux11.31 won't compile 2.7 without -D_TERMIOS_INCLUDED
Stefan Krah added the comment: Closing, since this is fixed on the buildslave. -- components: +Extension Modules -Build keywords: +buildbot resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - termios fix for QNX breaks HP-UX type: enhancement - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14525 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1690840] xmlrpclib methods submit call on __str__, __repr__
anatoly techtonik added the comment: I'd say this one worthy to be backported. -- nosy: +techtonik status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1690840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3580] failures in test_os
Changes by Antoine Pitrou pit...@free.fr: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3580 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Antoine Pitrou added the comment: where? In `caps=self.capa()` (you need a space around the assignment operator). Here I'm following: at :ref:`pop3-objects` in Doc/library/poplib.rst, Ah, ok. Then I agree it makes sense to call it stls(). No need for an alias, IMO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16438] Numeric operator predecence confusing
Kiet Tran added the comment: Good idea. -- keywords: +patch Added file: http://bugs.python.org/file28075/16438.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16438 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Roundup Robot added the comment: New changeset b4f6cd5f9ab7 by Stefan Krah in branch '2.7': Issue #13057: Include stdio.h when NULL is used in configure.ac. http://hg.python.org/cpython/rev/b4f6cd5f9ab7 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Roundup Robot added the comment: New changeset f0baa6be2bf1 by Stefan Krah in branch '3.3': Issue #13057: Include stdio.h when NULL is used in configure.ac. http://hg.python.org/cpython/rev/f0baa6be2bf1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16531] Allow IPNetwork to take a tuple
New submission from Antoine Pitrou: I am in a situation where I'm building an IPNetwork from separate address and mask information. So roughly I'd like to write either: addr = IPAddress('192.168.0.0') network = IPNetwork((addr, '255.255.0.0')) or addr = '192.168.0.0' network = IPNetwork((addr, '255.255.0.0')) Of course it seems like this would be equivalent to: network = IPNetwork('%s/%s' % (addr, '255.255.0.0.')) (but more user-friendly :-)) -- components: Library (Lib) messages: 176129 nosy: ncoghlan, pitrou, pmoody priority: low severity: normal status: open title: Allow IPNetwork to take a tuple type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Antoine Pitrou added the comment: You broke the Ubuntu Shared buildbot, could you fix it? http://buildbot.python.org/all/buildslaves/bolen-ubuntu -- nosy: +pitrou status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16532] AMD64 Windows 7 build failures
New submission from Antoine Pitrou: The AMD64 Windows 7 buildbot shows weird build failures in ctypes: http://buildbot.python.org/all/buildslaves/kloth-win64 -- keywords: buildbot messages: 176131 nosy: jeremy.kloth, jkloth, pitrou priority: high severity: normal status: open title: AMD64 Windows 7 build failures versions: Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16533] HPUX: Unable to fork() in thread
New submission from Stefan Krah: There's an error on the HPUX-IA64 buildbot that might be due to some kernel limits. Trent, could you check if the following helps (requires root)? http://zensonic.dk/?p=326 test_forkinthread (test.test_thread.TestForkInThread) ... Fatal Python error: Invalid thread state for this thread test test_thread failed -- Traceback (most recent call last): File /home/cpython/buildslave/2.7.snakebite-hpux11iv3-ia64-1/build/Lib/test/test_support.py, line 1265, in decorator return func(*args) File /home/cpython/buildslave/2.7.snakebite-hpux11iv3-ia64-1/build/Lib/test/test_thread.py, line 246, in test_forkinthread Unable to fork() in thread) AssertionError: Unable to fork() in thread -- components: Tests messages: 176132 nosy: skrah, trent priority: normal severity: normal status: open title: HPUX: Unable to fork() in thread type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16533 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16534] test_float failure on IA64 (HPUX)
New submission from Stefan Krah: There's a test_float failure on HPUX (and many compiler warnings): test test_float failed -- Traceback (most recent call last): File /home/cpython/buildslave/2.7.snakebite-hpux11iv3-ia64-1/build/Lib/test/test_float.py, line 622, in test_format_testfile self.assertEqual(fmt % arg, rhs) AssertionError: '464902769475481793200' != '464902769475481793196872414789632' -- components: Tests messages: 176133 nosy: mark.dickinson, skrah priority: normal severity: normal status: open title: test_float failure on IA64 (HPUX) type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64
Stefan Krah added the comment: Fixed in 2.7, 3.3 and 3.4. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16535] json encoder unable to handle decimal
New submission from Éric Araujo: In 2.7 and other versions, the json module has incomplete support for decimals: json.loads('0.2', parse_float=Decimal) Decimal('0.2') json.dumps(json.loads('0.2', parse_float=Decimal)) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.7/json/__init__.py, line 231, in dumps return _default_encoder.encode(obj) File /usr/lib/python2.7/json/encoder.py, line 201, in encode chunks = self.iterencode(o, _one_shot=True) File /usr/lib/python2.7/json/encoder.py, line 264, in iterencode return _iterencode(o, 0) File /usr/lib/python2.7/json/encoder.py, line 178, in default raise TypeError(repr(o) + is not JSON serializable) TypeError: Decimal('0.2') is not JSON serializable simplejson encodes decimals out of the box, but json can’t round-trip. -- messages: 176135 nosy: eric.araujo, ezio.melotti, pitrou, rhettinger priority: normal severity: normal status: open title: json encoder unable to handle decimal type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16535] json encoder unable to handle decimal
Éric Araujo added the comment: See lengthy discussion that lead to inclusion in simplejson here: http://code.google.com/p/simplejson/issues/detail?id=34 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15474] Differentiate decorator and decorator factory in docs
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15474 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16535] json encoder unable to handle decimal
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16531] Allow IPNetwork to take a tuple
Nick Coghlan added the comment: Sounds reasonable, especially as it also allows networks and interfaces with prefixes other than /32 or /128 to be easily constructed based on integer address values. Should we also allow integers as the second argument, with the same prefix length meaning as the corresponding string? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15474] Differentiate decorator and decorator factory in docs
Ezio Melotti added the comment: The tutorial doesn't seem to mention decorators, do you think this should be covered there? FWIW while explaining decorators I usually use 3 examples: 1) a simple decorator that accepts a function, does something, and returns the same function; 2) a decorator that defines and returns an inner function; 3) a decorator factory, that defines two nested inner functions Not sure if it's necessary to include the first example though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15474 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3244] multipart/form-data encoding
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16536] test_cmd_line: failure on Ubuntu Shared
New submission from Stefan Krah: == FAIL: test_unknown_options (test.test_cmd_line.CmdLineTest) -- Traceback (most recent call last): File /srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_cmd_line.py, line 393, in test_unknown_options self.assertIn(b'Unknown option', err) AssertionError: b'Unknown option' not found in b'/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/python: error while loading shared libraries: libpython3.4dm.so.1.0: cannot open shared object file: No such file or directory' -- -- components: Tests messages: 176139 nosy: skrah priority: normal severity: normal status: open title: test_cmd_line: failure on Ubuntu Shared type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16536 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16536] test_cmd_line: failure on Ubuntu Shared
Ezio Melotti added the comment: Already reported in #16306. (Also it's easier if you add a link to the failing buildbot.) -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Multiple error line for unknown command line parameter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16536 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16309] PYTHONPATH= different from no PYTHONPATH at all
Roundup Robot added the comment: New changeset 803e5a732331 by Ezio Melotti in branch 'default': #16309: avoid using deprecated method and turn docstring in a comment. http://hg.python.org/cpython/rev/803e5a732331 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16309 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] setup.py throws a ValueError when self.extensions is empty
New submission from Jonathan Hosmer: When disabled_module_list contains all the module names that are not built by Modules/Setup.dist, self.extensions in setup.py will be an empty list and when build_extensions tries to determine the max length of all extension names it raises a ValueError with the following traceback: Traceback (most recent call last): File ./setup.py, line 2143, in module main() File ./setup.py, line 2138, in main 'Lib/smtpd.py'] File /Users/pythonforios/Python_for_iOS/trunk/Python_for_iOS/python2.7/Lib/distutils/core.py, line 152, in setup dist.run_commands() File /Users/pythonforios/Python_for_iOS/trunk/Python_for_iOS/python2.7/Lib/distutils/dist.py, line 953, in run_commands self.run_command(cmd) File /Users/pythonforios/Python_for_iOS/trunk/Python_for_iOS/python2.7/Lib/distutils/dist.py, line 972, in run_command cmd_obj.run() File /Users/pythonforios/Python_for_iOS/trunk/Python_for_iOS/python2.7/Lib/distutils/command/build.py, line 127, in run self.run_command(cmd_name) File /Users/pythonforios/Python_for_iOS/trunk/Python_for_iOS/python2.7/Lib/distutils/cmd.py, line 326, in run_command self.distribution.run_command(command) File /Users/pythonforios/Python_for_iOS/trunk/Python_for_iOS/python2.7/Lib/distutils/dist.py, line 972, in run_command cmd_obj.run() File /Users/pythonforios/Python_for_iOS/trunk/Python_for_iOS/python2.7/Lib/distutils/command/build_ext.py, line 339, in run self.build_extensions() File ./setup.py, line 282, in build_extensions longest = max([len(e.name) for e in self.extensions]) ValueError: max() arg is an empty sequence make: *** [sharedmods] Error 1 ~~~ An example disabled_module_list from setup.py: ~~~ disabled_module_list = [ # Modules not compatible/not applicable for the iOS 'dl', 'nis', 'gdbm', 'spwd', '_bsddb', '_curses', '_tkinter', 'readline', 'bsddb185', 'ossaudiodev', 'sunaudiodev', '_curses_panel', 'linuxaudiodev', # Modules appended to inittab before embedded initialization '_multiprocessing', 'future_builtins', '_ctypes_test', '_testcapi', '_sqlite3', '_hashlib', '_hotshot', '_scproxy', '_pybsddb', 'imageop', '_ctypes', '_lsprof', '_heapq', '_yaml', '_json', 'math', 'zlib', '_io', 'bz2', 'dbm' ] ~~~ Example Modules/Setup.dist: ~~~ DESTLIB=$(LIBDEST) MACHDESTLIB=$(BINLIBDEST) DESTPATH= SITEPATH= TESTPATH= MACHDEPPATH=:plat-$(MACHDEP) EXTRAMACHDEPPATH= TKPATH=:lib-tk OLDPATH=:lib-old COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)$(TKPATH)$(OLDPATH) PYTHONPATH=$(COREPYTHONPATH) *static* posix posixmodule.c errno errnomodule.c pwd pwdmodule.c _sre _sre.c _codecs _codecsmodule.c zipimport zipimport.c _symtable symtablemodule.c array arraymodule.c cmath cmathmodule.c _math.c _struct _struct.c time timemodule.c -lm operator operator.c _weakref _weakref.c _random _randommodule.c _collections _collectionsmodule.c itertools itertoolsmodule.c strop stropmodule.c _functools _functoolsmodule.c _elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c datetime datetimemodule.c _bisect _bisectmodule.c unicodedata unicodedata.c _locale _localemodule.c fcntl fcntlmodule.c grp grpmodule.c select selectmodule.c mmap mmapmodule.c _csv _csv.c _socket socketmodule.c SSL=/usr/local/OpenSSL_for_iOS _ssl _ssl.c -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl -L$(SSL)/lib -lssl -lcrypto crypt cryptmodule.c termios termios.c resource resource.c audioop audioop.c imageop imageop.c _md5 md5module.c md5.c _sha shamodule.c _sha256 sha256module.c _sha512 sha512module.c timing timingmodule.c syslog syslogmodule.c binascii binascii.c parser parsermodule.c cStringIO cStringIO.c cPickle cPickle.c fpectl fpectlmodule.c fpetest fpetestmodule.c pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _multibytecodec cjkcodecs/multibytecodec.c _codecs_cn cjkcodecs/_codecs_cn.c _codecs_hk cjkcodecs/_codecs_hk.c _codecs_iso2022 cjkcodecs/_codecs_iso2022.c _codecs_kr cjkcodecs/_codecs_kr.c _codecs_tw cjkcodecs/_codecs_tw.c _codecs_jp cjkcodecs/_codecs_jp.c xxsubtype xxsubtype.c -- components: Build messages: 176142 nosy: jhosmer priority: normal severity: normal status: open title: setup.py throws a ValueError when self.extensions is empty type: compile error versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] setup.py throws a ValueError when self.extensions is empty
Changes by Jonathan Hosmer tetri...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file28076/Python-2.6.8-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] setup.py throws a ValueError when self.extensions is empty
Jonathan Hosmer added the comment: setup.py patch for 2.7.3 -- Added file: http://bugs.python.org/file28077/Python-2.7.3-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] setup.py throws a ValueError when self.extensions is empty
Jonathan Hosmer added the comment: setup.py patch for 3.0.1 -- Added file: http://bugs.python.org/file28078/Python-3.0.1-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] setup.py throws a ValueError when self.extensions is empty
Jonathan Hosmer added the comment: setup.py patch for 3.1.5 -- Added file: http://bugs.python.org/file28079/Python-3.1.5-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] setup.py throws a ValueError when self.extensions is empty
Jonathan Hosmer added the comment: setup.py patch for 3.3.0 -- Added file: http://bugs.python.org/file28081/Python-3.3.0-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] setup.py throws a ValueError when self.extensions is empty
Jonathan Hosmer added the comment: setup.py patch for 3.2.3 -- Added file: http://bugs.python.org/file28080/Python-3.2.3-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] setup.py throws a ValueError when self.extensions is empty
Ezio Melotti added the comment: Thanks for the patches. 3.1 and 2.6 only receive security fixes, and 3.0 is not maintained anymore, so I removed them from the versions. Usually it's enough to upload a single patch, especially if the fix is the same on all branches. The patch should also include tests if possible. Is also not necessary to add a comment when you add a file. -- nosy: +ezio.melotti stage: - patch review versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15474] Differentiate decorator and decorator factory in docs
Nick Coghlan added the comment: No, using decorators needs to be in the tutorial, but writing your own is a metaprogramming task that's beyond the tutorial's scope. A HOWTO guide would be appropriate, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15474 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16527] (very) long list of elif causes segfault
Changes by Benjamin Peterson benja...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2454] sha and md5 fixer
Benjamin Peterson added the comment: I'm not sure how much this is needed considering hashlib has been around, since 2.5. I hope people aren't having to port from before then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2454 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16531] Allow IPNetwork to take a tuple
Antoine Pitrou added the comment: Sounds reasonable, especially as it also allows networks and interfaces with prefixes other than /32 or /128 to be easily constructed based on integer address values. Should we also allow integers as the second argument, with the same prefix length meaning as the corresponding string? IMO, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16534] test_float failure on IA64 (HPUX)
Mark Dickinson added the comment: What's sys.float_repr_style on that machine? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16534] test_float failure on IA64 (HPUX)
Mark Dickinson added the comment: From the buildbot configure output: checking whether C doubles are little-endian IEEE 754 binary64... no checking whether C doubles are big-endian IEEE 754 binary64... yes checking whether C doubles are ARM mixed-endian IEEE 754 binary64... no checking whether we can use gcc inline assembler to get and set x87 control word... no checking for x87-style double rounding... yes Judging by that, it'll probably be using the legacy float repr, since the configure script didn't find a way to set the FPU control word. In that case this is just an overeager test: we expect 50 digits of accuracy but the system-supplied formatting only gives us 35. But it would also be good to try to find a way to enable the short float repr on that box. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com