Re: [Python-Dev] Arbitrary non-identifier string keys when using **kwargs

2018-10-07 Thread Chris Barker via Python-Dev
it may or may not apply to everywhere nameapaces are used in the interpreter... > but __dict__ is described as " [a] dictionary or other mapping object". > exactly. -CHB On Sun, 7 Oct 2018 at 19:38, Chris Barker via Python-Dev < > python-dev@python.org> wrote: > >> O

Re: [Python-Dev] Python startup time

2018-10-10 Thread Ronald Oussoren via Python-Dev
n-deprecated replacement (introduced in 10.10). Ronald___________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] "Deprecation" of os.system in favor of subprocess?

2018-10-24 Thread Chris Barker via Python-Dev
On Wed, Oct 24, 2018 at 9:06 AM, Victor Stinner wrote: > I like os.system() and use it everyday. me too. Python has been evolved over the years away from a "scripting language", and becoming more of a "systems language". Which is mostly a good thing, but no need to

Re: [Python-Dev] Get a running instance of the doc for a PR.

2018-11-04 Thread Julien Palard via Python-Dev
--  Julien Palard https://mdk.fr _______ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Get a running instance of the doc for a PR.

2018-11-04 Thread Julien Palard via Python-Dev
Palard https://mdk.fr _______ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Signalling NANs

2018-11-09 Thread Chris Barker via Python-Dev
works for me, too: In [9]: x = cast_int2float(0x7ff80001) In [10]: hex(cast_float2int(x)) Out[10]: '0x7ff80001' In [11]: x = cast_int2float(0x7ff1) In [12]: hex(cast_float2int(x)) Out[12]: '0x7ff1' OS-X, conda build: Python 3.7.0

Re: [Python-Dev] Need discussion for a PR about memory and objects

