[issue17136] ctypes tests fail with clang on non-OS X
Ronald Oussoren added the comment: I don't know how the main copy of libffi in the CPython tree is updated, and if it is a straight copy of the upstream release. Given the mercurial log I'd guess that Modules/_ctypes/libffi is libffi 3.0.11 with a small patch in Modules/_ctypes/libffi.diff. As Arfrever notes libffi_osx is used on OSX only, and that version is a fork of libffi shared with PyObjC (that is, I try to update the copy in the CPython tree whenever I have to update the copy for PyObjC). I agree that the issue with libffi should be fixed upstream first, otherwise it would get harder and harder to import new upstream versions. -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17136] ctypes tests fail with clang on non-OS X
Dirkjan Ochtman added the comment: Is there a particular reason for not upstreaming the PyObjC changes? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely
Roundup Robot added the comment: New changeset 6cc5bbfcf04e by Serhiy Storchaka in branch '3.2': Issue #16723: httplib.HTTPResponse no longer marked closed when the connection http://hg.python.org/cpython/rev/6cc5bbfcf04e New changeset 0461ed77ee4e by Serhiy Storchaka in branch '3.3': Issue #16723: httplib.HTTPResponse no longer marked closed when the connection http://hg.python.org/cpython/rev/0461ed77ee4e New changeset 5f8c68281d18 by Serhiy Storchaka in branch 'default': Issue #16723: httplib.HTTPResponse no longer marked closed when the connection http://hg.python.org/cpython/rev/5f8c68281d18 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17122] Fix and cleanup test_functools
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/issue17122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely
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/issue16723 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13541] HTTPResponse (urllib) has no attribute read1 needed for TextIOWrapper
Serhiy Storchaka added the comment: Issue12591 added support of raw streams without read1() in io.TextIOWrapper(). -- nosy: +serhiy.storchaka resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16801] Preserve original representation for integers / floats in docstrings
Georg Brandl added the comment: For example, any function where an argument has a sentinel object as the default value, such as socket.create_connection(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16801 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate
Eric Snow added the comment: Any objections to what Brett proposed? Any preferences on a name? How about DualImplementationTests? Here's a patch with tests. I added a pure_python_only() decorator in addition to accelerated_only(). I also made both work as decorators for classes and methods (just like unittest.skip()). Finally, I added on a with_module_exported() decorator to help with the scenario from issue #16817. Eli, I know it doesn't quite fill the gap you described in msg180669, but hopefully it's an improvement. -- Added file: http://bugs.python.org/file28973/dual-impl-tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2
Serhiy Storchaka added the comment: Should this issue be closed? -- nosy: +serhiy.storchaka status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8194 ___ ___ 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
Miklós Fazekas added the comment: http://gist.github.com/mfazekas/1710455 I have a parametric delclarator which works is similiar to sweepargs in concept. It can be either applied at class or method level. And it mutates testnames so failure should be nice, and filters can be applied too. @parametric class MyTest(unittest.TestCase): @parametric(foo=[1,2],bar=[3,4]) def testWithParams(self,foo,bar): self.assertLess(foo,bar) def testNormal(self): self.assertEqual('foo','foo') @parametric(foo=[1,2],bar=[3,4]) class MyTest(unittest.TestCase): def testPositive(self,foo,bar): self.assertLess(foo,bar) def testNegative(self,foo,bar): self.assertLess(-foo,-bar) Sample failures: == FAIL: testNegative_bar_3_foo_1 (__main__.MyTest) -- Traceback (most recent call last): File /Work/temp/parametric.py, line 63, in f self.fun(*args,**v) File /Work/temp/parametric.py, line 158, in testNegative self.assertLess(-foo,-bar) AssertionError: -1 not less than -3 == FAIL: testNegative_bar_3_foo_2 (__main__.MyTest) -- Traceback (most recent call last): File /Work/temp/parametric.py, line 63, in f self.fun(*args,**v) File /Work/temp/parametric.py, line 158, in testNegative self.assertLess(-foo,-bar) AssertionError: -2 not less than -3 -- nosy: +Miklós.Fazekas ___ 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
[issue11311] StringIO.readline(0) returns incorrect results
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +IO keywords: +easy nosy: +serhiy.storchaka stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11311 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6532] thread.get_ident() should return unsigned value
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12596] cPickle - stored data differ for same dictionary
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12596 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate
Ezio Melotti added the comment: I'm still a bit skeptic about this. To summarize my position, I am: +0 about adding something like this to test.support and use it for new tests; -1 about mass-rewriting the existing tests to use this (in particular for test_json); +1 about simplifying the API of import_fresh_module so that it returns both the modules and doesn't require the fresh/blocked args; -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17137] Malfunctioning compiled code in Python 3.3 x64
Jan Lachnitt added the comment: Here is a part of my code (with some comments added): for struct in ini_structures: dirname = wrkdir+os.sep+struct.name if not os.path.isdir(dirname): # This works fine. If the directory doesn't exist,... try: os.mkdir(dirname) # ... it is created here. except OSError: raise AutoLEEDError('Cannot create directory '+dirname+'.') dirname += os.sep+'bulk'# This defines a subdirectory. if not os.path.isdir(dirname): ## Though it doesn't exist, os.path.isdir returns True,... try: os.mkdir(dirname) # ... so it is not created here. except OSError: raise AutoLEEDError('Cannot create directory '+dirname+'.') fn = dirname+os.sep+'cluster.i' # This defines a filename. print('Writing file '+fn+'...') straos = struct.write_bulk_cluster(fn,at_rad) # Here it fails (cannot write to file). According to Victor's post, I have inserted these lines before the line marked ## (and added necessary imports): print('dirname =', dirname) print('os.path.isdir(dirname) =', os.path.isdir(dirname)) print('nt._isdir(dirname) =', nt._isdir(dirname)) print('stat.S_ISDIR(os.stat(dirname).st_mode) =', stat.S_ISDIR(os.stat(dirname).st_mode)) print(ascii(dirname.encode(unicode_internal))) print(ascii(dirname.encode(utf-8))) Here is the output of these lines (that directory really does not exist but its parent directory does): dirname = D:\Bug reports\Python\AutoLEED\default\sub-fcc\bulk os.path.isdir(dirname) = True nt._isdir(dirname) = True stat.S_ISDIR(os.stat(dirname).st_mode) = True b'D\x00:\x00\\\x00B\x00u\x00g\x00 \x00r\x00e\x00p\x00o\x00r\x00t\x00s\x00\\\x00P\x00y\x00t\x00h\x00o\x00n\x00\\\x00A\x00u\x00t\x00o\x00L\x00E\x00E\x00D\x00\\\x00d\x00e\x00f\x00a\x00u\x00l\x00t\x00\\\x00s\x00u\x00b\x00-\x00f\x00c\x00c\x00\x00\x002\x00\x03\x00\x00\x00\x00\x00' b'D:\\Bug reports\\Python\\AutoLEED\\default\\sub-fcc\\bulk' Yeah, the result of ascii(dirname.encode(unicode_internal)) seems to be wrong (at the end). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17137 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17136] ctypes tests fail with clang on non-OS X
Matthias Klose added the comment: I'm planning to update the tip to the next libffi release candidate once it's released. Once this is checked in, maybe revisit the extra copy for OS X; an ABI issue with llvm/clang was identified in http://sourceware.org/ml/libffi-discuss/2013/msg00012.html and a work-around provided in http://sourceware.org/ml/libffi-discuss/2013/msg00021.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17136 ___ ___ 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
New submission from Serhiy Storchaka: random.vonmisesvariate(0, 1e16) hangs. -- components: Library (Lib) messages: 181511 nosy: rhettinger, serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: random.vonmisesvariate() hangs for large kappa type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ 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
[issue13355] random.triangular error when low = high=mode
Serhiy Storchaka added the comment: Here is a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17136] ctypes tests fail with clang on non-OS X
Ronald Oussoren added the comment: Matthias: libffi_osx already contains the workaround you refer to. libffi_osx is the same as the variant of libffi included with PyObjC, and that is derived from the system libffi on OSX (IIRC the last time I merged their changes was around 10.7). The system libffi on OSX is a fork of the upstream one, at least partially because upstream didn't support darwin/i386 at the time of the fork. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14012] Misc tarfile fixes
Serhiy Storchaka added the comment: The patch is desynchronized from current sources. -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate
Eli Bendersky added the comment: On Wed, Feb 6, 2013 at 4:17 AM, Ezio Melotti rep...@bugs.python.org wrote: Ezio Melotti added the comment: I'm still a bit skeptic about this. To summarize my position, I am: +0 about adding something like this to test.support and use it for new tests; -1 about mass-rewriting the existing tests to use this (in particular for test_json); +1 about simplifying the API of import_fresh_module so that it returns both the modules and doesn't require the fresh/blocked args; I share Ezio's sentiment regarding the new proposal(s). As for import_fresh_module, if it's only ever used to do what we describe here, then I propose to rename it to something more descriptive and indeed make it just return both modules. If it's being used for other stuff, we can add another function and rewrite all the tests to use that. py_module, c_module = import_python_module_and_accelerator('module', '_module') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17137] Malfunctioning compiled code in Python 3.3 x64
STINNER Victor added the comment: I'm interested by your struct.name string: can you also dump it? Where does it come from? Does it use ctypes? * print(ascii(struct.name)) * print(ascii(struct.name.encode(unicode_internal))) * print(ascii(struct.name.encode(utf-8))) I'm interested by all variables used to build the final path. nt._isdir() doesn't check if the path contains a NUL character. It should: see aksi #13617 b'D\x00:\x00\\\x00B\x00u\x00g\x00 \x00r\x00e\x00p\x00o\x00r\x00t\x00s\x00\\\x00P\x00y\x00t\x00h\x00o\x00n\x00\\\x00A\x00u\x00t\x00o\x00L\x00E\x00E\x00D\x00\\\x00d\x00e\x00f\x00a\x00u\x00l\x00t\x00\\\x00s\x00u\x00b\x00-\x00f\x00c\x00c\x00\x00\x002\x00\x03\x00\x00\x00\x00\x00' Decoded from UTF-16-LE, it gives: 'D:\\Bug reports\\Python\\AutoLEED\\default\\sub-fcc\x002\x03\x00\x00' b'D:\\Bug reports\\Python\\AutoLEED\\default\\sub-fcc\\bulk' Decode from UTF-8, it gives: 'D:\\Bug reports\\Python\\AutoLEED\\default\\sub-fcc\\bulk' It looks like the wstr representation of the string is corrupted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17137 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13234] os.listdir breaks with literal paths
Serhiy Storchaka added the comment: I added minor comments in Rietveld. Santoso Wijaya, can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib/ -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13234 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw* hosts
Matthias Klose added the comment: Ray Donnelly added the comment: Next time there's a release of Python 3, I'll rebase my patches against that. sorry, this is the wrong attitude, if you want mingw support to go upstream. fetch tip/trunk, re-apply your patches, and submit them. -- components: +Cross-Build -Build ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3871] cross and native build of python for mingw* hosts
Matthias Klose added the comment: now closing/rejecting this issue. See http://mail.python.org/pipermail/python-dev/2013-January/123774.html for the discussion. -- resolution: - rejected stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3754] cross-compilation support for python build
Matthias Klose added the comment: See http://mail.python.org/pipermail/python-dev/2013-January/123774.html for the discussion. Not updating the patches for tip/trunk is the best way to keep them out of the project. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16526] Python does not cross compile properly
Matthias Klose added the comment: now closing/rejecting this issue. See http://mail.python.org/pipermail/python-dev/2013-January/123774.html for the discussion. -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16526] Python does not cross compile properly
Changes by Matthias Klose d...@debian.org: -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Mark Dickinson added the comment: Here is a patch. Where? :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11311] StringIO.readline(0) returns incorrect results
Serhiy Storchaka added the comment: Here is a very simple patch. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file28974/StringIO_readline0.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11311 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17142] test_any calls all() instead of any()
New submission from Sjoerd Langkemper: In test_builtin.py, on the fourth in the test_any() function: self.assertRaises(RuntimeError, all, TestFailingIter()) I think this should be: self.assertRaises(RuntimeError, any, TestFailingIter()) -- components: Tests messages: 181524 nosy: sjoerder priority: normal severity: normal status: open title: test_any calls all() instead of any() type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17142 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17142] test_any calls all() instead of any()
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17142 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Serhiy Storchaka added the comment: Now it is here. -- Added file: http://bugs.python.org/file28975/random_triangular.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6532] thread.get_ident() should return unsigned value
Serhiy Storchaka added the comment: Here is a patch, which made all thread id to be unsigned. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file28976/thread_id_unsigned.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Mark Dickinson added the comment: Looks fine to me. Raymond: can this be applied? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Mark Dickinson added the comment: One minor comment: I'd prefer it if the second test were elif low == high:, since that more obviously guards against the division by zero. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17142] test_any calls all() instead of any()
Roundup Robot added the comment: New changeset 1fc87fa05333 by R David Murray in branch '3.2': #17142: fix apparent copy and paste error in test_all. http://hg.python.org/cpython/rev/1fc87fa05333 New changeset 4db932a303b4 by R David Murray in branch '3.3': Merge: #17142: fix apparent copy and paste error in test_all. http://hg.python.org/cpython/rev/4db932a303b4 New changeset acdb0da0df2b by R David Murray in branch 'default': Merge: #17142: fix apparent copy and paste error in test_all. http://hg.python.org/cpython/rev/acdb0da0df2b New changeset d0cfabed2ef3 by R David Murray in branch '2.7': #17142: fix apparent copy and paste error in test_all. http://hg.python.org/cpython/rev/d0cfabed2ef3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17142 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17142] test_any calls all() instead of any()
R. David Murray added the comment: Good catch, thanks. A copy and paste error, I suppose. -- nosy: +r.david.murray resolution: - fixed stage: - committed/rejected status: open - closed type: enhancement - behavior versions: +Python 2.7, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17142 ___ ___ 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 Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ 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
[issue17143] trace.py uses _warn without importing it
New submission from Dmitry Jemerov: trace.py in Python 3.3 standard library uses the _warn function without importing it. As a result, an attempt to use a now-deprecated function fails with a NameError: python3 Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. import trace trace.modname('') Traceback (most recent call last): File stdin, line 1, in module File /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/trace.py, line 827, in modname _warn(The trace.modname() function is deprecated, NameError: global name '_warn' is not defined -- components: Library (Lib) messages: 181531 nosy: Dmitry.Jemerov priority: normal severity: normal status: open title: trace.py uses _warn without importing it versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Serhiy Storchaka added the comment: One minor comment: I'd prefer it if the second test were elif low == high:, since that more obviously guards against the division by zero. It is written deliberately. What if low == high != mode? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17143] trace.py uses _warn without importing it
Dmitry Jemerov added the comment: Workaround: import warnings; trace._warn = warnings.warn after importing trace -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17139] dateTime.now() return format missing decimal seconds.
Dave added the comment: Thanks for the reply, STINNER Victor reply makes more sense in hindsight. Legacy often rules and we can work with/around things knowing it's full behavior. Since this is not documented for datetime.now()(where this issue began), can we add comments something like what was done for __str__, so the two possible output formats are documented? Thanks, Dave -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Serhiy Storchaka added the comment: Here is a patch for 3.x which adds checks for size overflow (only on 64-bit platform). -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file28977/marshal_overflow.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Serhiy Storchaka added the comment: And here is a patch for 2.7. -- Added file: http://bugs.python.org/file28978/marshal_overflow-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Serhiy Storchaka added the comment: (And as a matter of principle, INT_MAX isn't really right here: an int might be only 16 bits long on some strange platforms...). AFAIK Python doesn't support such platforms (and C standard requites at least 32-bit ints). However there are strange platforms with 64-bit ints. That's why I used the explicit constant 0x7FFF. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17137] Malfunctioning compiled code in Python 3.3 x64
Jan Lachnitt added the comment: print(ascii(struct.name)) print(ascii(struct.name.encode(unicode_internal))) print(ascii(struct.name.encode(utf-8))) produces: 'sub-fcc' b's\x00u\x00b\x00-\x00f\x00c\x00c\x00' b'sub-fcc' and that looks correct. struct.name originally comes from an ini-file: cp = configparser.ConfigParser(interpolation=None) try: cp.read(filename) ... The ini-file is encoded in pure ASCII (while my Python sources are in UTF-8 with the identification bytes at the beginning of the file). struct.name is the name of a section in this file, as provided by cp.sections() . The name gets through several objects. I am not pasting all the relevant code pieces here because there are too many relevant pieces but they do nothing special (just passing and copying the name). I do not use ctypes. wrkdir is generated from inp_file_name, which is 'default.ini', by this statement: wrkdir = os.path.splitext(os.path.abspath(inp_file_name))[0] BTW, ascii(dirname.encode(unicode_internal)) result is different in this run: b'D\x00:\x00\\\x00B\x00u\x00g\x00 \x00r\x00e\x00p\x00o\x00r\x00t\x00s\x00\\\x00P\x00y\x00t\x00h\x00o\x00n\x00\\\x00A\x00u\x00t\x00o\x00L\x00E\x00E\x00D\x00\\\x00d\x00e\x00f\x00a\x00u\x00l\x00t\x00\\\x00s\x00u\x00b\x00-\x00f\x00c\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17137 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Mark Dickinson added the comment: What if low == high != mode? Then we've got garbage in, garbage out; that case doesn't worry me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17144] Distutils: sdist register upload ignores -r argument
New submission from Danilo Bargen: Where I work, we use a custom pypi server to upload our internal packages. With a package that has a setup.py created using setuptools, I can simply issue: $ python setup.py sdist register upload -r local ...and it will get registered and uploaded to our local server. If setup.py is using distutils though, this does not work and the -r argument gets ignored. The command above would register and upload the package to pypi.python.org (which can in some situations be a security problem). As a workaround, this works: $ python setup.py register -r local $ python setup.py sdist upload -r local Tested under Python 2.7... -- assignee: eric.araujo components: Distutils messages: 181540 nosy: eric.araujo, gwrtheyrn, tarek priority: normal severity: normal status: open title: Distutils: sdist register upload ignores -r argument type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17145] memoryview(array.array)
New submission from Demian Brecht: array.array doesn't implement the buffer interface in 2.7, so memoryviews cannot be applied to them. As memoryview has been backported to 2.7, array.array should be updated to support it. Either that, or the 2.7 documentation should be updated to reflect the lack of support for arrays in 2.7 (http://docs.python.org/2.7/c-api/buffer.html). python3 memoryview(array('I', [1,2,3,4])) memory at 0x109e46048 python memoryview(array('I', [1,2,3,4])) Traceback (most recent call last): File stdin, line 1, in module TypeError: cannot make memory view because object does not have the buffer interface -- components: None messages: 181541 nosy: Demian.Brecht priority: normal severity: normal status: open title: memoryview(array.array) type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17145 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17143] trace.py uses _warn without importing it
Berker Peksag added the comment: Patch attached with tests. -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file28979/issue17143.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___ ___ 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
Serhiy Storchaka added the comment: Here is a patch which implements properties for which it has a sense and remove if there is no sense. -- assignee: - serhiy.storchaka components: +Library (Lib) keywords: +patch nosy: +ncoghlan, serhiy.storchaka stage: needs patch - patch review versions: +Python 3.3, Python 3.4 -Python 3.1 Added file: http://bugs.python.org/file28980/SpooledTemporaryFile_properties.patch ___ 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
[issue10355] SpooledTemporaryFile's name property is broken
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28981/SpooledTemporaryFile_properties-2.7.patch ___ 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
[issue13355] random.triangular error when low = high=mode
Serhiy Storchaka added the comment: An exception is better than a garbage result. But I agree, triangular() currently is not protectet against a situation when mode is not in low--high range. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17146] Improve test.support.import_fresh_module()
New submission from Eric Snow: (+nosy list from #17037) In issue 17037 (related to hiding PEP 399 boilerplate), Ezio and Eli recommended improving on the API of import_fresh_module(). I agree that it could be simplified, wrapped, or otherwise improved. import_fresh_module() is used in the stdlib tests a number of times, primarily to support testing dual-implementations a la PEP 399 (see msg180809). However, since it is already used for testing at least once module for a non-PEP-399 case (test_bz2), we need to be careful about any changes we'd make. Changing test_bz2 to not use import_fresh_module() just so we could make it PEP-399 specific doesn't seem right. Of the test modules that use import_fresh_module(), several pass multiple names for fresh and none pass more than one for blocked. Presumably a Python module may be accelerated by more than one accelerator module, hence allowing for lists for the two parameters, but none do so *now*. Consequently, it may be worth doing something like what Eli suggested in msg181515: add another helper function that *is* PEP-399-specific. Something like this: def import_pure_and_accelerated_modules(name, *, fresh=(), accelerated_fresh=None, accelerators=None): if accelerators is None: accelerators = ['_' + name] if accelerated_fresh is None: accelerated_fresh = list(fresh) + list(accelerators) py_module = import_fresh_module(name, fresh=fresh, blocked=accelerators) acc_module = import_fresh_module(name, fresh=accelerated_fresh) return py_module, acc_module Then you could use it like this: py_module, c_module = import_pure_and_accelerated_modules('module') py_module, c_module = import_pure_and_accelerated_modules('module', accelerators=['_other']) Simply refactoring import_fresh_module() to work this way is an option, especially since it is used almost exclusively for PEP 399 compliance. That way test.support would not grow yet another function. The new interface would probably look like this: def import_fresh_module(name, *, fresh=(), accelerated_fresh=None, accelerators=None, blocked=None, deprecated=False): It would still return a 2-tuple, but the second module would be None. For the test_bz2 case, the change would be minimal: bz2, = support.import_fresh_module(bz2, blocked=(threading,)) Why go to all this trouble? It saves just one line of code. Well, it also helps with writing and maintenance of dual-implementation tests, which I expect will be a growing segment of the stdlib unit tests as time goes by. However, ultimately the point it moot if we have a more comprehensive test helper like what's being discussed in issue 17037. -- components: Library (Lib) messages: 181545 nosy: Arfrever, brett.cannon, eli.bendersky, eric.snow, ezio.melotti, pitrou priority: normal severity: normal stage: needs patch status: open title: Improve test.support.import_fresh_module() type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17146 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16038] ftplib: unlimited readline() from connection
Christian Heimes added the comment: Thank you very much! Have you read and checked what the RFCs about the FTP protocol say about maximum line length? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11714] threading.Semaphore does not use try...finally
Serhiy Storchaka added the comment: LGTM. 3.x patch a little desynchronized but it is easy to update it. I'll commit it if Antoine have no objections. Thomas Rachel, can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib/ -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: - commit review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11714 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6532] thread.get_ident() should return unsigned value
Antoine Pitrou added the comment: You could add a test for it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16038] ftplib: unlimited readline() from connection
Michał Jastrzębski added the comment: Well its my understanding, that there is no maximum length specified in RFC959. There is however option to set it up while telnet connection, and that would be other solution to this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate
Eric Snow added the comment: First of all, I agree that the API for import_fresh_module() isn't ideal and could stand some improvement. I've created issue 17146 for pursuing that avenue. More importantly for this issue, simplifying import_fresh_module() is not nearly enough of a win for me regarding PEP 399. My big motivator here was to make complying with PEP 399 much easier. That encompasses more than eliminating the extra call to import_fresh_module(). There are a number of considerations that I've already outlined, which especially relate to maintenance and writing new dual-implementation tests. Without a comprehensive helper, existing tests don't automatically benefit from a better way of doing it (or fixes); converting existing tests to dual-implementation isn't as simple; and when someone goes to write new dual-implementation tests they have to do all the boilerplate and cover the corner cases (e.g. pickle-related tests). I'm coming at this from the perspective of someone who hadn't already written or adjusted tests to accommodate PEP 399. Having a more comprehensive helper would have saved me the time to figure it out, which I count as somewhat wasted since it's just boilerplate. I'd rather be working on the tests and the code that I'm testing. I'd rather not ask anyone else to take the time to get familiar with the boilerplate when I'm sure they'd rather be working on their problem than shaving this yak. :) For the record, I'm glad we have PEP 399 and that we are making the effort to get more pure Python modules in the stdlib. A big thanks to Brett for continuing to push for this! Ezio, I'm on board with your summary, though I'm +1 on adding the helper. :) I didn't have any plans to refactor any tests, but I would like to use any helper that might come out of this discussion in my testing of OrderedDict. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11763] assertEqual memory issues with large text inputs
Serhiy Storchaka added the comment: I left comments on Rietveld. Tests needed. -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11763 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11640] Shelve references globals in its __del__ method
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11640 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16203] Proposal: add re.fullmatch() method
Antoine Pitrou added the comment: 3 of the tests expect None when using 'fullmatch'; they won't return None when using 'match'. Sorry, my bad. Like Serhiy, I can't comment on the changes to re internals, but we can trust you on this. The patch needs documentation, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16203 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16038] ftplib: unlimited readline() from connection
Antoine Pitrou added the comment: Michał, thanks for the patch. Could you sign and e-mail a contributor's agreement? http://www.python.org/psf/contrib/ As for the patch: - the test could be a separate test_ method - the offset variable isn't used in cmd_retrlarge, there is no need computing it -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Antoine Pitrou added the comment: Perhaps you could add a bigmem test for this? (assuming you have enough memory somewhere to test it) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17144] Distutils: sdist register upload ignores -r argument
Chris Jerdonek added the comment: See issue 16926 for another issue about using -r with register. -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17144 ___ ___ 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: Here is an updated patch. -- Added file: http://bugs.python.org/file28982/sqlite_open_uri.patch ___ 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
[issue17144] Distutils: sdist register upload ignores -r argument
Chris Jerdonek added the comment: Danilo, does this work any better? $ python setup.py sdist register -r local upload -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17139] dateTime.now() return format missing decimal seconds.
R. David Murray added the comment: No. As I said, datetime.now() returns a *datetime object*. Formatting only becomes involved when you format an object, and that applies to *any* datetime object, and is correctly documented in __str__ + isoformat. Please do not reopen the issue again unless you get our agreement. -- resolution: - invalid status: open - closed versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16038] ftplib: unlimited readline() from connection
Charles-François Natali added the comment: Have you read and checked what the RFCs about the FTP protocol say about maximum line length? vsftpd seems to use a 4096 limit (and the guy knows his stuff :-): ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-3.0.2/defs.h -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Mark Dickinson added the comment: (and C standard requites at least 32-bit ints) No, that's not true: see Annex E of the standard, where the minimum for INT_MAX is declared to be 32767. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Stefan Krah added the comment: Theoretically int may be 16 bits (C99): 5.2.4.2.1 Sizes of integer types limits.h -- maximum value for an object of type int INT_MAX +32767 // 2**15 − 1 I agree that Python wouldn't compile on such a platform anyway. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Stefan Krah added the comment: Hmm, Mark was faster. ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17147] BytesIO should be mentioned in SpooledTemporaryFile documentation
New submission from Serhiy Storchaka: Currently only StringIO is mentioned (which was inherited from Python 2). -- assignee: docs@python components: Documentation, Library (Lib) files: SpooledTemporaryFile_document_BytesIO.patch keywords: patch messages: 181563 nosy: docs@python, georg.brandl, ncoghlan, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: BytesIO should be mentioned in SpooledTemporaryFile documentation type: compile error versions: Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file28983/SpooledTemporaryFile_document_BytesIO.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17147 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1423] wave sunau aifc 16bit errors
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file18919/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1423 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Serhiy Storchaka added the comment: Perhaps you could add a bigmem test for this? (assuming you have enough memory somewhere to test it) I think this is possible. I now have some experience in the writing of bigmem tests. ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16203] Proposal: add re.fullmatch() method
Serhiy Storchaka added the comment: I can't comment right now, but I am going inspect thoroughly re internals. This is a new feature and we have enough time before 3.4 freeze. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16203 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17139] dateTime.now() return format missing decimal seconds.
Dave added the comment: Ok, as a c++ guy, it looked like it's returning a string. The documentation says Return the current local date and time, but it's actually returning a datetime object (likely an object pointer) initialized to the current time. I think this is where every class inherits from a common base class which must include the __str__ method or something to that effect. Then printing the ptr/ref to the datetime.now() object actually just call's it's __str__ method. I get this now. I need to study the Python inner workings to get a better sense of this, but this has helped much (my current books are more functional, but too primitive). Thanks again David Murray for taking the time to fully address this issue and to everyone who participated. Issue closed, action to me to learn more python. If anyone knows a good deeper book on it, please pass on the title. Sincerely, Dave -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17139] dateTime.now() return format missing decimal seconds.
R. David Murray added the comment: You are correct. Effectively every class has an __str__, and that is what gets called when you print something without specifying any other formatting. (I say effectively, because if there is no __str__ the __repr__ gets used, which every class *does* have via inheritance from the base object 'object'.) For what it is worth, I just gave David Beasly's Python Essential Reference to someone who is a relatively new Python programmer but an experienced programmer, and he loved it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13355] random.triangular error when low = high=mode
Mark Dickinson added the comment: An exception is better than a garbage result. Agreed. And ZeroDivisionError is the wrong exception, too---ValueError would be better. But I'm content that the current patch fixes the immediate issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17145] memoryview(array.array)
Stefan Krah added the comment: Changing array.array would be a new feature, so it cannot go into 2.7. The documentation could be improved, see also #14198. -- assignee: - docs@python components: +Documentation -None nosy: +docs@python, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17145 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Serhiy Storchaka added the comment: No, that's not true: see Annex E of the standard, where the minimum for INT_MAX is declared to be 32767. My fault. Do I have to support such a case in the code? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16038] ftplib: unlimited readline() from connection
Michał Jastrzębski added the comment: Well, that is not from RFC (or I hadn't find it):) however I'd lie if I'd call myself an expert, should I change limit to 4096 then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Mark Dickinson added the comment: Do I have to support such a case in the code? No, I don't see any need for that: after all, you're making the code *more* portable by replacing those occurrences of INT_MAX with 0x7fff. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Serhiy Storchaka added the comment: Perhaps we should change signatures of w_string() and r_string() -- replace int by at least long. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5308] cannot marshal objects with more than 2**31 elements
Mark Dickinson added the comment: Hmm, yes, I think that would also make sense. I missed those uses of int. I'll give in, though, and accept that = 32-bit ints are a de facto standard, even if not de jure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17137] Malfunctioning compiled code in Python 3.3 x64
STINNER Victor added the comment: It would really help if you can write a short script reproducing the problem. Can you reproduce the problem with Python 3.2 on Windows 8, or with Python 3.3 on Windows XP or 7? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17137 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17148] mingw: nt thread model detection
New submission from Roumen Petrov: Proposed patch adds test for NT-threads to configure script . It was part of issue3871 and is related only to threading support. Unlike previous one new patch avoid changes in code like #if A undef B or similar. For instance - avoid presence of header pthread.h in Python/ceval.c and Python/thread.c (HAVE_PTHREAD_H dependency) - avoid detection of function pthread_kill in Modules/signalmodule.c (HAVE_PTHREAD_KILL) - avoid sem_open() Modules/_multiprocessing/multiprocessing.c (HAVE_SEM_OPEN) ( see patch for reason to skip those checks at configure time) -- components: Build files: 0001-MINGW-BASE-use-NT-thread-model.patch keywords: patch messages: 181576 nosy: rpetrov priority: normal severity: normal status: open title: mingw: nt thread model detection type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file28984/0001-MINGW-BASE-use-NT-thread-model.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17148 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17139] dateTime.now() return format missing decimal seconds.
Dave added the comment: I'll order it. Thanks again, Dave -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17047] Fix double double words words
Matthew Barnett added the comment: These are the ones that I think are wrong: Doc/c-api/long.rst:206 Return a C :c:type:`size_t` representation of of *pylong*. *pylong* must be Doc/c-api/long.rst:218 Return a C :c:type:`unsigned PY_LONG_LONG` representation of of *pylong*. Doc/library/email.policy.rst:330 line breaks and and any (RFC invalid) binary data it may contain. Doc/library/ipaddress.rst:395 These attributes are true for the network as a whole if they are true true for both the network address and the broadcast address Doc/library/ipaddress.rst:454 ``True`` if this network is partly or wholly contained in *other* or or *other* is wholly contained in this network. Doc/library/ipaddress.rst:584 These attribute is true for the network as a whole if it is true true for both the network address and the broadcast address Doc/library/ssl.rst:826 The *server_name_callback* function must return ``None`` to allow the the TLS negotiation to continue. If a TLS failure is required, a constant Doc/library/stdtypes.rst:2640 Cast 1D/unsigned char to to 2D/unsigned long:: Doc/library/unittest.mock.rst:1011 attributes that your production code creates at runtime. It is off by by Doc/library/xml.dom.rst:359 children, returning *newChild*. If the node was already in in the tree, it is removed first. Doc/whatsnew/3.3.rst:1539 New attribute attribute :data:`multiprocessing.Process.sentinel` allows a Include/pyport.h:884 * also also takes care of Apple's universal builds. Lib/argparse.py:1143 - encoding -- The file's encoding. Accepts the same values as the the builtin open() function. Lib/ftplib.py:468 callback: An optional single parameter callable that is called on on each block of data after it is sent. [default: None] Lib/ftplib.py:490 callback: An optional single parameter callable that is called on on each line after it is sent. [default: None] Lib/turtle.py:859 Thus stops execution of turtle graphics script. Main purpose: use in in the Demo-Viewer turtle.Demo.py. Lib/_pyio.py:306 Change the stream position to byte offset offset. offset is [It's referring to the byte-offset parameter called offset; the parameter is actually called pos.] Lib/concurrent/futures/_base.py:520 fn: A callable that will take take as many arguments as there are Lib/distutils/command/install.py:266 raise DistutilsOptionError(can't combine user with with prefix/ Lib/distutils/tests/test_install.py:168 # can't combine user with with prefix/exec_prefix/home or Lib/email/policy.py:26 The API extensions enabled by this this policy are currently provisional. Lib/email/_encoded_words.py:17 # to to the CTE tables, but YAGNI for now. 'q' is Quoted Printable, 'b' is Lib/email/_header_value_parser.py:1866 We allow anything except the excluded characters, but but if we find any Lib/email/mime/text.py:29 # If no _charset was specified, check to see see if there are non-ascii Lib/idlelib/extend.txt:57 Here is a complete example example: Lib/idlelib/extend.txt:75 used to to configure the loading of extensions and to establish key (or, more Lib/idlelib/rpc.py:4 connect to the Idle process, which listens for the connection. Since Idle has has only one client per server, this was not a limitation. Lib/lib2to3/pgen2/grammar.py:23 Pgen parsing tables tables conversion class. Lib/lib2to3/pgen2/grammar.py:48 states, each state is is a list of arcs, and each Lib/msilib/__init__.py:327 Add a file to the current component of the directory, starting a new one one if there is no current component. By default, the file name in the source Lib/test/test_decimal.py:4495 # Do operations and check that it didn't change change internal objects. Lib/test/test_socket.py:845 # Try udp, but don't barf it it doesn't exist [Should be if it.] Lib/tkinter/tix.py:1920 Val may be: auto -- the width of the column is set the the widest cell in the column; a valid Tk screen distance Lib/tkinter/tix.py:1944 Val may be: auto -- the height of the row is set the the highest cell in the row; a valid Tk screen distance Lib/unittest/mock.py:1447 attributes that your production code creates at runtime. It is off by by Modules/ossaudiodev.c:233 SNDCTL_DSP_{SETFMT,CHANNELS,SPEED} -- that that are called from C Modules/_heapqmodule.c:91 /* The leaf at pos is empty now. Put newitem there, and and bubble Modules/_heapqmodule.c:431 /* The leaf at pos is empty now. Put newitem there, and and bubble Modules/expat/xmltok.c:1587 way this can fail to be big-endian UTF-16 if it it's an Modules/zlib/deflate.c:160 * IN assertion: all
[issue12768] docstrings for the threading module
moijes12 added the comment: Hi Is this still open to work on ? If yes, what were the review comments from the previous review? -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12768 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16038] ftplib: unlimited readline() from connection
Charles-François Natali added the comment: Well, that is not from RFC (or I hadn't find it):) however I'd lie if I'd call myself an expert, should I change limit to 4096 then? It's probably not in the RFC: this just shows that the limit chosen should be enough. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com