[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2021-06-06 Thread William Pickard
William Pickard added the comment: MSVC by default disables method inlining (/Ob0) when '/Od' is specified on the command line while the optimization options specify '/Ob2'. -- ___ Python tracker <https://bugs.python.org/issue39

[issue44216] Bug in class method with optional parameter

2021-05-23 Thread William Pickard
William Pickard added the comment: This is not a bug but a side-affect at how defaulted parameters are stored. The rule of thumb is to never use mutable values as default values for parameters. When a method is created in the Python runtime, it checks if the signature has defaulted keyword

[issue43804] "Building C and C++ Extensions on Windows" docs are very out-of-date

2021-05-10 Thread William Pickard
William Pickard added the comment: Correction: You can use either VsDevCmd.bat/Enter-VsDevShell on VS versions that provide them (2017 and 2019 are known to include it), but to get the x64 tools you need to pass command line arguments (They default to x86 native tools). Otherwise you must

[issue43804] "Building C and C++ Extensions on Windows" docs are very out-of-date

2021-05-10 Thread William Pickard
William Pickard added the comment: Then it appears you're using a version of the compiler that is built for building 32-bit exes/dlls, you need to use the x64 version. For this you need to start either the x86 Cross Tools console or the x64 native console (VS 2019) or use vcvarsall.cmd

[issue43804] "Building C and C++ Extensions on Windows" docs are very out-of-date

2021-05-10 Thread William Pickard
William Pickard added the comment: I'm quite familiar with MSVC's command line and I'm quite confused on what you mean "the above commands are specific to 32-bit Python" "/LD" is available for both 32-bit and 64-bit compilations, it implies "/MT" to the com

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-06 Thread William Pickard
William Pickard added the comment: Here's something you should know about Windows, even if a local account is in the Administrators group, it still has restrictions on what it can do, it just has the power to elevate itself without requiring login credentials (VIA UAC prompts). This group

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-05 Thread William Pickard
William Pickard added the comment: Do you mind ticking the box, "Run as Administrator" in the Compatibility tab for python.exe and try winreg again? -- nosy: +WildCard65 ___ Python tracker <https://bugs.python.o

[issue43866] Installation files of the Python

2021-04-16 Thread William Pickard
William Pickard added the comment: Python, when installed for all users, installs to %ProgramFiles% (or %ProgramFiles(x86)% for 32-bit version on 64-bit Windows). The %LocalAppData% install is just for you... you didn't install it for everyone or you didn't provide Python

[issue43776] Popen with shell=True yield mangled repr output

2021-04-08 Thread William Pickard
William Pickard added the comment: Actually, the problem is independent of the value of "shell", the __repr__ function from the initial PR that introduced it expects "args" to be a sequence and converts it to a list.

[issue43685] __call__ not being called on metaclass

2021-03-31 Thread William Pickard
William Pickard added the comment: This line is the cause of your issue: "new_cls: SingletonMeta = cast(SingletonMeta, type(name, bases, namespace))" More specifically, your call to type() actually erases all information about your meta class. If you did "type(S)", you

[issue43661] api-ms-win-core-path-l1-1.0.dll, redux of 40740 (which has since been closed)

2021-03-29 Thread William Pickard
William Pickard added the comment: Python 3.9 does not support Windows 7, it's explicitly stated in the release notes of 3.9.0 -- nosy: +WildCard65 ___ Python tracker <https://bugs.python.org/issue43

[issue43181] Python macros don’t shield arguments

2021-02-09 Thread William Pickard
William Pickard added the comment: This feels like it's more of an issue with the C++ compiler you're using. (I can tell it's C++ because of template syntax) -- nosy: +WildCard65 ___ Python tracker <https://bugs.python.org/issue43

[issue43122] Python Launcher doesn't open a terminal window

2021-02-03 Thread William Pickard
William Pickard added the comment: That quick flash would be your terminal window if I have to guess (based on no Mac experience, but Windows). -- nosy: +WildCard65 ___ Python tracker <https://bugs.python.org/issue43

[issue42887] 100000 assignments of .__sizeof__ cause a segfault on del

2021-01-15 Thread William Pickard
William Pickard added the comment: Jumping in here to explain why '__class' doesn't crash when '__sizeof__' does: When '__class__' is fetched, it returns a new reference to the object's type. When '__sizeof__' is fetched on the otherhand, a new object is allocated on the heap

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-19 Thread William Pickard
William Pickard added the comment: I recommend first doing a capture of these functions first, incase Windows is routing some through them: LoadLibrary(Ex)(W|A) W is the Unicode variant while A is the Ascii variant. -- ___ Python tracker <ht

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-19 Thread William Pickard
William Pickard added the comment: Msvcp140.dll from what I can find is part of the VS 2015 Redstributable package. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread William Pickard
William Pickard added the comment: I was just expecting only detours for LoadLibraryExW (and variants) to find out which dll failed. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread William Pickard
William Pickard added the comment: https://www.microsoft.com/en-us/research/project/detours/ -- ___ Python tracker <https://bugs.python.org/issue42529> ___ ___

[issue42529] CPython DLL initialization routine failed from PYC cache file

2020-12-18 Thread William Pickard
William Pickard added the comment: You may need to inject a LoadLibraryExW detour into your python runtime before _jpype is loaded and output all the library names its requesting. You may need to detour all Load Library functions for maximum coverage. -- nosy: +WildCard65

[issue41889] enum: Mixin and int base class regression in 3.8.6

2020-09-30 Thread William Pickard
William Pickard added the comment: Actually, this is an issue with native types in general that define a 'tp_new' slot value ('!= NULL'). -- nosy: +WildCard65 ___ Python tracker <https://bugs.python.org/issue41

[issue24427] subclass of multiprocessing Connection segfault upon attribute acces

2020-09-27 Thread William Pickard
William Pickard added the comment: You did just necro a 5 year old bug report... -- nosy: +WildCard65 ___ Python tracker <https://bugs.python.org/issue24

[issue24427] subclass of multiprocessing Connection segfault upon attribute acces

2020-09-27 Thread William Pickard
Change by William Pickard : -- nosy: -WildCard65 ___ Python tracker <https://bugs.python.org/issue24427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41525] Python '--help' has corrupted text.

2020-09-08 Thread William Pickard
Change by William Pickard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41523] functools.cached_property does not satisfy the property check

2020-08-17 Thread William Pickard
William Pickard added the comment: Another thing to note Raymond, as I stated before, example C is, from an external context, is a plain property object who's "fget" attribute is an instance of whatever "lru_cache" returns. isinstance won't be able to different

[issue41525] Python '--help' has corrupted text.

2020-08-11 Thread William Pickard
New submission from William Pickard : Running Python's '--help' argument yields some corrupted text: "-X dev: enable CPythonâ?Ts â?odevelopment modeâ??, introducing additional runtime" -- components: Interpreter Core messages: 375204 nosy: WildCard65 priority: normal severi

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread William Pickard
William Pickard added the comment: In the lru_cache example, I think property is using the result of 'lru_cache(c)', which in turns returns a property instance, not a subtype instance. -- nosy: +WildCard65 ___ Python tracker <ht

[issue41501] 0x80070643, can't install any version

2020-08-08 Thread William Pickard
William Pickard added the comment: Try what's explained here: https://support.microsoft.com/en-us/help/2438651/how-to-troubleshoot-windows-installer-errors -- nosy: +WildCard65 ___ Python tracker <https://bugs.python.org/issue41

[issue41358] Unable to uninstall Python launcher using command line

2020-07-23 Thread William Pickard
William Pickard added the comment: I think on Windows, the Python Launcher is a separate install entity. You can verify this under Control Panel -> Uninstall Program and Features. -- nosy: +WildCard65 ___ Python tracker <https://bugs.pyth

[issue41368] Allow compiling Python with llvm-clang on Windows.

2020-07-22 Thread William Pickard
William Pickard added the comment: Note: Apparently Google-OpenID login button created a seperate account... instead of finding this one. -- nosy: +WildCard65 -William Pickard ___ Python tracker <https://bugs.python.org/issue41

[issue41368] Allow compiling Python with llvm-clang on Windows.

2020-07-22 Thread William Pickard
New submission from William Pickard : Since Visual Studio 2017, Microsoft has an optional C++ Desktop Development option for compiling C/C++ code with LLVM's Clang compiler. It's called: Clang with Microsoft CodeGen. While the code is parsed with LLVM's Clang parser, the code is generated

[issue41294] Allow '__qualname__' to be an instance of 'DynamicClassAttribute'

2020-07-13 Thread William Pickard
New submission from William Pickard : Currently within Python, the attribute '__qualname__' is restricted to only be a string valued attribute. This makes is rather cumbersome for anyone who wants to implement '__qualname__' as a property, instead of a plain attribute (especially

[issue41188] Prepare CPython for opaque PyObject structure.

2020-07-01 Thread William Pickard
Change by William Pickard : -- keywords: +patch pull_requests: +20415 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21262 ___ Python tracker <https://bugs.python.org/issu

[issue41188] Prepare CPython for opaque PyObject structure.

2020-07-01 Thread William Pickard
New submission from William Pickard : The goal of issue 39573 is to make "PyObject" and opaque structure in the limited API. To do that, a few mandatory changes will be required to CPython in order to allow for seamless implementation. Namely: 1) User types need to get away fro

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-07-01 Thread William Pickard
Change by William Pickard : -- nosy: +WildCard65 nosy_count: 9.0 -> 10.0 pull_requests: +20410 pull_request: https://github.com/python/cpython/pull/21262 ___ Python tracker <https://bugs.python.org/issu

[issue41153] [easy Doc] "PyPreConfig_InitIsolatedConfig" and "PyPreConfig_InitPythonConfig" are given the opposite's documentation.

2020-07-01 Thread William Pickard
Change by William Pickard : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41153> ___ ___

[issue41171] Create companion methods of "PyType_FromSpec*" to allow setting metaclass.

2020-06-30 Thread William Pickard
Change by William Pickard : -- keywords: +patch pull_requests: +20390 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21238 ___ Python tracker <https://bugs.python.org/issu

[issue41171] Create companion methods of "PyType_FromSpec*" to allow setting metaclass.

2020-06-30 Thread William Pickard
William Pickard added the comment: Another thing I thought of, if this is accepted, we can turn the "PyType" methods into header static inline methods. -- ___ Python tracker <https://bugs.python.o

[issue41171] Create companion methods of "PyType_FromSpec*" to allow setting metaclass.

2020-06-30 Thread William Pickard
New submission from William Pickard : The current goal from what I can tell for Python is to have all C based modules move away from static types and instead use "PyType_FromSpec" and the variant that specifies base classes. The only problem is, PyType_FromSpec and it's var

[issue41153] [easy Doc] "PyPreConfig_InitIsolatedConfig" and "PyPreConfig_InitPythonConfig" are given the opposite's documentation.

2020-06-28 Thread William Pickard
Change by William Pickard : -- title: [easy Doc] "PyPreConfig_InitIsolatedConfig" and "PyPreConfig_InitPythonConfig" are given opposite documentation. -> [easy Doc] "PyPreConfig_InitIsolatedConfig" and "PyPreConfig_InitPythonConfig&qu

[issue41153] [easy Doc] "PyPreConfig_InitIsolatedConfig" and "PyPreConfig_InitPythonConfig" are given opposite documentation.

2020-06-28 Thread William Pickard
New submission from William Pickard : The initconfig API functions "PyPreConfig_InitPythonConfig" and "PyPreConfig_InitIsolatedConfig" are mistakenly documented for the other method. -- assignee: docs@python components: Documentation messages: 372531 nosy: Wil

[issue41117] [easy C] GC: Use local variable 'op' when invoking 'traverse' in 'subtract_refs'

2020-06-25 Thread William Pickard
New submission from William Pickard : When the GC module goes to collect objects (most notably, during Python shutdown), it makes a call to subtract_refs on the GC container. During this invocation, it creates a local variable "op" who's value is the result of 'FROM_GC(gc)', but wh

[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread William Pickard
Change by William Pickard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread William Pickard
Change by William Pickard : -- keywords: +patch pull_requests: +20240 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21071 ___ Python tracker <https://bugs.python.org/issu

[issue41085] Array regression test fails

2020-06-23 Thread William Pickard
William Pickard added the comment: The only modification I made was to "rt.bat" to have the value of '-u' work properly. -- ___ Python tracker <https://bugs.python.o

[issue41085] Array regression test fails

2020-06-22 Thread William Pickard
New submission from William Pickard : Here's the verbose stack trace of the failing test: == FAIL: test_index (test.test_array.LargeArrayTest) -- Traceback

[issue25095] test_httpservers hangs since Python 3.5

2020-05-23 Thread William Pickard
William Pickard added the comment: I've made the changes you've requested. -- ___ Python tracker <https://bugs.python.org/issue25095> ___ ___ Python-bugs-list m

[issue25095] test_httpservers hangs since Python 3.5

2020-05-22 Thread William Pickard
William Pickard added the comment: I'll get to it Saturday. -- ___ Python tracker <https://bugs.python.org/issue25095> ___ ___ Python-bugs-list mailin

[issue25095] test_httpservers hangs since Python 3.5

2018-09-25 Thread William Pickard
Change by William Pickard : -- pull_requests: +8966 ___ Python tracker <https://bugs.python.org/issue25095> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25095] test_httpservers hangs since Python 3.5

2018-08-01 Thread William Pickard
William Pickard added the comment: My computer was running BitDefender Total Security 2018 (At the time, currently running the 2019 edition) and MalwareBytes 3 Premium. BitDefender has both a built-in firewall and a web protection module while MalwareBytes has a web protection module

[issue32928] _findvs failing on Windows 10 (Release build only)

2018-02-24 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: The powershell module that interacts with the API works if I don't supply "-All", supplying said option produces the same issue that is plagues me when _findvs.f

[issue32928] _findvs failing on Windows 10 (Release build only)

2018-02-24 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: Looks like something wierd about my computer as the powershell module that interacts with the API also has the issue with Windows reporting "File not found" for a 2nd instance (maybe Community edition of VS) -

[issue32928] _findvs failing on Windows 10 (Release build only)

2018-02-23 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: Use, when distutils calls findall in the module, it results in the OSError being thrown. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32928] _findvs failing on Windows 10 (Release build only)

2018-02-23 Thread William Pickard
New submission from William Pickard <lollol22...@gmail.com>: The distutils module _findvs is failing on my Windows 10 PRO machine with the following error: OSError: Error 80070002 Note: Building Python 3.6 in debug for some reason doesn't cause the error. -- components: Dis

[issue25095] test_httpservers hangs since Python 3.5

2018-01-30 Thread William Pickard
Change by William Pickard <lollol22...@gmail.com>: -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue25095] test_httpservers hangs since Python 3.5

