New submission from Nam:
currently default_factory does not accept any parameter. This made the default
value generated by it constant among keys. If default_factory takes in key as
the parameter, it should be able to generate default values based on key, which
provide more flexibility to the
Nam added the comment:
Sure, thanks Raymond and Steven for your thoughts.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
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
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
Nam Nguyen added the comment:
That would be great. Thank you.
--
___
Python tracker
<http://bugs.python.org/issue13562>
___
___
Python-bugs-list mailin
Changes by Nam Nguyen :
--
nosy: +Nam.Nguyen
___
Python tracker
<http://bugs.python.org/issue13241>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 {
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
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
Changes by Nam Nguyen :
--
nosy: +Nam.Nguyen
___
Python tracker
<http://bugs.python.org/issue5876>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Nam Tran :
--
components: +Library (Lib) -Tkinter
title: tkinter integrate TkDND support -> None
type: enhancement ->
versions: -Python 3.10
___
Python tracker
<https://bugs.python.org/i
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
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
Changes by Nam Nguyen :
--
keywords: +patch
Added file: http://bugs.python.org/file24666/executor-queue-size.diff
___
Python tracker
<http://bugs.python.org/issue14
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
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
Change by Nam Nguyen :
--
nosy: +Nam.Nguyen
___
Python tracker
<https://bugs.python.org/issue37461>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Nam Nguyen :
--
pull_requests: +1937
___
Python tracker
<http://bugs.python.org/issue30500>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Sangbae Nam added the comment:
This issue still persists in 3.6 and 3.7.
--
assignee: -> docs@python
components: +Documentation
nosy: +Sangbae Nam, docs@python
versions: +Python 3.7
Added file: https://bugs.python.org/file47844/py37chm.
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
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
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
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
27 matches
Mail list logo