2018-11-19 Thread Chris Barker via Python-Dev
memory address where x is stored. """ -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar..

Re: [Python-Dev] Asking for reversion

2019-02-03 Thread Ronald Oussoren via Python-Dev
wn to be complex in nature. Ronald -- Twitter: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Asking for reversion

2019-02-04 Thread Ronald Oussoren via Python-Dev
to reach out to me directly during that time. > I asked a question about the commit yesterday night in the tracker and was waiting for a response (which I fully expected to take some time due to timezone differences and this being a volunteer driven project). Ronald ____

[Python-Dev] CPython on Windows ARM32

2019-02-05 Thread Paul Monson via Python-Dev
Hi Python Developers, I'm Paul Monson, I've spent about 20 years working with embedded software. Since 2010 I've worked for Microsoft as a developer. Our team is working with CPython on Azure IoT Edge devices that run on x64-based devices. We would like to extend

Re: [Python-Dev] CPython on Windows ARM32

2019-02-06 Thread Paul Monson via Python-Dev
The PR is here: https://github.com/python/cpython/pull/11774 Searching _M_ARM I see these #ifdef changes outside of ctypes: * Include\pyport.h - adds on to existing MSVC ifdef * Include\pythonrun.h - adds on to existing MSVC ifdef * Modules\_decimal\libmpdec\bits.h * Python\ceval.c - workaround

Re: [Python-Dev] CPython on Windows ARM32

2019-02-06 Thread Paul Monson via Python-Dev
test_load_default_certs_env_windows fails on win32 and amd64 retail. skipped on debug -Original Message- From: Steve Dower Sent: Wednesday, February 6, 2019 3:28 PM To: Christian Heimes ; Paul Monson ; python-dev@python.org; Ned Deily Subject: Re: [Python-Dev] CPython on Windows ARM32 On 06Feb2019 1423

Re: [Python-Dev] Adding test.support.safe_rmpath()

2019-02-13 Thread Ronald Oussoren via Python-Dev
le. Something like shutil.rmtree() with ignore_errors=True? Ronald___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-13 Thread Chris Barker via Python-Dev
On Wed, Feb 13, 2019 at 12:29 PM Barry Warsaw wrote: > I think we should aspire for this to be the case too, eventually. When > this has come up in the past, we’ve said that it’s not appropriate to > change PEP 394 until Python 2 is officially deprecated. OTOH, I appreciate > that

[Python-Dev] datetime.timedelta total_microseconds

2019-02-13 Thread Richard Belleville via Python-Dev
uld a datetime.timedelta.total_microseconds function be a reasonable addition? I would be happy to submit a patch for such a thing. Richard Belleville ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubs

Re: [Python-Dev] Adding test.support.safe_rmpath()

2019-02-14 Thread Ronald Oussoren via Python-Dev
lly use shutil.rmtree for tests that need to create temporary files, and create a temporary directory for those files (that is, use tempfile.mkdtemp in setUp() and use shutil.rmtree in tearDown()). That way I don’t have to adjust house-keeping code when I make changes to test code. Ronald __

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-15 Thread Rob Cliffe via Python-Dev
A function with "microseconds" in the name IMO misleadingly suggests that it has something closer to microsecond accuracy than a 1-second granularity. Rob Cliffe On 14/02/2019 05:05:54, Richard Belleville via Python-Dev wrote: In a recent code review, the following snippet was cal

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-15 Thread Chris Barker via Python-Dev
On Fri, Feb 15, 2019 at 11:58 AM Rob Cliffe via Python-Dev < python-dev@python.org> wrote: > A function with "microseconds" in the name IMO misleadingly suggests that > it has something closer to microsecond accuracy than a 1-second granularity. > it sure does, but `de

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-15 Thread Chris Barker via Python-Dev
lse > uses it. :) > And I would REALLY like it if as much was the same as possible on all platforms... -CHB > -Brett > > >> >> >>> Victor >>> -- >>> Night gathers, and now my watch begins. It shall not end until my death. >>> ___

[Python-Dev] Request review for bpo-35153

2019-02-17 Thread Cédric Krier via Python-Dev
Hi, A few months ago, I submitted bpo-35153 with a PR to allow to set headers from xmlrpc.client.ServerProxy. Is there a core developer willing to review it? It will be great to have it for Python 3.8. https://bugs.python.org/issue35153 https://github.com/python/cpython/pull/10308 Thanks

Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-20 Thread Paul Monson via Python-Dev
Thanks for the feedback. I updated the PR to use get_platform and get_host_platform. More testing is still needed before it's ready to merge to make sure it still does what it was intended to do. -Original Message- From: Python-Dev On Behalf Of Xavier de Gaye Sent: Tuesday, Feb

Re: [Python-Dev] Register-based VM [Was: Possible performance regression]

2019-02-26 Thread Joe Jevnik via Python-Dev
METH_FASTCALL passing arguments on the stack doesn't necessarily mean it will be slow. In x86 there are calling conventions that read all the arguments from the stack, but the rest of the machine is register based. Python could also look at ABI calling conventions for inspiration, like x

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-26 Thread Chris Barker via Python-Dev
On Tue, Feb 26, 2019 at 9:58 AM Barry Warsaw wrote: > I see this question as having several parts, and the conflation of them is > part of the reason why the unversioned `python` command is so problematic. > Python is used for: > > * OS functionality > * to run applications th

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-26 Thread Chris Barker via Python-Dev
her contexts). It never dawned on me to use this approach to convert to seconds or milliseconds, or ... Granted, I still rely on python2 for a fair bit of my work, but still, I had to scratch my head when it was proposed on this thread. -- There are a number of physical unit libraries in Python, and

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-26 Thread Chris Barker via Python-Dev
nd compromises for their constituents. I > personally am not part of that any more, so I have no problem having no say > (despite still having opinions :). > The PEP is what the Python community recommends. The distro maintainers can (and will) do whatever they want. IF we are going

Re: [Python-Dev] Compact ordered set

2019-02-27 Thread Chris Barker via Python-Dev
when we really wanted a set before set existed, I'm not sure the connection is there to a layperson. A mapping and a set type really don't have much to do with each other other than implementation -- anyone that isn't familiar with python C code, or hash tables in general, wouldn

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-27 Thread Chris Barker via Python-Dev
se would address the intuitive and discoverability issue -- very few folks would have any trouble guessing what any of: a_datetime.convert("hours") a_datetime.to_unit("hours") a_datetime.total_hours() mean -- at least generally, even if they con't know if they are getting a

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-27 Thread Chris Barker via Python-Dev
he libraries I maintain still support Python 2. > we know have two contrasting data points -- it's settled! But I'd like to know -- I too will probably remember and use this idiom now that I know it (if not take it to heart ...) -- but would you hvae figured it out on your own? >

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-27 Thread Chris Barker via Python-Dev
Did we ever hear back from the OP as to whether they were using py2 or 3? If they were unable to find timedelta division in py3 -- that's a pretty good case that we need something else. The OP: """ On Wed, Feb 13, 2019 at 9:10 PM Richard Belleville via Python-Dev < pytho

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-27 Thread Richard Belleville via Python-Dev
Sorry for the slow response. Timedelta division is quite a nice solution to the problem. However, since we're maintaining a python version agnostic library at least until 2020, we need a solution that works in python 2 as well. For the moment, we've left the code as in the origin

