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
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
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
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
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 `
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 _
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
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
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",
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
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
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
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
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()
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
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
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
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
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
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
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
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
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
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
Kevin Modzelewski added the comment:
Awesome, thanks!
--
___
Python tracker
<http://bugs.python.org/issue24731>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Changes by Kevin Dwyer :
--
type: performance -> behavior
___
Python tracker
<http://bugs.python.org/issue26222>
___
___
Python-bugs-list mailing list
Un
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.
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:
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
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,
Kevin Quick added the comment:
(Sorry, an unnamed pipe, but a pipe nonetheless.)
--
___
Python tracker
<http://bugs.python.org/issue26732>
___
___
Python-bug
Changes by Palm Kevin :
--
nosy: +palm.kevin
___
Python tracker
<http://bugs.python.org/issue17408>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
Changes by Kevin Jing Qiu :
--
keywords: +patch
Added file: http://bugs.python.org/file31251/mywork.patch
___
Python tracker
<http://bugs.python.org/issue18
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
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
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
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
Changes by Kevin M. Turner :
--
nosy: +acapnotic
___
Python tracker
<http://bugs.python.org/issue19352>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Kevin J Pallan :
--
nosy: +artifex93
___
Python tracker
<http://bugs.python.org/issue23112>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Kevin J Pallan :
--
nosy: +artifex93
___
Python tracker
<http://bugs.python.org/issue19777>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Kevin Phillips (kmecpp) :
--
title: IDLE Bug -> IDLE Text Output Bug with ASCII Codes
___
Python tracker
<http://bugs.python.org/issue24572>
___
_
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:
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
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
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
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
Change by Kevin Mai-Hsuan Chia :
--
keywords: +patch
pull_requests: +11511
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Kevin Mai-Hsuan Chia :
--
keywords: +patch, patch
pull_requests: +11511, 11512
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
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
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
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
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
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
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
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
`[]`)
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
401 - 466 of 466 matches
Mail list logo