[issue16534] test_float failure on IA64 (HPUX)

2012-11-22 Thread Mark Dickinson
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

[issue16534] test_float failure on IA64 (HPUX)

2012-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: What's sys.float_repr_style on that machine? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16531] Allow IPNetwork to take a tuple

2012-11-22 Thread Antoine Pitrou
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 > leng

[issue2454] sha and md5 fixer

2012-11-22 Thread Benjamin Peterson
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

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15474] Differentiate decorator and decorator factory in docs

2012-11-22 Thread Nick Coghlan
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

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Ezio Melotti
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 includ

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
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 ___ ___

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
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 ___ ___

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
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 ___ ___

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
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 ___ ___

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
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 ___ ___

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Changes by Jonathan Hosmer : -- keywords: +patch Added file: http://bugs.python.org/file28076/Python-2.6.8-setup.py.patch ___ Python tracker ___ _

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
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 wit

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2012-11-22 Thread Roundup Robot
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

[issue16536] test_cmd_line: failure on Ubuntu Shared

2012-11-22 Thread Ezio Melotti
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 par

[issue16536] test_cmd_line: failure on Ubuntu Shared

2012-11-22 Thread Stefan Krah
New submission from Stefan Krah: == FAIL: test_unknown_options (test.test_cmd_line.CmdLineTest) -- Traceback (most recent call last): File "/srv/buildbot/buil

[issue3244] multipart/form-data encoding

2012-11-22 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15474] Differentiate decorator and decorator factory in docs

2012-11-22 Thread Ezio Melotti
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 t

[issue16531] Allow IPNetwork to take a tuple

2012-11-22 Thread Nick Coghlan
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

[issue16535] json encoder unable to handle decimal

2012-11-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue15474] Differentiate decorator and decorator factory in docs

2012-11-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16535] json encoder unable to handle decimal

2012-11-22 Thread Éric Araujo
É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 __

[issue16535] json encoder unable to handle decimal

2012-11-22 Thread Éric Araujo
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 "", line 1, in File "/usr

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2012-11-22 Thread Stefan Krah
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 ___

[issue16534] test_float failure on IA64 (HPUX)

2012-11-22 Thread Stefan Krah
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

[issue16533] HPUX: Unable to fork() in thread

2012-11-22 Thread Stefan Krah
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

[issue16532] AMD64 Windows 7 build failures

2012-11-22 Thread Antoine Pitrou
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: AMD6

[issue16306] Multiple error line for unknown command line parameter

2012-11-22 Thread Antoine Pitrou
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 _

[issue16531] Allow IPNetwork to take a tuple

2012-11-22 Thread Antoine Pitrou
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((

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2012-11-22 Thread Roundup Robot
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

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2012-11-22 Thread Roundup Robot
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

[issue16438] Numeric operator predecence confusing

2012-11-22 Thread Kiet Tran
Kiet Tran added the comment: Good idea. -- keywords: +patch Added file: http://bugs.python.org/file28075/16438.patch ___ Python tracker ___ __

[issue4473] POP3 missing support for starttls

2012-11-22 Thread Antoine Pitrou
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. -- _

[issue3580] failures in test_os

2012-11-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2012-11-22 Thread anatoly techtonik
anatoly techtonik added the comment: I'd say this one worthy to be backported. -- nosy: +techtonik status: pending -> open ___ Python tracker ___ __

[issue14525] ia64-hp-hpux11.31 won't compile 2.7 without -D_TERMIOS_INCLUDED

2012-11-22 Thread Stefan Krah
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: enh

[issue16499] CLI option for isolated mode

2012-11-22 Thread Antoine Pitrou
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 exec

[issue16499] CLI option for isolated mode

2012-11-22 Thread Christian Heimes
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.

[issue15990] solidify argument/parameter terminology

2012-11-22 Thread Chris Jerdonek
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 ___ __

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: It's not. Thanks for the clarification and info. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Christian Heimes
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

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread Georg Brandl
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

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread Chris Jerdonek
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 main

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2012-11-22 Thread Daniel Urban
Changes by Daniel Urban : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread Georg Brandl
Georg Brandl added the comment: That's correct. "Documenting Python" is in the devguide now; feel free to remark this somewhere. -- ___ Python tracker ___ _

[issue16464] urllib.request: opener not resetting content-length

2012-11-22 Thread Alexey Kachayev
Alexey Kachayev added the comment: Fixed patch is attached. Documentation is updated. -- Added file: http://bugs.python.org/file28074/issue16464_fixed.diff ___ Python tracker ___

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Marc-Andre Lemburg
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

[issue16530] documentation of os.wait3

2012-11-22 Thread George Yoshida
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@pyth

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Serhiy Storchaka
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 ___

[issue15990] solidify argument/parameter terminology

2012-11-22 Thread Ezio Melotti
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/fi

[issue16464] urllib.request: opener not resetting content-length

2012-11-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Perhaps it's a bit new behavior and should be applied to 3.4 only. -- ___ Python tracker ___ ___ Pyt

[issue16464] urllib.request: opener not resetting content-length

2012-11-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm agree with solution, see my comments in review for the patch. -- nosy: +asvetlov ___ Python tracker ___

[issue12614] Allow to explicitly set the method of urllib.request.Request

2012-11-22 Thread Senthil Kumaran
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:

[issue16490] "inspect.getargspec()" and "inspect.getcallargs()" don't work for builtins

2012-11-22 Thread David Villa Alises
Changes by David Villa Alises : -- nosy: +David.Villa.Alises ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread R. David Murray
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

[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-22 Thread Roundup Robot
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

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Mark Dickinson
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"

[issue16382] Better warnings exception for bad category

2012-11-22 Thread Phil Elson
Changes by Phil Elson : Added file: http://bugs.python.org/file28072/pelson_warnings_fix_3.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Marc-Andre Lemburg
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 th

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Alexis Daboville
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 i

[issue16529] Compiler error when trying to compile ceval.c on OpenSUSE 11.3

2012-11-22 Thread Marc-Andre Lemburg
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

[issue16527] (very) long list of elif causes segfault

2012-11-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 22.11.2012 00:41, Alexis Daboville wrote: > > A possible cause (if I understood > well) is > that there are no elif nodes in the AST, elif are just plain ifs which are > stored recursivel