Re: Planning a Python / PyData conference

2023-08-10 Thread Fulian Wang via Python-list
source. Anyone is interested please contact Ms. Wang (832)208-3196 esta...@hestates.org Get Outlook for iOS<https://aka.ms/o0ukef> From: Fulian Wang Sent: Wednesday, August 9, 2023 1:14:23 PM To: dn ; python-list@python.org Subject: Re: Planning a

Re: Planning a Python / PyData conference

2023-08-09 Thread Fulian Wang via Python-list
I recommend Sichuan ,Taiwan , or Thailand Get Outlook for iOS From: Python-list on behalf of dn via Python-list Sent: Wednesday, August 9, 2023 00:10 To: python-list@python.org Subject: Re: Planning a Python / PyData conference Hi

Re: unable to run the basic Embedded Python example

2023-06-24 Thread Fulian Wang via Python-list
_ From: Fulian Wang Sent: Saturday, June 24, 2023 7:43:56 PM To: Dave Ohlsson ; python-list@python.org Subject: Re: unable to run the basic Embedded Python example I study computer science in byu.edu, we choose the 3.4.3 vision. No matter which kind of computers or windows, I needed to download i

Re: unable to run the basic Embedded Python example

2023-06-24 Thread Fulian Wang via Python-list
I study computer science in byu.edu, we choose the 3.4.3 vision. No matter which kind of computers or windows, I needed to download it from Microsoft store. Now I can download it directly from python.org Get Outlook for iOS From:

Re: Email list and part of website code

2023-06-22 Thread Fulian Wang via Python-list
one. Anyone has other email list problems ? Get Outlook for iOS<https://aka.ms/o0ukef> From: Fulian Wang Sent: Thursday, June 22, 2023 12:35:20 PM To: Cebtenzzre ; python-list@python.org Subject: Email list and part of website code For technical kno

Re: [RELEASE] Python 3.12.0 beta 3 released

2023-06-20 Thread Fulian Wang via Python-list
I am a beginner to design my website, please check the website code. I already run it local ,but want to make it richer and more variety. I need add a pdf b log to temporals and other logo pictures to decorate it. Thank you: import wsgiref.simple_server import wsgiref.simple_server '

Re: tksheet - Copy and Paste with headers

2023-04-16 Thread Jason Wang
在 2023/4/15 2:33, angela vales 写道: Hello All, I found this small group in a google search, so not sure if it is still active but giving it a try nonetheless. I have recently created a tkinter app and need the ability to copy and paste data from tksheet table into an Excel file. I do have a

Re: any author you find very good has written a book on Python?

2022-09-09 Thread Fulian Wang
Python is an appropriate computer language for kids and teenagers. A very good book for beginners: Invent Your Own computer games with Python Author: Al Sweigart It's free online, but it's worth to have one. Get Outlook for iOS From:

Question about learning Python

2022-09-09 Thread Fulian Wang
Python is an appropriate computer language for kids and teenagers. A very good book for beginners: Invent Your Own computer games with Python Author: Al Sweigart It's free online, but it's worth to have one. Get Outlook for iOS From:

Re: INSTALLATION DOES NOT WORK FRO GITBASH COMMAND LINE

2022-08-26 Thread Fulian Wang
Same to me. I watched the videos online about how to find it. All failed. Finally,I got it accidentally. You just input “command “at the screen of your computer. It is at the bottom of screen and next to windows logo. There is a” Type here to search “ . You type” command” then hit “enter” .

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-27 Thread jiahua wang
Change by jiahua wang : -- nosy: +wangjiahua nosy_count: 9.0 -> 10.0 pull_requests: +30229 pull_request: https://github.com/python/cpython/pull/32149 ___ Python tracker <https://bugs.python.org/issu

[issue25948] Invalid MIME encoding generated by email.mime (line too long)

2022-01-27 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch nosy: +wangjiahua nosy_count: 3.0 -> 4.0 pull_requests: +29159 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30980 ___ Python tracker <https://bugs.python.org/i

[issue46498] Add new triplets for loongarch64

2022-01-25 Thread WANG Xuerui
New submission from WANG Xuerui : First of all I think the changes should probably go in main branch first, then backported to the older branches if possible; although IMO you'd be much better off just backporting and carrying the patch yourselves. Secondly the suggested patch

[issue46157] Typo in JSON documentation

