[issue37461] email.parser.Parser hang

2019-07-14 Thread Nam Nguyen
Change by Nam Nguyen : -- nosy: +Nam.Nguyen ___ Python tracker <https://bugs.python.org/issue37461> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread Nam Nguyen
Nam Nguyen added the comment: Just being nosy here that we should not continue down the path with regex. A proper grammar parser according to spec would be much more appropriate and eliminate these whack-a-mole issues. -- nosy: +Nam.Nguyen

[issue30500] urllib connects to a wrong host

2017-05-29 Thread Nam Nguyen
Nam Nguyen added the comment: I think the best behavior is to do what popular web browsers do. Chrome and Firefox, for example, parses this is host 127.0.0.1, path /, fragment #@evil.com. If the code does want to support username/password, it should do a custom opener (with basic HTTP

[issue30500] urllib connects to a wrong host

2017-05-29 Thread Nam Nguyen
Changes by Nam Nguyen : -- pull_requests: +1937 ___ Python tracker <http://bugs.python.org/issue30500> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30500] urllib connects to a wrong host

2017-05-28 Thread Nam Nguyen
New submission from Nam Nguyen: Reported by Orange Tsai: == Hi, Python Security Team import urllib from urlparse import urlparse url = 'http://127.0.0.1#@evil.com/' print urlparse(url).netloc # 127.0.0.1 print urllib.urlopen(url).read()# will access evil.co

[issue15285] test_timeout failure when system on IPv4 10.x.x.x subnet

2012-07-24 Thread Nam Nguyen
Nam Nguyen added the comment: Using a remote server such as python.org is a good idea when you have internet connection. When you don't, though, how will the test run? -- nosy: +Nam.Nguyen ___ Python tracker <http://bugs.python.org/is

[issue14119] Ability to adjust queue size in Executors

2012-06-12 Thread Nam Nguyen
Nam Nguyen added the comment: +1 That was actually what I did. I replaced the internal queue with another one whose limit was properly set. If you are busy to write one, let me find some time to create another patch. -- ___ Python tracker <h

[issue14119] Ability to adjust queue size in Executors

2012-06-10 Thread Nam Nguyen
Nam Nguyen added the comment: I used the ThreadPoolExecutor to process a large number (bounded) of input/output jobs. Because there were too many of them and the worker threads could not process them fast enough to drain them from the queue, the queue kept increasing in size. It was okay

[issue14119] Ability to adjust queue size in Executors

2012-06-10 Thread Nam Nguyen
Nam Nguyen added the comment: Currently, ProcessionPoolExecutor has this line in its constructor: self._call_queue = multiprocessing.Queue(self._max_workers + EXTRA_QUEUED_CALLS) where EXTRA_QUEUED_CALLS is 1. And yes, it would be best to

[issue14289] Prebuilt CHM file on Docs download page

2012-03-14 Thread Nam Nguyen
Nam Nguyen added the comment: I can't find any CHM for download. For example, this is everything there is to Python 3.2.2: http://www.python.org/ftp/python/3.2.2/ Yet there's no sight of CHM in it. -- ___ Python tracker <http://bu

[issue14289] Prebuilt CHM file on Docs download page

2012-03-13 Thread Nam Nguyen
New submission from Nam Nguyen : Before 2.7, one can easily find .CHM files in the Documentation download page. When 2.7 come out, the only way to get CHM files is downloading the Windows installers (EXE or MSI), installing it on Windows, and grabbing the CHM files. This is unwieldy. I am on

[issue14119] Ability to adjust queue size in Executors

2012-02-27 Thread Nam Nguyen
Changes by Nam Nguyen : -- keywords: +patch Added file: http://bugs.python.org/file24666/executor-queue-size.diff ___ Python tracker <http://bugs.python.org/issue14

[issue14119] Ability to adjust queue size in Executors

2012-02-24 Thread Nam Nguyen
Nam Nguyen added the comment: By the way, ProcessPoolExecutor actually sets its queue size to a reasonable number but ThreadPoolExecutor does not. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14119] Ability to adjust queue size in Executors

2012-02-24 Thread Nam Nguyen
New submission from Nam Nguyen : I am running into a memory consumption issue with concurrent.futures module. Its Executors do not have a public API to adjust their queue size. and the queues are created unbounded initially. It would be helpful to have some public method or a parameter at

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-01-11 Thread Nam Nguyen
Nam Nguyen added the comment: Ronald's patch does fix the segmentation fault with clang-compiled Python. But this bug report seems to be about LLVM-GCC not compiling correctly. -- ___ Python tracker <http://bugs.python.org/is

[issue13562] Notes about module load path

2012-01-06 Thread Nam Nguyen
Nam Nguyen added the comment: Please do keep the warning though. It is best to warn in both Python-C Py_Initialize() document and the Embedding tutorial. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-12-27 Thread Nam Nguyen
Nam Nguyen added the comment: Here's a minimal test case for #define bug in LLVM GCC. If the base struct is 8-byte long or smaller, the code runs correctly. gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) #include #include typedef struct {

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-12-13 Thread Nam Nguyen
Changes by Nam Nguyen : -- nosy: +Nam.Nguyen ___ Python tracker <http://bugs.python.org/issue13241> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13562] Notes about module load path

2011-12-10 Thread Nam Nguyen
Nam Nguyen added the comment: That would be great. Thank you. -- ___ Python tracker <http://bugs.python.org/issue13562> ___ ___ Python-bugs-list mailin

[issue13562] Notes about module load path

2011-12-08 Thread Nam Nguyen
New submission from Nam Nguyen : A doc patch to remind Python embedder to set sys.path prior to Py_Initialize. This is to ensure a controlled module load path to work around these issues: http://bugs.python.org/issue12989 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-15 Thread Nam Nguyen
New submission from Nam Nguyen : The module search path is constructed from PYTHONPATH env-var, then zip path, then HKCU PythonPath, then HKLM PythonPath, then PYTHONPATH define (in pyconfig.h), and finally argv[0]. If PYTHONHOME is available, the PYTHONPATH define is expanded. These paths

[issue6715] xz compressor support

2011-09-08 Thread Nam Nguyen
Nam Nguyen added the comment: In uint32_converter, I'm not sure the if statement comparing val and UINT32_MAX makes sense. val was defined to be unsigned long, which is 32bit on 32-bit compiler. -- nosy: +Nam.Nguyen ___ Python tracker

[issue5876] __repr__ returning unicode doesn't work when called implicitly

2011-09-03 Thread Nam Nguyen
Changes by Nam Nguyen : -- nosy: +Nam.Nguyen ___ Python tracker <http://bugs.python.org/issue5876> ___ ___ Python-bugs-list mailing list Unsubscribe: