[issue2462] python.exe slowing my system

2008-03-23 Thread ryan
New submission from ryan <[EMAIL PROTECTED]>: Hello! First of all, i'm not a programmer. I'm running Windows XP Pro. For the past two/three weeks, every once in a while, my machine runs extremely slow, and the only strange thing i see in the task manager is a python.exe. When i s

[issue2463] python.exe slowing my system

2008-03-23 Thread ryan
New submission from ryan <[EMAIL PROTECTED]>: Hello! First of all, I'm nor a programmer. Running WinXPpro. Python.exe runs, using 112,000k mem, according to task manager. This problem started about 3 weeks ago, have had machine for 3 years without issues like this. Please help m

[issue2462] python.exe slowing my system

2008-03-23 Thread ryan
ryan <[EMAIL PROTECTED]> added the comment: Dear Mr Peterson: The FAQ did help somewhat...i figured that it was some 3rd party app, yet i have not downloaded any new programming recently, and it seems that python.exe runs when it wants to, unrelated to a unique program that i use rarel

[issue39292] syslog constants behind rfc

2020-01-10 Thread Ryan
New submission from Ryan : When using the SysLogHandler (https://docs.python.org/3/library/logging.handlers.html#logging.handlers.SysLogHandler) the supported facilities appear to be lagging the RFC (5454 ?), or at least what is being supported in other mainstream languages. I Specifically

[issue39292] syslog constants behind rfc

2020-01-11 Thread Ryan
Ryan added the comment: Thank you, this looks good. I'm pinned to 3.6 so while it won't work for me currently, maybe it will in a few years. For clarity and because I can't edit my original message, the RFC is 5424 (I had mistakenly said 5454 but y

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-16 Thread Ryan
New submission from Ryan : My script need scan a netdisk directory to get the content of it. I use os.listdir() method for an easy implement, then I got permission error when executing in Python 3.x, but the same code is working fine in Python 2.7,I attached a screenshot for explaining the

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-16 Thread Ryan
Ryan added the comment: Hi Steven, Thanks for your reply, I paste the output I executed just now as below. You can see that the both version of Python are running in the same shell with the same permission. And the frequency of this problem is always happen. BTW, the network disk is an

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-16 Thread Ryan
Ryan added the comment: Hi Steven, > PermissionError: [WinError 5] 拒绝访问。: 'L:\\Temp' to EN > PermissionError: [WinError 5] Access denied.: 'L:\\Temp' -- ___ Python tracker <https

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-17 Thread Ryan
Ryan added the comment: I ran "python3" because I rename the execute file for distincting with python2 exe. PS D:\workspace> (get-command python3).source C:\Python36_64\python3.exe There is no problem for my dev environment, it's an obviously different output for the sam

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2019-04-17 Thread Ryan
Ryan added the comment: PS D:\workspace> python Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>

[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens

2018-07-03 Thread Ryan
Change by Ryan : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue34029> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens

2018-07-03 Thread Ryan
New submission from Ryan : I'm creating a GUI application that needs to give the user the option to change a folder that's used for saving data. I managed to track it down to the import of pywinauto to the application. All other filedialogs seem to work, it's only askdirector

[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto

2018-07-03 Thread Ryan
Change by Ryan : -- title: tkinter.filedialog.askdirectory() crashing before dialog opens -> tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto ___ Python tracker <https://bugs.python.org/issu

[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto

2018-07-03 Thread Ryan
Change by Ryan : Added file: https://bugs.python.org/file47667/minimal_file.py ___ Python tracker <https://bugs.python.org/issue34029> ___ ___ Python-bugs-list mailin

[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto

2018-07-03 Thread Ryan
Ryan added the comment: It seems reinstalling pywinauto has fixed this issue for now - I have no idea what could have caused it in the first place though. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.p

[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto

2018-07-03 Thread Ryan
Ryan added the comment: Okay so I'm an idiot and forgot that I'd commented out the pywinauto import in one of my project files, which is how I found out that was the issue in the first place. Crash is still occurring after a pywinauto reinstall. -- status: clos

[issue19622] Default buffering for input and output pipes in subprocess module

2014-10-01 Thread Ryan
Ryan added the comment: This is not fixed. The documentation may be more correct now, but the behavior still does not match Python 2 as purported. The default bufsize changed in 3.3.1 is incorrect, at least when tested in 3.4.0 and 3.4.1. Here is a test for systems with cat available

[issue28960] Small typo in Thread.join docs

2016-12-13 Thread Ryan
New submission from Ryan: There is a '--' before a ',' that doesn't make sense here: https://docs.python.org/3/library/threading.html#threading.Thread.join -- assignee: docs@python components: Documentation files: fixdoc.patch keywords: patch messages: 283101

[issue28960] Small typo in Thread.join docs

2016-12-14 Thread Ryan
Ryan added the comment: Removing the comma instead of the double-dash -- Added file: http://bugs.python.org/file45898/fixdoc2.patch ___ Python tracker <http://bugs.python.org/issue28

[issue24152] test_mailcap fails

2015-05-09 Thread ryan
New submission from ryan: UnicodeDecodeError -- components: Tests files: results hgrepos: 308 messages: 242840 nosy: petrosr2 priority: normal severity: normal status: open title: test_mailcap fails type: crash versions: Python 2.7 Added file: http://bugs.python.org/file39330/results

[issue24152] test_mailcap fails

2015-05-09 Thread ryan
ryan added the comment: running command over PuTTY on Ubuntu 3.13, python 2.7.6 $ ./python -m test test_mailcap [1/1] test_mailcap test test_mailcap failed -- Traceback (most recent call last): File "/home/petrosr2/Documents/opensource/cpy/Lib/test/test_mailcap.py", lin

[issue26577] inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable

2021-12-18 Thread Ryan Fox
Ryan Fox added the comment: If you change the class member 'x' to a different name like 'y', then cv doesn't include 'x', but does include an unbound 'y'. In both cases, the function isn't referring to a global variable, just the class me

[issue1093] product function patch

2007-09-02 Thread Ryan Freckleton
New submission from Ryan Freckleton: This is a patch to implement a product() builtin function. It works behaves similarly to reduce(operator.mul,...) but is implemented in C. Tests and documentation are included in this patch. -- components: Documentation, Library (Lib), Tests files

[issue13591] import_module potentially imports a module twice

2011-12-12 Thread Ryan Twitchell
New submission from Ryan Twitchell : Use of importlib's import_module function with modules belonging to a library can cause some modules to be imported twice, if such a module is referenced from sibling modules, and from __init__ in the package. I suspect this is a bug, or at best a nuan

[issue13591] import_module potentially imports a module twice

2011-12-13 Thread Ryan Twitchell
Ryan Twitchell added the comment: Confirmed that this patch fixes the behavior shown in my original example, with 3.2. -- ___ Python tracker <http://bugs.python.org/issue13

[issue12269] Crashes on start

2011-06-05 Thread Ryan Hollis
New submission from Ryan Hollis : Mac OSX Snow Leopard, Python 2.7, The moment I paste anything into the editor window, it crashes. Also IDLE crashes within a minute or two of opening, wether or not I actually do anything with it after opening it. uninstalled and reinstalled, didnt help

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread Ryan Seto
Changes by Ryan Seto : -- nosy: -MrWerewolf ___ Python tracker <http://bugs.python.org/issue7511> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12483] CThunkObject_dealloc should call PyObject_GC_UnTrack?

2011-07-03 Thread Ryan Kelly
New submission from Ryan Kelly : According to the docs here: http://docs.python.org/c-api/gcsupport.html Any object that uses PyObject_GC_Track in its constructor must call PyObject_GC_UnTrack in its deallocator. The CThunkObject in _ctypes does the former but not the later. Attached

[issue11682] PEP 380 reference implementation for 3.3

2011-08-22 Thread Ryan Kelly
Changes by Ryan Kelly : -- nosy: +rfk ___ Python tracker <http://bugs.python.org/issue11682> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-08-22 Thread Ryan Kelly
Changes by Ryan Kelly : -- nosy: +rfk ___ Python tracker <http://bugs.python.org/issue11816> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9957] SpooledTemporayFile.truncate should take size parameter

2010-09-26 Thread Ryan Kelly
New submission from Ryan Kelly : Both file.truncate() and StringIO.truncate() accept an optional "size" parameter to truncate the file to a specific size. SpooledTemporaryFile should accept a similar parameter and pass it on. The only tricky part is that truncate can potentially in

[issue9957] SpooledTemporayFile.truncate should take size parameter

2010-09-27 Thread Ryan Kelly
Ryan Kelly added the comment: I went looking for places to update the documentation but the description of SpooledTemporaryFile doesn't go into any detail of its methods, so I haven't added anything. New patch fixes some whitespace issues. I'd like to argue that this

[issue9957] SpooledTemporayFile.truncate should take size parameter

2010-09-27 Thread Ryan Kelly
Changes by Ryan Kelly : Removed file: http://bugs.python.org/file19027/spooledtemporaryfile_truncate.patch ___ Python tracker <http://bugs.python.org/issue9957> ___ ___

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-09-28 Thread Ryan Seto
Ryan Seto added the comment: I came across this issue while trying to install mercurial using easy_install. I applied the vcvars4.diff to my distutils and this solved the problem. Environment: Python 2.6.6 (64 bit) setuptools-0.6c11.tar.gz installed using the following instructions: http

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-09-29 Thread Ryan Tucker
Changes by Ryan Tucker : -- nosy: +Ryan.Tucker ___ Python tracker <http://bugs.python.org/issue1589> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8728] 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no attribute 'makefile'

2011-02-28 Thread Ryan Coyner
Changes by Ryan Coyner : -- nosy: +rcoyner ___ Python tracker <http://bugs.python.org/issue8728> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-05 Thread Ryan Kelly
Ryan Kelly added the comment: Not sure if it's caused by the same thing, but I just got a segfault on the same line in my own program. Running python 2.7.1. I will try to dig out some more useful info but it's been a long time since I chased a segfault... -- nosy: +

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-05 Thread Ryan Kelly
Ryan Kelly added the comment: Please remind me how to obtain an appropriate coredump (as I said, it's been a *long* time...) Doing "print bp" shows an out-of-bounds address as for the original submitter. -- ___ Python

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-05 Thread Ryan Kelly
Ryan Kelly added the comment: attaching core dump from a freshly-compiled python 2.7.1 at with "-O0 -g" in CFLAGS. The code that is segfaulting is using pycrypto and sqlite3, so it may be that a bug in one of these is trampling on something. No idea how to investigate an

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-06 Thread Ryan Kelly
Ryan Kelly added the comment: Thanks for the help, I have tracked this down to a bug in PyCrypto. It was increfing an object once but decrefing it twice. Sorry for the noise. -- ___ Python tracker <http://bugs.python.org/issue5

[issue11448] docs for HTTPConnection.set_tunnel are ambiguous

2011-03-08 Thread Ryan Kelly
New submission from Ryan Kelly : The docs for HTTPConnection.set_tunnel(host,port) are ambiguous. They simply say "Set the host and the port for HTTP Connect Tunnelling". But should I specify the address of the server *through* which I want to tunnel, or the address of the *endpoi

[issue11448] docs for HTTPConnection.set_tunnel are ambiguous

2011-03-08 Thread Ryan Kelly
Ryan Kelly added the comment: Sorry, "endpoint" is just a noun that seemed to fit for me, I've no idea if there is a standard term for this. Perhaps "origin server" if you follow the terminology from the RFC? By way of example, suppose I'm running a proxy o

[issue10399] AST Optimization: inlining of function calls

2011-04-12 Thread Ryan Kelly
Changes by Ryan Kelly : -- nosy: +rfk ___ Python tracker <http://bugs.python.org/issue10399> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10590] Parameter type error for xml.sax.parseString(string, ...)

2010-11-30 Thread Thomas Ryan
New submission from Thomas Ryan : In 3.1.3, 3.1.2, maybe earlier... xml.sax.parseString(string, handler, error_handler=handler.ErrorHandler()) Source code requires bytes, not a string as implied by function name and by the documentation. Exception thrown for strings. Since the name includes

[issue6538] MatchObject is not a hyperlink in the 're' module documentation

2010-02-20 Thread Ryan Arana
Ryan Arana added the comment: Changed all occurrences of :class:`MatchObjects` to :ref:`match-objects` in /Doc/library/re.rst These changes were made to rev 78277. -- keywords: +patch nosy: +rarana Added file: http://bugs.python.org/file16274/MatchObjectLinksFix.diff

[issue7162] 2to3 does not convert __builtins__.file

2010-02-27 Thread Ryan Coyner
Ryan Coyner added the comment: Patch attached. Unit test and documentation included. COMMITMSG: Adds a new fixer to lib2to3 which replaces the deprecated builtin "file" with "open". -- keywords: +patch nosy: +rcoyner Added file: http://bugs.python.org/file1

[issue6729] Add support for ssize_t

2010-02-28 Thread Ryan Coyner
Ryan Coyner added the comment: You don't want to do c_size_t = c_void_p because that will prevent type checking. We want c_size_t to be integers; setting it to c_void_p will accept other values. The lines that define c_size_t are doing a sizeof check to determine how many bits th

[issue5277] email message.get_params() and related methods sometimes fail.

2010-03-03 Thread Ryan Coyner
Ryan Coyner added the comment: Okay, bug confirmed: >>> m = email.message_from_string('Content-Disposition: inline; filename*0="foo >>> \\"test"; filename*1="\\"bar"') >>> m.get_filename() 'foo "tes

[issue6538] MatchObject is not a hyperlink in the 're' module documentation

2010-03-04 Thread Ryan Arana
Ryan Arana added the comment: Added .. class:: MatchObject and .. class:: RegexObject directives. -- Added file: http://bugs.python.org/file16427/MatchObjectLinksFix.diff ___ Python tracker <http://bugs.python.org/issue6

[issue7162] 2to3 does not convert __builtins__.file

2010-03-07 Thread Ryan Coyner
Ryan Coyner added the comment: I thought the whole point was that file[1] was removed in 3.0[2]? Or, are you saying that if somebody overloaded file with def file(...)? If that is the case would it be reasonable to check like this? >>> file in list(__builtins__.__dict__.value

[issue6538] MatchObject is not a hyperlink in the 're' module documentation

2010-03-08 Thread Ryan Arana
Changes by Ryan Arana : Removed file: http://bugs.python.org/file16274/MatchObjectLinksFix.diff ___ Python tracker <http://bugs.python.org/issue6538> ___ ___ Python-bug

[issue6538] MatchObject is not a hyperlink in the 're' module documentation

2010-03-08 Thread Ryan Arana
Ryan Arana added the comment: I tried to format the methods of the class(es) as they are formatted in other files, which is why I added the whitespace. I can go back and remove that if that's what would be preferred. -- ___ Python tracker

[issue3243] Support iterable bodies in httplib

2010-03-10 Thread Ryan Coyner
Ryan Coyner added the comment: This patch and its tests still work. Any particular reason why it hasn't been adopted yet? -- nosy: +rcoyner ___ Python tracker <http://bugs.python.org/i

[issue1411695] XML.sax.saxutils.escape -- always escapes <

2008-01-19 Thread Ryan Freckleton
Ryan Freckleton added the comment: I've included a unified diff that explicitly states the behavior of &, <, and > for escape/unescape in the documentation. It's based on msandler's patch. -- nosy: +ryan.freckleton Added file: http://bugs.python.org/fil

[issue1411695] XML.sax.saxutils.escape -- always escapes <

2008-01-19 Thread Ryan Freckleton
Changes by Ryan Freckleton: -- components: +Documentation versions: +Python 2.6 _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1411695> _ ___ Pyth

[issue1983] Return from fork() is pid_t, not int

2008-01-31 Thread Ryan Stutsman
New submission from Ryan Stutsman: In current trunk (60097). Return from fork is not int but pid_t. Treating this as an int causes total breakage on systems with 64-bit pids. -- components: Library (Lib) messages: 61926 nosy: stutsman severity: normal status: open title: Return from

[issue1983] Return from fork() is pid_t, not int

2008-01-31 Thread Ryan Stutsman
Ryan Stutsman added the comment: Yeah; I shuold be able to provide one. I just hacked 2.4.4 to work so I think I could provide a fix easily. The version I put together here is rough, so I'll try to create a cleaner solution tonight or this weekend. HiStar does (http://www.scs.stanfor

[issue1983] Return from fork() is pid_t, not int

2008-01-31 Thread Ryan Stutsman
Ryan Stutsman added the comment: > IIUC, HiStar is available in a 32-bit version, > too, yet it may still use a 64-bit pid_t (Ryan, can > you confirm whether that's the case?). Great point. pid_t is always 64-bit on HiStar. __ Tracker <[EMAIL

[issue1983] Return from fork() is pid_t, not int

2008-02-01 Thread Ryan Stutsman
Ryan Stutsman added the comment: Actually the current trunk of as of this morning (60484) is still broken in a couple of ways. First, converting the pid_t using PyInt is a problem and second the waitpids aren't corrected. This would cause waits on invalid

[issue2474] fset not working

2008-03-24 Thread Ryan Sturmer
New submission from Ryan Sturmer <[EMAIL PROTECTED]>: Using the attached module, There's an asymmetry between fget and fset in my properties. fget works fine, but fset isn't getting called. I'm fairly sure I'm creating the property correctly. Try the following

[issue2488] Backport sys.maxsize to Python 2.6

2008-03-25 Thread Ryan Freckleton
Ryan Freckleton <[EMAIL PROTECTED]> added the comment: Here's a patch including docstring and NEWS update for this backport. -- keywords: +patch nosy: +ryan.freckleton Added file: http://bugs.python.org/file9859/patch.diff __ Tracker <[E

[issue4875] find_library can return directories instead of files

2009-01-07 Thread Ryan Kelly
New submission from Ryan Kelly : On win32, ctypes.util.find_library uses os.path.exists() to check for potential library files. This means it is quite happy to return a directory instead of a file, if one happens to exist with the appropriate name somewhere in the search path. Can this please

[issue5135] Expose simplegeneric function in functools module

2009-02-03 Thread Ryan Freckleton
Ryan Freckleton added the comment: PJE seems to have borrowed the time machine :-). Based on the code the register function is already a decorator: def register(typ, func=None): if func is None: return lambda f: register(typ, f) registry[typ] = func

[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Ryan Freckleton
Ryan Freckleton added the comment: I think that registering existing functions is an important use case, so I vote for keeping the non-decorator version of register. Another thing that we may want to document is that [simple]generic doesn't dispatch based on registered abstract base cl

[issue5205] String Formatting with namedtuple

2009-02-10 Thread Lie Ryan
New submission from Lie Ryan : I've been experimenting with namedtuple, it seems that string formatting doesn't recognize namedtuple as mapping. from collections import namedtuple Nt = namedtuple('Nt', ['x', 'y']) nt = Nt(12, 32) print 'one = %(x)

[issue5205] String Formatting with namedtuple

2009-02-10 Thread Lie Ryan
Changes by Lie Ryan : -- components: +Interpreter Core versions: +Python 2.6 ___ Python tracker <http://bugs.python.org/issue5205> ___ ___ Python-bugs-list mailin

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-09-05 Thread Ryan May
Change by Ryan May : -- nosy: +Ryan May ___ Python tracker <https://bugs.python.org/issue37980> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-07 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue29988> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31387] asyncio should make it easy to enable cooperative SIGINT handling

2019-09-07 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue31387> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2019-09-08 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue30491> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38217] argparse should support multiple types when nargs > 1

2019-09-18 Thread Ryan Govostes
New submission from Ryan Govostes : argparse supports consuming multiple command-line arguments with nargs=2, etc. It converts them to the type given in the argument's type parameter. argparse does not provide a good solution when the input arguments should be different data types. F

[issue33725] Python crashes on macOS after fork with no exec

2019-10-16 Thread Ryan May
Change by Ryan May : -- nosy: +Ryan May ___ Python tracker <https://bugs.python.org/issue33725> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38595] io.BufferedRWPair doc warning may need clarification

2019-10-25 Thread Ryan Govostes
New submission from Ryan Govostes : The documentation for the io.BufferedRWPair class gives this warning: > BufferedRWPair does not attempt to synchronize accesses to its underlying raw > streams. You should not pass it the same object as reader and writer; use > BufferedRandom in

[issue38595] io.BufferedRWPair doc warning may need clarification

2019-10-25 Thread Ryan Govostes
Ryan Govostes added the comment: The origin of this warning involves interleaving read and write operations, and was added here: https://bugs.python.org/issue12213 I'm not sure if it applies to sockets, pipes, etc. though. The pySerial documentation advises using io.BufferedRWPair

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue29687> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Ryan Hiebert added the comment: Thank you, Christian. It sounds like you believe that we should view the `_get_socket` method as a public interface? That at least makes it possible to use a proxy socket through an appropriate mechanism, which solves my use-case

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker <https://bugs.python.org/issue43532> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43738] Clarify public name of curses.window

2021-04-05 Thread Ryan McCampbell
New submission from Ryan McCampbell : Until 3.8 the curses window class was not directly available in code, but now it is available as `_curses.window`. This is not explicitly stated in the documentation (although it is consistent with how the method signatures are written). It is useful to

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-04-22 Thread Ryan Tarpine
New submission from Ryan Tarpine : Functions registered with unittest.addModuleCleanup are not called unless the user defines tearDownModule in their test module. This behavior is unexpected because functions registered with TestCase.addClassCleanup are called even the user doesn't d

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-06 Thread Ryan Hileman
Ryan Hileman added the comment: I just ran into this. GetTickCount64() is a bad choice even without improving the Windows timer resolution, as every mutex wait will have 16ms of jitter. Here are some lock.acquire(timeout=0.001) times measured with time.perf_counter(): elapsed=21.215ms

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-06 Thread Ryan Hileman
Change by Ryan Hileman : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue41299> ___ ___ Python-bugs-list m

[issue44328] time.monotonic() should use QueryPerformanceCounter() on Windows

2021-06-06 Thread Ryan Hileman
New submission from Ryan Hileman : Related to https://bugs.python.org/issue41299#msg395220 Presumably `time.monotonic()` on Windows historically used GetTickCount64() because QueryPerformanceCounter() could fail. However, that hasn't been the case since Windows XP:

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-06 Thread Ryan Hileman
Change by Ryan Hileman : -- keywords: +patch pull_requests: +25157 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26568 ___ Python tracker <https://bugs.python.org/issu

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-06 Thread Ryan Hileman
Ryan Hileman added the comment: Ok, I filed a PR for this. I used pytime's interface to avoid duplicating the QueryPerformanceFrequency() code. I found a StackOverflow answer that says QueryPerformance functions will only fail if you pass in an unaligned pointer: https://stackoverflow.

[issue44328] time.monotonic() should use a different clock source on Windows

2021-06-06 Thread Ryan Hileman
Ryan Hileman added the comment: I found these two references: - https://stackoverflow.com/questions/35601880/windows-timing-drift-of-performancecounter-c - https://bugs.python.org/issue10278#msg143209 Which suggest QueryPerformanceCounter() may be bad because it can drift. However, these

[issue44328] time.monotonic() should use a different clock source on Windows

2021-06-09 Thread Ryan Hileman
Ryan Hileman added the comment: Great information, thanks! > Windows 10 also provides QueryInterruptTimePrecise(), which is a hybrid > solution. It uses the performance counter to interpolate a timestamp between > interrupts. I'd prefer to use this for time.monotonic() inst

[issue44328] time.monotonic() should use a different clock source on Windows

2021-06-12 Thread Ryan Hileman
Ryan Hileman added the comment: I think a lot of that is based on very outdated information. It's worth reading this article: https://docs.microsoft.com/en-us/windows/win32/sysinfo/acquiring-high-resolution-time-stamps I will repeat Microsoft's current recommendation (from th

[issue44328] time.monotonic() should use a different clock source on Windows

2021-06-13 Thread Ryan Hileman
Ryan Hileman added the comment: > The monotonic clock should thus be based on QueryUnbiasedInterruptTime My primary complaint here is that Windows is the only major platform with a low resolution monotonic clock. Using QueryUnbiasedInterruptTime() on older OS versions wouldn't entir

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-14 Thread Ryan Hileman
Ryan Hileman added the comment: I agree with not throwing fatal errors, but that check is unlikely to actually be hit, and you removed the startup checks covering the underlying clocks here: https://github.com/python/cpython/commit/ae6cd7cfdab0599139002c526953d907696d9eef I think if the

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-14 Thread Ryan Hileman
Ryan Hileman added the comment: Perhaps the simplest initial fix would be to move that check down to PyThread__init_thread() in the same file. I'm not sure what the cpython convention for that kind of init error is, would it just be the same Py_FatalError block or is there a better pa

[issue44328] time.monotonic() should use a different clock source on Windows

2021-06-14 Thread Ryan Hileman
Ryan Hileman added the comment: > It shouldn't behave drastically different just because the user closed the > laptop lid for an hour I talked to someone who's been helping with the Go time APIs and it seems like that holds pretty well for interactive timeouts, but ma

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-14 Thread Ryan Hileman
Ryan Hileman added the comment: > Do you think that pytime.c has the bug? I don't think so. No, a misaligned stack would be an issue in the caller or compiler, not pytime.c. I have hit misaligned stack in practice, but it should be rare enough to check on init only. > In the

[issue44437] Add multimap() function similar to map(), but with multiprocessing functionality to the multiprocessing module

2021-06-16 Thread Ryan Rudes
Change by Ryan Rudes : -- components: Tkinter nosy: Ryan-Rudes priority: normal severity: normal status: open title: Add multimap() function similar to map(), but with multiprocessing functionality to the multiprocessing module type: enhancement versions: Python 3.10, Python 3.11

[issue44437] Add multimap() function similar to map(), but with multiprocessing functionality to the multiprocessing module

2021-06-16 Thread Ryan Rudes
Change by Ryan Rudes : -- keywords: +patch pull_requests: +25347 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26762 ___ Python tracker <https://bugs.python.org/issu

[issue44437] Add multimap() function similar to map(), but with multiprocessing functionality to the multiprocessing module

2021-06-16 Thread Ryan Rudes
Change by Ryan Rudes : -- components: +Library (Lib) -Tkinter ___ Python tracker <https://bugs.python.org/issue44437> ___ ___ Python-bugs-list mailing list Unsub

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-07-25 Thread Ryan Ozawa
Ryan Ozawa added the comment: Hi all, This is my first issue so feedback is welcome. Following @vstinner 's suggestions: > * os.rename() can fail if source and destination are on two different file systems > * Use shutil.move() to support move to a different directory And fr

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-07-26 Thread Ryan Ozawa
Change by Ryan Ozawa : -- pull_requests: +25912 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27376 ___ Python tracker <https://bugs.python.org/issu

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Ryan Pecor
New submission from Ryan Pecor : After making a class using the @property decorator to implement a getter, using tab completion that matches the getter function name executes the function. See below for example (line numbers added, indicates when the user presses the tab key): 1

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Ryan Pecor
Ryan Pecor added the comment: I forgot to mention that I also added "~~~" to either side of the printed string every time it printed to help differentiate the printed string from commands that I typed into the interpreter. -- ___ Pyth

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Ryan Pecor
Ryan Pecor added the comment: It looks to me like the issue is caused by the eval() in line 155 of the rlcompleter.py file (https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/rlcompleter.py#L155) which runs the function in order to see if it runs or raises

  1   2   3   4   5   >