2022-01-24 Thread jiahua wang
Change by jiahua wang : -- nosy: +wangjiahua nosy_count: 5.0 -> 6.0 pull_requests: +29028 pull_request: https://github.com/python/cpython/pull/30846 ___ Python tracker <https://bugs.python.org/issu

[issue46484] Add test for Calendar().iterweekdays()

2022-01-23 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch pull_requests: +29012 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30825 ___ Python tracker <https://bugs.python.org/issu

[issue46484] Add test for Calendar().iterweekdays()

2022-01-23 Thread jiahua wang
New submission from jiahua wang : Apparently there is no test for Calendar().iterweekdays(). wangdeMacBook-Pro :: ~/cpython » grep -R iterweekdays Lib/test/ * Binary file Lib/test//__pycache__/test_calendar.cpython-311.pyc matches Doc/library/calendar.rst: .. method:: iterweekdays() Binary

[issue46456] Add mime type "image/avif"

2022-01-23 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch pull_requests: +29010 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30823 ___ Python tracker <https://bugs.python.org/issu

[issue46456] Add mime type "image/avif"

2022-01-21 Thread jiahua wang
New submission from jiahua wang : https://www.iana.org/assignments/media-types/image/avif -- components: Library (Lib) messages: 411134 nosy: wangjiahua priority: normal severity: normal status: open title: Add mime type "image/avif" versions: P

[issue34875] Change .js mime to "text/javascript"

2022-01-21 Thread jiahua wang
Change by jiahua wang : -- nosy: +wangjiahua nosy_count: 3.0 -> 4.0 pull_requests: +28927 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/30740 ___ Python tracker <https://bugs.python.org/i

[issue43079] wrong IP address range given for ipv4_mapped

2022-01-19 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch nosy: +wangjiahua nosy_count: 2.0 -> 3.0 pull_requests: +28885 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30687 ___ Python tracker <https://bugs.python.org/i

[issue28953] Use `raise from` when raising new IncompleteRead

2021-11-30 Thread jiahua wang
Change by jiahua wang : -- nosy: +wangjiahua nosy_count: 1.0 -> 2.0 pull_requests: +28088 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29861 ___ Python tracker <https://bugs.python.org/i

[issue45114] bad example for os.stat

2021-11-29 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch nosy: +wangjiahua nosy_count: 2.0 -> 3.0 pull_requests: +28074 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29845 ___ Python tracker <https://bugs.python.org/i

[issue38619] [Doc] UUID.hex is lowercase

2021-11-28 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch nosy: +wangjiahua nosy_count: 5.0 -> 6.0 pull_requests: +28061 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29830 ___ Python tracker <https://bugs.python.org/i

[issue19737] Documentation of globals() and locals() should be improved

2021-11-28 Thread jiahua wang
Change by jiahua wang : -- nosy: +180909 nosy_count: 5.0 -> 6.0 pull_requests: +28055 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29823 ___ Python tracker <https://bugs.python.org/i

[issue18717] test for request.urlretrieve

2021-11-28 Thread jiahua wang
Change by jiahua wang : -- nosy: +180909 nosy_count: 2.0 -> 3.0 pull_requests: +28054 pull_request: https://github.com/python/cpython/pull/29822 ___ Python tracker <https://bugs.python.org/issu

[issue28445] Wrong documentation for GzipFile.peek

2021-11-28 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch nosy: +180909 nosy_count: 4.0 -> 5.0 pull_requests: +28052 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29820 ___ Python tracker <https://bugs.python.org/i

[issue19460] Add test for MIMENonMultipart

2021-11-27 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch nosy: +180909 nosy_count: 4.0 -> 5.0 pull_requests: +28049 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29817 ___ Python tracker <https://bugs.python.org/i

[issue45712] Typo in "control flow" documentation

2021-11-07 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch nosy: +180909 nosy_count: 2.0 -> 3.0 pull_requests: +27714 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29460 ___ Python tracker <https://bugs.p

[issue45742] python -h can't find -R option

2021-11-06 Thread jiahua wang
New submission from jiahua wang : I input python -h on the command line, and I can't find any -R option. -- assignee: docs@python components: Documentation messages: 405891 nosy: 180909, docs@python priority: normal severity: normal status: open title: python -h can't find -R option

[issue45441] Some links in the document is changed