2018-01-27 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: Alright, the PR is ready for review. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue25095] test_httpservers hangs since Python 3.5

2018-01-27 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: Ok, I found another way to apply the solution to this issue, that is by adding the "Connection" header (with value of "close") to the client's request instead of the server's response. I'm going to use this

[issue25095] test_httpservers hangs since Python 3.5

2018-01-05 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: I have tried value 0 for "Content-Length" (along with "text/plain" for "Content-Type"), it was when I said I tried both "Content-Length" and "Content-Type", while I haven't tried

[issue25095] test_httpservers hangs since Python 3.5

2018-01-05 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: It hangs for me on Windows 10 Professional running on a MSI gaming laptop for debug and PGO builds (Python 3.6) -- ___ Python tracker <rep...@bugs.python.org> <https://

[issue25095] test_httpservers hangs since Python 3.5

2018-01-05 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: Martin, your suggestion will never work as if you look at the trace back posted terry.reedy and my test print statements, both the client and server get stuck waiting to read data their respective socket, hence the deadlock.

[issue25095] test_httpservers hangs since Python 3.5

2018-01-04 Thread William Pickard
Change by William Pickard <lollol22...@gmail.com>: -- title: test_httpservers hangs on 3.5.0, win 7 -> test_httpservers hangs since Python 3.5 type: crash -> performance ___ Python tracker <rep...@bugs.python.org> <https://bugs.

[issue25095] test_httpservers hangs on 3.5.0, win 7

2018-01-04 Thread William Pickard
Change by William Pickard <lollol22...@gmail.com>: -- keywords: +patch pull_requests: +4969 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue25095] test_httpservers hangs on 3.5.0, win 7

2018-01-04 Thread William Pickard
William Pickard <lollol22...@gmail.com> added the comment: Scratch the previous message about the possible cause, I found the true cause, getresponse() is waiting for a specific header, one that BaseHTTPRequestHandler.send_error sends and BaseHTTPRequestHandler.send_response() d