Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-07 Thread Christian Seberino
> ChrisA You're definitely an expert programmer. -- https://mail.python.org/mailman/listinfo/python-list

[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

2020-08-07 Thread Irit Katriel
Irit Katriel added the comment: I guess the missing lock in setTarget is a different issue than the one you raise here and should be a separate ticket - I will create one. -- ___ Python tracker

Re: Are instances of user-defined classes mutable?

2020-08-07 Thread Richard Damon
On 8/6/20 10:53 PM, ZHAOWANCHENG wrote: > So instances of user-defined classes are immutable by default? > Or the description of "if a tuple contains any mutable object either > directly or indirectly, it cannot be used as a key." in the document > is not completely correct? > The description

Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-07 Thread Christian Seberino
> If "the Python way" seems simpler to you than "the Lisp way," > or iteration seems simpler to you than recursion, then so be it. Other > languages and other programmers are different. I think this is so true. I've had similar conversations with Lisp fans and it has confused me at times why

[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-08-07 Thread wyz23x2
wyz23x2 added the comment: Ping? Which of the 3 should we choose? -- versions: +Python 3.10 ___ Python tracker ___ ___

[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-08-07 Thread wyz23x2
Change by wyz23x2 : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Are instances of user-defined classes mutable?

2020-08-07 Thread Mats Wichmann
On 8/6/20 8:53 PM, ZHAOWANCHENG wrote: > So instances of user-defined classes are immutable by default? No, they're clealry mutable. > Or the description of "if a tuple contains any mutable object either directly > or indirectly, it cannot be used as a key." in the document is not >

[issue41502] Option for Colored Logging in http.server Module

2020-08-07 Thread Aaron Lichtman
New submission from Aaron Lichtman : It would be useful if the http.server module had an option for colored logging to help users visually parse the HTTP traffic logs. $ python3 -m http.server 80 --color is along the lines of what I'm thinking. -- components: Library (Lib) messages:

[issue41501] 0x80070643, can't install any version

2020-08-07 Thread BSM and 102 others
New submission from BSM and 102 others : I wanted to install Python 3.8, but I poorly removed a previous version of Python 3.3 through the "permanently delete" function. I started the installer and it gave me a 0x80070643 error with a log similar to the link

[issue40275] test.support has way too many imports

2020-08-07 Thread hai shi
Change by hai shi : -- pull_requests: +20908 pull_request: https://github.com/python/cpython/pull/21764 ___ Python tracker ___ ___

Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-07 Thread Terry Reedy
On 8/6/2020 11:13 AM, Christian Seberino wrote: Python is my favorite language and the easiest to use in my opinion. Lisp has a far simpler grammar and syntax. A beginner I think could learn Lisp much faster than Python. Therefore, it seems like Lisp *should* be easier to work with and more

Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-07 Thread Terry Reedy
On 8/6/2020 2:39 PM, Akkana Peck wrote: Christian Seberino writes: Python is my favorite language and the easiest to use in my opinion. Lisp has a far simpler grammar and syntax. A beginner I think could learn Lisp much faster than Python. Therefore, it seems like Lisp *should* be easier to

[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

2020-08-07 Thread Irit Katriel
Irit Katriel added the comment: Actually the lock is needed and it is currently missing from setTarget. The script below causes handle to be called on None, causing: File "C:\Users\User\src\cpython\lib\logging\handlers.py", line 1265, in emit self.flush() File

[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

2020-08-07 Thread Pauser
Pauser added the comment: So I have to use two config parser objects to merge the configuration of one config.ini (needs interpolation) and the environment on windows ? So at the end choose wether to use environment variables or config parser interpolation, right? (only on windows) Not

[issue41499] logging nested file path

2020-08-07 Thread Lasse Nørfeldt
Lasse Nørfeldt added the comment: When running a script like this ``` import os import utils.logger import utils.stats import utils.dir import utils.convert import re import CONSTANTS HTML_DIR_PATH = CONSTANTS.RAW_DATA_DIR + '/html' folder_contents = [fc for fc in os.listdir(

[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

2020-08-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: The exception is due to the interpolation feature of ConfigParser, which expects a different syntax. The default interpolation syntax is "%(key)s". Interpolation can be turned off by passing "interpolation=None" when creating the ConfigParser object. See

[issue41500] InterpolationSyntaxError reading the (windows) environment with unresolved environment variables

2020-08-07 Thread Pauser
New submission from Pauser : Hello, I tried to extend our config processing using the environment variables and the configparser module. On some machines (all windows) the configparser failed with an InterpolationSyntaxError ... It seems that not resolved environment variables (e.g.

[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: That doesn't answer my question, synthetic.conf should still make it possible to have the mountpoint in /, and that's even used as an example in the manpage. -- ___ Python tracker

[issue41499] logging nested file path

2020-08-07 Thread Eric V. Smith
Eric V. Smith added the comment: You'll need to explain what behavior you're seeing, and how that differs from what you expect. -- nosy: +eric.smith ___ Python tracker ___

[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ned Deily
Ned Deily added the comment: > Why is this share mounted under /System/Volumes/Data and not under /Volumes? See man 5 synthetic_conf for more details. -- ___ Python tracker

[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: > For some background, our network location /mathworks is usually mounted at > root, but due to the restrictions on macOS Catalina, it mounts at > /System/Volumes/Data and we then add a symlink to the root directory so > "/mathworks ->

[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: > As a reminder when implementing: The whole configure machinery needs work :-(. Disabling looking in /usr/local should IMHO be an explicit choice when building, not something inferred from the presence of "-isysroot" in the compiler flags because

[issue41499] logging nested file path

2020-08-07 Thread Lasse Nørfeldt
New submission from Lasse Nørfeldt : I have been having a lot of issues when creating loggers that are located in nested folders. I have attached a .py with a logger module. Currently it works if I don't place them in nested folders... -- components: Library (Lib) files: logger.py

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: I had not put any thought into subnormals (denormals?) because they didn't arise in my use cases. But it would be nice to handle them as well as possible. Accuracy improvements are welcome as well. And that goes hand in hand with better commutativity.

[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread miss-islington
miss-islington added the comment: New changeset b2514c4934291364404a2bc78256b77026a80dff by Miss Islington (bot) in branch '3.9': bpo-41098: Doc: Add missing deprecated directives (GH-21162) https://github.com/python/cpython/commit/b2514c4934291364404a2bc78256b77026a80dff --

[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread miss-islington
miss-islington added the comment: New changeset dc98a5468a48ecffe95a6c3a07ce21366477bdd7 by Miss Islington (bot) in branch '3.8': bpo-41098: Doc: Add missing deprecated directives (GH-21162) https://github.com/python/cpython/commit/dc98a5468a48ecffe95a6c3a07ce21366477bdd7 --

[issue26834] Add truncated SHA512/224 and SHA512/256

2020-08-07 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- nosy: +sir-sigurd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41456] loop.run_in_executor creat thread but not destory it after the task run over

2020-08-07 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> not a bug type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +20907 pull_request: https://github.com/python/cpython/pull/21762 ___ Python tracker ___

[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread Inada Naoki
Inada Naoki added the comment: New changeset 46e19b61d31ba99f049258efa4ff1334856a3643 by Inada Naoki in branch 'master': bpo-41098: Doc: Add missing deprecated directives (GH-21162) https://github.com/python/cpython/commit/46e19b61d31ba99f049258efa4ff1334856a3643 --

[issue41098] Deprecating PyUnicodeEncodeError_Create

2020-08-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +20906 pull_request: https://github.com/python/cpython/pull/21761 ___ Python tracker

[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-07 Thread Ned Deily
Change by Ned Deily : -- title: Python extension modules fail to build on Mac 10.15.1 (Catalina) -> setup.py test for macOS SDK files may incorrectly classify files in other file systems ___ Python tracker

[issue41129] Python extension modules fail to build on Mac 10.15.1 (Catalina)

2020-08-07 Thread Ned Deily
Ned Deily added the comment: Thanks for the detailed analysis. That does seem like a reasonable explanation: the code in setup.py was not expecting to find anything other than system files under /System. For Apple to put other fs mount points in the /System hierarchy seems ... odd but

[issue34360] urllib.parse doesn't fully comply to RFC 3986

2020-08-07 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37495] socket.inet_aton parsing issue on some libc versions

2020-08-07 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-07 Thread Chris Angelico
On Fri, Aug 7, 2020 at 11:11 AM Python wrote: > Not necessarily. Some problems very naturally lend themselves to > recursive solutions. Fibonacci's sequence is one. > > #!/usr/bin/python > > def fib(x): > if x < 1: > raise "arg must be >= 1" > if x == 1: > return 0 >

[issue41419] Path.mkdir and os.mkdir don't respect setgid if its parent is g-s

2020-08-07 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: -Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41419] Path.mkdir and os.mkdir don't respect setgid if its parent is g-s

2020-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.mkdir() is a thin wrapper around syscalls mkdir or mkdirat. Path.mkdir() is a thin wrapper around os.mkdir(). If you think that the behavior of mkdir differs from the documentation please file a report in the Linux kernel. -- nosy:

<    1   2