[issue26832] ProactorEventLoop doesn't support stdin/stdout nor files with connect_read_pipe/connect_write_pipe

2022-02-23 Thread Min RK
Min RK added the comment: It appears that connect_read_pipe also doesn't accept pipes returned by `os.pipe`. If that's the case, what _does_ ProactorEventLoop.connect_read_pipe accept? I haven't been able to find any examples of `connect_read_pipe` that work on Windows, and every

[issue39529] Deprecate get_event_loop()

2021-12-01 Thread Min RK
Min RK added the comment: Oops, I interpreted "not deprecated by oversight" as the opposite of what you meant. Sorry! All clear, now. -- ___ Python tracker <https://bugs.python.o

[issue39529] Deprecate get_event_loop()

2021-12-01 Thread Min RK
Min RK added the comment: Thank you! I think I have enough information to update. > IMHO, asyncio.set_event_loop()...[is] not deprecated by oversight. I'm curious, what is an appropriate use of `asyncio.set_event_loop()` if you can never get the event loop with `get_event_loop()`? If

[issue39529] Deprecate get_event_loop()

2021-12-01 Thread Min RK
Min RK added the comment: Further digging reveals that `policy.get_event_loop()` is _not_ deprecated while `asyncio.get_event_loop()` is. Is that intentional? Does that mean switching our calls to `get_event_loop_policy().get_event_loop()` should continue to work without deprecation

[issue39529] Deprecate get_event_loop()

2021-11-30 Thread Min RK
Min RK added the comment: The comments in this thread suggest that `set_event_loop` should also be deprecated, but it hasn't been. It doesn't seem to have any use without `get_event_loop()`. I'm trying to understand the consequences of these changes for IPython, and make the changes

[issue36841] Supporting customization of float encoding in JSON

2021-09-30 Thread Min RK
Min RK added the comment: We just ran into this in Jupyter where we've removed a pre-processing step for data structures passed to json.dumps, which took care of this, but was expensive https://github.com/jupyter/jupyter_client/pull/706 My expectation was that our `default` would be called

[issue36841] Supporting customization of float encoding in JSON

2021-09-30 Thread Min RK
Change by Min RK : -- nosy: +minrk nosy_count: 5.0 -> 6.0 pull_requests: +27016 pull_request: https://github.com/python/cpython/pull/28648 ___ Python tracker <https://bugs.python.org/issu

[issue37373] Configuration of windows event loop for libraries

2021-05-10 Thread Min RK
Min RK added the comment: A hiccup to using uvloop is that it doesn't support Windows yet (https://github.com/MagicStack/uvloop/issues/14), so it can't be used in the affected environment. I'm exploring this again for pyzmq / Jupyter, and currently investigating relying on tornado's

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2019-12-12 Thread Jeong-Min Lee
Change by Jeong-Min Lee : -- nosy: +falsetru ___ Python tracker <https://bugs.python.org/issue38947> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38529] Python 3.8 improperly warns about closing properly closed streams

2019-10-25 Thread Jeong-Min Lee
Change by Jeong-Min Lee : -- nosy: +falsetru ___ Python tracker <https://bugs.python.org/issue38529> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32911] Doc strings no longer stored in body of AST

2018-05-25 Thread Min RK
Min RK <benjami...@gmail.com> added the comment: In the A/B vote, I cast mine for B, for what it is worth, but it is not strongly held. >From the IPython side, I don't view our particular issue as a major regression >for users. The only affected case for us is interactively

[issue33566] re.findall() dead locked whent the expected ending char not occur until end of string

2018-05-18 Thread Min
Min <mamamia...@gmail.com> added the comment: Sorry again, the sample code offered is issue of re.sub(), not findall() :o))) -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33566] re.findall() dead locked whent the expected ending char not occur until end of string

2018-05-18 Thread Min
Min <mamamia...@gmail.com> added the comment: Sorry, forgot I have upgraded to 3.6.2, not 3.5 -- versions: +Python 3.6 -Python 3.5 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33566] re.findall() dead locked whent the expected ending char not occur until end of string

