[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2015-10-18 Thread David Becher
New submission from David Becher: Since Python 3 removed unbound methods, I found some references using the old terminology in this HowTo about descriptors (https://docs.python.org/3/howto/descriptor.html). Also, since unbound methods have been removed, the function call types.MethodType now

[issue7322] Socket timeout can cause file-like readline() method to lose data

2015-10-25 Thread David Beazley
David Beazley added the comment: This bug is still present in Python 3.5, but it occurs if you attempt to do a readline() on a socket that's in non-blocking mode. In that case, you probably DO want to retry at a later time (unlike the timeout

[issue25476] close() behavior on non-blocking BufferedIO objects with sockets

2015-10-25 Thread David Beazley
New submission from David Beazley: First comment: In the I/O library, there is documented behavior for how things work in the presence of non-blocking I/O. For example, read/write methods returning None on raw file objects. Methods on BufferedIO instances raise a BlockingIOError for

[issue25476] close() behavior on non-blocking BufferedIO objects with sockets

2015-10-26 Thread David Beazley
David Beazley added the comment: Please don't make flush() close the file on a BlockingIOError. That would be an unfortunate mistake and make it impossible to implement non-blocking I/O correctly with buffered I/O. -- ___ Python tracker

[issue25511] multiprocessing pool blocks SIGTERM from being handled

2015-10-29 Thread David Jones
New submission from David Jones: This is probably related to #21913, but more specifically concerns the documentation. I have a sub process of a larger program that handles a SIGTERM sent by the main process for a clean shutdown. However, if I launch a parallel task in the sub process, via

[issue21748] glob.glob does not sort its results

2015-11-13 Thread David Jones
David Jones added the comment: The original bug report did not mention ls (note serhiy.storchaka). It is a red herring. I accept that the Python community doesn't care to have glob.glob sorted. But then I think you should distance yourself from the shell in the documentation. It curr

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2015-11-19 Thread David Bolen
New submission from David Bolen: It appears that the test host (sha256.tbs-internet.com) used by test_algorithms in test_ssl.py no longer exists. It was showing up as a certificate failure in the test because it ended up falling back to a resolv.conf search path which yielded a host that did

[issue25674] test_ssl (test_algorithms) failures on bolen-ubuntu slaves: sha256.tbs-internet.com unknown host

2015-11-19 Thread David Bolen
David Bolen added the comment: Ah, it appears that the transient_internet context manager in the test causes it to be skipped if the host is unknown. So mine was just "lucky" in that it fell back to connecting somewhere else. I've removed my resolver search path on bolen-ub

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2015-11-25 Thread David Seddon
New submission from David Seddon: The documentation for functools.total_ordering states that rich comparison can be enabled on a class by specifying an __eq__ method, and one of __lt__(), __le__(), __gt__(), or __ge__(). If these instructions are followed, this results in an incorrect

[issue25825] AIX shared library extension modules installation broken

2015-12-08 Thread David Edelsohn
New submission from David Edelsohn: AIX requires helper scripts to build Python shared extension modules. The definitions and Makefile installation rules have bitrotted. Makefile.pre.in: @if [ -s Programs/python.exp -a \ except python.exp is created in Modules/python.exp, not

[issue25825] AIX shared library extension modules installation broken

2015-12-08 Thread David Edelsohn
Changes by David Edelsohn : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue25825> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25826] imaplib can't process lines after starttls

2015-12-08 Thread David Wahlund
New submission from David Wahlund: File "C:\Python34\lib\imaplib.py", line 536, in login typ, dat = self._simple_command('LOGIN', user, self._quote(password)) File "C:\Python34\lib\imaplib.py", line 1141, in _simple_command return self._command_complete(n

[issue25826] imaplib can't process lines after starttls

2015-12-08 Thread David Wahlund
David Wahlund added the comment: Sorry, my bad... Using ImapClient that changed the socket to str. -- resolution: -> not a bug status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue25825] AIX shared library extension modules installation broken

2015-12-09 Thread David Edelsohn
David Edelsohn added the comment: $(prefix) and $(exec_prefix) result in the same path on AIX, so it does not matter in practice, although the semantics are different. # Install prefix for architecture-dependent files exec_prefix=${prefix} python.exp is not architecture dependent

[issue25843] lambdas on the same line may incorrectly share code objects

2015-12-13 Thread David MacIver
David MacIver added the comment: Note that 3.x does not correctly handle -0.0, you just have to work a bit harder: >>> (lambda: (-0.0, 0.0), lambda: (0.0, -0.0))[1]() (-0.0, 0.0) -- nosy: +David MacIver ___ Python tracker <http://bug

[issue26046] Typo

2016-01-07 Thread David Sterry
New submission from David Sterry: In https://docs.python.org/2/library/unittest.html#basic-example the word "details" should be "detail". -- assignee: docs@python components: Documentation messages: 257731 nosy: David Sterry, docs@python priority: normal severity:

[issue26054] Unable to run scripts: idle3 -r script.py

2016-01-08 Thread David Jackson
New submission from David Jackson: [Raspberry Jessie] Idle3(4.2] If I open a idle3 shell (from menu) and enter >>import pandas as pd it accepts the command, but if I trying and run it from the shell>> idle3 -r script.py I get the following errors: Traceback (most recent call l

[issue26054] Unable to run scripts: idle3 -r script.py

2016-01-08 Thread David Jackson
David Jackson added the comment: The problem was I had a pandas.py and a pandas.pyc in my home directory. after deleting them everything seems to be working. -- resolution: -> not a bug ___ Python tracker <http://bugs.python.org/issu

[issue26108] Calling PyInitialize with 2.7.11 on Windows x64 terminates process

2016-01-14 Thread David Heffernan
New submission from David Heffernan: Environment: - Python 2.7.11 from python.org, x64. - Windows 10 or Windows 8.1 - MSVC 2015 I compiled the most basic embedding example, taken from the Python docs: #include int main(int argc, char *argv[]) { Py_SetProgramName(argv[0]); /* optional

[issue26108] Calling PyInitialize with 2.7.11 on Windows x64 terminates process

2016-01-14 Thread David Heffernan
David Heffernan added the comment: Note that I've just listed the Windows versions on which I have tested this. I have not tested on Windows 7 or Vista so do not know whether or not the issue exists there. -- ___ Python tracker

[issue26108] Calling PyInitialize with 2.7.11 on Windows x64 terminates process

2016-01-14 Thread David Heffernan
David Heffernan added the comment: Thanks Eryk, everything you described happens exactly as you describe it. Much appreciated. As it happens, I'm not distributing Python because I want to give my users the flexibility to use whatever version they please, and with whatever third party mo

[issue26132] 2.7.11 Windows Installer issues on Win2008R2

2016-01-16 Thread David Rader
New submission from David Rader: Problem 1: The .manifest information for the VC runtime dll's has been changed in the recent versions of the 2.7.x 64-bit installers for Windows. Python fails to run on a clean Win2008R2 install after running the Python installer to install "Just fo

[issue26132] 2.7.11 Windows Installer issues on Win2008R2

2016-01-16 Thread David Rader
David Rader added the comment: FYI - as a work around problem 1, after the install I replaced the .manifest file and the VCRT.dll with the older non-SP1 versions and python ran. Then, to work around problem 2, I used resource hacker to manually delete the manifest from each file in the DLLs

[issue26108] Calling PyInitialize with 2.7.11 on Windows x64 terminates process

2016-01-21 Thread David Heffernan
David Heffernan added the comment: Why was this closed as "not a bug"? Shouldn't it have been closed as a duplicate? -- ___ Python tracker <http://bugs.pyt

[issue26108] Calling PyInitialize with 2.7.11 on Windows x64 terminates process

2016-01-27 Thread David Heffernan
David Heffernan added the comment: Thanks for following up Steve, and thanks for changing resolution to dupe. As for 3.5 and embedding the docs are much the same as 2.7 in that the example code at https://docs.python.org/3/extending/embedding.html doesn't explicitly set Python home. A

[issue26232] Mock(spec=spec) has no effect

2016-01-28 Thread David Szotten
New submission from David Szotten: Unless i misunderstand the docs, i would expect `Mock(foo)` to have the same effect as `create_autospec(foo)`, but that doesn't appear to be the case: >>> m1 = mock.Mock(spec=lambda: None) >>> m2 = mock.create_autospec(spec=lambda: No

[issue26232] Mock(spec=spec) has no effect

2016-01-28 Thread David Szotten
David Szotten added the comment: thanks, and apologies for the noise -- ___ Python tracker <http://bugs.python.org/issue26232> ___ ___ Python-bugs-list mailin

[issue26265] errors during static build on OSX

2016-02-02 Thread David Beck
New submission from David Beck: I'm working on an iMac (27" mid 2010) running OSX 10.11.3. I'm trying to build Python3.5.0 for use with pyqtdeploy. If I build python without specifying "--enable-universalsdk", I get multiple warnings "clang: warn

[issue26265] errors during static build on OSX

2016-02-02 Thread David Beck
David Beck added the comment: Thanks, I’ve done that (a couple of times). I posted this not so much because of my problems with PyQt, but because the output of the Python build when I used those two options asked me to report this as a bug. cheers, David > On Feb 2, 2016, at 9:27 AM,

[issue26378] Typo in regex documentation

2016-02-17 Thread David Rager
New submission from David Rager: In the following sentence, "few" should probably be "fewer." "Repetitions such as * are greedy; when repeating a RE, the matching engine will try to repeat it as many times as possible. If later portions of the pattern don’t match,

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-02-28 Thread David Edelsohn
David Edelsohn added the comment: ctypes util.py "simply" needs support for AIX. There already is special support for Windows, Darwin, BSDs, Solaris. Is the question about the technical details for equivalent functionality on AIX or about adding a stanza to Lib/ctpy

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-02-29 Thread David Edelsohn
David Edelsohn added the comment: AIX traditionally used member names like shr.o or shr.o or shr.o insider the archive, with _64 designating a 64 bit object when there is a naming collision. GNU libtool defaults to the SO name and version number insider the archive. AIX objects (and shared

[issue26466] cannot build python 2.7.11 on AIX

2016-03-01 Thread David Edelsohn
David Edelsohn added the comment: Don't use XLC. It may relate to using -Wl option, which is a GCC option. -- ___ Python tracker <http://bugs.python.org/is

[issue26466] cannot build python 2.7.11 on AIX

2016-03-01 Thread David Edelsohn
David Edelsohn added the comment: Something is building libpython2.7.a incorrectly or the python.exp script is not functioning correctly. ld: 0711-596 SEVERE ERROR: Object libpython2.7.a[ceval.o] An RLD for section 2 (.data) refers to symbol 0, but the storage class of the

[issue26466] cannot build python 2.7.11 on AIX

2016-03-01 Thread David Edelsohn
David Edelsohn added the comment: It's not symbol with value 0, it's symbol number 0. You can list the symbols with the AIX "dump -t" command. -- ___ Python tracker <http://bug

[issue26559] logging.handlers.MemoryHandler flushes on shutdown but not removal

2016-03-14 Thread David Escott
New submission from David Escott: The documentation suggests using a MemoryHandler object to buffer log messages and conditionally output them. https://docs.python.org/3/howto/logging-cookbook.html#buffering-logging-messages-and-outputting-them-conditionally However the documentation does not

[issue26575] lambda not closed on specific value in comprehension

2016-03-20 Thread David Goffredo
New submission from David Goffredo: A series of lambdas referring to a variable in a comprehension do not hold distinct values, while conventional higher order function do. PS C:\Users\David\Desktop> python Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AM

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2016-03-29 Thread David Bolen
David Bolen added the comment: I'm including some comments here from an email thread I had with Victor about this issue on the Win8 buildbot, which led to his recent changeset 2b25fa7e3b7a. The Win8 3.x failure (the 5 != 4 length error) was due to the revision of os._DummyDirEntry (intro

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

2016-04-10 Thread David Ward
David Ward added the comment: Ping to review patch please... -- ___ Python tracker <http://bugs.python.org/issue25187> ___ ___ Python-bugs-list mailing list Unsub

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

2016-04-11 Thread David Ward
David Ward added the comment: Please review this revised patch. Thank you. -- Added file: http://bugs.python.org/file42432/python-bdist_rpm-evaluate-_rpmfilename.patch ___ Python tracker <http://bugs.python.org/issue25

[issue25627] distutils : file "bdist_rpm.py" does not quote filenames when executing the rpm command

2016-04-11 Thread David Ward
David Ward added the comment: This revised patch has a small change so that the subprocess output is decoded from a byte sequence to a string, which is necessary when running this under Python 3. With this change, this worked for me on Fedora 23 with Python 3.4.3. It also worked on Fedora 23

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

2016-04-11 Thread David Ward
David Ward added the comment: Thanks again for your feedback. I revised this patch as requested to conform to changes also being made in issue 25627. Please review this new patch. I tested this successfully under both Python 3.4.3 and Python 2.7.11 on Fedora 23. Note that "import subpr

[issue26751] Possible bug in sorting algorithm

2016-04-13 Thread David Manowitz
New submission from David Manowitz: I'm trying to sort a list of tuples. Most of the tuples are pairs of US state names. However, some of the tuples have None instead of the 2nd name. I want the items sorted first by the 1st element, and then by the 2nd element, BUT I want the No

[issue26601] Use new madvise()'s MADV_FREE on the private heap

2016-04-21 Thread David Wilson
David Wilson added the comment: @Julian note that ARENA_SIZE is double the threshold after which at least glibc resorts to calling mmap directly, so using malloc in place of mmap on at least Linux would have zero effect -- nosy: +dw ___ Python

[issue26601] Use new madvise()'s MADV_FREE on the private heap

2016-04-21 Thread David Wilson
David Wilson added the comment: It defaults to 128kb, and messing with global state like the system allocator is a fine way to tempt regressions in third party code -- ___ Python tracker <http://bugs.python.org/issue26

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-04-27 Thread David Edelsohn
David Edelsohn added the comment: The most recent patch seems to follow AIX semantics correctly. -- ___ Python tracker <http://bugs.python.org/issue26439> ___ ___

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

2016-05-13 Thread David Coles
David Coles added the comment: Since I reported this, I haven't seen any proposed solutions other other than a retry loop to ensure that the lock is guaranteed to be reacquired when the sleeping coroutine is woken. The four possibilities of cancelling the waiting coroutine are: 1. B

[issue27019] Reduce marshal stack depth for 2.7 on Windows debug build

2016-05-14 Thread David Bolen
New submission from David Bolen: I'd like to propose backporting the change in issue 22734 to the 2.7 branch. The marshal recursion depth appears to be at the root of the failures of the Windows 8 and 10 buildbots in test_marshal on that branch, which is still using a depth of 2000. Th

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

2016-05-14 Thread David Coles
David Coles added the comment: Hi Yury, Sure - I'll create a PR along with a test that reproduces the issue. Should be able to get that done this weekend. -- ___ Python tracker <http://bugs.python.org/is

[issue27037] Universal newline support for zipFile.ZipExtFile.read() is not working (deprecated?), and the missing functionality not documented

2016-05-16 Thread David Pitchford
New submission from David Pitchford: Universal newline support for the read method of ZipFileExt objects created by calling the ZipFile.open method is not working. The attached archive contains a test script for demonstrating the behavior; unzip the files into the same directory and run the

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

2016-05-16 Thread David Coles
David Coles added the comment: Please find the PR including a test to reproduce the issue here: https://github.com/python/asyncio/pull/346 -- ___ Python tracker <http://bugs.python.org/issue22

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread Valentin David
New submission from Valentin David: The attached script hangs while using 100% on Python 3.5.1 but not on Python 3.4.3. Tested both on Gentoo Linux and Ubuntu Linux. The loop seems to be in PyErr_SetObject in a loop that recursively go through PyException_GetContext. subprocess.Popen seems

[issue23314] Disabling CRT asserts in debug build

2015-02-26 Thread David Bolen
Changes by David Bolen : -- nosy: +db3l ___ Python tracker <http://bugs.python.org/issue23314> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22003] BytesIO copy-on-write

2015-03-04 Thread David Wilson
David Wilson added the comment: Hi Piotr, There wasn't an obvious fix that didn't involve changing the buffer interface itself. There is presently ambiguity in the interface regarding the difference between a "read only" buffer and an "immutable" buffer, which i

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-09 Thread David Linke
Changes by David Linke : -- nosy: +dalito ___ Python tracker <http://bugs.python.org/issue23623> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-03-10 Thread David Linke
David Linke added the comment: Besides clarifying documentation, it may be helpful to provide a script that (temporarily) sets the path to pythonX and pythonX/scripts. A batch cmd script that does that and also changes the default Python for the launcher is here: https://gist.github.com

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-11 Thread David Beazley
New submission from David Beazley: I have been investigating some of the new importlib machinery and the addition of ModuleSpec objects. I am a little curious about the intended handling of C Extension modules going forward. Backing up for a moment, consider a pure Python module. It seems

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-11 Thread David Beazley
David Beazley added the comment: inal comment. It seems that one can generally avoid a lot of nastiness if importlib.reload() is used instead. For example: >>> mod = sys.modules[spec.name] = module_from_spec(spec) >>> importlib.reload(mod) This works for both source and

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-11 Thread David Beazley
David Beazley added the comment: Sorry. I take back the previous message. It still doesn't quite do what I want. Anyways, any insight or thoughts about this would be appreciated ;-). -- ___ Python tracker <http://bugs.python.org/is

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-12 Thread David Beazley
David Beazley added the comment: Note: Might be related to Issue 19713. -- ___ Python tracker <http://bugs.python.org/issue23642> ___ ___ Python-bugs-list mailin

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-12 Thread David Beazley
David Beazley added the comment: This is great news. Read the PEP draft and think this is a very good thing to be addressing. Thanks, Brett. -- ___ Python tracker <http://bugs.python.org/issue23

[issue23663] Crash on failure in ctypes on Cygwin

2015-03-14 Thread David Macek
New submission from David Macek: Two Cygwin-specific sections in `Modules/_ctypes/_ctypes.c` cause a crash due to bad call to `PyErr_Format`. I'm not sure if there's one extra format specifier, or one argument is missing. Patches assuming the former case for v2.7 and v3.3: https://

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-03-24 Thread David MacIver
New submission from David MacIver: Converting a list to a tuple appears to have an optimisation that is wrong in the presence of subclassing to override __iter__. It ignores the user defined iter and uses the normal list one. I've attached a file with a test case to demonstrate this.

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-03-24 Thread David MacIver
David MacIver added the comment: Ah, I hadn't seen that. Thanks for the link. But... is it really? They have basically the same root cause, but the general problem seems to be hard to fix, while the specific problem here seems to be basically "don't use the concrete API here be

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-03-24 Thread David MacIver
David MacIver added the comment: So as a data point, this problem seems to be unique to tuple. set(x), list(x), tuple(iter(x)) all seem to work as expected and respect the overridden __iter__ (set and list were both included in the test case I attached to demonstrated this, iter I just

[issue23784] Reloading tokenize module leads to error

2015-03-26 Thread David Marks
New submission from David Marks: On 432 in tokenize.py there is an assignment _builtin_open = open Followed in 434 with a redefinition of open def open(filename): If the module is reloaded, _builtin_open gets reassigned to the new function and subsequent calls to _builtin_open fail

[issue23663] Crash on failure in ctypes on Cygwin

2015-03-26 Thread David Macek
David Macek added the comment: Yeah, looks like exactly the same issue. Sorry for the duplicate. -- ___ Python tracker <http://bugs.python.org/issue23663> ___ ___

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

2015-04-08 Thread David Coles
David Coles added the comment: This issue can still be reproduced on Python 3.5.0a1. (Triggers a "RuntimeError: Lock is not acquired" on cond.release()) Please let me know if there's any further steps you'd like me to take here. -- v

[issue23916] module importing performance regression

2015-04-11 Thread David Roundy
New submission from David Roundy: I have observed a performance regression in module importing. In python 3.4.2, importing a module from the current directory (where the script is located) causes the entire directory to be read. When there are many files in this directory, this can cause

[issue23916] module importing performance regression

2015-04-11 Thread David Roundy
David Roundy added the comment: I had suspected that might be the case. At this point mostly it's just a test case where I generated a lot of files to demonstrate the issue. In my test case hello world with one module import takes a minute and 40 seconds. I could make it take longer, of c

[issue23916] module importing performance regression

2015-04-11 Thread David Roundy
David Roundy added the comment: My tests involved 8 million files on an ext4 file system. I expect that accounts for the difference. It's true that it's an excessive number of files, and maybe the best option is to ignore the problem. On Sat, Apr 11, 2015 at 2:52 PM Antoine Pit

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-16 Thread David Watson
David Watson added the comment: Sending multiple control messages at once isn't Linux-specific - the tests in question passed on FreeBSD. -- ___ Python tracker <http://bugs.python.org/is

[issue22397] test_socket failure on AIX

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

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2015-04-16 Thread David Watson
David Watson added the comment: In this test (and nearby ones), the receiver provides too little space to receive the file descriptors that are sent, so that the control message has to be truncated if it is to be received at all. The warning may indicate that the cmsghdr struct received

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2015-05-05 Thread David Watson
David Watson added the comment: I've rebased the patches onto all the currently released branches, but since there are now so many variations required, I've bundled the pass-unterminated and test patches into a single set (enable-unterminated-*), and the return-unterminated a

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2015-05-06 Thread David Watson
David Watson added the comment: Attaching patches for 3.5. -- Added file: http://bugs.python.org/file39309/enable-unterminated-3.5-2015-05-06.diff Added file: http://bugs.python.org/file39310/fix-overrun-3.5-2015-05-06.diff ___ Python tracker <h

[issue24241] webbrowser (very often) doesn't support the 'new' parameter

2015-05-19 Thread David Steele
New submission from David Steele: When calling webbrowser.open*(), the module goes through a list of installed browsers, and uses the first one that succeeds, to process the request. The first 'browsers' in the 'X' list are 'xdg-open' and others of that ilk. The

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

2015-05-19 Thread David Steele
David Steele added the comment: On Tue, May 19, 2015 at 10:19 AM, R. David Murray wrote: ... > Would you like to propose a patch? My preferred solution would be a bit intrusive - check for and use xdg-settings or gi.repository.Gio to identify the default browser, and match the result agai

[issue27954] makesetup does not take into account subdirectories

2016-09-04 Thread David D
New submission from David D: https://hg.python.org/cpython/file/tip/Modules/makesetup#l202 If I try to create a built-in module with a source file named exactly as another source file that already exists in a different module, the script generates the same output path for the object files

[issue25825] AIX shared library extension modules installation broken

2016-09-04 Thread David Edelsohn
David Edelsohn added the comment: I believe that everything is functioning correctly. -- ___ Python tracker <http://bugs.python.org/issue25825> ___ ___ Python-bug

[issue27575] dict viewkeys intersection slow for large dicts

2016-09-06 Thread David Su
David Su added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue27575> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue28039] x86 Tiger buildbot needs __future__ with_statement

2016-09-09 Thread David Bolen
David Bolen added the comment: It's been on the cusp of shutdown a few times now, but tweaks to maintain compatibility for the occasional issue always seem to materialize (thanks to Ned in many cases). To Ned's question, the slave is currently operating under 2.5.1 which I must h

[issue28039] x86 Tiger buildbot needs __future__ with_statement

2016-09-09 Thread David Bolen
David Bolen added the comment: I've bumped the tiger default python to 2.7.12 and updated hg to use it (bumping to 3.9.1 in the process). It appears to have fixed the current touch and compile errors. I've restarted builds for the most recent commits. The need for a tiger slave i

[issue28299] DirEntry.is_dir() evaluates True for a file on Windows

2016-09-28 Thread David Staab
New submission from David Staab: I'm using Python 3.5.2 on Windows 10 Pro to run the following code with the attached file structure. The test code is: from os import DirEntry, scandir def test_is_dir(): for item in os.scandir(TEST_DIR): if item.is_dir: print(item

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-09-30 Thread David Edelsohn
David Edelsohn added the comment: Michael, Are you suggesting to move the code fragment *AND* revert or change the reversal of LDSHARED? The Python code seems to be setting and reversing the value in multiple places. This also relates to Issue25825. Repeatedly flipping this around is not

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-09-30 Thread David Edelsohn
David Edelsohn added the comment: Michael Felt, The patch was from Michael Haubenwallner. I was addressing Michael Haubenwallner. -- ___ Python tracker <http://bugs.python.org/issue18

[issue28419] List comprehension in class scope does not have access to class scope

2016-10-11 Thread David Eyk
New submission from David Eyk: I've discovered what appears to be a scoping bug in Python 3.5.1, where the class scope is not available inside a list comprehension defined in the class scope. Attached is a simple example script, also available at the following gist: https://gist.githu

[issue28419] List comprehension in class scope does not have access to class scope

2016-10-11 Thread David Eyk
David Eyk added the comment: Thanks for the pointer. That seems weird and arbitrary when you think of it in terms of scope, but what can you do? All the same, thanks for the quick response. :) -- ___ Python tracker <http://bugs.python.

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2016-10-21 Thread David MacKenzie
David MacKenzie added the comment: This issue seems to overlap with 14119. -- ___ Python tracker <http://bugs.python.org/issue24882> ___ ___ Python-bugs-list m

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2016-10-21 Thread David MacKenzie
David MacKenzie added the comment: If each worker thread ties up other resources in an application, such as handles to server connections, conserving threads could have a significant impact. That's the situation for an application I am involved with. I've written and tested a pat

[issue28557] error message for bad raw readinto

2016-10-29 Thread David Szotten
New submission from David Szotten: Was just tracking down a bug in eventlet, which manifested as "OSError: raw readinto() returned invalid length -1 (should have been between 0 and 8192)" I was misled for a while by the fact that readinto was in fact returning b'', not -

[issue28708] Low FD_SETSIZE limit on Windows

2016-11-15 Thread David Hirschfeld
New submission from David Hirschfeld: Back in 1999 the compile-time constant FD_SETSIZE was raised from (the default on Windows) 64 to 512 open sockets to support *serious async servers* http://bugs.python.org/issue210843 https://github.com/python/cpython/blame/master/Modules/selectmodule.c

[issue46071] Graphlib documentation

2021-12-14 Thread David Mc Dougall
New submission from David Mc Dougall : The documentation for graphlib encourages users to represent their graphs in a awkward format. Graphs are currently represented using dictionaries of nodes, for example: graph["end_node"] = ["start_node"] And this is unintuitive b

[issue46071] Graphlib documentation

2021-12-21 Thread David Mc Dougall
Change by David Mc Dougall : -- pull_requests: +28446 pull_request: https://github.com/python/cpython/pull/30223 ___ Python tracker <https://bugs.python.org/issue46

[issue46071] Graphlib documentation (edge direction)

2021-12-30 Thread David Mc Dougall
Change by David Mc Dougall : -- title: Graphlib documentation -> Graphlib documentation (edge direction) ___ Python tracker <https://bugs.python.org/issu

[issue46204] Graphlib documentation (general cleanup)

2021-12-30 Thread David Mc Dougall
New submission from David Mc Dougall : The graphlib documentation has some grammar & phrasing issues. -- components: Library (Lib) messages: 409370 nosy: dam1784 priority: normal severity: normal status: open title: Graphlib documentation (general cleanup) type: enhancement vers

[issue46204] Graphlib documentation (general cleanup)

2021-12-30 Thread David Mc Dougall
Change by David Mc Dougall : -- keywords: +patch pull_requests: +28515 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30269 ___ Python tracker <https://bugs.python.org/issu

[issue12756] datetime.datetime.utcnow should return a UTC timestamp

2022-01-10 Thread R. David Murray
R. David Murray added the comment: Note also that datetime.now() gives you a naive datetime. From an API consistency standpoint I think it makes sense that datetime.utcnow() gives a naive datetime. It would actually be confusing (IMO) for it to return an aware datetime. I can see why you

[issue46392] MessageIDHeader is too strict for message-id

2022-01-17 Thread R. David Murray
R. David Murray added the comment: Note that the parser does attempt to accept obsolete syntax (registering defects for it), so if there is a bug in the implementation of the obsolete syntax handling it should be fixed. And yes, there have been other bugs with whitespace handling in the

[issue46392] MessageIDHeader is too strict for message-id

2022-01-18 Thread R. David Murray
R. David Murray added the comment: The general idea is that the string version of the header should contain all of the original information, but the parsed elements (the things returned by special header attributes) will contain the valid data, if any. So if the string version of the

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