[issue38597] C Extension import limit

2020-01-04 Thread Kevin Schlossser
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

[issue39217] GC of a ctypes object causes application crash

2020-01-04 Thread Kevin Schlossser
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

[issue39556] Different objects of the same class references the same dictionary

2020-02-04 Thread Kevin Young
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', &

[issue39556] Different objects of the same class references the same dictionary

2020-02-04 Thread Kevin Young
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

[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread Kevin Mooney
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

[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread Kevin Mooney
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

[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread Kevin Mooney
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

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread Kevin Walzer
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

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-02 Thread Kevin Walzer
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

[issue42817] timedelta zeropadding hh

2021-01-03 Thread Kevin Rasmussen
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

[issue42817] timedelta zeropadding hh

2021-01-03 Thread Kevin Rasmussen
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

[issue42817] timedelta zeropadding hh

2021-01-03 Thread Kevin Rasmussen
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

[issue42817] timedelta zeropadding hh

2021-01-03 Thread Kevin Rasmussen
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

[issue42817] timedelta zeropadding hh

2021-01-03 Thread Kevin Rasmussen
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

[issue42912] enum.Flag ~ bitwise negation is very slow

2021-01-12 Thread Kevin Chen
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

[issue42912] enum.Flag ~ bitwise negation is very slow

2021-01-12 Thread Kevin Chen
New submission from Kevin Chen : Ignore this, opened issue by accident -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue42915] enum.Flag ~ bitwise negation is very slow and can't be defined as a Flag value

2021-01-12 Thread Kevin Chen
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

[issue42915] enum.Flag ~ bitwise negation is very slow and can't be defined as a Flag value

2021-01-13 Thread Kevin Chen
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

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-02-09 Thread Kevin Purrone
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

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2021-02-09 Thread Kevin Purrone
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

[issue43298] Windows build issue

2021-02-22 Thread Kevin Thomas
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

[issue43298] Windows build cannot detect missing Windows SDK

2021-02-22 Thread Kevin Thomas
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

[issue43298] Windows build cannot detect missing Windows SDK

2021-02-23 Thread Kevin Thomas
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

[issue43344] RotatingFileHandler breaks file type associations

2021-02-27 Thread Kevin Hollingshead
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

[issue43344] RotatingFileHandler breaks file type associations

2021-03-02 Thread Kevin Hollingshead
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

[issue43344] RotatingFileHandler breaks file type associations

2021-03-02 Thread Kevin Hollingshead
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

[issue41505] asyncio.gather of large streams with limited resources

2020-08-07 Thread Kevin Amado
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

[issue41505] asyncio.gather of large streams with limited resources

2020-08-07 Thread Kevin Amado
Change by Kevin Amado : Removed file: https://bugs.python.org/file49377/materialize-implementation.py ___ Python tracker <https://bugs.python.org/issue41505> ___ ___

[issue41505] asyncio.gather of large streams with limited resources

2020-08-23 Thread Kevin Amado
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

[issue41881] New Line escape issue in raw strings

2020-09-28 Thread Kevin Ardath
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

[issue41881] New Line escape issue in raw strings

2020-09-28 Thread Kevin Ardath
Change by Kevin Ardath : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41881> ___ ___

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-07 Thread Kevin Mills
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'

[issue42018] winreg SetValue(Ex) should mention integer as an acceptable value

2020-10-12 Thread Kevin Wojniak
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

[issue42031] os.makedirs() introduces high memory usage for explorer.exe

2020-10-13 Thread Kevin Kuan
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

[issue42031] os.makedirs() introduces high memory usage for explorer.exe

2020-10-13 Thread Kevin Kuan
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

[issue42190] global declarations affect too much inside exec or compile

2020-10-28 Thread Kevin Shweh
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 = {} >>>

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread Kevin Walzer
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

[issue42266] LOAD_ATTR cache does not fully replicate PyObject_GetAttr behavior

2020-11-04 Thread Kevin Modzelewski
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

[issue42272] Warning filter message/module documentation is misleading

2020-11-05 Thread Kevin Locke
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,

[issue42272] Warning filter message/module documentation is misleading

2020-11-05 Thread Kevin Locke
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

[issue42273] Using LazyLoader leads to AttributeError

2020-11-05 Thread Kevin Keating
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

[issue42273] Using LazyLoader leads to AttributeError

2020-11-09 Thread Kevin Keating
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

[issue42273] Using LazyLoader leads to AttributeError

2020-11-09 Thread Kevin Keating
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

[issue42273] Using LazyLoader leads to AttributeError

2020-11-10 Thread Kevin Keating
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

[issue42273] Using LazyLoader leads to AttributeError

2020-11-10 Thread Kevin Keating
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

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-17 Thread Kevin Shweh
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

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-17 Thread Kevin Shweh
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

[issue4356] Add "key" argument to "bisect" module functions

2019-05-25 Thread Kevin G
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.

[issue37601] shutil.make_archive does not follow symlinks for zip archives

2019-07-15 Thread Kevin Teague
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

[issue37787] Minimum denormal or ** bug

2019-08-07 Thread Kevin Braun
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*

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-21 Thread Kevin Keating
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

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating
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:

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating
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

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating
Kevin Keating added the comment: Running the msi from an elevated command prompt worked. Thanks! -- ___ Python tracker <http://bugs.python.org/issue30

[issue30994] Asyncore does not need to copy map.items() before polling

2017-07-22 Thread Kevin williams
Changes by Kevin williams : -- nosy: -Nir Soffer, giampaolo.rodola, haypo ___ Python tracker <http://bugs.python.org/issue30994> ___ ___ Python-bugs-list mailin

[issue26732] multiprocessing sentinel resource leak

2017-07-25 Thread Kevin Quick
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

[issue31062] socket.makefile does not handle line buffering

2017-07-27 Thread Kevin Chen
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

[issue26732] multiprocessing sentinel resource leak

2017-07-30 Thread Kevin Quick
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

[issue31127] Abstract classes derived from built-in classes don't block instance creation

2017-08-06 Thread Kevin Shweh
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

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk
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.

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk
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

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk
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

[issue35319] pkgutil.get_data() is a wrapper for a deprecated class

2018-11-26 Thread Kevin Norris
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

[issue35387] Dialogs on IDLE are accompanied by a small black window

2018-12-03 Thread Kevin Walzer
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

[issue35485] Mac: tkinter windows turn black while resized

2018-12-13 Thread Kevin Walzer
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

[issue35485] Mac: tkinter windows turn black while resized

2018-12-20 Thread Kevin Walzer
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

[issue32129] Icon on macOS

2019-01-26 Thread Kevin Walzer
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

[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2017-03-29 Thread Kevin Christopher
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'

[issue30474] Crash on OS X EXC_BAD_ACCESS (SIGSEGV)

2017-05-25 Thread Kevin Buchs
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

[issue30474] Crash on OS X EXC_BAD_ACCESS (SIGSEGV)

2017-05-25 Thread Kevin Buchs
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

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-06-01 Thread Kevin Ballard
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

[issue32129] Icon on macOS

2019-02-25 Thread Kevin Walzer
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

[issue14385] Support other types than dict for __builtins__

2019-03-05 Thread Kevin Shweh
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

[issue36220] LOAD_NAME and LOAD_GLOBAL handle dict subclasses for globals() differently

2019-03-06 Thread Kevin Shweh
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

[issue32658] Metacharacter (\) documentation suggestion

2018-01-24 Thread Kevin Raeder
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

[issue15606] re.VERBOSE whitespace behavior not completely documented

2017-11-10 Thread Kevin Shweh
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

[issue32129] Icon on macOS

2017-11-24 Thread Kevin Walzer
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

[issue32129] Icon on macOS

2017-11-25 Thread Kevin Walzer
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

[issue32129] Icon on macOS

2017-11-25 Thread Kevin Walzer
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

[issue32283] Cmd.onecmd documentation is misleading

2017-12-11 Thread Kevin Lyda
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

[issue20891] PyGILState_Ensure on non-Python thread causes fatal error

2017-12-11 Thread Kevin Chen
Change by Kevin Chen : -- nosy: +kchen ___ Python tracker <https://bugs.python.org/issue20891> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-31 Thread Kevin Walzer
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

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Kevin Walzer
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

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-07-31 Thread Kevin Walzer
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

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Kevin Walzer
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

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-07-31 Thread Kevin Walzer
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

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-08-01 Thread Kevin Walzer
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

[issue34313] IDLE crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-08-02 Thread Kevin Walzer
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

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-08-08 Thread Kevin Norris
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

[issue34370] Tkinter scroll issues on macOS

2018-08-14 Thread Kevin Walzer
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

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-08-18 Thread Kevin Norris
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

[issue34370] Tkinter scroll issues on macOS

2018-09-27 Thread Kevin Walzer
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

[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-10-03 Thread Kevin Walzer
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

[issue34956] 3.7.0 _tkinter module links against /System/Library/Frameworks

2018-10-10 Thread Kevin Walzer
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

[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2018-10-11 Thread Kevin Walzer
Kevin Walzer added the comment: Thank you, this helped. -- ___ Python tracker <https://bugs.python.org/issue34956> ___ ___ Python-bugs-list mailing list Unsub

[issue34370] Tkinter scroll issues on macOS

2018-10-17 Thread Kevin Walzer
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

[issue13843] Python doesn't compile anymore on our Solaris buildbot: undefined libintl_* symbols

2013-06-07 Thread Palm Kevin
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

[issue18154] make install failed on solaris

2013-06-07 Thread Palm Kevin
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

[issue18154] make install failed on solaris

2013-06-07 Thread Palm Kevin
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

[issue18154] make install failed on solaris

2013-06-07 Thread Palm Kevin
Changes by Palm Kevin : Removed file: http://bugs.python.org/file30492/Makefile.pre.in.diff ___ Python tracker <http://bugs.python.org/issue18154> ___ ___ Python-bug

<    1   2   3   4   5   >