Re: [Python-Dev] datetime.timedelta total_microseconds

2019-02-27 Thread Chris Barker via Python-Dev
On Wed, Feb 27, 2019 at 3:04 PM Richard Belleville wrote: > Timedelta division is quite a nice solution to the problem. However, since > we're maintaining a python version agnostic library at least until 2020, we > need a solution that works in python 2 as well. > So you were

[Python-Dev] Tests for internal functionality

2019-03-16 Thread Ivan Pozdeev via Python-Dev
In https://github.com/python/cpython/pull/6541 , I was requested to add tests for an internal C function. As I wrote in https://github.com/python/cpython/pull/6541#issuecomment-445514807 , it's not clear from the codebase 1) where tests for internal (as opposed to public) function

[Python-Dev] Testing cross-compiled python (windows arm32) from build bot

2019-03-18 Thread Paul Monson via Python-Dev
examples of how to do this? If not, are there any recommendations for how to achieve this? Thanks, Paul Monson ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org

Re: [Python-Dev] Best way to specify docstrings for member objects

2019-03-20 Thread Ivan Pozdeev via Python-Dev
ss object. Logically speaking, a definition item should be able to see everything that is defined before it. For the same reason, we have to jump through hoops to use a class name in a class attribute definition -- see e.g. https://stackoverflow.com/questions/14513019/python-get-class-name If

Re: [Python-Dev] Remove tempfile.mktemp()

2019-03-20 Thread Ivan Pozdeev via Python-Dev
hiy proposed to discuss on the Python-dev mailing list. Question: Should we drop it or add a (Pending)DeprecationWarning? Suggestion and timeline: 3.8, we raise a PendingDeprecationWarning * update the code * update the documentation * update the tests (check a PendingDeprecat

Re: [Python-Dev] Replacement for array.array('u')?

2019-03-25 Thread Martin (gzlist) via Python-Dev
of the various types). This is pretty much what ctypes provides for dealing with unicode? https://docs.python.org/3/library/ctypes.html#ctypes.create_unicode_buffer Seems a fine place to have things that help with win32 api interactions. Martin ___

Re: [Python-Dev] New Python Initialization API

2019-03-28 Thread Ivan Pozdeev via Python-Dev
On 27.03.2019 20:48, Victor Stinner wrote: Hi, I would like to add a new C API to initialize Python. I would like your opinion on the whole API before making it public. The code is already implemented. Doc of the new API: https://pythondev.readthedocs.io/init_config.html To make the

Re: [Python-Dev] PEP 578: Python Runtime Audit Hooks

