[issue8040] documentation pages should link to other versions of the same page
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17175] update PEP 430
New submission from Tshepang Lekhonkhobe: The issue referred to has since been resolved. -- assignee: docs@python components: Documentation files: update.diff keywords: patch messages: 181778 nosy: docs@python, tshepang priority: normal severity: normal status: open title: update PEP 430 Added file: http://bugs.python.org/file29025/update.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13773] Support sqlite3 uri filenames
Serhiy Storchaka added the comment: You can use p format in PyArg_ParseTuple* for boolean parameters. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13773 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17172] Add turtledemo to IDLE menu
Ramchandra Apte added the comment: Will attach patch. Coincidentally I'm am a younger programmer. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17172] Add turtledemo to IDLE menu
Ramchandra Apte added the comment: Should be ... I'm a younger... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6975] symlinks incorrectly resolved on POSIX platforms
Roundup Robot added the comment: New changeset 6ec6dbf787f4 by Serhiy Storchaka in branch '2.7': Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. http://hg.python.org/cpython/rev/6ec6dbf787f4 New changeset c5f4fa02fc86 by Serhiy Storchaka in branch '3.2': Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. http://hg.python.org/cpython/rev/c5f4fa02fc86 New changeset bfe9526606e2 by Serhiy Storchaka in branch '3.3': Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. http://hg.python.org/cpython/rev/bfe9526606e2 New changeset f42cabe6ccb5 by Serhiy Storchaka in branch 'default': Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. http://hg.python.org/cpython/rev/f42cabe6ccb5 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16967] Keyword only argument default values are evaluated before other defaults
Nick Coghlan added the comment: Agreed on it being a bug that we do it the wrong way around, but Yikes! at the idea of code where it makes a significant difference. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13773] Support sqlite3 uri filenames
Antoine Pitrou added the comment: You can use p format in PyArg_ParseTuple* for boolean parameters. That's what I used, indeed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13773 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17141] random.vonmisesvariate() hangs for large kappa
Mark Dickinson added the comment: Looks good to me. I can confirm that the new formulas are equivalent to the old, at least for positive kappa. (They're not the same for negative kappa, but that shouldn't matter in this context.) Serhiy: do you know how the original formulas arose? I don't have access to the circular data book, or to the original Best Fisher paper, but that use of b in the original code is just plain peculiar; I wonder why on earth anyone would want to go about computing `a / (2 kappa)` that way. I'd suggest leaving off the `u3 0.5` to `u3 = 0.5` change for this particular issue; I understand the motivation for the change, but it's unrelated to this issue, and seems like unnecessary code churn to me. A test would be good! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Antoine Pitrou added the comment: Any other comments on this? If not, I would like to commit soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Michael Foord added the comment: Please don't commit I think we still need a discussion as to whether subtests or paramaterized tests are a better approach. I certainly don't think we need both and there are a lot of people asking for parameterized tests. I also haven't had a chance to look at how this affects existing tools that extend unittest by implementing the TestResult api (how they will cope with test suites using subtests). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Antoine Pitrou added the comment: Please don't commit I think we still need a discussion as to whether subtests or paramaterized tests are a better approach. I certainly don't think we need both and there are a lot of people asking for parameterized tests. I think they don't cater to the same crowd. I see parameterized tests as primarily used by people who like adding formal complexity to their tests in the name of architectural elegance (decorators, non-intuitive constructs and other additional boilerplate). Subtests are meant to not get in the way. IMHO, this makes them more suitable for stdlib inclusion, while the testing-in-python people can still rely on their additional frameworks. Also, subtests would be immediately and trivially usable in our own test suite. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Nick Coghlan added the comment: You can use subtests to build parameterized tests, you can't use parameterized tests to build subtests. The standard library can also be converted to using subtests *far* more readily than it could be converted to parameterized tests. There's also the fact that creating a decent parameterized tests without subtests support requires PEP 422. If you're telling us we can only have one, then I choose subtests, and third party test frameworks can layer parameterized tests on top. However, I think you're making a mistaking by seeing them as *competing* APIs, rather than seeing subtests as a superior implementation strategy for the possible later introduction of a higher level parameterized tests API. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Michael Foord added the comment: Subtests break the current unittest api of suite.countTests() and I fear they will also break tools that use the existing test result api to generate junit xml for continuous integration. I would like to add a parameterized test mechanism to unittest - but preferably in a way that doesn't break all the existing tools. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Michael Foord added the comment: However, I think you're making a mistaking by seeing them as *competing* APIs, rather than seeing subtests as a superior implementation strategy for the possible later introduction of a higher level parameterized tests API. Parameterized tests are done at test collection time and sub-tests at run time. You can't layer parameterization on top of subtests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Antoine Pitrou added the comment: Subtests break the current unittest api of suite.countTests() and I fear they will also break tools that use the existing test result api to generate junit xml for continuous integration. It depends how you define countTests(). sub-tests, as the name implies, are not independent test cases. As for breaking tools, I don't really understand what's special about junit xml. Why would a subtest failure be different from a test failure in that regard? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Mark Dickinson added the comment: I suspect that this is simply an error in the original code: the docstring says that mu should be in the range [0, 2*pi), so reducing mu modulo 2*pi makes little sense. I guess the lines at the end of the method were intended to be written: if u3 = 0.5: theta = (mu + _acos(f)) % TWOPI else: theta = (mu - _acos(f)) % TWOPI instead of: if u3 = 0.5: theta = (mu % TWOPI) + _acos(f) else: theta = (mu % TWOPI) - _acos(f) That would then give consistent results, at least. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Michael Foord added the comment: A comment from lifeless on IRC (Robert Collins): [12:15:46] lifelessplease consider automated analysis. How can someone tell which test actually failed ? [12:15:55] lifelessHow can they run just that test in future ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17044] Implement PEP 422: Simple class initialisation hook
Nick Coghlan added the comment: I've belatedly applied the PEP update Daniel sent me, and added a reference to this issue from the PEP. The latest version of the patch looks very good to me, just one very minor nit with the phrasing in the docs. Specifically, it is better to replace like with as in the phrase like in the following example to get as in the following example. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Mark Dickinson added the comment: Patch. -- keywords: +patch Added file: http://bugs.python.org/file29026/issue17149.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Changes by Mark Dickinson dicki...@gmail.com: -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)
Roundup Robot added the comment: New changeset 010b455de0e0 by Serhiy Storchaka in branch '2.7': Issue #1470548: XMLGenerator now works with UTF-16 and UTF-32 encodings. http://hg.python.org/cpython/rev/010b455de0e0 New changeset 66f92f76b2ce by Serhiy Storchaka in branch '3.2': Issue #1470548: XMLGenerator now works with binary output streams. http://hg.python.org/cpython/rev/66f92f76b2ce New changeset 03b878d636cf by Serhiy Storchaka in branch '3.3': Issue #1470548: XMLGenerator now works with binary output streams. http://hg.python.org/cpython/rev/03b878d636cf New changeset 12d75ca12ae7 by Serhiy Storchaka in branch 'default': Issue #1470548: XMLGenerator now works with binary output streams. http://hg.python.org/cpython/rev/12d75ca12ae7 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10355] SpooledTemporaryFile's name property is broken
Roundup Robot added the comment: New changeset 6e9210a092cf by Serhiy Storchaka in branch '3.2': Fix a test for SpooledTemporaryFile (added in issue #10355). http://hg.python.org/cpython/rev/6e9210a092cf New changeset b5074ed74ec3 by Serhiy Storchaka in branch '3.3': Fix a test for SpooledTemporaryFile (added in issue #10355). http://hg.python.org/cpython/rev/b5074ed74ec3 New changeset 029011429f80 by Serhiy Storchaka in branch 'default': Fix a test for SpooledTemporaryFile (added in issue #10355). http://hg.python.org/cpython/rev/029011429f80 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Mark Dickinson added the comment: The message for changeset r6370f1593c72 (which introduced the incorrect code) confirms the intentions. I'll apply this patch shortly. iwasawa:cpython mdickinson$ hg log -v -r6370f1593c72 changeset: 7881:6370f1593c72 branch: legacy-trunk user:Guido van Rossum gu...@python.org date:Mon Apr 06 14:12:13 1998 + files: Lib/random.py description: Correction to vonmisesvariate() by Magnus Kessler: it should take and return something between 0 and 2*pi. Also added a reference to the literature. -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Michael Foord added the comment: My concern is that this re-uses the existing TestResult.add* methods in a different way (including calling addError multiple times). This can break existing tools. Fix suggested by lifeless on IRC. A sub test failure / success / exception calls the following TestResult method: addSubTest(test, sub_id, err_or_None) If we're using a TestResult object that doesn't have these methods (an old result objects) then the test can *stop* (i.e. revert to the old behaviour before sub tests existed). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13773] Support sqlite3 uri filenames
Serhiy Storchaka added the comment: Oh, I were blind. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13773 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Mark Dickinson added the comment: Updated patch (thanks Serhiy for reviewing). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Changes by Mark Dickinson dicki...@gmail.com: Added file: http://bugs.python.org/file29027/issue17149_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Serhiy Storchaka added the comment: LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default
Antoine Pitrou added the comment: I'm getting a test failure in test_ftplib: == ERROR: test_data_connection (test.test_ftplib.TestTLS_FTPClass) -- Traceback (most recent call last): File /home/antoine/cpython/default/Lib/test/test_ftplib.py, line 834, in test_data_connection with self.client.transfercmd('list') as sock: File /home/antoine/cpython/default/Lib/ftplib.py, line 386, in transfercmd return self.ntransfercmd(cmd, rest)[0] File /home/antoine/cpython/default/Lib/ftplib.py, line 756, in ntransfercmd self.context.load_cert_chain(self.certfile, self.keyfile) TypeError: certfile should be a valid filesystem path Also, since we now have SNI server support, perhaps it's easier to test the change :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17159] Remove explicit type check from inspect.Signature.from_function()
Stefan Behnel added the comment: Any more comments? Any objections to applying the last patch? Anyone ready to do it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17159] Remove explicit type check from inspect.Signature.from_function()
Antoine Pitrou added the comment: I certainly think the patch is ok on the principle. I'll let someone else pronounce on the details :-) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Roundup Robot added the comment: New changeset 6a3d18cede49 by Mark Dickinson in branch '2.7': Issue #17149: Fix random.vonmisesvariate to always return results in [0, 2*math.pi]. http://hg.python.org/cpython/rev/6a3d18cede49 New changeset 41e97652a9f9 by Mark Dickinson in branch '3.2': Issue #17149: Fix random.vonmisesvariate to always return results in [0, 2*math.pi]. http://hg.python.org/cpython/rev/41e97652a9f9 New changeset e9b4f2927412 by Mark Dickinson in branch '3.3': Issue #17149: merge fix from 3.2. http://hg.python.org/cpython/rev/e9b4f2927412 New changeset 2704e11da558 by Mark Dickinson in branch 'default': Issue #17149: merge fix from 3.3. http://hg.python.org/cpython/rev/2704e11da558 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17149] random.vonmisesvariate() results range is inconsistent for small and not small kappa
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16967] Keyword only argument default values are evaluated before other defaults
Changes by Benjamin Peterson benja...@python.org: -- assignee: - benjamin.peterson nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16967] Keyword only argument default values are evaluated before other defaults
Roundup Robot added the comment: New changeset d296cf1600a8 by Benjamin Peterson in branch 'default': evaluate positional defaults before keyword-only defaults (closes #16967) http://hg.python.org/cpython/rev/d296cf1600a8 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16967] Keyword only argument default values are evaluated before other defaults
Roundup Robot added the comment: New changeset 6917402c6191 by Benjamin Peterson in branch 'default': evaluate lambda keyword-only defaults after positional defaults (#16967 again) http://hg.python.org/cpython/rev/6917402c6191 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17141] random.vonmisesvariate() hangs for large kappa
Serhiy Storchaka added the comment: Serhiy: do you know how the original formulas arose? No. I have not found any articles or books in the open access. A test would be good! I was waiting for issue13355 and issue17149. Here is an updated patch with tests. -- Added file: http://bugs.python.org/file29028/random_vonmisesvariate_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17141 ___diff -r 2704e11da558 Lib/random.py --- a/Lib/random.py Sun Feb 10 14:17:20 2013 + +++ b/Lib/random.py Sun Feb 10 16:44:50 2013 +0200 @@ -432,22 +432,20 @@ if kappa = 1e-6: return TWOPI * random() -a = 1.0 + _sqrt(1.0 + 4.0 * kappa * kappa) -b = (a - _sqrt(2.0 * a))/(2.0 * kappa) -r = (1.0 + b * b)/(2.0 * b) +s = 0.5 / kappa +r = s + _sqrt(1.0 + s * s) while 1: u1 = random() +z = _cos(_pi * u1) -z = _cos(_pi * u1) -f = (1.0 + r * z)/(r + z) -c = kappa * (r - f) - +d = z / (r + z) u2 = random() - -if u2 c * (2.0 - c) or u2 = c * _exp(1.0 - c): +if u2 1.0 - d * d or u2 = (1.0 - d) * _exp(d): break +q = 1.0 / r +f = (q + z) / (1.0 + q * z) u3 = random() if u3 0.5: theta = (mu + _acos(f)) % TWOPI diff -r 2704e11da558 Lib/test/test_random.py --- a/Lib/test/test_random.py Sun Feb 10 14:17:20 2013 + +++ b/Lib/test/test_random.py Sun Feb 10 16:44:50 2013 +0200 @@ -5,7 +5,7 @@ import time import pickle import warnings -from math import log, exp, pi, fsum, sin +from math import log, exp, pi, fsum, sin, sqrt from test import support class TestBasicOps(unittest.TestCase): @@ -473,6 +473,7 @@ g.random = x[:].pop; g.paretovariate(1.0) g.random = x[:].pop; g.expovariate(1.0) g.random = x[:].pop; g.weibullvariate(1.0, 1.0) +g.random = x[:].pop; g.vonmisesvariate(1.0, 1.0) g.random = x[:].pop; g.normalvariate(0.0, 1.0) g.random = x[:].pop; g.gauss(0.0, 1.0) g.random = x[:].pop; g.lognormvariate(0.0, 1.0) @@ -493,6 +494,8 @@ (g.uniform, (1.0,10.0), (10.0+1.0)/2, (10.0-1.0)**2/12), (g.triangular, (0.0, 1.0, 1.0/3.0), 4.0/9.0, 7.0/9.0/18.0), (g.expovariate, (1.5,), 1/1.5, 1/1.5**2), +(g.vonmisesvariate, (1.23, 0), pi, pi**2/3), +(g.vonmisesvariate, (1.23, 100), 1.23, 1/sqrt(2)/100), (g.paretovariate, (5.0,), 5.0/(5.0-1), 5.0/((5.0-1)**2*(5.0-2))), (g.weibullvariate, (1.0, 3.0), gamma(1+1/3.0), @@ -509,8 +512,30 @@ s1 += e s2 += (e - mu) ** 2 N = len(y) -self.assertAlmostEqual(s1/N, mu, places=2) -self.assertAlmostEqual(s2/(N-1), sigmasqrd, places=2) +self.assertAlmostEqual(s1/N, mu, places=2, + msg='%s%r' % (variate.__name__, args)) +self.assertAlmostEqual(s2/(N-1), sigmasqrd, places=2, + msg='%s%r' % (variate.__name__, args)) + +def test_constant(self): +g = random.Random() +N = 100 +for variate, args, expected in [ +(g.uniform, (10.0, 10.0), 10.0), +(g.triangular, (10.0, 10.0), 10.0), +#(g.triangular, (10.0, 10.0, 10.0), 10.0), +(g.expovariate, (float('inf'),), 0.0), +(g.vonmisesvariate, (3.0, float('inf')), 3.0), +(g.gauss, (10.0, 0.0), 10.0), +(g.lognormvariate, (0.0, 0.0), 1.0), +(g.lognormvariate, (-float('inf'), 0.0), 0.0), +(g.normalvariate, (10.0, 0.0), 10.0), +(g.paretovariate, (float('inf'),), 1.0), +(g.weibullvariate, (10.0, float('inf')), 10.0), +(g.weibullvariate, (0.0, 10.0), 0.0), +]: +for i in range(N): +self.assertEqual(variate(*args), expected) def test_von_mises_range(self): # Issue 17149: von mises variates were not consistently in the @@ -526,6 +551,12 @@ msg=(vonmisesvariate({}, {}) produced a result {} out of range [0, 2*pi]).format(mu, kappa, sample)) +def test_von_mises_large_kappa(self): +# Issue #17141: vonmisesvariate() was hang for large kappas +random.vonmisesvariate(0, 1e15) +random.vonmisesvariate(0, 1e100) + + class TestModule(unittest.TestCase): def testMagicConstants(self): self.assertAlmostEqual(random.NV_MAGICCONST, 1.71552776992141) ___ Python-bugs-list mailing list Unsubscribe:
[issue16997] subtests
Michael Foord added the comment: And on the superior implementation strategy, both nose and py.test used to have runtime test generation and both have deprecated them and moved to collection time parameterization. (But I guess we know better.) You don't need PEP 422 for parameterization. The TestLoader creates multiple test cases for the parameter sets. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12983] byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError
Benjamin Peterson added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12983 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6975] symlinks incorrectly resolved on POSIX platforms
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16880] Importing imp will fail if dynamic loading not supported
Jeffrey Armstrong added the comment: Is Christian's patch going to be sufficient for the time being? Just curious. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
R. David Murray added the comment: I don't really have strong feelings about this, but I will just note as a data point that I implemented parameterized tests for the email package, and have no interest myself in subtests. This is for exactly the collection time vs runtime reason that Michael is talking about (I always want to be able to run single tests by name). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12983] byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError
Roundup Robot added the comment: New changeset 305210a08fc9 by Serhiy Storchaka in branch '3.2': Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError http://hg.python.org/cpython/rev/305210a08fc9 New changeset d5b731446a91 by Serhiy Storchaka in branch '3.3': Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError http://hg.python.org/cpython/rev/d5b731446a91 New changeset fe410292cba6 by Serhiy Storchaka in branch 'default': Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError http://hg.python.org/cpython/rev/fe410292cba6 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12983 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9815] assertRaises as a context manager keeps tracebacks and frames alive
Michael Foord added the comment: The patch py3k_fix__AssertRaisesContext.patch looks good. A test would be nice. The code already attempts to sanitize the traceback, so sanitizing __cause__ and __context__ seems reasonable. -- versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16997] subtests
Antoine Pitrou added the comment: Here is a patch implementing Michael's and lifeless' proposed strategy. -- Added file: http://bugs.python.org/file29029/subtests5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17141] random.vonmisesvariate() hangs for large kappa
Mark Dickinson added the comment: I don't think the second added test_avg_std test makes sense, given that the number of random samples used by vonmisesvariate is unpredictable. The variance in the second case should be close to 1/100.0 rather than 1/sqrt(2)/100.0, right? If this code stays, there should at least be a comment explaining where the extra sqrt(2) comes from. Apart from that, this patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12983] byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12983 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17141] random.vonmisesvariate() hangs for large kappa
Serhiy Storchaka added the comment: The variance in the second case should be close to 1/100.0 rather than 1/sqrt(2)/100.0, right? Yes, but experiments exposed precisely 1/sqrt(2)/100.0 and I were confused by this fact. But now I noticed a comment at the top of the test: Only works for distributions which do not consume variates in pairs. This test is not applicable to vonmisesvariate() which consumes more than one variate. u1, u2 and u3 are not independent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17141] random.vonmisesvariate() hangs for large kappa
Roundup Robot added the comment: New changeset 0f9113e1b541 by Serhiy Storchaka in branch '2.7': Issue #17141: random.vonmisesvariate() no more hangs for large kappas. http://hg.python.org/cpython/rev/0f9113e1b541 New changeset d94b73c95646 by Serhiy Storchaka in branch '3.2': Issue #17141: random.vonmisesvariate() no more hangs for large kappas. http://hg.python.org/cpython/rev/d94b73c95646 New changeset bdd993847ad0 by Serhiy Storchaka in branch '3.3': Issue #17141: random.vonmisesvariate() no more hangs for large kappas. http://hg.python.org/cpython/rev/bdd993847ad0 New changeset 407625051c45 by Serhiy Storchaka in branch 'default': Issue #17141: random.vonmisesvariate() no more hangs for large kappas. http://hg.python.org/cpython/rev/407625051c45 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17141] random.vonmisesvariate() hangs for large kappa
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17141] random.vonmisesvariate() hangs for large kappa
Serhiy Storchaka added the comment: Thanks for review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8865] select.poll is not thread safe
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8865 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8865] select.poll is not thread safe
Antoine Pitrou added the comment: Patches look good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8865 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4591] 32-bits unsigned user/group identifier
Mark Dickinson added the comment: No objections here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10557] Malformed error message from float()
Mark Dickinson added the comment: Closing. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17130] Add runcall() function to profile.py and cProfile.py
Antoine Pitrou added the comment: +1 for runcall() and the context manager. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17130 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4945] json checks True/False by identity, not boolean value
Mark Dickinson added the comment: According to the experts index, Bob is no longer actively maintaining the module. -- assignee: bob.ippolito - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17073] Integer overflow in sqlite module
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14914] pysetup installed distribute despite dry run option being specified
Antoine Pitrou added the comment: Should this remain open? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14914 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
Changes by Antoine Pitrou pit...@free.fr: -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6331] Add unicode script info to the unicode database
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson, haypo, lemburg, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17072] Decimal, quantize, round and negative value
Mark Dickinson added the comment: It's not obvious to me how the documentation could be made clearer: all the rounding modes are described at http://docs.python.org/2/library/decimal.html#decimal.Context for the Python 2 docs, and in a separate section entitled 'Rounding modes' for the Python 3 docs: http://docs.python.org/3/library/decimal.html#rounding-modes Did you have a particular documentation enhancement in mind? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17072 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12641] Remove -mno-cygwin from distutils
Roumen Petrov added the comment: In scope of this issue I would like to propose following patch set. First step is remove checks for versions used in past millenium, i.e. to avoid checks for 15 year old binaries. -- Added file: http://bugs.python.org/file29030/issue12641-modernize_cygwinmingw_compilers.tar.gz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12641] Remove -mno-cygwin from distutils
Roumen Petrov added the comment: Next step is to propose customization for cygwinmingw compilers. -- keywords: +patch Added file: http://bugs.python.org/file29031/0001-MINGW-issue12641-customize-mingw-cygwin-compilers.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17175] update PEP 430
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17165] Use except ImportError instead of bare except in _strptime.py
Roundup Robot added the comment: New changeset 1557d25b0f6e by Antoine Pitrou in branch 'default': Issue #17165: fix a bare import in _strptime.py. http://hg.python.org/cpython/rev/1557d25b0f6e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17165] Use except ImportError instead of bare except in _strptime.py
Antoine Pitrou added the comment: Fixed, thank you! -- nosy: +pitrou resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12641] Remove -mno-cygwin from distutils
Roumen Petrov added the comment: And optionally If someone disagree options m{no-}cygwin to be removed I would like to propose a patch '..check if cygwin/mingw... -m{no-}cygwin' to restore it for GCC before 4.6x. -- Added file: http://bugs.python.org/file29032/0001-MINGW-issue12641-check-if-cygwin-mingw-compiler-supp.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15438] document that math.pow is inappropriate for integers
Mark Dickinson added the comment: Updated patch. Thanks Ezio and David for reviewing. -- assignee: - mark.dickinson priority: low - normal Added file: http://bugs.python.org/file29033/issue15438_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15438 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15438] document that math.pow is inappropriate for integers
Mark Dickinson added the comment: Whoops. Removing a bonus non-grammatical 'function'. -- Added file: http://bugs.python.org/file29034/issue15438_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15438 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17094] sys._current_frames() reports too many/wrong stack frames
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix, pitrou versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17094 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue832159] Bad value for Mingw32Compiler.compiler_cxx
Roumen Petrov added the comment: In scope of issue12641 (Remove -mno-cygwin from distutils) I just publish a set of patches to modernize support for cygwinmingw compilers. My tests show that swig could be used successfully with patched mingw compiler. Test is based on patched official release 3.3.0 and my custom build of current master source with GNU windows compiler. For protocol tested swig version is 2.0.9 and may be due syntax change swig module has to be described as : - /* hello.i */ %module hello %{ extern void hello(void); %} extern void hello(void); - Distutils complain for --swig-cpp so command now is python setup.py build_ext -cmingw32 --swig-cpp -f -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue832159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue832159] Bad value for Mingw32Compiler.compiler_cxx
Roumen Petrov added the comment: Uhh python setup.py build_ext -cmingw32 --swig-opts=-c++ -f -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue832159 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16445] SEGFAULT when deleting Exception.message
Mark Dickinson added the comment: Can I suggest fixing this particular issue with a dedicated patch, and opening another issue to consider the large automated replacements that Victor's proposing? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16447] SEGFAULT when setting type.__name__
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16447 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16445] SEGFAULT when deleting Exception.message
Mark Dickinson added the comment: Here's a simple patch (against 2.7) for this particular issue. -- Added file: http://bugs.python.org/file29035/issue16445.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16445] SEGFAULT when deleting Exception.message
Serhiy Storchaka added the comment: Here's a simple patch (against 2.7) for this particular issue. LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17167] python man page contains $Date$ in page footer
Senthil Kumaran added the comment: There is another option. To have the same behavior like svn keywords through hg. Having this setting at server hgrc can help. This will be useful if we have more than one instance of keyword expansion. [extensions] keyword= [keyword] **/*.man = [keywordmaps] date = {date|rfc822date} -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17164] MozillaCookieJar does not handle session cookies
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17164 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17167] python man page contains $Date$ in page footer
Ned Deily added the comment: The keyword extension would have to be added by everyone to their existing .hgrc files and the Mercurial developers discourage its use (This is considered a feature of last resort.). Better to eliminate the keyword in the source. There were others that have already been taken care of. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17158] help() module searcher text improvement
Senthil Kumaran added the comment: You will stumble on that message, only if you give help(module somename) and note that somename could be any module in the PYTHONPATH. We can change to show the text only if the module is a valid module, but I think, it is costly do that computation for help text. A better approach would be: Modules matching the keyword: somemodule The output can be a list or None. If you will like to work on a patch, the changes will be in listmodule function in Lib/pydoc.py -- nosy: +orsenthil title: help() module searcher text is misleading - help() module searcher text improvement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17158 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16880] Importing imp will fail if dynamic loading not supported
Brett Cannon added the comment: Yes, Christian's patch should do the trick for fixing the problem you reported, Jeffrey. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17176] Document imp.NullImporter is NOT used anymore by import
New submission from Brett Cannon: imp.NullImporter should not be claiming that it is still used to fill sys.path_importer_cache on misses. -- assignee: brett.cannon components: Documentation messages: 181846 nosy: brett.cannon priority: normal severity: normal stage: needs patch status: open title: Document imp.NullImporter is NOT used anymore by import versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17176 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4591] 32-bits unsigned user/group identifier
Roundup Robot added the comment: New changeset b322655a4a88 by Serhiy Storchaka in branch '3.3': Issue #4591: Uid and gid values larger than 2**31 are supported now. http://hg.python.org/cpython/rev/b322655a4a88 New changeset 94256de0aff0 by Serhiy Storchaka in branch 'default': Issue #4591: Uid and gid values larger than 2**31 are supported now. http://hg.python.org/cpython/rev/94256de0aff0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17086] backport cross-build patches to the 2.7 branch
Arfrever Frehtes Taifersar Arahesis added the comment: http://hg.python.org/cpython/rev/8ee6d96a1019#l5.150 You changed PYTHONPATH, but all other branches (e.g. 3.3 and default) set previous value (PYTHONPATH=`pwd`/Lib). Was it an accidental change? -- nosy: +Arfrever status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17177] Document/deprecate imp
New submission from Brett Cannon: I need a make a decision as to what (if anything) belongs in imp and then document what stays and deprecate everything else. Everything in imp falls into one of the following categories: * From importlib - get_magic() - source_from_cache() - cache_from_source() * From sys - get_tag() * Platform-implemented - lock_held() - acquire_lock() - release_lock() - Undocumented stuff related to builtins, frozen, and load_dynamic() * Helper - reload() The question is what to keep/expose in imp and what to deprecate. Basically I need to figure out what imp's role is supposed to be in the face of importlib. My gut says either expose platform-dependent stuff and reload() and move the rest to importlib/deprecate, or to completely do away with the module and force people to use the APIs in importlib for consistency (and to stop people from mucking around with import from outside of importlib). -- assignee: brett.cannon components: Library (Lib) messages: 181849 nosy: brett.cannon priority: normal severity: normal stage: test needed status: open title: Document/deprecate imp versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17177 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17128] OS X system openssl deprecated - installer should build local libssl
Senthil Kumaran added the comment: It should be noted that latest OSX Mountain Lion has caused problems for other language libraries too (specifically ruby, which I use at work). Ease the support of correct openssl in OSX may help a long way in all versions of python. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16880] Importing imp will fail if dynamic loading not supported
Jeffrey Armstrong added the comment: Sorry, I think my question was a bit vague. Christian's patch does, in fact, work fine for fixing the problem as reported. I was wondering if the patch was sufficient to close the bug with a commit. I didn't know if other work was ongoing to close this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4591] 32-bits unsigned user/group identifier
Antoine Pitrou added the comment: Looks like this broke some buildbots: == ERROR: test_chown (test.test_shutil.TestShutil) -- Traceback (most recent call last): File /usr/home/buildbot/buildarea/3.3.krah-freebsd/build/Lib/test/test_shutil.py, line 1209, in test_chown shutil.chown(filename, 3.14) File /usr/home/buildbot/buildarea/3.3.krah-freebsd/build/Lib/shutil.py, line 1024, in chown os.chown(path, _user, _group) PermissionError: [Errno 1] Operation not permitted: '/tmp/tmp3f82m0/tmp_ttyx5' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16880] Importing imp will fail if dynamic loading not supported
Brett Cannon added the comment: A commit to Python 3.3 and 3.4 would be enough to close this bug. Just a matter of Christian or someone else finding the time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17072] Decimal, quantize, round and negative value
Hakim Taklanti added the comment: You is right. I had just see the beginning of documentation (Rounding options include...). Sorry for the bother and thanks for the answer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17072 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9253] argparse: optional subparsers
mike bayer added the comment: um, this seems like a regression/bug? I now have users complaining that my apps are broken because of this change as of Python 3.3.My application is supposed to return the help screen when no command is given. Now I get a None error because argparse is not trapping this condition: from argparse import ArgumentParser parser = ArgumentParser(prog='test') subparsers = parser.add_subparsers() subparser = subparsers.add_parser(foo, help=run foo) parser.parse_args() $ python3.2 test.py usage: test [-h] {foo} ... test: error: too few arguments $ python3.3 test.py $ This seems very much like a major feature has been yanked away from argparse, now I have to check for this condition explicitly. am I on the right issue here or do I need to open something new ? -- nosy: +zzzeek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4591] 32-bits unsigned user/group identifier
Roundup Robot added the comment: New changeset 4ef048f4834e by Serhiy Storchaka in branch '3.3': Reject float as uid or gid. http://hg.python.org/cpython/rev/4ef048f4834e New changeset 3fdcffdfd3e6 by Serhiy Storchaka in branch 'default': Reject float as uid or gid. http://hg.python.org/cpython/rev/3fdcffdfd3e6 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1778410] removeTest() method patch for unittest.TestSuite
Michael Foord added the comment: I'm pretty sure the proposed patch doesn't work - but there's no test for it so I can't be sure. I can't think of a better basic strategy, but the strategy here is horrible. This means I'm sympathetic to the desire for a removeTest method but not very enthusiastic about implementing it (and certainly not this implementation I'm afraid). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1778410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1778410] removeTest() method patch for unittest.TestSuite
Michael Foord added the comment: I think better filtering at the collection phase - collecting tests by name or filtering out tests by name - could obviate the need for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1778410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7897] Support parametrized tests in unittest
Michael Foord added the comment: Looks like we're going to get subtests ( issue #16997 ) instead of parameterized tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7897 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com