2021-10-12 Thread jiahua wang
Change by jiahua wang : -- assignee: docs@python components: Documentation nosy: 180909, docs@python priority: normal pull_requests: 27191 severity: normal status: open title: Some links in the document is changed versions: Python 3.11 ___ Python

[issue45230] Something wrong when Calculate "3==3 is not True"

2021-09-17 Thread Wang Bingchao
New submission from Wang Bingchao <819576...@qq.com>: I use python3.7 python3.6 python2.7, and run the following code: print(3==3 is not True) print(3==3 is True) print(3==2 is not True) print(3==2 is True) I got the same results as follow: True False False False but I don't

[issue44930] super-Matlab-style ranged list literal initialization

2021-08-17 Thread wang xuancong
wang xuancong added the comment: Another lazy explanation not wanting to improve anything -- ___ Python tracker <https://bugs.python.org/issue44930> ___ ___

[issue44930] super-Matlab-style ranged list literal initialization

2021-08-16 Thread wang xuancong
New submission from wang xuancong : Different from Python 2, Python 3 has removed the capability to create a list from a range. In Python 2, we can use range(1,100,2) to create a list [1, 3, 5, ..., 99], but in Python 3, we can only use list(range(1,100,2)) or [*range(1,100,2)] where

[issue44790] Recursion causes Crash

2021-07-30 Thread Michael Wang
New submission from Michael Wang : Ultimately it seems that deep recursion after setting the recursion limit actually crashes python -- components: Interpreter Core files: bug.py messages: 398619 nosy: michaeljwang10 priority: normal severity: normal status: open title: Recursion

[issue44028] Request for locals().update() to work, it is

2021-05-09 Thread wang xuancong
wang xuancong added the comment: Thanks @terry.reedy for your expert-level good comments! 1. "In Python 3, the one *implementation*, and its lookup mode, are fixed. The slower implementation was dropped because it was not thought worth the bother." If I remember correctly, the p

[issue44028] Request for locals().update() to work, it is

2021-05-04 Thread wang xuancong
wang xuancong added the comment: Of course, I am aware of that. As elite-level Python programmers, we should all be aware of security issues whenever we deal with exec() and eval(). -- ___ Python tracker <https://bugs.python.org/issue44

[issue44028] Request for locals().update() to work, it is

2021-05-03 Thread wang xuancong
New submission from wang xuancong : In general, the ability to update local variables is very important and it simplifies life tremendously. For example, in machine learning, it allows saving/loading arbitrary-format datasets and arbitrary-structure neural networks (NN) using a single line

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2021-02-23 Thread keven wang
keven wang added the comment: Agree w/ PR here to remove resource tracker unlinking as a quick fix: https://github.com/python/cpython/pull/15989 This will at least make the unlink behavior more controllable, which is not the case currently (on mac and linux). Would love to have this merged

[issue42527] UnicodeEncode error in BaseHttpRequestHandler class when send unicode data.

2020-12-01 Thread Yanfeng Wang
New submission from Yanfeng Wang : My environment: system: MacOS 10.15.x python: 3.9.0 when I inherit the BaseHTTPRequestHandler class, and call the send_error(error_di, msg) method in my own class's do_GET override function: the msg argument can't accept unicode string, an UnicodeEncodeError

[issue42005] profile/cProfile CLI should catch BrokenPipeError

2020-10-10 Thread Zhiming Wang
Change by Zhiming Wang : -- keywords: +patch pull_requests: +21617 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22643 ___ Python tracker <https://bugs.python.org/issu

[issue39828] json.tool should catch BrokenPipeError

2020-10-10 Thread Zhiming Wang
Change by Zhiming Wang : -- nosy: +zmwangx nosy_count: 5.0 -> 6.0 pull_requests: +21618 pull_request: https://github.com/python/cpython/pull/22643 ___ Python tracker <https://bugs.python.org/issu

[issue42005] profile/cProfile CLI should catch BrokenPipeError

2020-10-10 Thread Zhiming Wang
New submission from Zhiming Wang : Since profile/cProfile CLI interface prints a sorted list of stats, using head to limit output to the most relevant entries should be a fairly natural thing to do. Unfortunately, BrokenPipeError isn't caught, causing quite a bit of pollution to the output

[issue14527] How to link with a non-system libffi?

2020-09-14 Thread wang zhao
wang zhao added the comment: We managed to fixed on the server by following and got it sucuessfully compiled: -./configure --with-system-ffi LDFLAGS="-L /home/XXX/installs/libffi-3.3/lib64/" CPPFLAGS="-I /home/XXX/installs/libffi-3.3/include/" -LD_LIBRARY_PATH=$LD_LI

