[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2013-03-25 Thread Kevin Barry
Kevin Barry added the comment: emmanuel, The Python interpreter isn't reentrant, so you could only run two interactive sessions connected to the same Python environment if you implemented your own REPL function that unlocked the GIL when waiting for input, then lock it just long enou

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-09 Thread Kevin Keating
New submission from Kevin Keating: On Windows, os.path.abspath() treats None as if it were an empty string, so os.path.abspath(None) returns the current working directory. On Linux, os.path.abspath(None) raises an AttributeError. With macpath, abspath(None) raises a TypeError. I've

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-09 Thread Kevin Keating
Kevin Keating added the comment: I just realized that even the behavior of ntpath.abspath() is inconsistent across platforms. On Windows, ntpath.abspath(None) returns the current working directory. On other OSs, ntpath.abspath(None) raises a TypeError. There are two different abspath

[issue22587] os.path.abspath(None) behavior is inconsistent between platforms

2014-10-10 Thread Kevin Keating
Kevin Keating added the comment: I agree that None is an unwise value to pass in. Of the four different abspath implementations, though, one will treat None (or any falsey value) as an empty string, while the other three will raise an exception unless passed an actual str or bytes object. I

[issue22884] argparse.FileType.__call__ returns unwrapped sys.stdin and stdout

2014-11-16 Thread Kevin Orr
New submission from Kevin Orr: When one uses a file object returned by `FileType.__call__` as a context manager, `sys.stdin`'s or `sys.stdout`'s `__exit__` will be triggered upon exit of the context, in turn calling their `close` method. Perhaps the issue is that `sys.stdin` and `

[issue22884] argparse.FileType.__call__ returns unwrapped sys.stdin and stdout

2014-11-16 Thread Kevin Orr
Kevin Orr added the comment: Hmm, not sure why I thought I needed `inline code formatting`. It's all monospace anyway! Anyway, I'm thinking that adding this somewhere in argparse.py: class _WrappedIO(object): def __init__(self, fileobj): self._file = fileobj def _

[issue22889] set a timeout for DNS lookups

2014-11-16 Thread Kevin Burke
New submission from Kevin Burke: It would be nice to be able to set a timeout for DNS lookups in the event of a DNS server failure. 1. Set your DNS to something like 123.123.123.123 or any other host that is not listening for DNS queries on port 53. 2. Run requests.get('http://jsoni

[issue22889] set a timeout for DNS lookups

2014-11-17 Thread Kevin Burke
Kevin Burke added the comment: Hi, You are correct, there's no way to set it in the C API. Go works around this by resolving addresses in a goroutine. I was wondering if something similar would be possible in Python (for people who set a timeout in the inte

[issue22916] Interpreter segfault on attempted tab complete

2014-11-22 Thread Kevin Smith
New submission from Kevin Smith: I am getting a segmentation fault in the interpreter when trying to tab complete options for a module. I am running python 3.4.2 on Arch Linux. Python 3.4.2 (default, Oct 8 2014, 13:44:52) [GCC 4.9.1 20140903 (prerelease)] on linux Type "help",

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2014-12-18 Thread Kevin Benton
New submission from Kevin Benton: If one of the mock.patch methods is used with autospec=True on a staticmethod in an object, the mock library determines that it is not callable by checking for the __call__ attribute. This results in a NonCallableMagicMock being returned which of course dies

[issue23308] a bug in Instructions section 4.1

2015-01-24 Thread Kevin Dwyer
Kevin Dwyer added the comment: @Dmot Can you be more specific about the problem? A link to the instructions that you are following and a verbatim copy of any error message that you see would help to identify what's going wrong. -- nosy: +k

[issue23436] xml.dom.minidom.Element.ownerDocument is hiden

2015-02-10 Thread Kevin Rocard
New submission from Kevin Rocard: Extracted from xml.dom.minidom: ~~~ Node(...): ... ownerDocument = None ... Element(Node): __slots__=('ownerDocument', ...) ... ~~~ As Element declares an ownerDocument attribute in __slots__, Node's ownerDocument attr

[issue7406] int arithmetic relies on C signed overflow behaviour

2015-06-24 Thread Kevin Shweh
Kevin Shweh added the comment: It looks like the fast paths for INPLACE_ADD and INPLACE_SUBTRACT in Python 2 don't have the cast-to-unsigned fix, so they're still relying on undefined behavior. For example, in INPLACE_ADD: /* INLINE: int + int */ reg

[issue24132] Direct sub-classing of pathlib.Path

2015-06-30 Thread Kevin Norris
Kevin Norris added the comment: If I were designing pathlib from scratch, I would not have a separate Path class. I would instead do something like this: In pathlib.py: if os.name == 'nt': Path = WindowsPath else: Path = PosixPath Alternatively, Path()

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-07-05 Thread Kevin Walzer
Kevin Walzer added the comment: Where in the IDLE source code tree is this code housed? Is it possible to provide a Python script that reproduces the issue? -- ___ Python tracker <http://bugs.python.org/issue24

[issue24651] Mock.assert* API is in user namespace

2015-07-21 Thread Kevin Benton
Kevin Benton added the comment: What about other methods/properties like called, call_count, and reset_mock? It seems that they should be removed as well to be consistent with the reason for this change. -- nosy: +kevinbenton ___ Python tracker

[issue24731] Incorrect assert in str_subtype_new

2015-07-26 Thread Kevin Modzelewski
New submission from Kevin Modzelewski: (Using python 3 terminology) str_subtype_new is the function that creates instances of any subtypes of bytes (ie is called by bytes_new if the requested type is not PyBytes_Type -- looks like this function's name comes from python 2). Its approa

[issue24651] Mock.assert* API is in user namespace

2015-07-28 Thread Kevin Benton
Kevin Benton added the comment: I like the idea of having the new module functions without deprecating the old ones. Then projects can encourage use of the API on their own terms. Maybe there could even be a global that projects could set that would disable the object methods

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-08-12 Thread Kevin Walzer
Kevin Walzer added the comment: I experimented with Mark's sample code (thanks for that, BTW), and found that the window with the "help" tag applied would display with this simple addition: raise .t I believe the equivalent call in Tinter is lift(), because raise() is for

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2015-08-28 Thread Palm Kevin
Palm Kevin added the comment: The problem seems still not resolved in Python 3.2.6 :-( The reason has been found by Debao (msg144244). Isn't there anybody motivated to fix this bug? -- title: Can't call Py_SetPath() on pointer returned by Py_GetPath() -> Usage of API meth

[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2015-08-30 Thread Palm Kevin
Palm Kevin added the comment: @ncoghlan: Not PySys_SetPath, but Py_SetPath is causing the problem (you mentionned PySys_SetPath in your message msg249311) I discovered PySys_SetPath only last Friday. In fact, in my case, the usage of PySys_SetPath (after Py_Initialize) instead of Py_SetPath

[issue25116] It failed to install Py3.5 on win2008R2

2015-09-14 Thread Kevin Zhang
New submission from Kevin Zhang: OS: Windows Server 2008 R2 Enterprise I'm remote desktop to the server and try to install Python3.5 released version. Remote desktop user/privilege: administrator There is no window about installation pop up after I double clicked python-3.5.0.exe. I

[issue25116] It failed to install Py3.5 on win2008R2

2015-09-14 Thread Kevin Zhang
Kevin Zhang added the comment: I have installed Python2.7 and Python3.4 on this server before. Python3.4 installation works well after I failed to executed python-3.5.0.exe. Thanks again. -- ___ Python tracker <http://bugs.python.org/issue25

[issue22919] Update PCBuild for VS 2015

2015-11-06 Thread Kevin Phillips
Kevin Phillips added the comment: This change has the adverse side effect of requiring users of Python 3.5 to use the Visual Studio 2015 runtime library. Further, as is documented on Microsoft's website, the minimum system requirements for installing and running this runtime is Windows

[issue24731] Incorrect assert in str_subtype_new

2015-12-01 Thread Kevin Modzelewski
Kevin Modzelewski added the comment: Awesome, thanks! -- ___ Python tracker <http://bugs.python.org/issue24731> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2015-12-11 Thread Kevin Shweh
Kevin Shweh added the comment: A type-based check runs into problems with 0.0 vs -0.0. For example, on Python 2.7.11: >>> x, y = lambda: 0.0, lambda: -0.0 >>> y() 0.0 I wasn't able to reproduce the -0.0 problem with Python 3.4 on Ideone; y.__code__.co_consts seems to h

[issue26160] Tutorial incorrectly claims that (explicit) relative imports don't work in the main module

2016-01-19 Thread Kevin Norris
New submission from Kevin Norris: The tutorial contains this statement: Note that relative imports are based on the name of the current module. Since the name of the main module is always "__main__", modules intended for use as the main module of a Python application must always us

[issue26160] Tutorial incorrectly claims that (explicit) relative imports don't work in the main module

2016-01-23 Thread Kevin Norris
Kevin Norris added the comment: >It could be misleading saying “the name of the current package”, because the >import could be relative to the a higher level parent package if more than one >dot is specified. While this is correct, Python still uses __package__ to determine what to

[issue26222] Missing code in linux_distribution python 2.7.11

2016-01-28 Thread Kevin Dwyer
Kevin Dwyer added the comment: The quoted code doesn't exist in 2.7.10 (https://hg.python.org/cpython/file/v2.7.10/Lib/platform.py) It looks like it's from a patch applied by Debian themselves: see http://sources.debian.net/src/python2.7/2.7.11-3/debian/patches/platform-lsbrelease.d

[issue26222] Missing code in linux_distribution python 2.7.11

2016-01-28 Thread Kevin Dwyer
Changes by Kevin Dwyer : -- type: performance -> behavior ___ Python tracker <http://bugs.python.org/issue26222> ___ ___ Python-bugs-list mailing list Un

[issue26326] Named entity "vertical line" missed in 2.7 htmlentitydefs.py

2016-02-10 Thread Kevin Dwyer
Kevin Dwyer added the comment: The docs describe the entitydefs mapping as "A dictionary mapping XHTML 1.0 entity definitions to their replacement text in ISO Latin-1". Neither 'vbar' nor 'vline' seem to be part of the xhtml entity definitions (https://www.w3.

[issue26659] slice() leaks memory when part of a cycle

2016-03-28 Thread Kevin Modzelewski
New submission from Kevin Modzelewski: The slice type doesn't participate in GC, which means that if you happen to create a cycle involving a slice, that cycle will never get freed. Here's an example: def f(): l = [] l.append(slice(l)) # Will consume memory without bound:

[issue26718] super.__init__ leaks memory if called multiple times

2016-04-08 Thread Kevin Modzelewski
New submission from Kevin Modzelewski: The super() __init__ function fills in the fields of a super object without checking if they were already set. If someone happens to call __init__ again, the previously-set references will end up getting forgotten and leak memory. For example: import

[issue26732] multiprocessing sentinel resource leak

2016-04-10 Thread Kevin Quick
New submission from Kevin Quick: The sentinel creates a named pipe, but the parent's end of the pipe is inherited by subsequently created children. import multiprocessing,signal,sys def sproc(x): signal.pause() for each in range(int(sys.argv[1])): multiprocessing.Process(target=sproc,

[issue26732] multiprocessing sentinel resource leak

2016-04-10 Thread Kevin Quick
Kevin Quick added the comment: (Sorry, an unnamed pipe, but a pipe nonetheless.) -- ___ Python tracker <http://bugs.python.org/issue26732> ___ ___ Python-bug

[issue17408] second python execution fails when embedding

2016-05-19 Thread Palm Kevin
Changes by Palm Kevin : -- nosy: +palm.kevin ___ Python tracker <http://bugs.python.org/issue17408> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28383] __hash__ documentation recommends naive XOR to combine but this is suboptimal

2016-10-06 Thread Kevin Norris
New submission from Kevin Norris: The documentation for __hash__ contains this text: "The only required property is that objects which compare equal have the same hash value; it is advised to somehow mix together (e.g. using exclusive or) the hash values for the components of the object

[issue28671] SSL server requesting client certificates should send CA list

2016-11-11 Thread Kevin Chen
New submission from Kevin Chen: When a Python HTTPS server requests client certificates, it should send a CA list so the client knows which certificates are acceptable. It looks like right now Python calls SSL_CTX_load_verify_locations, so once the client certificate is sent, Python can

[issue3801] cgi.parse_qsl does not return list

2008-09-07 Thread Kevin M. Turner
New submission from Kevin M. Turner <[EMAIL PROTECTED]>: This is a regression from 2.5 that causes our test suite to fail in 2.6. Looks like a cut-and-paste bug. Patch attached. -- components: Library (Lib) files: cgi_parse_qsl.diff keywords: patch messages: 72755 nosy: aca

[issue4543] container constructors destroy argument

2008-12-04 Thread Kevin J. Woolley
New submission from Kevin J. Woolley <[EMAIL PROTECTED]>: Doing the following (more info than necessary in case I'm doing something weird): def odd(n): return n % 2 x = (1, 2, 3, 4, 5) y = filter(odd, x) list(y) list(y) Will correctly build a list from y and return [1, 3, 5] o

[issue18714] Add tests for pdb.find_function

2013-08-12 Thread Kevin Jing Qiu
New submission from Kevin Jing Qiu: PyConCA 2013 sprint task -- components: Tests messages: 194986 nosy: Kevin.Jing.Qiu priority: normal severity: normal status: open title: Add tests for pdb.find_function type: enhancement versions: Python 3.5

[issue18714] Add tests for pdb.find_function

2013-08-12 Thread Kevin Jing Qiu
Changes by Kevin Jing Qiu : -- keywords: +patch Added file: http://bugs.python.org/file31251/mywork.patch ___ Python tracker <http://bugs.python.org/issue18

[issue15128] inspect raises exception when frames are misleading about source line numbers

2012-06-21 Thread Kevin M. Turner
New submission from Kevin M. Turner : The attached example shows how inspect.findsource fails when given a stack frame that points to a non-existent source line, and how inspect.getframeinfo and getinnerframes do not handle that failure. On the one hand, yes, this code was asking for it by

[issue15128] inspect raises exception when frames are misleading about source line numbers

2012-06-21 Thread Kevin M. Turner
Kevin M. Turner added the comment: patch attached (against python 2.7 tip) -- keywords: +patch Added file: http://bugs.python.org/file26077/15128-inspect-source-linenum.diff ___ Python tracker <http://bugs.python.org/issue15

[issue22343] Install bash activate script on Windows when using venv

2014-09-05 Thread Kevin Christopher Henry
New submission from Kevin Christopher Henry: When I use venv to create a new virtual environment in Windows I'm given two activate scripts, a .bat file and a .ps1 file (which is consistent with the documentation). However, bash (and probably the other shells as well) works just fi

[issue19111] 2to3 should remove from future_builtins import *

2014-09-21 Thread Kevin Christopher Henry
Kevin Christopher Henry added the comment: I'm interested in working on this, but it's not clear to me if this has been accepted as a bug. I converted a large project recently and was shocked to find that all 100+ files were broken because of the needless "from future_bu

[issue19352] unittest loader barfs on symlinks

2014-02-06 Thread Kevin M. Turner
Changes by Kevin M. Turner : -- nosy: +acapnotic ___ Python tracker <http://bugs.python.org/issue19352> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22343] Install bash activate script on Windows when using venv

2017-01-11 Thread Kevin Christopher Henry
Kevin Christopher Henry added the comment: I can confirm that LF endings work fine on Cygwin, and it's hard to imagine any bash implementation not handling that properly. -- ___ Python tracker <http://bugs.python.org/is

[issue23112] SimpleHTTPServer/http.server adds trailing slash after query string

2014-12-26 Thread Kevin J Pallan
Changes by Kevin J Pallan : -- nosy: +artifex93 ___ Python tracker <http://bugs.python.org/issue23112> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19777] Provide a home() classmethod on Path objects

2015-01-01 Thread Kevin J Pallan
Changes by Kevin J Pallan : -- nosy: +artifex93 ___ Python tracker <http://bugs.python.org/issue19777> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24572] IDLE Text Output Bug with ASCII Codes

2015-07-05 Thread Kevin Phillips (kmecpp)
Changes by Kevin Phillips (kmecpp) : -- title: IDLE Bug -> IDLE Text Output Bug with ASCII Codes ___ Python tracker <http://bugs.python.org/issue24572> ___ _

[issue24572] IDLE Bug

2015-07-05 Thread Kevin Phillips (kmecpp)
New submission from Kevin Phillips (kmecpp): This appears to be a bug with IDLE that happens when printing out ASCII codes. I posted the issue to stackoverflow when I came accross it because I didn't know what the problem was, so there is a more detailed description of the there:

[issue24572] IDLE Text Output With ASCII Codes Not Working

2015-07-05 Thread Kevin Phillips (kmecpp)
Changes by Kevin Phillips (kmecpp) : -- title: IDLE Text Output Bug with ASCII Codes -> IDLE Text Output With ASCII Codes Not Working ___ Python tracker <http://bugs.python.org/issu

[issue25549] call sum on list of timedelta throws TypeError

2015-11-03 Thread Kevin Jing Qiu
New submission from Kevin Jing Qiu: Calling sum() on a list of timedelta objects results in TypeError: unsupported operand type(s) for +: 'int' and 'datetime.timedelta' Here's a script that illustrates this behaviour: (also attached) import datetime

[issue35826] Typo in example for async with statement with condition

2019-01-25 Thread Kevin Mai-Hsuan Chia
New submission from Kevin Mai-Hsuan Chia : In the [example](https://docs.python.org/3.8/library/asyncio-sync.html#asyncio.Condition) of the equivalent code to the `async with statement`: ```python cond = asyncio.Condition() # ... later await lock.acquire() try: await cond.wait() finally

[issue35826] Typo in example for async with statement with condition

2019-01-25 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: In the [example](https://docs.python.org/3.8/library/asyncio-sync.html#asyncio.Condition) of the equivalent code to the `async with` statement: ```python cond = asyncio.Condition() # ... later await lock.acquire() try: await cond.wait() finally

[issue35826] Typo in example for async with statement with condition

2019-01-25 Thread Kevin Mai-Hsuan Chia
Change by Kevin Mai-Hsuan Chia : -- keywords: +patch pull_requests: +11511 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35826] Typo in example for async with statement with condition

2019-01-25 Thread Kevin Mai-Hsuan Chia
Change by Kevin Mai-Hsuan Chia : -- keywords: +patch, patch pull_requests: +11511, 11512 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35826] Typo in example for async with statement with condition

