[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-01 Thread Charles-François Natali
Charles-François Natali added the comment: There's probably a special mechanism due to vserver which makes the kernel kill the process instead of failing with EPERM, but it's really surprising. What happens if you try the following: $ python -c "from resource import *; _, hard = getrlimit(RLIMIT

[issue14174] argparse.REMAINDER fails to parse remainder correctly

2014-07-01 Thread paul j3
paul j3 added the comment: Here's a possible solution to the problem (assuming there really is one): - redefine REMAINDER so it matches a '((?:A[AO]*)?)' pattern (where O is a string that looks like an optional flag, A an argument string). I've added the condition that the first match (if any

[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-01 Thread Mark Dickinson
Mark Dickinson added the comment: and the 'radians' bit is obviously nonsense. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-01 Thread Mark Dickinson
Mark Dickinson added the comment: How about simply 'inverse hyperbolic cosine', etc. I think that's more likely to be immediately obvious to readers. -- ___ Python tracker ___

[issue14097] Improve the "introduction" page of the tutorial

2014-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for backporting this! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-07-01 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch and review. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ _

[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a91f0d4a2381 by Berker Peksag in branch 'default': Issue #5800: headers parameter of wsgiref.headers.Headers is now optional. http://hg.python.org/cpython/rev/a91f0d4a2381 -- nosy: +python-dev ___ Python

[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: Do you want to propose a patch? https://docs.python.org/3/library/math.html#hyperbolic-functions should be updated as well. -- assignee: -> docs@python components: +Documentation keywords: +easy nosy: +docs@python, ezio.melotti, mark.dickinson, rhettinge

[issue21902] Docstring of math.acosh, asinh, and atanh

2014-07-01 Thread Kevin Davies
New submission from Kevin Davies: The docstring of acosh should more accurately be "Return the area hyperbolic cosine of x." instead of "Return the hyperbolic arc cosine (measured in radians) of x." asinh and atanh should be changed similarly. The result of these functions is not an angle but

[issue10224] Build 3.x documentation using python3.x

2014-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: Éric, I think you should open a separate issue for this. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue18258] Fix test discovery for test_codecmaps*.py

2014-07-01 Thread Zachary Ware
Zachary Ware added the comment: Not forgotten, just hadn't gotten to on the list yet. -- assignee: -> zach.ware resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.5 -Python 3.3 ___ Python tracker

[issue21804] Implement thr UTF8 command (RFC 6856) in poplib.

2014-07-01 Thread Milan Oberkirch
Milan Oberkirch added the comment: I got the Exception policy of the POP3 class wrong (ignore my review comment on that) and needed to add 'UTF8' to the list of optional commands. -- Added file: http://bugs.python.org/file35823/poputf8-v2.patch ___ P

[issue18258] Fix test discovery for test_codecmaps*.py

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27feb652d3ad by Zachary Ware in branch '3.4': Issue #18258: Fix test discovery for test_codecmaps_*. http://hg.python.org/cpython/rev/27feb652d3ad New changeset b08921c7d1ec by Zachary Ware in branch 'default': Issue #18258: Fix test discovery for t

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: The test changes the maximum number of open files. What is the limit in your shell? You can try to modify the test to add print(soft, hard) after getrlimit(). On Fedora 20: $ python -c 'import resource; print(resource.getrlimit(resource.RLIMIT_NOFILE))' (1024

[issue21897] frame.f_locals causes segfault on Python >=3.4.1

2014-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Following patch seems to fix it, but I have to cook a proper test: diff --git a/Objects/frameobject.c b/Objects/frameobject.c --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -786,7 +786,7 @@ map_to_dict(PyObject *map, Py_ssize_t nm PyObject *

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-01 Thread R. David Murray
Changes by R. David Murray : -- title: test_selectors.PollSelectorTestCase.test_above_fd_setsize killed by shell -> test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell ___ Python tracker

[issue18258] Fix test discovery for test_codecmaps*.py

2014-07-01 Thread Mark Lawrence
Mark Lawrence added the comment: @Zach just a reminder that you've committed #18492 in case you'd forgotten this. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize killed by shell

2014-07-01 Thread R. David Murray
New submission from R. David Murray: On one particular linux vserver virtual machine (which is unfortunately my development platform for python), test.test_selectors.PollSelectorTestCase.test_above_fd_setsize fails with the following message: zsh: killed and at that point the test suite s

[issue16968] Fix test discovery for test_concurrent_futures.py

2014-07-01 Thread Mark Lawrence
Mark Lawrence added the comment: I followed the link in msg194910 to python-dev but didn't find a single response so where does that leave us? I ask because I'd like to help out with the outstanding test issues, but there are so many of them and they seem so interlinked that I don't know wher

[issue21899] Futures are not marked as completed

2014-07-01 Thread Ned Deily
Changes by Ned Deily : -- nosy: +bquinlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue18604] Consolidate gui available checks in test.support

2014-07-01 Thread Zachary Ware
Changes by Zachary Ware : -- assignee: zach.ware -> ned.deily resolution: fixed -> ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14097] Improve the "introduction" page of the tutorial

2014-07-01 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the reviews, Ezio and Andy. Committed with most of your points addressed, though I did leave out the link to `long` since I could not come up with a good wording for adding it, and `long` is easily findable from `int`. Also, the link for 'complex nu

[issue14097] Improve the "introduction" page of the tutorial

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 438da6ae38fa by Zachary Ware in branch '2.7': Issue #14097: Backport 796d1371605d and subsequent changes. http://hg.python.org/cpython/rev/438da6ae38fa -- ___ Python tracker

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2014-07-01 Thread Mark Lawrence
Mark Lawrence added the comment: Hardly a good start :-( From the IDLE shell. Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> from pkgutil import walk_packages >>> packages = lis

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread R. David Murray
R. David Murray added the comment: The entries are there for 2.7. And indeed for the 3.x versions to which they applied. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2014-07-01 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +sahutd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2014-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are certainly some problems with subprocess on Windows. Note .../python34> pip pyflakes installs in a second or two. ...> pyflakes -h # Windows Command Propmpt WCP >>> import subprocess as s; s.check_output("pyflakes -h") console interpreter CI or Idle, a

[issue21872] LZMA library sometimes fails to decompress a file

2014-07-01 Thread Ville Nummela
Ville Nummela added the comment: Uploading a few more 'bad' lzma files for testing. -- Added file: http://bugs.python.org/file35822/more_bad_lzma_files.zip ___ Python tracker ___

[issue14097] Improve the "introduction" page of the tutorial

2014-07-01 Thread Andy Maier
Andy Maier added the comment: Zach, I reviewed your 2.7 backport, including a comparison with the latest 3.x patch. Comments on the 2.7 backport: 1. In "3.1.1 Numbers", on "If both operands are ints,": The "ints" is a link labeled "int" followed by a normal font "s". I think it would be bette

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Please be constructive. There is no way to implement generic pickling for hash objects that would work across all implementations. The underlying code implementing each function is free to store its internal state however it wants and does not provide an

[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-01 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file35821/3rdpartychecker-v2.diff ___ Python tracker ___ ___ Python-bugs-li

[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-01 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Removed file: http://bugs.python.org/file35819/3rdpartychecker-v2.diff ___ Python tracker ___ ___ Python-bugs-

[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Andy Maier
Andy Maier added the comment: Your patch right now generates the line: New in version 2.6: bytes() has been added as an alias for str() at the end of the paragraph for str(). To me, that is sufficient for the description of str(). If anything, we could add a separate paragraph for bytes(),

[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I want to broaden this to 'external' programs. Will discuss. Both versions appear to be trying to access non-existent configuration parameters. Warning: configHandler.py - IdleConf.GetOption - problem retrieving configuration option 'enabled' from section 'pyf

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-07-01 Thread akira
akira added the comment: > ``%s`` format code behaviour was undefined and incidental. strftime('%s') is not portable but it *is* supported on some platforms i.e., it is *not* undefined and it is *not* incidental on these platforms. datetime.strftime *delegates* to the platform strftime(3) and so

[issue21857] assert that functions clearing the current exception are not called with an exception set

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: I don't think anymore that it's a good idea. Almost all C functions can replace the current Python exception. There is no reason to add assertions only in a few functions. -- resolution: -> not a bug status: open -> closed ___

[issue21897] frame.f_locals causes segfault on Python >=3.4.1

2014-07-01 Thread Stefan Krah
Stefan Krah added the comment: 6ab3193e890e exposes the issue. -- nosy: +pitrou, skrah ___ Python tracker ___ ___ Python-bugs-list mai

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Klaus Wolf
Klaus Wolf added the comment: You want to say: It doesn't work, but it is somehow intentional because you never used id, correct? -- ___ Python tracker ___ _

[issue21090] File read silently stops after EIO I/O error

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch for FileIO.readall() which should fix the issue. Currently, readall() returns read bytes at the first read() error if a least one call to read() succeed. -- keywords: +patch Added file: http://bugs.python.org/file35820/fileio_readall_ei

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Do you honestly have a situation where you need to share a computationally significant amount of hashing state only to want to finish the computation N different times with alternate computationally significant ending data that multiprocessing would actually he

[issue21880] IDLE: Ability to run 3rd party code checkers

2014-07-01 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file35819/3rdpartychecker-v2.diff ___ Python tracker ___ ___ Python-bugs-li

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread Andy Maier
Changes by Andy Maier : -- keywords: +patch Added file: http://bugs.python.org/file35818/issue21900.diff ___ Python tracker ___ ___ Py

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread Andy Maier
New submission from Andy Maier: In Python 2.7 and up to Python 3.3, the documentation build process downloads tools such as Sphinx etc. into the Doc/tools subtree. The .hgignore file misses entries to ignore those. The additional lines for .hgignore would be: ^Doc/tools/docutils/ ^Doc/

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 691ca1694fe7 by Victor Stinner in branch '3.4': Issue #8677: make the zlib module "ssize_t clean" for parsing parameters http://hg.python.org/cpython/rev/691ca1694fe7 New changeset 45dcdd8f3211 by Victor Stinner in branch 'default': (Merge 3.4) Issu

[issue21780] make unicodedata module 64-bit safe

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b82ff2d7f5ef by Victor Stinner in branch '3.4': Closes #21780: make the unicodedata module "ssize_t clean" for parsing parameters http://hg.python.org/cpython/rev/b82ff2d7f5ef New changeset afd64e660628 by Victor Stinner in branch 'default': (Merge

[issue21781] make _ssl module 64-bit clean

2014-07-01 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21781] make _ssl module 64-bit clean

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 26afcb8a87b9 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21781: Make the ssl module "ssize_t clean" for parsing http://hg.python.org/cpython/rev/26afcb8a87b9 -- ___ Python tracker

[issue21781] make _ssl module 64-bit clean

2014-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 36e884e65e45 by Victor Stinner in branch '3.4': Issue #21781: Make the ssl module "ssize_t clean" for parsing parameters. http://hg.python.org/cpython/rev/36e884e65e45 -- nosy: +python-dev ___ Python trac

[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, pitrou stage: -> patch review versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Klaus Wolf
Klaus Wolf added the comment: Please reopen this bug. To answer the question: "Why on Earth would you want to serialize a hashlib object?" : multiprocessing.connection.ForkingPickler wants. I.e. if you want to parallelize your hash calculations, this will obstruct your efforts. -- nos

[issue9566] Compilation warnings under x64 Windows

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: > How do I check for these warnings as I don't have a 64 bit machine? Check buildbots. Example: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/4744/steps/compile/logs/warnings%20%28108%29 There are still open issues related to this

[issue21899] Futures are not marked as completed

2014-07-01 Thread Sebastian Kreft
New submission from Sebastian Kreft: With Python 3.4.1 compiled from source, I'm having an issue in which every now and then some Futures are not marked as completed even though the underlying workload is done. My workload is launching two subprocess in parallel, and whenever one is ready, la

[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website

2014-07-01 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-07-01 Thread R. David Murray
R. David Murray added the comment: Since we don't need to avoid new language features, using the ternary would be better than using the or. This is exactly the sort of situation the ternary was introduced for: making sure the input really is None before applying the default. Otherwise the pa

[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Andy Maier
Changes by Andy Maier : -- keywords: +patch Added file: http://bugs.python.org/file35817/issue21898.diff ___ Python tracker ___ ___ Py

[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Andy Maier
New submission from Andy Maier: The .hgignore file misses some entries for directories and files created by Eclipse with pydev. The additional lines for .hgignore would be: ^.project ^.pydevproject ^.settings/ This change applies to 2.7 and 3.x. -- messages: 222032 nosy: a

[issue9566] Compilation warnings under x64 Windows

2014-07-01 Thread Mark Lawrence
Mark Lawrence added the comment: Are there any more warnings that need silencing or can this be closed as fixed? How do I check for these warnings as I don't have a 64 bit machine? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python t

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-07-01 Thread Mümin Öztürk
Mümin Öztürk added the comment: more tests and some documentation added. -- Added file: http://bugs.python.org/file35816/strftime3.patch ___ Python tracker ___ __

[issue21897] frame.f_locals causes segfault on Python >=3.4.1

2014-07-01 Thread Masami HIRATA
New submission from Masami HIRATA: It seems that frame.f_locals causes segfault on Python >=3.4.1 $ uname -a Linux ashrose 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ ls test1.py $ cat test1.py import unittest class TestCallable(unittest.TestCas

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: I think that the problem here is that the documentation sets an expectation that's not met, at least from my POV. Running the reproducer, I was expecting the main thread to unpause and execute the signal handler (citing: "Python signal handlers are a

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2014-07-01 Thread Rodrigue Alcazar
Rodrigue Alcazar added the comment: @Mark, I had a look at the time I commented on the ticket but didn't get a chance to progress much in the end. -- ___ Python tracker ___ _

[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Ezio Melotti
Ezio Melotti added the comment: I mean here: https://docs.python.org/2/library/functions.html#str -- ___ Python tracker ___ ___ Python

[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Andy Maier
Andy Maier added the comment: Ezio, what do you mean with "string signature"? For me, the patch looks fine as it is. -- nosy: +andymaier ___ Python tracker ___ _

[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website

2014-07-01 Thread Tymoteusz Paul
New submission from Tymoteusz Paul: I've recently ran into a problem with urellib.request.urlopen that it fails against one website (that I've found so far). The website itself is working fine, I can access its content with other libraries like requests, curl and outside of python with telnet,

[issue21599] Argument transport in attach and detach method in Server class in base_events file is not used

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: I proposed a deeper change to make most attributes and methods private: https://code.google.com/p/tulip/issues/detail?id=180 -- ___ Python tracker _

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor
STINNER Victor added the comment: First of all, signals and threads usually don't play together. Most signal functions are *not* thread safe. The behaviour of signal functions are not well defined for threads. Example with pause: "pause() causes the calling process (or thread) to sleep

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21895] signal.pause() doesn't wake up on SIGCHLD in non-main thread

2014-07-01 Thread Bohuslav "Slavek" Kabrda
New submission from Bohuslav "Slavek" Kabrda: Reproducer attached. To describe the problem in words, one needs to do this to reproduce this issue: - Create a signal handler and register it using signal.signal to SIGCHLD. - Create a thread that invokes a subprocess, e.g. "sleep 1" and then contin

[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-07-01 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue5800] make wsgiref.headers.Headers accept empty constructor

2014-07-01 Thread Berker Peksag
Berker Peksag added the comment: Patch updated. If there's no objections, I'll commit this patch in the next couple of days. -- assignee: pje -> berker.peksag stage: patch review -> commit review Added file: http://bugs.python.org/file35814/issue5800_v3.diff ___