2019-03-29 Thread Ivan Pozdeev via Python-Dev
would be an effective security measure are pointless -- 'cuz you would never know if you accounted for everything and would not even have the definition of that "everything". On 29.03.2019 1:35, Steve Dower wrote: Hi all Time is short, but I'm hoping to get PEP 578 (formerly

Re: [Python-Dev] Strange umask(?)/st_mode issue

2019-03-30 Thread Ivan Pozdeev via Python-Dev
't see why it would be though). Perfect, I'll give this a go. Thanks! I set up a PR to collect this trace and the results are at: https://github.com/python/cpython/pull/12625 However, I suspect it's a non-result: umask(022) = 022 open("/home/vsts/work

Re: [Python-Dev] Strange umask(?)/st_mode issue

2019-04-01 Thread Ivan Pozdeev via Python-Dev
re aren't any other platforms where it'll be used. https://github.com/python/cpython/pull/12655 Cheers, Steve ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.py

Re: [Python-Dev] PEP-582 and multiple Python installations

2019-04-04 Thread Chris Barker via Python-Dev
Sorry somehow missed Steve Dower's post: that discussion is mostly happening at https://discuss.python.org/t/pep-582-python-local-packages-directory/963/ I"ll go there to comment. -CHB On Thu, Apr 4, 2019 at 9:02 AM Chris Barker - NOAA Federal < chris.bar...@noaa.gov> wrote:

Re: [Python-Dev] Need help to fix HTTP Header Injection vulnerability

2019-04-10 Thread Ivan Pozdeev via Python-Dev
ule across ecosystem it's good to have a fix landing in stdlib that secures downstream libraries encouraging users to upgrade Python too. Validation should occur whenever user data crosses a trust boundary -- i.e. when the library starts to assume that an extracted chunk now contains

Re: [Python-Dev] Removing PID check from signal handler

2019-04-12 Thread Ivan Pozdeev via Python-Dev
On 12.04.2019 21:05, Steve Dower wrote: On 12Apr.2019 0919, Jeroen Demeyer wrote: The signal handler (that receives signals from the OS) in Python starts with a check     if (getpid() == main_pid) Looking at the comments, the intent was to do a check for the main *thread* but this is

Re: [Python-Dev] bpo-36558: Change time.mktime() return type from float to int?

2019-04-16 Thread Ivan Pozdeev via Python-Dev
cision before year 285,422,891 (which is quite far in the future ;-)). Victor -- Regards, Ivan _______ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Proposal: dict.with_values(iterable)

2019-04-22 Thread Chris Barker via Python-Dev
(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov _______ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubs

Re: [Python-Dev] Use C extensions compiled in release mode on a Python compiled in debug mode

2019-04-23 Thread Ivan Pozdeev via Python-Dev
be able to run C extensions compiled in release mode on a Python compiled in debug mode ("pydebug"). This is going to be impossible because debug Python links against debug C runtime which is binary incompatible with the release one (at least, in Windows). The use case is to debug

Re: [Python-Dev] Use C extensions compiled in release mode on a Python compiled in debug mode

2019-04-24 Thread Ivan Pozdeev via Python-Dev
On 24.04.2019 3:50, Ivan Pozdeev via Python-Dev wrote: On 24.04.2019 2:44, Victor Stinner wrote: Hi, Two weeks ago, I started a thread "No longer enable Py_TRACE_REFS by default in debug build", but I lost myself in details, I forgot the main purpose of my proposal... Let me

Re: [Python-Dev] Use C extensions compiled in release mode on a Python compiled in debug mode

2019-04-24 Thread Ivan Pozdeev via Python-Dev
On 24.04.2019 17:03, Antoine Pitrou wrote: On Wed, 24 Apr 2019 01:44:17 +0200 Victor Stinner wrote: The first requirement for the use case is that a Python debug build supports the ABI of a release build. The current blocker issue is that the Py_DEBUG define imply the Py_TRACE_REFS define

Re: [Python-Dev] datetime.fromisocalendar

2019-04-29 Thread Ivan Pozdeev via Python-Dev
much discussion there, so I'd like to bring it to python-dev's attention as we near the cut-off for new Python 3.8 features. Other than the fact that I've needed this functionality in the past, I also think a good general principle for the datetime module is that when a class (

Re: [Python-Dev] Redoing failed PR checks

2019-05-08 Thread Ivan Pozdeev via Python-Dev
). This will rerun things, but all the failures will be visible in the PR. -- Regards, Ivan ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options

Re: [Python-Dev] PEP 581 (Using GitHub issues for CPython) is accepted

2019-05-15 Thread Ivan Pozdeev via Python-Dev
Council's reflection and rationale on the PEP? +1. Specifically, I'd like to know if the risks and the potential for GitHub missing any needed features were estimated. The PEP says nothing about this. Thank you Regards Antoine. _______ Python-Dev ma

Re: [Python-Dev] Python in next Windows 10 update