2019-01-25 Thread Kevin Mai-Hsuan Chia
Change by Kevin Mai-Hsuan Chia : -- keywords: +patch, patch, patch pull_requests: +11511, 11512, 11514 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35826] Typo in example for async with statement with condition

2019-01-25 Thread Kevin Mai-Hsuan Chia
Change by Kevin Mai-Hsuan Chia : -- keywords: +patch, patch, patch, patch pull_requests: +11511, 11512, 11513, 11514 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Kevin Mai-Hsuan Chia
New submission from Kevin Mai-Hsuan Chia : It seems the result of `asyncio.Server.sockets` after `asyncio.Server.close()` is performed becomes `[]` instead of `None` since python 3.7. However, in the [document 3.7 and 3.8](https://docs.python.org/3.8/library/asyncio-eventloop.html

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: Excuse me, I tried 3.7.2 and 3.8.0a1+ with the following code and still failed. Could you help me to try this? or can you give me a pointer to the code returning `None`? Sorry for the inconvenience and thanks a lot. ``` import asyncio import platform

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: Sure thing. Should it be discussed more detailed before the PR? If the document or the returned value is controversial, I would like to contribute if needed. Thanks :) -- ___ Python tracker <ht

[issue35826] Typo in example for async with statement with condition

2019-02-22 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: Cool! Thanks for the reminder. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue36074] Result of `asyncio.Server.sockets` after `Server.close()` is not clear

2019-02-22 Thread Kevin Mai-Hsuan Chia
Kevin Mai-Hsuan Chia added the comment: @mdk That's interesting. May I ask which one is the preferred behavior, `None` or `[]`? IMO both make sense, but `None` is more consistent with the behavior in previous versions. If it is the case, may I work on fixing this(`None` to `[]`)

[issue6523] smtplib exception smtp.connect TypeError encode_plain

2009-07-19 Thread Leonard Kevin McGuire Jr
New submission from Leonard Kevin McGuire Jr : -- SYSTEM INFORMATION - module: smtplib system: linux python3.0 -V Python 3.0.1+ - TEST CASE PYTHON SOURCE - import smtplib smtp = smtplib.SMTP() smtp.connect('mail.myserver.org') smtp.login('myusernam

<    1   2   3   4   5