[issue45469] lambda issue in for-loop

2021-10-14 Thread Vincent Liang
New submission from Vincent Liang : Strange behavior is found when lambda is used inside for-loop. code:(same as attached file) # begin of CODE def aa(x): print("aa") def bb(x): print("bb") namefun = [ ("a", aa), ("b", bb),

[issue40056] more user-friendly turtledemo

2020-03-24 Thread Evin Liang
New submission from Evin Liang : [minor] 1. Display underscores as spaces in menu bar 2. Allow user to run custom code -- components: Library (Lib) messages: 364961 nosy: Evin Liang priority: normal pull_requests: 18506 severity: normal status: open title: more user-friendly turtledemo

[issue35323] Windows x86 executable installer can't install

2018-11-26 Thread liang feng
liang feng <1590...@139.com> added the comment: the file didn't download complete,change other computer download, it's fine -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https

[issue35323] Windows x86 executable installer can't install

2018-11-26 Thread liang feng
New submission from liang feng <1590...@139.com>: see log -- files: Python 3.7.1 (32-bit)_20181127100820.log messages: 330486 nosy: outofthink priority: normal severity: normal status: open title: Windows x86 executable installer can't install versions: Python 3.7 Added file:

[issue29993] error of parsing encoded words in email of standard library

2017-04-05 Thread sijian liang
New submission from sijian liang: This issue is fixed in python3 see https://github.com/python/cpython/commit/07ea53cb218812404cdbde820647ce6e4b2d0f8e -- components: email messages: 291171 nosy: barry, r.david.murray, sijian liang priority: normal severity: normal status: open title

[issue28798] Describe character as a string of length one instead of size one in tutorial

2016-11-24 Thread Liang-Bo Wang
New submission from Liang-Bo Wang: In Tutorial "An Informal Introduction" section, character is introduced as a string of size one. It may be true for python 2.x, where str can be interpreted as bytes. However in Python 3, strings are unicode thus the size and the length o

[issue28122] email.header.decode_header can not decode string with quotation

2016-09-13 Thread sijian liang
New submission from sijian liang: #!/usr/bin/python #-*- coding:utf-8 -*- import email # from email.parser import Parser def decode_email_header(header, sep=''): l = [] for s, c in header: if c: l.append(s.decode(c)) else

[issue28122] email.header.decode_header can not decode string with quotation

2016-09-13 Thread sijian liang
Changes by sijian liang <twistfat...@gmail.com>: -- components: email files: demo.py nosy: barry, r.david.murray, sijian liang priority: normal severity: normal status: open title: email.header.decode_header can not decode string with quotation type: behavior versions: Python 2.7

[issue26457] Error in ipaddress.address_exclude function

2016-02-28 Thread feng liang
New submission from feng liang: when i read in document 3.5.1,run the example in ipaddress.address_exclude function >>> n1 = ip_network('192.0.2.0/28') >>> n2 = ip_network('192.0.2.1/32') >>> list(n1.address_exclude(n2)) I got: Traceback (most recent ca

[issue26246] Code output toggle button uses removed jQuery method

2016-02-26 Thread Liang-Bo Wang
Liang-Bo Wang added the comment: Thanks for the merge. I pulled the change and checked the result, but I found the patch missing a line to initiate the correct display state when the button was created. That is, it forgot to set `button.data('hidden', 'false');` when adding the button

[issue26246] Code output toggle button uses removed jQuery method

2016-02-26 Thread Liang-Bo Wang
Liang-Bo Wang added the comment: Just FYI, I applied the patch to the zh-hant translation of the documentation and the code output toggle button is back and works as expected. https://docs.python.org.tw/3/tutorial/introduction.html#numbers You can see the result of any other page

[issue26246] Code output toggle button uses removed jQuery method

2016-01-31 Thread Liang Bo Wang
New submission from Liang Bo Wang: The code output toggle button (the `>>>` button on the top right) has been disappeared and not functional on the current online documentation (both 3.4+ and 2.7). For example, see any doc page that has interpreter outputs: https://docs.pyt

[issue23299] Documentation correction - 5.1.4. List Comprehensions

2015-01-22 Thread Liang Zhang
New submission from Liang Zhang: This was copied from Chapter 5 Data Structure in Python language tutorial. The link I was looking for: https://docs.python.org/2.7/tutorial/datastructures.html Some thing might be incorrect and need you to update them in (5.1.4. List Comprehensions

[issue23299] Documentation correction - 5.1.4. List Comprehensions

2015-01-22 Thread Liang Zhang
Liang Zhang added the comment: Oh my god! You're right! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23299 ___ ___ Python-bugs-list mailing

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2009-11-15 Thread liang
New submission from liang xfanli...@hotmail.com: In our testbed,we have seem serveral sgement fault in our python scrit. The enviroment is: linux=2.6.29.6-0.6.smp.gcc4.1.x86_64 python=2.4.4-41.4-1 GCC = GCC 4.1.2 20070626 (rPath Inc.)] on linux2 Below are the detail call stack: (gdb) bt #0

[issue5670] Speed up pickling of dicts in cPickle

2009-04-19 Thread Kelvin Liang
Kelvin Liang lbh1...@gmail.com added the comment: Can this patch be used or ported to 2.5.x? -- nosy: +feisan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5670