[issue41437] SIGINT blocked by socket operations like recv on Windows

2020-07-29 Thread Zhiming Wang
New submission from Zhiming Wang : I noticed that on Windows, socket operations like recv appear to always block SIGINT until it's done, so if a recv hangs, Ctrl+C cannot interrupt the program. (I'm a *nix developer investigating a behavioral problem of my program on Windows, so please

[issue41352] FileIO.readall() should raise "UnsupportedOperation" when in "w" mode

2020-07-20 Thread Ziyi Wang
New submission from Ziyi Wang : Here are the two test cases: the one with FileIO.readall() fails def testReadWithWritingMode(self): r, w = os.pipe() w = os.fdopen(w, "w") w.write("hello") w.close() with io.FileIO(r, mode="w") as f:

[issue39961] warning: this use of "defined" may not be portable (Mac OS)

2020-03-15 Thread Clem Wang
Clem Wang added the comment: Oops: forgot version numbers MacOS Catalina (10.15.13 19D76) 2.6 Ghz 6-Code Intel i7 32 GB RAM Homebrew 2.2.10 Homebrew/homebrew-core (git revision 58c0; last commit 2020-03-13) Homebrew/homebrew-cask (git revision ab52c7; last commit 2020-03-14) Not sure

[issue39961] warning: this use of "defined" may not be portable (Mac OS)

2020-03-13 Thread Clem Wang
New submission from Clem Wang : pyenv install 3.8.2 results in: BUILD FAILED (OS X 10.15.3 using python-build 20180424) Inspect or clean up the working tree at /var/folders/jy/10md97xn3mz_x_b42l1r2r8cgp/T/python-build.20200313154805.37448 Results logged to /var/folders/jy

[issue39910] os.ftruncate on Windows should be sparse

2020-03-09 Thread Mingye Wang
New submission from Mingye Wang : Consider this interaction: cmd> echo > 1.txt cmd> python -c "__import__('os').truncate('1.txt', 1024 ** 3)" cmd> fsutil sparse queryFlag 1.txt Not only takes a long time as is typical for a zero-write, but also reports non-sparse as

[issue39782] local varible referenced a Exception won't be collected in function

2020-02-28 Thread Wang Jie
New submission from Wang Jie : I referenced an Exception object in a function and found memory usage will increase constantly in the accident. I think it may be a bug. I wrote a minimal code to reproduce it. ```py from threading import local, Thread from time import sleep l = {} def t0

[issue39732] plistlib should export UIDs in XML like Apple does

2020-02-23 Thread Mingye Wang
Change by Mingye Wang : -- keywords: +patch pull_requests: +17987 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18622 ___ Python tracker <https://bugs.python.org/issu

[issue39732] plistlib should export UIDs in XML like Apple does

2020-02-23 Thread Mingye Wang
New submission from Mingye Wang : Although there is no native UID type in Apple's XML format, Apple's NSKeyedArchiver still works with it because it converts the UID to a dict of {"CF$UID": int(some_uint64_val)}. Plistlib should do the same. For a sample, see https://github.com/a

[issue28343] Bad encoding alias cp936 -> gbk: euro sign

2020-01-05 Thread Mingye Wang
Mingye Wang added the comment: b'\x80'.decode('cp936') is still broken on python 3.7. Working on a PR. -- versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue28

[issue38568] [3.7.5 x86_64 Linux] f-string parsing results in EOL

2019-10-23 Thread Ying Wang
Ying Wang added the comment: Oh cool, I didn't know triple quotes can be used as part of f-strings! Thanks for the explanation! -- ___ Python tracker <https://bugs.python.org/issue38

[issue38568] [3.7.5 x86_64 Linux] f-string parsing results in EOL

2019-10-23 Thread Ying Wang
New submission from Ying Wang : Hey, I encountered an interesting bug when trying to do string parsing using f-strings. I am currently under the impression that within the curly braces is any expression that can be successfully evaluated in a REPL. Here's the error: ```bash yingw787

[issue38503] bug: string search can find \n, but can NEVER find \r