2019-05-22 Thread Ivan Pozdeev via Python-Dev
hat starts rolling out today, we (Microsoft) have added "python.exe" and "python3.exe" commands that are installed on PATH *by default* and will open the Microsoft Store at the page where we (Python core team) publish our build. This makes it a 1-2 click process to get from a cl

Re: [Python-Dev] Python in next Windows 10 update

2019-05-22 Thread Ivan Pozdeev via Python-Dev
On 22.05.2019 23:52, Steve Dower wrote: On 22May2019 1309, Ivan Pozdeev via Python-Dev wrote: As someone whose job is to diagnose and fix problems with running software: Are there patches in your release? Do you provide corresponding sources and debug symbols for it? You can find the sources

Re: [Python-Dev] PEP 594 - a proposal for unmaintained modules

2019-05-26 Thread Ivan Pozdeev via Python-Dev
plicitly endorse it and claim that we want out users to use that rather than competing offers. You may look at the archives where I relied on TKinter for an important project and it let me down big time. I would very much prefer Python to honestly admit that there's not enough interest in thi

Re: [Python-Dev] PEP 594 - a proposal for unmaintained modules

2019-05-27 Thread Ivan Pozdeev via Python-Dev
On 27.05.2019 4:55, Steven D'Aprano wrote: On Sun, May 26, 2019 at 04:03:11PM +0300, Ivan Pozdeev via Python-Dev wrote: On 24.05.2019 9:55, Steven D'Aprano wrote: I don't know if this is a good idea or a terrible idea or somewhere in between, so I'm throwing it out to se

Re: [Python-Dev] Overloading comparison operator for lists

2019-05-28 Thread Rob Cliffe via Python-Dev
On 27/05/2019 04:52:17, Montana Burr wrote: NumPy arrays have this awesome feature, where array == 3 does an element-wise comparison and returns a list. For example: np.array([1,2,3,4,5])==3 returns [False,False,True,False,False] It would be cool if Python had similar functionality for

[Python-Dev] Re: python3 -bb and hash collisions

2019-06-21 Thread Ivan Pozdeev via Python-Dev
https://stackoverflow.com/questions/49991870/python-default-string-encoding for details). And if you do know the encoding, you can as well compare `str.encode(encoding) != bytes` / `str != bytes.decode(encoding)`. Came across this kind of set in the hyper http library which uses a set to a

[Python-Dev] Re: Sponsoring Python development via the PSF

2019-06-26 Thread Ivan Pozdeev via Python-Dev
te to charity. I can't see or control what my money is going to be used for. On Wed, Jun 26, 2019, 02:15 Brett Cannon mailto:br...@python.org>> wrote: Victor Stinner wrote: > That's great! > "The PSF will use Python development fundraising to support CPython

[Python-Dev] Re: Change SystemError to NOT inherit from Exception

2019-07-01 Thread Ivan Pozdeev via Python-Dev
On 01.07.2019 12:25, Jeroen Demeyer wrote: A SystemError is typically raised from C to indicate serious bugs in the application which shouldn't normally be caught and handled. It's used for example for NULL arguments where a Python object is expected. So in some sense, SystemError is

[Python-Dev] Re: strip behavior provides inconsistent results with certain strings

2019-07-01 Thread Chris Barker via Python-Dev
This was quite extensively discussed on python-ideas recently: https://mail.python.org/archives/list/python-id...@python.org/thread/RJARZSUKCXRJIP42Z2YBBAEN5XA7KEC3/#WIRID57ESUFUAQQQ6ZUY2RK5PKQQYSJ3 (I'm finding it hard to find a good thread view in the new interface -- but that will ge

[Python-Dev] Re: Building Standalone Python Applications with PyOxidizer

2019-07-01 Thread Chris Barker via Python-Dev
Congrats on this new tool -- I'll be checking it out. With a quick glance at the docs, I see this: """ PyOxidizer loads everything from memory and there is no explicit I/O being performed. When you import a Python module, the bytecode for that module is being loaded from a m

[Python-Dev] Re: Annoying user on GitHub

2019-07-02 Thread Ivan Pozdeev via Python-Dev
rds the places where we are paying attention. Cheers, Steve _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https:

[Python-Dev] Re: Removing dead bytecode vs reporting syntax errors

2019-07-05 Thread Ivan Pozdeev via Python-Dev
syntax errors. In my opinion, SyntaxErrors should be reported with independence of the value of variables (__debug__) or constant as is a property of the code being written not of the code being executed. Also, as CPython is the reference implementation of Python, the danger here is that it could be

[Python-Dev] Re: [Possibly off-topic] Python-Announce floods and delays

2019-07-08 Thread Ivan Pozdeev via Python-Dev
eered for -announce, so maybe that will help. :) The requirement here is not prior fame but free time for the job (and a minimal amount of common sense if that could be called a requirement). ___ Python-Dev mailing list -- python-dev@python.org To unsub

[Python-Dev] Re: Docs: audit event table empty

2019-07-09 Thread Julien Palard via Python-Dev
. build/html docsbuild@docs:/srv/docsbuild/3.9/cpython-en/Doc$ grep breakpoint build/html/library/audit_events.html builtins.breakpoint breakpointhook [1] Bests, --  Julien Palard https://mdk.fr _______ Python-Dev mailing list -- python-dev@python.or

[Python-Dev] Re: What is a public API?

2019-07-13 Thread Ivan Pozdeev via Python-Dev
urpose was implementing the "string-escape" codec which was removed in Python 3 (for reasons). In Python 3 it is only used for supporting the old pickle protocol 0. Could we strictly define what is considered a public module interface in Python? Is "what is present in th

[Python-Dev] Re: Python 3.7.4, Visual Studio versions for building modules from source

2019-07-22 Thread Ivan Pozdeev via Python-Dev
On 22.07.2019 18:25, Kacvinsky, Tom wrote: HI, Not sure if this is the right place to ask, but I am trying to build pywin32-224 from source for Python 3.7.4. I think this might be the right list as this seems to be a generic problem I am having, but I want to focus on one particular module

[Python-Dev] Re: Comparing dict.values()

2019-07-24 Thread Ronald Oussoren via Python-Dev
alues) I don’t think this invariant holds unless comparison is order dependent. {1:2, 3:4} and {1:4, 3:2} have the same keys and values, but not the same items. Ronald _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to p

[Python-Dev] Re: Comparing dict.values()

