[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-07 Thread David Edelsohn
New submission from David Edelsohn: Another endianness bug that causes a failure in test_structmembers.py. _testcapi reports "string too long" because getargs.c:PyArg_ParseTupleAndKeywords() incorrectly returns a huge value for string_len. The problem is FETCH_ARGS is passing the

[issue17935] Failed compile on XP buildbot

2013-05-08 Thread David Bolen
David Bolen added the comment: Yeah, the XP buildbot was pretty old, at nasm 2.02, so I updated to the same 2.09 as the Win7 buildbot, restarted the last build and it went through compilation fine. However, then it failed in test_ssl, and in checking, it looks like my Win7 buildbot is

[issue17525] os.getcwd() fails on cifs share

2013-05-21 Thread David Cuddihy
David Cuddihy added the comment: I apologize for not posting the strace output - I didn't see the request until today. Libc getcwd() is indeed failing - when I run a c program which calls getcwd() and prints the output, the call to getcwd() fails - errno is ENOENT and the buffer is

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-22 Thread David Gilman
New submission from David Gilman: I opened this StackOverflow bug with an example simplified testcase. As you can see in the first comment a user added that this code worked under Python 2.6 on Windows and no longer works on 2.7. http://stackoverflow.com/questions/16686510/how-do-i-capture

[issue17701] Improving strftime documentation

2013-05-23 Thread David Wolever
Changes by David Wolever : Added file: http://bugs.python.org/file30353/102b3e257dca.diff ___ Python tracker <http://bugs.python.org/issue17701> ___ ___ Python-bugs-list m

[issue17701] Improving strftime documentation

2013-05-23 Thread David Wolever
Changes by David Wolever : Removed file: http://bugs.python.org/file30353/102b3e257dca.diff ___ Python tracker <http://bugs.python.org/issue17701> ___ ___ Python-bug

[issue17701] Improving strftime documentation

2013-05-23 Thread David Wolever
Changes by David Wolever : Added file: http://bugs.python.org/file30354/0f4d971b0cee.diff ___ Python tracker <http://bugs.python.org/issue17701> ___ ___ Python-bugs-list m

[issue20981] ssl doesn't build anymore with OpenSSL 0.9.7 or older: X509_check_ca

2014-10-14 Thread David Bolen
David Bolen added the comment: Both of my FreeBSD buildbots are quite ancient (particularly so with FreeBSD/6.4), and mostly still exist because of lack of pressure to change them, and at least for a while having an older, legacy FreeBSD buildbot was of some use. I have no plans on upgrading

[issue20981] ssl doesn't build anymore with OpenSSL 0.9.7 or older: X509_check_ca

2014-10-14 Thread David Bolen
David Bolen added the comment: I suppose it depends on what the current policy (if any) is. Not sure how far back we would officially claim to support even today. We have a 6.4 buildbot due to history, but it's never made the stable list, and is probably in a failing state as much or

[issue21907] Update Windows build batch scripts

2014-10-15 Thread David Bolen
David Bolen added the comment: Just thought I'd add a note here that after the most recent changes, my buildbots also appear to be back to quicker hg pulls rather than clones at the start of the process (see msg222592). Still not sure why that behavior changed, but we're back to th

[issue22710] doctest exceptions include nondeterministic namespace

2014-10-23 Thread David Barnett
New submission from David Barnett: doctests includes special exception processing support (described in https://docs.python.org/3/library/doctest.html#what-about-exceptions), but in python3 it seems to print the fully-qualified class name even for exception classes in the same module, which

[issue22710] doctest exceptions include nondeterministic namespace

2014-10-23 Thread David Barnett
David Barnett added the comment: But… that doesn't help. It completely changes the semantics of the doctests. I have a bunch of doctests demonstrating different failures of the same exception class, and with IGNORE_EXCEPTION_DETAIL running my doctests to verify they're still corre

[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8

2014-10-29 Thread David Bolen
David Bolen added the comment: I've just brought a Windows 8 buildbot online (bolen-windows8) and can confirm that this test does fail in the 3.4 and 3.x branches, and that it does so consistently even if I execute the steps interactively. -- nosy:

[issue22769] Tttk tag_has() throws TypeError when called without item

2014-10-30 Thread David Durrett
New submission from David Durrett: Have only tried this on Python 2.7 To reproduce: ~ from Tkinter import * import ttk root = Tk() tree = ttk.Treeview(root) id = tree.insert('' , 'end', text='foo', tag='bar') print tree.tag_has('bar',

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
New submission from David Edelsohn: The patch for Issue19884 to set enable-meta-key to "off" does not work when readline-devel package is libreadline5, which includes SLES 11. -- components: Extension Modules messages: 230340 nosy: David.Edelsohn, haypo, pitrou priori

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: Patch attached to export version and skip test if version less than 0x600. -- type: -> behavior Added file: http://bugs.python.org/file37084/Issue22773.txt ___ Python tracker <http://bugs.python.org/issu

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: Revised patch with leading underscores to make version objects private. -- Added file: http://bugs.python.org/file37085/Issue22773.txt ___ Python tracker <http://bugs.python.org/issue22

[issue19884] Importing readline produces erroneous output

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: Issue22773 provides a patch to export Readline version and skip the test for earlier releases of libreadline where turning off enable-meta-key does not work. -- nosy: +David.Edelsohn ___ Python tracker <h

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: The portion of the patch to skip the test is necessary because, as mentioned in Issue19884, setting enable-meta-key does not work in older releases of libreadline. The particular combination of default TERM and libreadline is rare in old OS versions and can

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: I am trying to follow the precedent of zlibmodule with the naming so that users of Python modules have as consistent an experience and user interface as possible. -- ___ Python tracker <http://bugs.python.

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: @ned.deily Can you offer a suggestion of how you you like the skipIf test modified to check __doc__ for "libedit"? -- ___ Python tracker <http://bugs.python.o

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: Okay, grouping was wrong in my initial attempt. New patch attached. -- Added file: http://bugs.python.org/file37090/Issue22773.txt ___ Python tracker <http://bugs.python.org/issue22

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: The test should be 0x0600. -- Added file: http://bugs.python.org/file37092/Issue22773.txt ___ Python tracker <http://bugs.python.org/issue22

[issue22773] Export Readline version and expect ANSI sequence for version < 0x0600

2014-11-01 Thread David Edelsohn
Changes by David Edelsohn : -- title: Export Readline version and expect ANSI sequence for version < 0x6000 -> Export Readline version and expect ANSI sequence for version < 0x0600 ___ Python tracker <http://bugs.python.or

[issue17896] Move Windows external libs from \..\ to \externals

2014-11-02 Thread David Bolen
David Bolen added the comment: I noticed this issue when checking on some recent 2.7 branch failures on my buildbot. It might be worth noting this change to any Windows buildbot owners since we all have existing trees now with a lot of stranded external folders that can be removed. For what

[issue22795] Intermittent

2014-11-04 Thread David Edelsohn
Changes by David Edelsohn : -- components: Tests nosy: David.Edelsohn, haypo priority: normal severity: normal status: open title: Intermittent type: behavior versions: Python 3.6 ___ Python tracker <http://bugs.python.org/issue22

[issue22795] Intermittent test_tarfile failures on zLinux

2014-11-04 Thread David Edelsohn
New submission from David Edelsohn: test_list_command_verbose intermittently fails because the date comparison differs by six hours. I suspect a bad interaction between tests, but have not been able to find the culprit. FAIL: test_list_command_verbose (test.test_tarfile.CommandLineTest

[issue19753] test_gdb failure on SystemZ buildbot

2014-11-04 Thread David Edelsohn
David Edelsohn added the comment: Victor, can this patch be applied to Python 2.7 branch also? -- components: +Tests type: -> behavior versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issu

[issue22795] Intermittent test_tarfile failures on zLinux

2014-11-05 Thread David Edelsohn
David Edelsohn added the comment: Sorry, I was not aware of the other issue. Three tests seems to have intermittent failures. test_datetime test_tarfile test_strptime -- ___ Python tracker <http://bugs.python.org/issue22

[issue22795] Intermittent test_tarfile failures on zLinux

2014-11-05 Thread David Edelsohn
David Edelsohn added the comment: I found the connection but I don't know the cause: Running test_imaplib prior to either test_datetime or test_tarfile causes the latter test to fail. test_datetime seems to fix the problem for test_tarfile if it precedes it. [1/3] test_imaplib

[issue22795] Intermittent test_tarfile failures on zLinux

2014-11-05 Thread David Edelsohn
David Edelsohn added the comment: Its the @run_with_tz decorations in test_imaplib and test_datetime. The TZ is not being restored after the test. -- ___ Python tracker <http://bugs.python.org/issue22

[issue20220] TarFile.list() outputs wrong time

2014-11-06 Thread David Edelsohn
David Edelsohn added the comment: Unfortunately, the patch does not fix the failures of running test_imaplib before test_tarfile or test_datetime. -- ___ Python tracker <http://bugs.python.org/issue20

[issue20220] TarFile.list() outputs wrong time

2014-11-07 Thread David Edelsohn
David Edelsohn added the comment: Any other ideas for a reliable method to restore the correct timezone after running a test? -- ___ Python tracker <http://bugs.python.org/issue20

[issue22842] zipfile simultaneous open broken and/or needlessly(?) consumes unreasonable number of file descriptors

2014-11-10 Thread David Wilson
New submission from David Wilson: There is some really funky behaviour in the zipfile module, where, depending on whether zipfile.ZipFile() is passed a string filename or a file-like object, one of two things happens: a) Given a file-like object, zipfile does not (since it cannot) consume

[issue22842] zipfile simultaneous open broken and/or needlessly(?) consumes unreasonable number of file descriptors

2014-11-10 Thread David Wilson
David Wilson added the comment: As a random side-note, this is another case where I really wish Python had a .pread() function. It's uniquely valuable for coordinating positioned reads in a threaded app without synchronization (at user level anyway) or extraneous system

[issue22844] test_gdb failure on Debian Wheezy for Z

2014-11-10 Thread David Edelsohn
New submission from David Edelsohn: I added a Buildbot on another zLinux system running Debian Wheezy and it shows a different GDB error message: linux-vdso64.so. Can you please add something like the following to allow test_gdb to pass? diff -r 524a004e93dd Lib/test/test_gdb.py --- a/Lib

[issue16569] Preventing errors of simultaneous access in zipfile

2014-11-10 Thread David Wilson
David Wilson added the comment: Compared to the cost of everything else ZipExtFile must do (e.g. 4kb string concatenation in a loop, zlib), its surprising that lseek() would measurable at all. The attached file 'patch' is the minimal change I tested. It represents, in terms of c

[issue20220] TarFile.list() outputs wrong time

2014-11-11 Thread David Edelsohn
David Edelsohn added the comment: It doesn't fail on the Debian system. The Debian system will be successful after the test_gdb patch is installed. -- ___ Python tracker <http://bugs.python.org/is

[issue14099] ZipFile.open() should not reopen the underlying file

2014-11-13 Thread David Wilson
David Wilson added the comment: Per my comment on issue16569, the overhead of performing one seek before each (raw file data) read is quite minimal. I have attached a new (but incomplete) patch, on which the following microbenchmarks are based. The patch is essentially identical to Stepan&#

[issue14099] ZipFile.open() should not reopen the underlying file

2014-11-14 Thread David Wilson
David Wilson added the comment: Hi Serhiy, Thanks for the new patch, it looks better than my attempt. :) -- ___ Python tracker <http://bugs.python.org/issue14

[issue14099] ZipFile.open() should not reopen the underlying file

2014-11-21 Thread David Wilson
David Wilson added the comment: While in spirit this is a bug fix, it's reasonably complex and affects a popular module -- I'm not sure it should be applied to 2.x, and probably not in a minor release of 3.x either. Would it make sense to include as part of 3.5? (That said, I

[issue22970] Cancelling wait() after notification leaves Condition in an inconsistent state

2014-11-30 Thread David Coles
New submission from David Coles: If a task that is waiting on an asyncio.Condition is cancelled after notification but before having successfully reacquired the associated lock, the acquire() will be cancelled causing wait() to return without the lock held (violating wait()'s contrac

[issue14099] ZipFile.open() should not reopen the underlying file

2014-12-02 Thread David Wilson
David Wilson added the comment: Could we also make a small tweak to zipfile.rst indicating the new behaviour? I had made an initial attempt in my patch but wasn't particularly happy with the wording. -- ___ Python tracker <http://bugs.py

[issue14099] ZipFile.open() should not reopen the underlying file

2014-12-02 Thread David Wilson
David Wilson added the comment: Sounds great :) -- ___ Python tracker <http://bugs.python.org/issue14099> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20220] TarFile.list() outputs wrong time

2014-12-06 Thread David Edelsohn
David Edelsohn added the comment: There now are two zLinux buildbots: zlinux (running SUSE) and zwheezy (running Debian). zlinux (running on SUSE) has the libc problem causing the timezone error. A second buildbot was added, not converting or upgrading the existing buildbot. I still would

[issue9647] os.confstr() does not handle value changing length between calls

2014-12-07 Thread David Watson
David Watson added the comment: On Fri 5 Dec 2014, STINNER Victor wrote: > I added an assertion. Can we close this issue? Well, if no one complains about the interpreter dying with SIGABRT, that will suggest that the worries about OS bugs creating infinite loops were unfounded :) If you

[issue9647] os.confstr() does not handle value changing length between calls

2014-12-12 Thread David Watson
David Watson added the comment: Here are the alternative patches to allow more than two calls to confstr(). One patch set just keeps reallocating the buffer until it's big enough, while the other makes a limited number of attempts (in this case 20) before raising Runtime

[issue22970] Cancelling wait() after notification leaves Condition in an inconsistent state

2015-01-14 Thread David Coles
David Coles added the comment: Hi Victor, (Sorry for the delay, I think GMail ate the notification) The main issue is that Condition.wait MUST reacquire the associated lock released on entry to wait() before returning or else the caller's assumption that it holds a lock (such as `with

[issue22970] Cancelling wait() after notification leaves Condition in an inconsistent state

2015-01-14 Thread David Coles
David Coles added the comment: Just for context, the reason for using a custom wait function (cond_wait_timeout) rather than the more idiomatic asyncio.wait_for(cond.wait(), timeout) is that the combination introduces another subtle, but nasty locking inconsistency (see https

[issue23308] a bug in Instructions section 4.1

2015-01-23 Thread David Motlagh
New submission from David Motlagh: Hi, I either found a bug or  am doing the steps wrong.  Could you please check the instructions in Section 4.1 to determine if there really is a syntax error? Thanks,David Motlagh  -- messages: 234596 nosy: Dmot priority: normal severity: normal

[issue22003] BytesIO copy-on-write

2015-02-09 Thread David Wilson
David Wilson added the comment: Attached trivial patch for whatsnew.rst. -- Added file: http://bugs.python.org/file38058/whatsnew.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22844] test_gdb failure on Debian Wheezy for Z

2015-02-14 Thread David Edelsohn
David Edelsohn added the comment: The errors are of the form: == FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with NULL ob_type is handled gracefully

[issue23457] make test failures

2015-02-14 Thread David Edelsohn
David Edelsohn added the comment: The Python testsuite does not produce completely clean results on AIX. You can see the AIX tester for comparison. Some are caused by assumptions in the testcases that are correct for Linux but not for some Unix systems, and some are caused by incorrect

[issue23457] make test failures

2015-02-15 Thread David Edelsohn
David Edelsohn added the comment: When you configure Python, you can specify an installation directory, which defaults to /usr/local. "make install" will overwrite the Python installation in the specified (possibly default) installation location, but not versions installed in other

[issue23457] make test failures

2015-02-16 Thread David Edelsohn
David Edelsohn added the comment: A Python3 installation will not overwrite a Python2 installation because they are different major releases and not completely compatible. If Firefox needs Python2, you should build the latest, stable release of Python 2.7. I previously used AIX workstations

[issue24326] Audioop: weightB not divided by GCD, weightA divided twice

2015-05-29 Thread David Moore
New submission from David Moore: Hi - During a code review of Modules/audioop.c I noted that weightB is never divided by the GCD while weightA is divided twice. This is contrary to the comment and appears to be a bug: /* divide weightA and weightB by their greatest common divisor

[issue4753] Faster opcode dispatch on gcc

2015-06-01 Thread David Bolen
David Bolen added the comment: The 2.7 back-ported version of this patch appears to have broken compilation on the Windows XP buildbot, during the OpenSSL build process, when the newly built Python is used to execute the build_ssl.py script. After this patch, when that stage executes, and

[issue4753] Faster opcode dispatch on gcc

2015-06-01 Thread David Bolen
David Bolen added the comment: I ran a few more tests, and the generated executable hangs in both release and debug builds. The closest I can get at the moment is that it's stuck importing errno from the "import sys, errno" line in os.py - at least no matter how long I wait a

[issue4753] Faster opcode dispatch on gcc

2015-06-02 Thread David Bolen
David Bolen added the comment: Oops, sorry, I had just followed the commit comment to this issue. For the record here, it looks like Benjamin has committed an update (5e8fa1b13516) that resolves the problem. -- ___ Python tracker <h

[issue24460] urlencode() of dictionary not as expected

2015-06-16 Thread David Rueter
New submission from David Rueter: In Python 3.4 I would like to serialize a dictionary into a URL-encoded string. Given a dictionary like this: >>> thisDict = {'SomeVar1': [b'abc'], 'SomeVar2': [b'def'], 'SomeVar3': &

[issue24460] urlencode() of dictionary not as expected

2015-06-17 Thread David Rueter
David Rueter added the comment: Ah hah! Indeed, urlencode() does work on dictionaries as expected when doseq=True. Thank you for clarifying. FWIW I had read the documentation and the referenced examples multiple times. I would like to make a few documentation suggestions for clarity. 1

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2015-06-25 Thread David Watson
David Watson added the comment: I've updated the ASCII/surrogateescape patches in line with various changes to Python since I posted them. return-ascii-surrogateescape-2015-06-25.diff incorporates the ascii-surrogateescape and uname-surrogateescape patches, and accept-ascii-surrogateescape

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-07 Thread David Beazley
David Beazley added the comment: This is a problem that will never be fixed. Sure, it was a release blocker in Python 3.4. It wasn't fixed. It is a release blocker in Python 3.5. It won't be fixed. They'll just tell you to indent using the spacebar as generations of typists

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-07 Thread David Beazley
David Beazley added the comment: For what it's worth, I'm kind of tired having to hack site.py every time I upgrade Python in order to avoid being shown 6000 choices when hitting tab on an empty line. It is crazy annoying. -- ___ Pyth

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2015-07-07 Thread David Robertson
David Robertson added the comment: Dear all, I have just been trying to understand the TCP Echo example from the asyncio documentation: https://docs.python.org/3/library/asyncio-protocol.html#protocol-examples I copied the two examples from the docs into `server.py' and `client.py&#x

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-09 Thread David Beazley
David Beazley added the comment: Frivolity aside, I really wish this issue would get more traction and a fix. Indentation is an important part of the Python language (obviously). A pretty standard way to indent is to hit "tab" in whatever environment you're using to edit Py

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-09 Thread David Beazley
David Beazley added the comment: Wanted to add: I see this as being about the same as having a broken window pane on the front of Python 3. Maybe there are awesome things inside, but it makes a bad first impression on anyone who dares to use the interactive console

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread David Lukeš
New submission from David Lukeš: The following program makes Python 3.4.3 crash with a segmentation fault: ``` #!/usr/bin/env python3 import operator N = 50 l = [0] for i in range(N): l = map(operator.add, l, [1]) print(list(l)) ``` I suppose the problem is that there are too many

[issue24241] webbrowser default browser detection and/or public API for _trylist.

2015-07-17 Thread David Steele
David Steele added the comment: Patch attached, to sort the desktop default browser to the top of _tryorder. -- keywords: +patch Added file: http://bugs.python.org/file39940/preferredbrowser.diff ___ Python tracker <http://bugs.python.org/issue24

[issue24674] pyclbr not recursively showing classes in packages

2015-07-20 Thread David Worenklein
New submission from David Worenklein: In the following example, pyclbr does not report that foo.module.A is a superclass of C: __module2.py__ import foo.module class C(foo.module.B): pass __foo/module.py__ class A(object): def foo(self): print "bar" class B(A)

[issue24674] pyclbr not recursively showing classes in packages

2015-07-20 Thread David Worenklein
David Worenklein added the comment: P.S. Here are the results after the patch: C => ['foo.module.B', 'foo.module.A', 'object'] -- ___ Python tracker &

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-26 Thread David Beazley
David Beazley added the comment: It's still broken on Python 3.5b4. -- ___ Python tracker <http://bugs.python.org/issue23441> ___ ___ Python-bugs-list m

[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files

2015-08-02 Thread David Watson
Changes by David Watson : -- nosy: +baikie ___ Python tracker <http://bugs.python.org/issue20174> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24725] test_socket testFDPassEmpty fails on OS X 10.11 DP with "Cannot allocate memory"

2015-08-02 Thread David Watson
Changes by David Watson : -- nosy: +baikie ___ Python tracker <http://bugs.python.org/issue24725> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16263] sendmsg, recvmsg, recvmsg_into et al not being detected on Solaris

2015-08-02 Thread David Watson
Changes by David Watson : -- nosy: +baikie ___ Python tracker <http://bugs.python.org/issue16263> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24751] regrtest/buildbot: test run marked as failure even when re-run succeeds

2015-08-08 Thread David Bolen
David Bolen added the comment: While running a manual test (make buildbottest) on my 2.7 Ubuntu buildbot, I ran into an exception in this patch: The tail end of the test run: [401/401/1] test_signal 379 tests OK. 1 test failed: test_curses 21 tests skipped: test_aepack test_al

[issue24844] Python 3.5rc1 compilation error on OS X 10.8

2015-08-11 Thread David Beazley
New submission from David Beazley: Just a note that Python-3.5.0rc1 fails to compile on Mac OS X 10.8.5 with the following compiler: bash$ clang --version Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.6.0 Thread model: posix bash$ Here is the

[issue24867] Asyncio get_frame fails with native coroutines

2015-08-14 Thread David Griffin
New submission from David Griffin: I've been playing around with native coroutines and asyncio, and came across an issue with retrieving exceptions from tasks: The get_frame method on a Task in asyncio fails with an AttibuteError because it assumes that gi_frame as the attribute conta

[issue24867] Asyncio Task.get_stack fails with native coroutines

2015-08-14 Thread David Griffin
David Griffin added the comment: It should be noted that when I said get_frame in the original comment, I actually meant get_stack -- title: Asyncio get_frame fails with native coroutines -> Asyncio Task.get_stack fails with native corouti

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread David Edelsohn
David Edelsohn added the comment: This patch causes a new failure on many of the buildbots. -- nosy: +David Edelsohn ___ Python tracker <http://bugs.python.org/issue24

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread David Edelsohn
Changes by David Edelsohn : -- nosy: +David.Edelsohn -David Edelsohn ___ Python tracker <http://bugs.python.org/issue24054> ___ ___ Python-bugs-list mailin

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread David Edelsohn
David Edelsohn added the comment: Also http://buildbot.python.org/all/builders/s390x%20Debian%203.x/builds/2/steps/test/logs/stdio http://buildbot.python.org/all/builders/s390x%20Debian%203.x/builds/2 Comments Issue #24054: decouple linecache tests from inspect tests Patch from David D

[issue24975] Python 3.5 can't compile AST involving PEP 448 unpacking

2015-08-31 Thread David Beazley
New submission from David Beazley: The compile() function is not able to compile an AST created from code that uses some of the new unpacking generalizations in PEP 448. Example: code = ''' a = { 'x'

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread David Unric
New submission from David Unric: Hello, it seems python interpreter improperly handles AttributeError exception raised in __getattr__ method, after called by unresolved attribute inside a property. Bellow is a simple Python2 example of a class which defines __getattr__ method and a property

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread David Unric
David Unric added the comment: Thanks for the comprehensive response. I did suspected the 2nd call is caused how it has been described in paragraph 4. And you are probably right. Only think exception instance raised in __getattr__ should not lead to its another call but propagated to outer

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread David Unric
David Unric added the comment: This looks a bit inconsistent. See following version with "manual" getter definition: class MyClass(object): def __init__(self, *args, **kwargs): # setting access to getter by attribute # without use of property decorator sel

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread David Unric
David Unric added the comment: Oops, this was the strict version. The lazy method call version behaves exactly like property getter. So there is probably no implementation bug, but not too well thought out decision design, making debugging AttributeError exceptions in properties difficult

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-05 Thread David Barnett
New submission from David Barnett: There doesn't seem to be any helper in pathlib to expand a relative path to an absolute path *without* resolving symlinks. For example, if I want to convert pathlib.Path('some/path') to pathlib.Path('/full/path/to/some/path') whe

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-07 Thread David Barnett
David Barnett added the comment: The idiom of pathlib.Path.cwd() / pathlib.Path('some/path') isn't too bad of an approach if it could just be mentioned in the docs. I would intuitively expected something like pathlib.Path('some/path').resolve(follow_symlinks=False

[issue25029] MemoryError in test_strptime

2015-09-08 Thread David Edelsohn
David Edelsohn added the comment: PPC64 is not a strict alignment system. The system is running a non-recent release of Fedora, so it could be a bad interaction with libc. -- ___ Python tracker <http://bugs.python.org/issue25

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-08 Thread David Barnett
David Barnett added the comment: Right, and to clarify a bit further why I didn't just use A.resolve() == B.resolve() from the beginning, this is in a unit test where the equality check wasn't in my code. I wanted to assert I received a certain call on my

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-08 Thread David Barnett
David Barnett added the comment: And the symlinks for my paths refer to really cryptic hashes in a virtual filesystem for the tests, so rendering them into the assertion failed errors would really make the failure messages hard to interpret

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-09-10 Thread David Fraser
David Fraser added the comment: Filed with pypa at https://github.com/pypa/pip/issues/3091 -- nosy: +davidfraser ___ Python tracker <http://bugs.python.org/issue21

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread David MacIver
New submission from David MacIver: The following code produces an OverflowError: import statistics statistics.mean([8.988465674311579e+307, 8.98846567431158e+307]) The error is: File "/home/david/.pyenv/versions/3.5.0/lib/python3.5/statistics.py", line 293, in mean return _s

[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-19 Thread David MacIver
David MacIver added the comment: I'm not sure what you mean by float having a limit here. It's certainly finite precision, but there is still a representable value with that finite precision closest to the mean. As an example where there is an obvious correct answer that will tr

[issue25187] bdist_rpm fails due to wrong hardcoded assumption about RPM filename format

2015-09-19 Thread David Ward
New submission from David Ward: bdist_rpm wrongly assumes a hard-coded format for the filename of the non-source RPM which is generated when it calls rpmbuild, specifically: "%{arch}/%{name}-%{version}-%{release}.%{arch}.rpm" The format used by rpmbuild is actually specified by the

[issue25276] test_decimal sometimes crash on PPC64 AIX 3.x

2015-10-01 Thread David Edelsohn
David Edelsohn added the comment: The system has 128GB of memory. The process limits are set to unlimited for data. AIX defaults to 32 bit, although all processors are 64 bit, so the buildbot runs as 32 bit. What does low free memory in the buildbot mean? I'm surprised that Python req

[issue25276] Intermittent segfaults on PPC64 AIX 3.x

2015-10-02 Thread David Edelsohn
David Edelsohn added the comment: As we have seen with similar issues on other targets, this likely is due to the random order of tests. In another case, the timezone was not being restored properly by GLIBC. Another test is leaving the process in a state that somehow evokes this failure

[issue25276] Intermittent segfaults on PPC64 AIX 3.x

2015-10-03 Thread David Edelsohn
David Edelsohn added the comment: Misc/README.AIX comments about XLC do not apply to GCC. One can adjust the memory space at normal link time with -Wl,-bmaxdata:0xN000. This trades off heap for shared memory segments. One does not need the extra ldedit stop, which stuffs the same value

[issue25344] Enhancement to Logging - Logging Stack

2015-10-08 Thread David Silverman
New submission from David Silverman: It would be useful to have the ability to push logs onto a stack. This way you can log events to the stack. If an error occurred, you could pop the stack and output the log events. If no error occurred, you could pop the stack and discard the logs. An

<    14   15   16   17   18   19   20   21   22   23   >