2019-10-17 Thread wang xuancong
New submission from wang xuancong : If I load a file which contains "\r" and "\n", I can find "\n", but not "\r". This behaviour is inconsistent in Python 3, but consistent in Python 2. >>> open('./3cjkxdnw/accessibilityLog/1570181896323

[issue38315] Provide defaultdict variant that passes key to default_factory

2019-10-09 Thread wang xuancong
wang xuancong added the comment: I agree with Mark Amery. The reason why defaultdict still exists given that everything can be achieved by subclassing the built-in dict is because of convenience. I suggest maybe Python developer can put it into low priority instead. -- nosy

[issue38420] defaultdict does not support parametric lambda

2019-10-09 Thread wang xuancong
New submission from wang xuancong : A very common use of defaultdict is that if the key exist, use the corresponding mapped target, if the key does not exist, use the key itself. However, current Python 2/3 defaultdict does not support parametric lambda function: >>> from collectio

[issue36338] urlparse of urllib returns wrong hostname

2019-08-07 Thread Xianbo Wang
Xianbo Wang added the comment: Python2 urlparse.urlparse and urllib2.urlparse.urlparse have a similar IPv6 hostname parsing bug. >>> urlparse.urlparse('http://nevil.com[]').hostname >>> 'evil.com[' This is less practical to exploit since the parsed domain contains a '['

[issue37780] A strange bug in eval() not present in Python 3

2019-08-06 Thread wang xuancong
New submission from wang xuancong : We all know that since: [False, True, False].count(True) gives 1 eval('[False, True, False].count(True)') also gives 1. However, in Python 2, eval('[False, True, False].count(True)', {}, Counter()) gives 3, while eval('[False, True, False].count(True

[issue37678] Incorrect behaviour for user@password URI pattern in urlparse

2019-07-25 Thread Sean Wang
New submission from Sean Wang : When an IPV4 URL with 'username:password' in it, and the password contains special characters like #[]?, urlparse would act as unexcepted. example: urlparse('http://user:pass#?[w...@example.com:80/path') -- components: Library (Lib) messages: 348431

[issue37258] Logging cache not cleared properly when setting level

2019-06-12 Thread David Wang
New submission from David Wang : If you call setLevel() on a subclass of logging.Logger, it does not reset the cache for that logger. This mean that if you make some logging calls, then call setLevel(), the logger still acts like it still has its old level. See the attached python file

[issue36850] shutil.copy2 fails with even with source network filesystem not supporting extended attributes

2019-05-16 Thread Ying Wang
Change by Ying Wang : -- pull_requests: +13280 ___ Python tracker <https://bugs.python.org/issue36850> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-05-16 Thread Ying Wang
Change by Ying Wang : -- keywords: +patch pull_requests: +13279 ___ Python tracker <https://bugs.python.org/issue24564> ___ ___ Python-bugs-list mailin

[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-05-08 Thread Ying Wang
Ying Wang added the comment: @rhettinger should this issue be closed if no action is to be taken? If so, should I manually close the pull request referencing this issue, or will that be automatically handled by the Python bug tracker

[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-05-08 Thread Ying Wang
Ying Wang added the comment: I would like to take a stab at this as a first-time CPython contributor. -- nosy: +Ying Wang ___ Python tracker <https://bugs.python.org/issue36

[issue36338] urlparse of urllib returns wrong hostname

2019-03-18 Thread Xianbo Wang
New submission from Xianbo Wang : The urlparse function in Python urllib returns the wrong hostname when parsing URL crafted by the malicious user. This may be caused by incorrect handling of IPv6 addresses. The bug could lead to open redirect in web applications which rely on urlparse

[issue36224] Python quit unexpectedly error

2019-03-08 Thread Xin Wang
New submission from Xin Wang : I face the same error with https://bugs.python.org/issue36154, but the solution is not work for me. So I want to show you my error. I'm on a Mac running Mojave, version 10.14.3. I installed Python 3.7.2. I am using vscode. It is work fine in command line

[issue36047] socket file handle does not support stream write

2019-02-19 Thread wang xuancong
New submission from wang xuancong : Python3 programmers have forgotten to convert/implement the socket file descriptor for IO stream operation. Would you please add it? Thanks! import socket s = socket.socket() s.connect('localhost', 5432) S = s.makefile() # on Python2, the following works

[issue33618] Support TLS 1.3

2019-02-15 Thread Zhiming Wang
Change by Zhiming Wang : -- nosy: +zmwangx ___ Python tracker <https://bugs.python.org/issue33618> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2018-12-30 Thread Fish Wang
Fish Wang added the comment: Just checked weakref.py on different branches, I think this bug exists in Python 2.7, 3.4, 3.5, and 3.6 as well. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2018-12-30 Thread Fish Wang
Fish Wang added the comment: Just submitted a PR against the master branch on GitHub. > This can be apply to 3.8? I think so. -- ___ Python tracker <https://bugs.python.org/issu

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2018-12-30 Thread Fish Wang
Fish Wang added the comment: Thanks for your reply. I'm preparing a PR. However, I'm not sure how to write a reliable test case to trigger the crash outside my application. I will submit the PR for now, and see if anyone on the mailing list has a better idea of what a reliable test case

[issue35615] "RuntimeError: Dictionary changed size during iteration" when copying a WeakValueDictionary

2018-12-29 Thread Fish Wang
New submission from Fish Wang : I come across this issue recently when developing a multi-threaded PySide2 (Qt) application. When I'm calling .copy() on a WeakValueDictionary, there is a high chance that my application crashes with the following stack backtrace: -- Traceback (most

[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-24 Thread Zhiming Wang
Change by Zhiming Wang : -- keywords: +patch pull_requests: +9946 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35308> ___ ___ Py

[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-24 Thread Zhiming Wang
Change by Zhiming Wang : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue35308> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-24 Thread Zhiming Wang
New submission from Zhiming Wang : This is a regression in Python 3.7: $ BROWSER=w3m python3.6 -c 'import sys; import webbrowser; print(sys.version); print(webbrowser.get()); print(webbrowser._tryorder)' 3.6.7 (default, Nov 24 2018, 09:47:01) [GCC 4.2.1 Compatible Apple LLVM

[issue31670] Associate .wasm with application/wasm

2018-11-07 Thread Runping Wang
Runping Wang added the comment: We're also depending on this MIME type for WebAssembly. It will be great if we can get this wasm MIME type in. -- nosy: +runpiw ___ Python tracker <https://bugs.python.org/issue31

[issue35035] Documentation for email.utils is named email.util.rst

2018-10-21 Thread Zhiming Wang
Change by Zhiming Wang : -- keywords: +patch pull_requests: +9362 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35035> ___ ___ Py

[issue35035] Documentation for email.utils is named email.util.rst

2018-10-21 Thread Zhiming Wang
New submission from Zhiming Wang : Documentation for PSL module email.utils is named email.util.rst. See <https://docs.python.org/3/library/email.util.html>. This seems to violate the principle of least surprise. (I have a command line tool to open documentation for any PSL module,

[issue33976] Enums don't support nested classes

2018-06-27 Thread Edward Wang
Edward Wang added the comment: Ethan - thank you for your speedy response! For an example you can see https://github.com/ucb-bar/hammer/blob/97021bc7e1c819747f8b8b6d4b8c76cdc6a488e3/src/hammer-vlsi/hammer_vlsi_impl.py#L195 - the ObstructionType enum is really only used inside

[issue33976] Enums don't support nested classes

2018-06-26 Thread Edward Wang
Change by Edward Wang : -- keywords: +patch pull_requests: +7557 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33976> ___ ___ Py

[issue33976] Enums don't support nested classes

2018-06-26 Thread Edward Wang
New submission from Edward Wang : Methods defined in Enums behave 'normally' but classes defined in Enums get mistaken for regular values and can't be used as classes out of the box. ```python class Outer(Enum): a = 1 b = 2 class Inner(Enum): foo = 10 bar = 11

[issue33381] Incorrect documentation for strftime()/strptime() format code %f

2018-04-28 Thread Judy Wang
New submission from Judy Wang <jwan...@gmail.com>: According to https://docs.python.org/3/library/datetime.html, %f is zero-padded on the left. But actual Python 3 behavior is puts the zero padding on the right. -- files: Bug description.py messages: 315873 nosy: jujuwoman pr

[issue29417] Sort entries in foo.dist-info/RECORD

2018-03-05 Thread Dawei Wang
Dawei Wang <daweiwang.gatekee...@gmail.com> added the comment: This is important since for aws lambda the package can change every time. -- nosy: +Dawei Wang ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-02-08 Thread Zhiming Wang
Zhiming Wang <zmwa...@gmail.com> added the comment: Yeah, Apple LLVM versions are a major headache. I resorted to feature detection, using C++ coroutines support as the clang 5 distinguisher[1]: $ cat /tmp/test/stub.cc #include int main() { return 0; } $ /Applications/Xco

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-02-06 Thread Zhiming Wang
Zhiming Wang <zmwa...@gmail.com> added the comment: Turns out python 2.7.10 doesn't suffer from the performance issue even when compiled with stock clang 4.x, and upon further investigation, I tracked down the commit that introduced the regression:

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-01-22 Thread Zhiming Wang
Zhiming Wang <zmwa...@gmail.com> added the comment: My benchmarks above do contain py37 (master) stats. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-01-21 Thread Zhiming Wang
New submission from Zhiming Wang <zmwa...@gmail.com>: Python 2.7 could be significantly slower (5x in some cases) when compiled with clang 3.x or 4.x, compared to clang 5.x. This is quite a problem on macOS, since the latest clang from Apple (which comes with Xcode 9.2) is based on LLV

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2017-12-27 Thread Roger Wang
Change by Roger Wang <wen...@gmail.com>: -- nosy: +rogerwang ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31639> ___ __

[issue31638] zipapp module should support compression

2017-09-29 Thread Zhiming Wang
Change by Zhiming Wang <zmwa...@gmail.com>: -- keywords: +patch pull_requests: +3803 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31638] zipapp module should support compression

2017-09-29 Thread Zhiming Wang
New submission from Zhiming Wang <zmwa...@gmail.com>: Currently (up to 3.7.0a1) archives generated by the zipapp module are uncompressed, which are unnecessarily large for large projects. It's easy to add deflate compression support, and Python loads compressed archives just fine. I a

[issue31281] fileinput inplace does not work with pathlib.Path

2017-08-25 Thread Zhiming Wang
Changes by Zhiming Wang <zmwa...@gmail.com>: -- pull_requests: +3245 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31281> ___ _

[issue31281] fileinput inplace does not work with pathlib.Path

2017-08-25 Thread Zhiming Wang
New submission from Zhiming Wang: Consider import fileinput import pathlib with fileinput.input(files=(pathlib.Path('in.txt'),), inplace=True) as fp: for line in fp: print(line, end='') which results in Traceback (most recent call last): File

[issue24827] round(1.65, 1) return 1.6 with decimal

2017-07-30 Thread Huan Wang
Huan Wang added the comment: Hi Mark, Thank you for your reply. I went over again the answer from Zachary Ware published on 2015-08-08 09:36. I got the point that it is better to use string type of number. >>> from decimal import Decimal, ROUND_HALF_UP >>> Decimal(&qu

[issue24827] round(1.65, 1) return 1.6 with decimal

2017-07-30 Thread Huan Wang
Huan Wang added the comment: Hello, I was confused by the decimal module. The problem is that I want to from decimal import Decimal, ROUND_HALF_UP def rounded(number, n): ''' Round the digits after the n_th decimal point by using decimal module in python. For example

[issue30823] os.startfile("") craches Python 2.7, 3.4, 3.5 in Windows 7

2017-07-01 Thread morris wang
Changes by morris wang <morris.m.z.w...@gmail.com>: -- title: os.startfile("") craches Python 2.7, 3.4, 3.5 -> os.startfile("") craches Python 2.7, 3.4, 3.5 in Windows 7 ___ Python tracker <rep...@bugs.python.org>

[issue30823] os.startfile("") craches Python 2.7, 3.4, 3.5

2017-07-01 Thread morris wang
New submission from morris wang: try... except... won't catch it. import os try: os.startfile("") except: pass crashes python, resulting in error message "python has stopped working" -- messages: 297487 nosy: morris wang priority: normal severity: norma

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2017-06-29 Thread winton Wang
winton Wang added the comment: the output: datetime.datetime(2017, 1, 1, 0, 0) I question about the week format if without the week of the weekday, the datetime should be the fist day of week as the default? -- ___ Python tracker <

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2017-06-29 Thread winton Wang
New submission from winton Wang: datetime stiptime error according to "%U" format. Python version: 3.4.3, 2.7.13 ,3.6.0, 3.5.2 from datetime import datetime input: datetime.strptime('201726', '%Y%U') output: datetime.datetime(2007, 1, 1, 0, 0) -- components: Li

[issue30575] Python interpreter crashes on macOS

2017-06-09 Thread Yibo Wang
Yibo Wang added the comment: It's a bug from cffi because the interpreter won't crash when using ctypes only without cffi. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.pytho

  1   2   3   4   >