Kevin Schlossser added the comment:
Thank you msg356892 for spear heading this for me. I family things to attend to
so I apologize for opening this bug report and then walking away..
As far as recreating this issue. It simple to do. you can either use cython or
you can put together a quick
New submission from Kevin Schlossser :
I guess this is a question as much as it is a bug report. I know that all kinds
of strange behavior can happen when using ctypes improperly. This is what is
taking place. I can provide code if needed. but lets work off of my description
of what is
New submission from Kevin Young :
Test code:
class Test(object):
def __init__(self, a={}):
self._a = a
def put(self, k, v):
self._a[k] = v
if __name__ == '__main__':
t1 = Test()
t1.put('aa', '11')
t1.put('bb', &
Kevin Young added the comment:
Thank you, Ammar!
I thought the default values were locally scoped under the __init__() function.
--
___
Python tracker
<https://bugs.python.org/issue39
Change by Kevin Mooney :
--
keywords: +patch
nosy: +Kevin Mooney
nosy_count: 5.0 -> 6.0
pull_requests: +19482
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/20181
___
Python tracker
<https://bugs.python.org/i
Kevin Mooney added the comment:
Ok, I think I see. Is there a concern that removing the cpython/ prefix might
lead to the wrong initconfig.h being included?
So your proposal is all includes in the root will do
#include "cpython/cpython_foo.h"
And any includes done in the c
Kevin Mooney added the comment:
Ok, so there are three potential solutions
1. Add cpython_ prefix to cpython headers
2. Remove cpython/initconfig.h from cpython/pystate.h
3. Include initconfig.h rather than cpython/initconfig.h
1 intoduces verbosity and touches more than the other solutions
Kevin Walzer added the comment:
This bug is not present in IDLE 3.9.0 when built against the tip of Tk
core-8-6-branch. Marc Culler has done some work to fix the visual artifacts,
and the work continues. The problem here is that Apple's API churn continually
breaks parts of Tk with eac
Kevin Walzer added the comment:
Ned, I wish I knew. Marc and I are both now members of the TCT, and have had a
few conversations around the release schedule, but the release schedule is more
or less determined when one or two senior members of the TCT decide things are
ready. We had some
New submission from Kevin Rasmussen :
It looks like hh should be zeropadded to 2 and isn't for timedelta.
--
messages: 384273
nosy: krasmussen
priority: normal
severity: normal
status: open
title: timedelta zeropadding hh
type: behavior
versions: Python
Change by Kevin Rasmussen :
--
keywords: +patch
pull_requests: +22908
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24075
___
Python tracker
<https://bugs.python.org/issu
Kevin Rasmussen added the comment:
Current behaviour:
```
# python
Python 3.9.1 (default, Dec 18 2020, 05:16:04)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> td
Kevin Rasmussen added the comment:
Question:
Why should it be zeropadded to 2?
Answer:
Why wouldn't it be zeropadded to match the rest of the library?
Honestly it just seemed like an inconsistency with the rest of the datetime
module.
It caught me off guard when I went I tried to
Kevin Rasmussen added the comment:
Eric makes a pretty good point about how that ends up looking with days
included and backward compatibility.
Thanks everyone for humouring me and talking me through this one I'm going to
close the issue as "not a bug".
--
resolution
Change by Kevin Chen :
--
nosy: aspin2
priority: normal
severity: normal
status: open
title: enum.Flag ~ bitwise negation is very slow
versions: Python 3.8
___
Python tracker
<https://bugs.python.org/issue42
New submission from Kevin Chen :
Ignore this, opened issue by accident
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from Kevin Chen :
Here's a code sample:
```
import time
from enum import Flag, auto
class MyFlag(Flag):
NONE = 0
FLAG_1 = auto()
FLAG_2 = auto()
FLAG_3 = auto()
FLAG_4 = auto()
FLAG_5 = auto()
FLAG_6 = auto()
#
# NOT_FLAG_1_OR_2 = ~F
Kevin Chen added the comment:
Awesome thanks! Does the rewrite fix the issue with creating negated flags as
well?
--
___
Python tracker
<https://bugs.python.org/issue42
Kevin Purrone added the comment:
I have little experience posting in forums, so if this post is in the wrong
place, please let me know.
I am running Python3.9, with Apple OS 10.15.7
I was using IDLE successfully for a class in Python for the past three weeks,
although I was rarely able to
Kevin Purrone added the comment:
Sorry, I meant to say the title of the PROGRAM in the menu items is now Python.
--
___
Python tracker
<https://bugs.python.org/issue38
New submission from Kevin Thomas :
When compiling for Windows it does not properly handle the version string
MSB4184
C:\Users\kevin\cpython>PCbuild\build.bat
Using py -3.7 (found 3.7 with py.exe)
Fetching external libraries...
bzip2-1.0.6 already exists, skipping.
sqlite-3.34.0.0 alre
Kevin Thomas added the comment:
Thank you Steve. I did not have the latest installed which is
Win10SDK_10.0.18362, therefore it did trigger that original error in msg387518.
After installing, Win10SDK_10.0.18362, it did in-fact allow a successful
compilation.
Updating that error code
Kevin Thomas added the comment:
Hi Steve actually there was none installed which was strange as I had Visual
Studio installed but it was not checked by default. After selecting it and
installing it, everything works as expected. Updating the error message in
some way might be helpful
New submission from Kevin Hollingshead :
The filenames generated by logging.RotatingFileHandler breaks the ability to
associate a program (e.g. notepad++, sublime text, etc.) with the log files
using Windows or OSX file associations because the extension is overridden by
the added suffix
Kevin Hollingshead added the comment:
Sure. Thanks for your help.
On Tue, Mar 2, 2021, 1:08 PM Vinay Sajip wrote:
>
> Vinay Sajip added the comment:
>
> I'll add to the cookbook recipe with this real-world example, when
Kevin Hollingshead added the comment:
Thanks Vinay, I was able to do this with:
def namer(name):
return name.replace(".log", "") + ".log"
Then when initializing the logger:
handler.namer = namer
My full initializer script:
import os
import loggin
New submission from Kevin Amado :
Sometimes when dealing with high concurrency systems developers face the
problem of executing concurrently a large number of tasks while taking care of
a finite pool of resources
Just to mention some examples:
- reading asynchronously a lot of files without
Change by Kevin Amado :
Removed file: https://bugs.python.org/file49377/materialize-implementation.py
___
Python tracker
<https://bugs.python.org/issue41505>
___
___
Kevin Amado added the comment:
Yeah definitely it must be workers
I've experimented a lot about it and finally found something with an interface
similar to asyncio.as_completed
- You control concurrency with `workers` parameter
- You upper-bound memory usage with `worker_greed
New submission from Kevin Ardath :
When attempting to concatenate some strings with a new line, I observed that
formatting braces in a raw string skipped a new line escape:
print(r'{{}}\nx'.format())
Produces:
{}\nx
Rather than:
{}
x
--
messages: 377624
nosy: ardath.kevi
Change by Kevin Ardath :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue41881>
___
___
New submission from Kevin Mills :
Sorry for the vague title. I'm not sure how to succinctly describe this issue.
The following code:
```
with open("data.bin", "rb") as f:
data = f.read()
base = 15403807 * b'\xff'
longer = base + b'\xff'
New submission from Kevin Wojniak :
On https://docs.python.org/3/library/winreg.html
For SetValue and SetValueEx is says:
> value is a string that specifies the new value.
but value can also be an integer if the type is DWORD. Here's a test that shows
that: https://github.com/python
New submission from Kevin Kuan :
Hi,
I would like to report bug for os.makedirs().
I am running this script on Windows 10 1909 (most win10 work), python 3.8.1.
os.makedirs() is making explorer.exe huge amount of memory and crashing the
system after only 3 hours.
After changing that line to
Kevin Kuan added the comment:
After further investigation. It seems that explorer.exe will use lots of memory
when folders are rapidly created. The code change simply slows down folder
creation. Since it is unrelated to python. I am closing this case.
--
resolution: -> not a
New submission from Kevin Shweh :
A global declaration inside a function is only supposed to affect assignments
inside that function, but in code executed with exec, a global declaration
affects assignments outside the function:
>>> gdict = {}
>>> ldict = {}
>>>
Kevin Walzer added the comment:
Some work has been done this year on expanding support for these types of
glyphs in Tk, but I'm not sure of its current state--it's not my area of
expertise. Can you open a ticket at https://core.tcl-lang.org/tk/ so one of the
folks working on this
New submission from Kevin Modzelewski :
The problem is that the descriptor-ness of a type-level attribute is only
checked at opcache-set time, not at opcache-hit time.
$ python3.8 test.py
2
$ ./python --version
Python 3.10.0a2+
$ git rev-parse --short HEAD
789359f47c
$ ./python test.py
1
New submission from Kevin Locke :
"The Warnings Filter" section of the documentation for the warnings module
describes the message and module filters as "a string containing a regular
expression". While that is true when they are arguments to the filterwarnings
function,
Change by Kevin Locke :
--
keywords: +patch
pull_requests: +22084
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23172
___
Python tracker
<https://bugs.python.org/issu
New submission from Kevin Keating :
Steps to reproduce:
Create the following three files (or download the attached zip file, which
contains these files):
main.py
import foo
from foo import a
from foo import b
print(foo.b.my_function())
foo/a.py
import importlib.util
Kevin Keating added the comment:
An __init__.py shouldn't be necessary. If I comment out the 'b =
lazy_import("foo.b")' line in a.py (i.e. disable the lazy import), then the
print statement works correctly as written without any other changes.
Also, I double check
Kevin Keating added the comment:
My colleague just tested this on Mac and confirms that the bug also occurs
there using Python 3.8.3.
--
___
Python tracker
<https://bugs.python.org/issue42
Kevin Keating added the comment:
Brett, what do you mean by "the way import works"? Is the difference between
using LazyLoader and using a normal import intentional?
--
status: -> open
___
Python tracker
<https://bugs.pytho
Kevin Keating added the comment:
One possible solution here would be to update the documentation at
https://github.com/python/cpython/blob/master/Doc/library/importlib.rst#implementing-lazy-imports
to either note the limitation or to modify the lazy_import function so that it
adds the
New submission from Kevin Shweh :
In Objects/typeobject.c, the PyMemberDefs for __flags__, __weakrefoffset__, and
__dictoffset__ all use T_LONG:
{"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY},
{"__weakrefoffset__", T_LONG,
o
Kevin Shweh added the comment:
Looks like I accidentally doubled the PyMemberDef for __weakrefoffset__ while
editing. There's no double definition in the actual file.
--
___
Python tracker
<https://bugs.python.org/is
Kevin G added the comment:
Can anyone add "reverse" support? Key and reverse support are both functional
requirement.
--
nosy: +flyingosprey
___
Python tracker
<https://bugs.python.
New submission from Kevin Teague :
Zip archives created with shutil.make_archive will not follow symlinks.
The shutil._make_zipfile uses os.walk:
for dirpath, dirnames, filenames in os.walk(base_dir)
os.walk has the followlinks parameter:
for dirpath, dirnames, filenames in os.walk
New submission from Kevin Braun :
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit
(AMD64)]
I believe 2**-1074 is the smallest denormalized number for Python on my system
(Windows), so I would expect 2**-1075 to yield 0.0, but it does not. Instead:
>>> 2*
New submission from Kevin Keating:
If I use the Python 64-bit 2.7.13 Windows installer and install to C:\Program
Files\Python27, then the Scripts folder doesn't get created and pip doesn't get
installed. If I uninstall Python and reinstall it to C:\Python27,
C:\Programs\Python27, o
Kevin Keating added the comment:
Here's the log file. I'm assuming that the relevant bit starts at around line
18663:
CAQuietExec: Collecting setuptools
CAQuietExec: Collecting pip
CAQuietExec: Installing collected packages: setuptools, pip
CAQuietExec: Exception:
CAQuietExec:
Kevin Keating added the comment:
Yeah, I only run into this problem if I install Python 2.7.13 into C:\Program
Files\Python27. If I install Python 2.7.12 or 3.6.1 to the same location, then
everything works fine. I can successfully install Python 2.7.13 to
C:\Python27, C:\Programs\Python27
Kevin Keating added the comment:
Running the msi from an elevated command prompt worked. Thanks!
--
___
Python tracker
<http://bugs.python.org/issue30
Changes by Kevin williams :
--
nosy: -Nir Soffer, giampaolo.rodola, haypo
___
Python tracker
<http://bugs.python.org/issue30994>
___
___
Python-bugs-list mailin
Kevin Quick added the comment:
Thank you for the fix, pitrou!
Regarding your comment regarding the behavior being expected with the "fork"
method, I would suggest a documentation modification in the description of the
fork method to add something to the effect of "All resource
New submission from Kevin Chen:
File objects generated with socket.makefile and that attempt to use line
buffering appear to not actually use line buffering, at least for writing. In
this example, the string does not appear to be written until the flush call.
First, set up a socket:
$ nc -l
Kevin Quick added the comment:
Hi Antoine,
> ... an implementation detail rather than a documented feature
I understand your desire, but this is a leaky abstraction and I would still
suggest that it should be more clear that the fork method will inherit *all*
resources from the par
New submission from Kevin Shweh:
The only check that prevents instantiating abstract classes is in
object.__new__, but most built-in classes never actually call object.__new__.
That means you can do stuff like
import abc
class Foo(list, metaclass=abc.ABCMeta):
@abc.abstractmethod
Kevin Funk added the comment:
I just ran into this, under Python 3.6.
IMHO, the error message should be improved, even when the mode was not passed
explicitly.
Can someone reopen this?
--
nosy: +kfunk
___
Python tracker
<https://bugs.python.
Kevin Funk added the comment:
It's Python 3.6 from CentOS 6. In my particular case I'm lacking the lzma
module. But for figuring that out I had to add the explicit modes to the
`tarfile.open` calls in my Python script.
--
___
Pyth
Kevin Funk added the comment:
(Sorry: I just noticed the Python 3.6 I'm using is /not/ from distro packages.
The issue remains, though, the Python exception could be more descriptive.)
--
___
Python tracker
<https://bugs.python.org/i
New submission from Kevin Norris :
pkgutil.get_data()'s documentation[1] says it is a wrapper for
importlib.abc.ResourceLoader.get_data(), but the latter's documentation[2] says
the whole class is deprecated since 3.7.
Please either:
A. Formally deprecate pkgutil.get_data() (a
New submission from Kevin Walzer :
The "About IDLE" and "Preferences" dialogs on IDLE are accompanied by a small
black window titled "idle" when IDLE is run agains the tip of Tk 8.6 on macOS
10.14. This is likely owing to the multiple changes in Tk to accommo
Kevin Walzer added the comment:
Cannot reproduce this with the tip of Tk core-8-6-branch on Mojave and IDLE
3.7.1. Window appears normal and no flickering when resizing.
--
___
Python tracker
<https://bugs.python.org/issue35
Kevin Walzer added the comment:
http://core.tcl.tk/tk/tktview?name=ef9c3730e3 has some useful information on
this from the Tk side.
--
___
Python tracker
<https://bugs.python.org/issue35
Kevin Walzer added the comment:
Making the icon 512x512 pixels will make it look correct on Retina displays on
the Mac.
--
___
Python tracker
<https://bugs.python.org/issue32
Kevin Christopher added the comment:
I tripped over this exact issue a few months ago, while working on a FIPSified
OpenSSL library (custom platform).
Attached a different (more minimal) patch; this one focuses more narrowly on
the exact failure mode. It's based on 'master'
New submission from Kevin Buchs:
I have been getting periodic crashes from a long running python job on Mac OS
X. There is nothing indicative of a crash from standard output or error. I'm
not sure if the OS X crash records actually find your way back to you, but I am
explicitly including
Changes by Kevin Buchs :
Added file: http://bugs.python.org/file46901/Kafka-Poll.py
___
Python tracker
<http://bugs.python.org/issue30474>
___
___
Python-bugs-list mailin
Kevin Ballard added the comment:
There is a potential workaround that could be used so that way macOS 10.12.5
works. It turns out that, with osascript, if you catch the error and try again,
it works.
$ osascript < try
> open location "http://apple.com";
> on error
&g
Kevin Walzer added the comment:
Is there any reason not to commit the patch I submitted to address this
issue?As an alternative I can submit a high-res PNG that can be used, and will
submit a different patch to incorporate it, which would work from either the
standard app bundle or the
Kevin Shweh added the comment:
The patch for this issue changed LOAD_GLOBAL to use PyObject_GetItem when
globals() is a dict subclass, but LOAD_NAME, STORE_GLOBAL, and DELETE_GLOBAL
weren't changed. (LOAD_NAME uses PyObject_GetItem for builtins now, but not for
globals.)
This means
New submission from Kevin Shweh :
LOAD_NAME and LOAD_GLOBAL don't treat dict subclasses for globals() the same
way. If globals() is a dict subclass, LOAD_GLOBAL will respect overridden
__getitem__, but LOAD_NAME will use PyDict_GetItem. This causes global lookup
to behave different
New submission from Kevin Raeder :
I've found the Regular Expression HOWTO to be very helpful
(https://docs.python.org/3/howto/regex.html?highlight=regular%20expressions).
One inconsistency I noticed is that the intro to metacharacters says
"Metacharacters are not active inside clas
Kevin Shweh added the comment:
It looks to me like there are more situations than the patch lists where
whitespace still separates tokens. For example, *? is a reluctant quantifier
and * ? is a syntax error, even in verbose mode.
--
nosy: +Kevin Shweh
New submission from Kevin Walzer :
The trunk and 8.6.7 branch of Tk on macOS have recently implemented the
wm_iconphoto command, which had not previously been supported on macOS. This
means that versions of IDLE that link to this version of Tk will inherit the
iconphoto behavior on Windows
Kevin Walzer added the comment:
wm_iconphoto is a no-op on Tk 8.5 on MacOS; the C function returns true with no
action. That's why this has not cropped up before.
As implemented, the command on macOS only takes the first image in the
parameters to use; the Cocoa mechanism in us
Kevin Walzer added the comment:
Adding proposed patch.
--
keywords: +patch
Added file: https://bugs.python.org/file47293/pyshell.diff
___
Python tracker
<https://bugs.python.org/issue32
New submission from Kevin Lyda :
The documentation for Cmd.onecmd is misleading. It says that "This may be
overridden, but should not normally need to be; see the precmd() and postcmd()
methods for useful execution hooks."
https://github.com/python/cpython/blob/v3.7.0a3/Lib/c
Change by Kevin Chen :
--
nosy: +kchen
___
Python tracker
<https://bugs.python.org/issue20891>
___
___
Python-bugs-list mailing list
Unsubscribe:
Kevin Walzer added the comment:
Not able to reproduce this issue using a recent build of Tk 8.6.8 plus (it's
been a little while since I pulled the latest updates from core-8-6-branch, but
is recent enough). Similar behavior was reported on Tk a couple of years ago
but has been fix
Kevin Walzer added the comment:
Please provide a short working Python script that reproduces the problem. Also,
please point me to the internal implementation of tooltips in idlelib. Tooltips
work just fine on Tk on the Mac, but there are many different ways to implement
them and I suspect
Kevin Walzer added the comment:
I've observed this behavior myself, and wonder if you are hitting some edge
case in Tk-Mac event processing (there used to be a lot of issues with this and
we thought we had addressed them). I don't want to code-dive into Python's
implemen
Kevin Walzer added the comment:
With the attached patch, the calltip now displays in the test in calltips_w.py
on macOS. As I suspected, a judicious call to "update" forces the event loop to
cycle on macOS. It should be harmless on other platforms, but if it causes some
sort of p
Kevin Walzer added the comment:
Removing the call "self.grab_set" in configdialog.py (line 87 or so) and
help_about.py (line 47 or so) appears to fix the problem with the main window
freezing when the modal dialog is destroyed on macOS. "Grab" has never worked
properly o
Kevin Walzer added the comment:
Tal, your proposed revisions to the patch work fine. It's harmless to leave the
older calls to MacWindowStyle there. New patch attached.
--
Added file: https://bugs.python.org/file47726/calltips_w-2.diff
___
P
Kevin Walzer added the comment:
The crash reported by the OP did show up at times in recent releases of Tk
8.6.x, but a lot of work went into refactoring memory management in 8.6.8 and
those problems do not seem present in the current release (8.6.7 is a year
old). I'd try updating to
New submission from Kevin Norris :
The 3.x datetime documentation contains the following footnote:
> In other words, date1 < date2 if and only if date1.toordinal() <
> date2.toordinal(). In order to stop comparison from falling back to the
> default scheme of comparing object
Kevin Walzer added the comment:
I just committed http://core.tcl.tk/tk/info/26a029b4a88ff97f, which fixes the
scrolling issue in Tk. Running the test scripts here indicate the behavior is
now correct; clicking several pixels below the bottom part of the scroll button
causes the scroll to
Kevin Norris added the comment:
There is none. It raises a TypeError. See
https://docs.python.org/3/reference/expressions.html#value-comparisons
--
___
Python tracker
<https://bugs.python.org/issue34
Kevin Walzer added the comment:
Ned, please hold off a bit on this--another developer is doing some final
fine-tuning of the scrolling code so it fully passes Tk's test suite. I'm
waiting for the final commit of this code any day now.
--
status: pendi
Kevin Walzer added the comment:
The behavior outlined in the screenshot is, I believe, a component of the
native Cocoa window that underlies Tk; it cannot be controlled or accessed from
Tk. It's probably better to avoid altogether or re-implement somehow in
New submission from Kevin Walzer :
I'm trying to build Python 3.7.0 on macOS 10.14, and Tkinter is not linking to
my installation of Tcl/Tk 8.6.8 in /Library/Frameworks. Instead it is linking
to the ancient 8.5 Tk installed in /System/Library/Frameworks. My usual way of
forcing Pyth
Kevin Walzer added the comment:
Thank you, this helped.
--
___
Python tracker
<https://bugs.python.org/issue34956>
___
___
Python-bugs-list mailing list
Unsub
Kevin Walzer added the comment:
Release of Tk 8.6.9 very soon; includes fixes for Mac scrolling as well as
support for 10.14 macOS, with Dark Mode.
--
___
Python tracker
<https://bugs.python.org/issue34
Palm Kevin added the comment:
The `-lintl` fix did not work in my case.
But I succeeded to compile Python using the CC compiler (/usr/bin/cc) instead
of GCC compiler.
(cc: Sun C 5.12 SunOS_sparc 2011/11/16)
--
nosy: +palm.kevin
___
Python tracker
New submission from Palm Kevin:
On Solaris, make install fails on target altbininstall.
This is due to the fact than on Solaris you man not create a symlink using `ln
-sf` -> You have to use `ln -f -s`.
(SunOS sol1 5.10 Generic_147440-09 sun4u sparc SUNW,Sun-Fire-V240)
--
compone
Palm Kevin added the comment:
fixing patch attached
--
keywords: +patch
Added file: http://bugs.python.org/file30492/Makefile.pre.in.diff
___
Python tracker
<http://bugs.python.org/issue18
Changes by Palm Kevin :
Removed file: http://bugs.python.org/file30492/Makefile.pre.in.diff
___
Python tracker
<http://bugs.python.org/issue18154>
___
___
Python-bug
201 - 300 of 466 matches
Mail list logo