2019-07-24 Thread Rob Cliffe via Python-Dev
equal, dicts; Naive question: Is there a way (in Python) to get at the underlying dict from a dict.values object, or more generally from any dict view object? >>> dir({}.values()) ['__class__', '__delattr__', '__dir__', '__doc__', '__eq__',

[Python-Dev] Re: Comparing dict.values()

2019-07-24 Thread Rob Cliffe via Python-Dev
ts / lists / sorted lists before comparing" ? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://

[Python-Dev] Re: Comparing dict.values()

2019-07-24 Thread Rob Cliffe via Python-Dev
(but then again, if I don't mention this possibility, maybe someone even more idiotic than me will suggest it ). On 25/07/2019 00:49:56, Rob Cliffe via Python-Dev wrote: On 25/07/2019 00:09:37, David Mertz wrote: I agree with Greg. There are various possible behaviors that might make

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Ivan Pozdeev via Python-Dev
== d.items() ``` but `d.values() == d.values()` does not return the expected results. It always returns `False`. The symmetry is a bit off. In the bug trackers[0] and the Github PR[1], I was asked to raise the issue on the python-dev mailing list to find a consensus on what comparing `.values()` shoul

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-06 Thread Ivan Pozdeev via Python-Dev
On 05.08.2019 7:22, raymond.hettin...@gmail.com wrote: We should revisit what we want to do (if anything) about invalid escape sequences. For Python 3.8, the DeprecationWarning was converted to a SyntaxWarning which is visible by default. The intention is to make it a SyntaxError in Python

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-06 Thread Rob Cliffe via Python-Dev
e, open() is executed at run-time. And the use of open might be masked by using a synonym for it; open might be shadowed by the program assigning to it; the argument to open() might be an expression such as ("..training\new_memo" + extn)    etc., etc. Rob Cliffe ___

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-06 Thread Rob Cliffe via Python-Dev
or post a bug report on ..." ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.or

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-08 Thread Ronald Oussoren via Python-Dev
Blog: https://blog.ronaldoussoren.net/ > On 8 Aug 2019, at 10:42, Christian Tismer wrote: > > Hi Guido, > > If a C++ function already has a return value, plus some primitive > pointer variables that need to be moved into the result in Python, > then we have the case with a first, single unnamed

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-08 Thread Ronald Oussoren via Python-Dev
eturn tuple could be hidden like the stat_result > example that Guido mentioned: > > https://github.com/python/typeshed/blob/master/stdlib/3/os/__init__.pyi > <https://github.com/python/typeshed/blob/master/stdlib/3/os/__init__.pyi> > >def stat(self, *, follow

[Python-Dev] os.scandir bug in Windows?

2020-10-17 Thread Rob Cliffe via Python-Dev
TLDR: In os.scandir directory entries, atime is always a copy of mtime rather than the actual access time. Demo program: Windows 10, Python 3.8.3: # osscandirtest.py import time, os with open('Test', 'w') as f: f.write('Anything\n') # Write to a file time.sleep

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-18 Thread Rob Cliffe via Python-Dev
, 2020 at 7:25 PM Rob Cliffe via Python-Dev mailto:python-dev@python.org>> wrote: TLDR: In os.scandir directory entries, atime is always a copy of mtime rather than the actual access time. Demo program: Windows 10, Python 3.8.3: # osscandirtest.py import time,

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-19 Thread Ivan Pozdeev via Python-Dev
On 19.10.2020 14:47, Steve Dower wrote: On 19Oct2020 1242, Steve Dower wrote: On 15Oct2020 2239, Rob Cliffe via Python-Dev wrote: TLDR: In os.scandir directory entries, atime is always a copy of mtime rather than the actual access time. Correction - os.stat() updates the access time to

[Python-Dev] Re: PEP 638: Syntactic macros

2020-10-19 Thread Martin (gzlist) via Python-Dev
//babeljs.io/blog/2017/09/11/zero-config-with-babel-macros https://github.com/kentcdodds/babel-plugin-macros https://github.com/jgierer12/awesome-babel-macros That's a general intro, the code repo for the macro plugin, and a repo that lists implemented macros. Martin ____

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-19 Thread Rob Cliffe via Python-Dev
On 19/10/2020 12:42, Steve Dower wrote: On 15Oct2020 2239, Rob Cliffe via Python-Dev wrote: TLDR: In os.scandir directory entries, atime is always a copy of mtime rather than the actual access time. Correction - os.stat() updates the access time to _now_, while os.scandir() returns the

[Python-Dev] Re: Speeding up CPython

2020-10-21 Thread Ronald Oussoren via Python-Dev
them away*. > > Even with the GIL borrowed references are problematic. There are a lot of cases where using a borrowed reference after calling an API that might run Python code might invalidate the borrowed reference. In general the only safe thing to do with a borrowed reference is to turn it

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Ronald Oussoren via Python-Dev
tps://github.com/markshannon/faster-cpython > > I'd love to hear your thoughts on this. I don’t have anything useful to add to the discussion, other than to say that I’m happing to see that someone is willing to spent a significant amount of effort on making CPython faster. Especially w

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-10-30 Thread Ronald Oussoren via Python-Dev
> On 29 Oct 2020, at 22:43, Victor Stinner wrote: > > Hi, > > I propose to drop the Solaris support in Python to reduce the Python > maintenance burden: > > https://bugs.python.org/issue42173 > > I wrote a draft PR to show how much code could be removed (

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-10-30 Thread Ronald Oussoren via Python-Dev
/ micro.blog: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ <https://blog.ronaldoussoren.net/> > > On Fri, 30 Oct 2020, 09:29 Ronald Oussoren via Python-Dev, > mailto:python-dev@python.org>> wrote: > > > On 29 Oct 2020, at 22:43, Victor Stinner > <ma

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-10-30 Thread Ronald Oussoren via Python-Dev
s been out of development for over 14 years (https://en.wikipedia.org/wiki/IRIX <https://en.wikipedia.org/wiki/IRIX>). Ronald_______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org htt

[Python-Dev] Re: Site Packages under LIB folder

2020-10-30 Thread Ronald Oussoren via Python-Dev
> On 30 Oct 2020, at 08:37, rajesh.narasim...@gmail.com wrote: > > I have installed new python version 3.9, I wanted to move all the > site-packages that I have used in 3.8 to 3.9 lib. Is it possible? This is not a list for support on Python, but a list on the development of

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-10-30 Thread Garrett D'Amore via Python-Dev
many many more users of this that would be impacted than a naive examination of downloads will show. Of course this all presumes that the core Python team still places value on being a cross platform portable tool. I can help solve most of the other concerns - except for this one. - Garrett

[Python-Dev] Re: PEP 642: Constraint Pattern Syntax for Structural Pattern Matching

2020-11-05 Thread Ronald Oussoren via Python-Dev
to regular tuple unpacking. If I read the PEP correctly binding the same name multiple times is also forbidden in more complex scenario’s where multiple binding is not so easily recognised, such as "case Rect(Point(x, y), Size(x, w))”. Ronald — Twitter / micro.blog: @ronaldoussoren Blog:

[Python-Dev] Re: Contribution to github repos.

2020-11-06 Thread Ivan Pozdeev via Python-Dev
See https://devguide.python.org/ . On 06.11.2020 6:57, Manak Wadhwa wrote: Hey Guys, I am Manak Wadhwa. I have a good hand in python language, ML Algorithms, Web Dev (HTML5, CSS3, JS, PHP, AJAX, Bootstrap, JQuery). I want to contribute to python org can someone help as which repository should

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-11-07 Thread Garrett D'Amore via Python-Dev
source. Sent from my iPhone > On Oct 30, 2020, at 4:59 PM, Gregory P. Smith wrote: > >  > >> On Fri, Oct 30, 2020 at 2:30 PM Garrett D'Amore via Python-Dev >> wrote: >> I’m not on this list. But I have offered to help - if there are tasks that >> ne

[Python-Dev] Please do not remove random bits of information from the tutorial

2020-11-07 Thread Riccardo Polignieri via Python-Dev
Dear all, I am the maintainer of an Italian translation of the Python Tutorial: https://pytutorial-it.readthedocs.io. Since the Italian translation is kept in sync with the original repo (across all the branches!), from time to time I get an alert when a change is committed. This morning I

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-08 Thread Riccardo Polignieri via Python-Dev
t about it in depth... In short, I believe that the tutorial was originally intended for the beginners... except, the very definition of "beginner" has shifted a lot in the meantime, as the audience of Python users widened. This poses difficulties that in my opinion could be solved on

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-12 Thread Riccardo Polignieri via Python-Dev
Inada, as I said before, mine was more a general consideration than a criticism of a particular change (let alone a particular committer!). > But the tutorial isn't a "special attribute showcase". > It doesn't cover all special attributes and describe how Python >

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-12 Thread Riccardo Polignieri via Python-Dev
Hi Kyle, > ... I think that we should use the > guideline of: "Is this useful information in 95% of real-world use cases or > does it have a strong niche purpose that will be useful at some point for > significant number of Python users?" If not, my opinion is that

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-12 Thread Riccardo Polignieri via Python-Dev
the tutorial. Now, this would be a deletion that I would welcome. I suspect there are quite a few (relatively) low hanging fruits like this one out there. best, riccardo _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send a

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-12 Thread Riccardo Polignieri via Python-Dev
e unfriendly, highly technical reference guide or to a > PEP. Indeed. The PEPs are the worst, more often than not. I remember when I first learned Pyhton, every time the documentation linked to a PEP, I felt a shiver down my spine. r. _______ Pyth

[Python-Dev] Re: python.org doc portal question/bug

2020-12-04 Thread Ivan Pozdeev via Python-Dev
at 6:16 PM Guido van Rossum mailto:gu...@python.org>> wrote: If you want to get the attention of the people who maintain the website, please look at the bottom of any page on python.org <http://python.org> and file an issue at the GitHub tracker linked there.

[Python-Dev] Re: SC 2020 recommendation for PEP 634

2020-12-07 Thread Ethan Furman via Python-Dev
that could be better spent on other issues. If you (the current SC) were actually accepting PEP 634, would the vote be the same? Then accept it, and let's all move on. -- ~Ethan~ _______ Python-Dev mailing list -- python-dev@python.org To unsubscri

<    7   8   9   10   11   12   13   14   15   16   >