2018-05-18 Thread Min
New submission from Min <mamamia...@gmail.com>: Firstly, I wrote something like this: patn = r"\bROW\s*\((\d+|\*)\)(.|\s)*?\)" newlines = re.sub(patn, "\nY\n", newlines) but if the file(or string) ended without the expe

[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Min RK
Min RK added the comment: This affects IPython (specifically the traitlets component), which is what prompted the report. We were able to push out a release of traitlets with a workaround for the bug (4.3.1), but earlier versions of IPython / traitlets will still be affected (all IPython >

[issue28384] hmac cannot be used with shake algorithms

2016-10-07 Thread Min RK
New submission from Min RK: HMAC digest methods call inner.digest() with no arguments, but new-in-3.6 shake algorithms require a length argument. possible solutions: 1. add optional length argument to HMAC.[hex]digest, and pass through to inner hash object 2. set hmac.digest_size, and use

[issue28147] Unbounded memory growth resizing split-table dicts

2016-09-14 Thread Min RK
Min RK added the comment: I pulled just now and saw changes in dictobject.c, and just wanted to confirm the memory growth bug is still in changeset 56294e03ad89 (I think I used the right hash, this time). -- ___ Python tracker <

[issue28147] Unbounded memory growth resizing split-table dicts

2016-09-14 Thread Min RK
Min RK added the comment: > Ah, is the leak happen in 3.6b1? The leak happens in 3.6b1 and master as of an hour ago (git: 3c06edfe9463f1cf81bc34b702f165ad71ff79b8, hg:r103797) -- title: Memory leak in new 3.6 dictionary resize -> Unbounded memory growth resizing split-table

[issue28147] Memory leak in new 3.6 dictionary resize

2016-09-14 Thread Min RK
Min RK added the comment: > dictresize() is called for converting split table to combined table. > How is it triggered many times? every `self.__dict__.pop` triggers a resize. According to https://www.python.org/dev/peps/pep-0412/#split-table-dictionaries `obj.__dict__` is always a

[issue28147] Memory leak in new 3.6 dictionary resize

2016-09-14 Thread Min RK
Min RK added the comment: I can add the cpython_only decorator, but I'm not sure it is the right thing to do. I would expect the code in the test to pass on any Python implementation, which would suggest that it should not be cpython_only, right? If you still think so, I'll add

[issue28147] Memory leak in new 3.6 dictionary resize

2016-09-14 Thread Min RK
Changes by Min RK <benjami...@gmail.com>: -- title: Memory leak in dictionary resize -> Memory leak in new 3.6 dictionary resize ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue28147] Memory leak in dictionary resize

2016-09-14 Thread Min RK
Min RK added the comment: This patch fixes the memory leak in split-dict resizing. Each time dict_resize is called, it gets a new, larger size `> minused`. If this is triggered many times, it will keep growing in size by a factor of two each time, as the previous size is passed as minu

[issue28147] Memory leak in dictionary resize

2016-09-14 Thread Min RK
New submission from Min RK: There is a memory leak in the new dictionary resizing in 3.6, which can cause memory exhaustion in just a few iterations. I don't fully understand the details of the bug, but it happens when resizing a dict with a split table several times. The only way that I

[issue25544] cleanup temporary files in distutils.has_function

2016-04-08 Thread Min RK
Min RK added the comment: update patch to use file context manager on temporary source file it should apply cleanly on current default (778ccbe3cf74) -- Added file: http://bugs.python.org/file42399/0001-cleanup-tempfiles-in-has_function.patch

[issue25544] cleanup temporary files in distutils.has_function

2016-04-04 Thread Min RK
Min RK added the comment: Absolutely, I'll try to do that tomorrow. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25544> ___ ___

[issue26153] PyImport_GetModuleDict: no module dictionary! when `__del__` triggers a warning

2016-01-19 Thread Min RK
Changes by Min RK <benjami...@gmail.com>: Added file: http://bugs.python.org/file41659/main.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26153] PyImport_GetModuleDict: no module dictionary! when `__del__` triggers a warning

2016-01-19 Thread Min RK
Changes by Min RK <benjami...@gmail.com>: Added file: http://bugs.python.org/file41658/b.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26153] PyImport_GetModuleDict: no module dictionary! when `__del__` triggers a warning

2016-01-19 Thread Min RK
Changes by Min RK <benjami...@gmail.com>: Added file: http://bugs.python.org/file41657/a.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26153] PyImport_GetModuleDict: no module dictionary! when `__del__` triggers a warning

2016-01-19 Thread Min RK
New submission from Min RK: PyImport_GetModuleDict: no module dictionary! can be raised during interpreter shutdown if a `__del__` method results in a warning. This only happens on Python 3.5. The prompting case is IPython 4.0.2 and traitlets 4.1.0. An IPython ExtensionManager calls

[issue25544] cleanup temporary files in distutils.has_function

2015-11-03 Thread Min RK
New submission from Min RK: One of the nits noted in http://bugs.python.org/issue717152, which introduced ccompiler.has_function, was that it does not clean up after itself. This patch uses a TemporaryDirectory context to ensure that the files created during has_function are cleaned up

[issue24564] shutil.copytree fails when copying NFS to NFS

2015-07-04 Thread Min RK
Min RK added the comment: On a bit of further investigation, the NFS files have an xattr `system.nfs4_acl`. This can be read, but attempting to write it fails with EINVAL. Attempting to copy from NFS to non-NFS fails with ENOTSUP, which is caught and ignored, but copying from NFS to NFS

[issue24534] disable executing code in .pth files

2015-06-30 Thread Min RK
Min RK added the comment: Could you please post an example of where the feature is problematic ? setuptools/easy_install is the major one, which effectively does `sys.path[:0] = pth_contents`, breaking import priority. This has been known to result in adding `/usr/lib/pythonX.Y/dist-packages

[issue24534] disable executing code in .pth files

2015-06-30 Thread Min RK
Min RK added the comment: Thanks for the feedback, I thought it might be a long shot. I will go back to removing the *use* of the feature everywhere I can find it, since it is so problematic and rarely, if ever, desirable. it's an essential feature that has been documented for a very long

[issue24534] disable executing code in .pth files

2015-06-30 Thread Min RK
Min RK added the comment: Just because a feature can be misused doesn't make it a bad feature. That's fair. I'm just not aware of any uses of this feature that aren't misuses, hence the patch. Perhaps you could submit a fix for this to the setuptools maintainers instead. Yes, that's

[issue24534] disable executing code in .pth files

2015-06-29 Thread Min RK
New submission from Min RK: .pth files currently allow execution of arbitrary code, triggered by lines starting with `import`. This is a rarely understood, and often misbehaving feature. easy_install has used this feature to ensure that its packages are highest priority (even higher than

[issue22269] Resolve distutils option conflicts with priorities

2014-08-27 Thread Min RK
Min RK added the comment: `--prefix` vs `--user` is the only conflict I have encountered, but based on the way it works, it could just as easily happen with any of the various other conflicting options in install (install_base, exec_prefix, etc.), though that might not be very common

[issue22269] Resolve distutils option conflicts with priorities

2014-08-24 Thread Min RK
New submission from Min RK: Background: Some Python distros (OS X, Debian, Homebrew, others) want the default installation prefix for packages to differ from sys.prefix. OS X and Debian accomplish this by patching distutils itself, with special cases like `if sys.prefix == '/System/Library

[issue21351] refcounts not respected at process exit

2014-04-30 Thread Min RK
Min RK added the comment: Thanks for clarifying that there is indeed a reference cycle by way of the module, I hadn't realized that. The gc blocking behavior is exactly why I brought up the issue. The real code where this causes a problem (rather than the toy example I attached) is in pyzmq

[issue21351] refcounts not respected at process exit

2014-04-30 Thread Min RK
Min RK added the comment: Thanks for your help and patience. Closing as slightly unfortunate, but not unintended behavior. -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21351

[issue21351] refcounts not respected at process exit

2014-04-25 Thread Min RK
New submission from Min RK: Reference counts appear to be ignored at process cleanup, which allows inter-dependent `__del__` methods to hang on exit. The problem does not seem to occur for garbage collection of any other context (functions, etc.). I have a case where one object must

[issue20814] tracemalloc example

2014-03-01 Thread Jeong-Min Lee
New submission from Jeong-Min Lee: Running the Pretty top example (http://docs.python.org/dev/library/tracemalloc.html#pretty-top) in the tracemalloc module documentation causes a ValueError. Traceback (most recent call last): File t.py, line 32, in module display_top

[issue20814] tracemalloc example - Pretty Top

2014-03-01 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- title: tracemalloc example - tracemalloc example - Pretty Top ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20814

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-28 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- nosy: +Jeong-Min.Lee ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18851 ___ ___ Python-bugs-list

[issue10169] socket.sendto raises incorrect exception when passed incorrect types

2011-05-02 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- nosy: +falsetru ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10169 ___ ___ Python-bugs-list

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-28 Thread Jeong-Min Lee
Jeong-Min Lee false...@gmail.com added the comment: Some exceptions are reported correctly. def g(): ... 1 / 0 ... yield 1, 2 ... yield 3, 4 ... zip(*g()) Traceback (most recent call last): File stdin, line 1, in module File stdin, line 2, in g ZeroDivisionError: integer

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Jeong-Min Lee
New submission from Jeong-Min Lee false...@gmail.com: Expected TypeError: cannot concatenate 'str' and 'int' objects exception raised, but got following result. def g(): ... '1' + 0 ... yield 1, 2 ... yield 3, 4 ... zip(*g()) Traceback (most recent call last): File stdin, line

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- versions: +Python 3.2 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11944

[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

2010-11-07 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- nosy: +falsetru ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195 ___ ___ Python-bugs-list

[issue10109] itertools.product with infinite iterator cause MemoryError.

2010-10-14 Thread Jeong-Min Lee
New submission from Jeong-Min Lee false...@gmail.com: According to the documentation, itertools.product is equivalent to nested for-loops in a generator expression. But, itertools.product(itertools.count(2010)) is not. import itertools (year for year in itertools.count(2010)) generator

[issue5879] multiprocessing - example pool of http servers fails on windows socket has no attribute fromfd

2010-01-20 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- nosy: +falsetru ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5879 ___ ___ Python-bugs-list

[issue6902] Built-in types format incorrectly with 0 padding.

2009-12-13 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- nosy: +falsetru ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6902 ___ ___ Python-bugs-list

[issue7483] str.format behaviour changed from Python 2.6

2009-12-11 Thread Jeong-Min Lee
New submission from Jeong-Min Lee false...@gmail.com: In Python 2.6, '{0:030}'.format(1) '10' '{0:-30}'.format(1) '1-' In Python 2.7a / 3.1, '{0:030}'.format(1) '01' '{0:-30}'.format(1) '1

[issue6316] format, str.format don't work well with datetime, date object

2009-06-20 Thread Jeong-Min Lee
New submission from Jeong-Min Lee false...@gmail.com: format(datetime_obj, format_string) return format_string. (when format_string is not empty.) import datetime d = datetime.datetime.now() format(d) '2009-06-20 23:51:54.243428' format(d, '') '2009-06-20 23:51:54.243428' d

[issue6316] format, str.format don't work well with datetime, date object

2009-06-20 Thread Jeong-Min Lee
Jeong-Min Lee false...@gmail.com added the comment: I got it. By the way, It would be good to document that this behaviour (at least about datetime.__format__) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6316

[issue1411] A typo in tutorial

2007-11-08 Thread Jeong-Min Lee
New submission from Jeong-Min Lee: In the middle of 3.1.4 Lists, it reads as follow - a [] The built-in function len() also applies to lists: len(a) 8 - but it should be .. - a [] The built-in function len() also applies to lists: len(a) 0 - http://docs.python.org/tut

[issue1107] [patch] 2to3, lambda with non-tuple argument inside parenthesis

2007-09-04 Thread Jeong-Min Lee
New submission from Jeong-Min Lee: lambda (x): x should be transformed to lambda x: x not lambda x1: x1[0] -- components: Demos and Tools files: 2to3_lambda_nontuple_param.diff messages: 55654 nosy: falsetru, gvanrossum severity: normal status: open title: [patch] 2to3, lambda

[issue1107] [patch] 2to3, lambda with non-tuple argument inside parenthesis

2007-09-04 Thread Jeong-Min Lee
Jeong-Min Lee added the comment: I found this while 2to3ing BeautifulSoup.py. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1107 __ ___ Python-bugs-list mailing list