[issue14185] Failure to build _dbm with ndbm on Arch Linux

2012-06-07 Thread su
su added the comment: Same thing happens with pyhton-3.2.3 on fedora 17 *** WARNING: renaming "_dbm" since importing it failed: build/lib.linux-x86_64-3.2/_dbm.cpython-32m.so: undefined symbol: dbm_nextkey Failed to build these modules: _dbm -- no

[issue37739] list(filter) returns [] ???

2019-08-01 Thread Su Zhu
New submission from Su Zhu : The filter become empty after serving as an argument of list(). Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a =

[issue37739] list(filter) returns [] ???

2019-08-01 Thread Su Zhu
Su Zhu added the comment: I see. Thank you very much! -- ___ Python tracker <https://bugs.python.org/issue37739> ___ ___ Python-bugs-list mailing list Unsub

[issue35500] Align expected and actual calls on mock.assert_called_with error message

2019-02-12 Thread Susan Su
Susan Su added the comment: After taking a look at the assert_called_with function, I noticed that the formatting is inconsistent for the following case: from unittest import mock m = mock.Mock() a = [1, 2, 3, 4] m.assert_called_with(*a) Traceback (most recent call last): File "&quo

[issue33043] Add a 'Contributing to Docs' link at the bottom of docs.python.org

2019-02-13 Thread Susan Su
Susan Su added the comment: I am available to start working on this bug. Please let me know if any issues, concerns, or suggestions come up! Thank you. -- nosy: +suhearsawho ___ Python tracker <https://bugs.python.org/issue33

[issue21150] Add quick links table to argparse docs

2019-02-13 Thread Susan Su
Susan Su added the comment: I'm available to start working on this bug. Please let me know if any suggestions, concerns or comments come up! Thank you. -- nosy: +suhearsawho ___ Python tracker <https://bugs.python.org/is

[issue29606] urllib FTP protocol stream injection

2017-04-11 Thread Plenty Su
Changes by Plenty Su : -- nosy: +supl ___ Python tracker <http://bugs.python.org/issue29606> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21150] Add quick links table to argparse docs

2019-02-23 Thread Susan Su
Change by Susan Su : -- keywords: +patch pull_requests: +12036 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue21150> ___ _

[issue33043] Add a 'Contributing to Docs' link at the bottom of docs.python.org

2019-02-23 Thread Susan Su
Change by Susan Su : -- keywords: +patch pull_requests: +12037 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue33043> ___ _

[issue15786] IDLE code completion window does not scoll/select with mouse

2012-08-26 Thread Colin Su
Colin Su added the comment: On which platform? -- nosy: +littleq0903 ___ Python tracker <http://bugs.python.org/issue15786> ___ ___ Python-bugs-list mailin

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-27 Thread Colin Su
Changes by Colin Su : -- nosy: +littleq0903 ___ Python tracker <http://bugs.python.org/issue15716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-27 Thread Colin Su
Colin Su added the comment: Could anyone provide some properly command line usage for this issue? ex. python -P "path_1:path_2:path_3" I think this point need to be discussed :D -- ___ Python tracker <http://bugs.python.o

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-27 Thread Colin Su
Colin Su added the comment: s/properly/proper (typo) -- ___ Python tracker <http://bugs.python.org/issue15716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-27 Thread Colin Su
Colin Su added the comment: started working on it :) -- ___ Python tracker <http://bugs.python.org/issue15716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27575] dict viewkeys intersection slow for large dicts

2016-07-19 Thread David Su
New submission from David Su: In dictobject.c, the function dictviews_and performs a very expensive set creation operation on the keys of the self dict object: >From Python 2.7: ... static PyObject* dictviews_and(PyObject* self, PyObject *other) { PyObject *result = PySet_New(s

[issue27575] dict viewkeys intersection slow for large dicts

2016-07-20 Thread David Su
Changes by David Su : -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue27575> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27575] dict viewkeys intersection slow for large dicts

2016-07-20 Thread David Su
David Su added the comment: Here are some tests that I ran: Using current naive viewkeys intersection: $ python -m timeit -n 100 -s "d = dict.fromkeys(xrange(1000), 0)" "d.viewkeys() & {0}" 100 loops, best of 3: 447 msec per loop Nearly half a second per iterat

[issue27575] dict viewkeys intersection slow for large dicts

2016-07-23 Thread David Su
David Su added the comment: I am trying to implement the following algorithm: http://blog.faroo.com/2012/06/07/improved-edit-distance-based-spelling-correction/ This algorithm is used for fast nearest neighbor queries for spell correction. Given a corpus of strings, for each string s, I

[issue27575] dict viewkeys intersection slow for large dicts

2016-07-31 Thread David Su
David Su added the comment: Attached is a patch that I had been working on. Could you please review and provide me with some feedback? Thanks! -- keywords: +patch Added file: http://bugs.python.org/file43959/dict_view_intersection.patch ___ Python

[issue27575] dict viewkeys intersection slow for large dicts

2016-07-31 Thread David Su
Changes by David Su : Added file: http://bugs.python.org/file43960/dictview_intersection_test.py ___ Python tracker <http://bugs.python.org/issue27575> ___ ___ Python-bug

[issue27575] dict viewkeys intersection slow for large dicts

2016-07-31 Thread David Su
Changes by David Su : Added file: http://bugs.python.org/file43961/performance_test.sh ___ Python tracker <http://bugs.python.org/issue27575> ___ ___ Python-bugs-list m

[issue3840] if TESTFN == "/tmp/@test", some tests fail

2013-03-17 Thread Colin Su
Colin Su added the comment: TESTFN will be in format "@test_{pid}_tmp" instead of "@test" right now. So it's not easy to have exactly the same name "@test_{pid}_tmp" in case if you put "@test_{X}_tmp" (for X in range(1,10)) so many files int

[issue1525919] email package quoted printable behaviour changed

2013-03-19 Thread Colin Su
Changes by Colin Su : -- versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.4 ___ Python tracker <http://bugs.python.org/issue1525919> ___ ___

[issue1525919] email package quoted printable behaviour changed

2013-03-19 Thread Colin Su
Colin Su added the comment: Confirmed with David, we work on this together on sprints. This is not a bug, if you do "set_payload" directly by yourself, you need to encode the payload by yourself because set_payload() doesn't encode payload if 'Content-Transfer

[issue1525919] email package quoted printable behaviour changed

2013-03-19 Thread Colin Su
Changes by Colin Su : -- assignee: -> docs@python components: +Documentation -Library (Lib), email nosy: +docs@python ___ Python tracker <http://bugs.python.org/issue1

[issue27575] dict viewkeys intersection slow for large dicts

2016-09-06 Thread David Su
David Su added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue27575> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth