[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-20 Thread David Cuthbert
David Cuthbert added the comment: On the completely deprecate reuse_address and rewrite/force folks to use reuse_port proposals, I'm a bit dubious of this approach. Right now, we have two knobs that directly correspond to (potential) kernel-level socket parameters, SO_REUSEADDR

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-20 Thread David Cuthbert
David Cuthbert added the comment: Jukka -- Fair enough; will reword this a bit. I'm trying to keep the DeprecationWarning short enough so people's eyes don't glaze over; will see what wordsmithing I can do here. (Once you get beyond a certain length, the number of folks who actually read

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-20 Thread David Cuthbert
David Cuthbert added the comment: Alright -- my first stab at the DeprecationWarning in 3.6. https://github.com/dacut/cpython/commit/6a1e261678975e2c70ec6b5e98e8affa28702312 Please critique away, and don't fret about bruising my ego. :-) Is there a more idiomatic way of getting a warning

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-19 Thread David Cuthbert
David Cuthbert added the comment: FreeBSD 12.1 and MacOS 10.15.1 (Catalina) appear to have saner and safer behavior. Both require the use of SO_REUSEPORT for this behavior to happen as well. FreeBSD also requires the UID to be the same or 0 for subsequent processes to make the bind() call

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-19 Thread David Cuthbert
David Cuthbert added the comment: I'm working on patches for the deprecation bits (targeting 3.6 for now; will work my way up from there) for review, including documentation. Unless someone tells me to stop. :-) In an attempt to make this not-so-Linux-specific, I'm reviewing how this works

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-18 Thread David Cuthbert
David Cuthbert added the comment: How much harm would there be in bringing the DeprecationWarning into the next patch of existing (3.6, 3.7, 3.8) releases? The security implications are significant enough that I'd want to be notified of it in my software ASAP. Users can (and should

[issue34820] binascii.c:1578:1: error: the control flow of function ‘binascii_crc32’ does not match its profile data (counter ‘arcs’)

2019-09-18 Thread David Cuthbert
Change by David Cuthbert : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue34820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34820] binascii.c:1578:1: error: the control flow of function ‘binascii_crc32’ does not match its profile data (counter ‘arcs’)

2019-09-18 Thread David Cuthbert
David Cuthbert added the comment: I'm seeing this on a rebuild now of Python 3.7.4 on Ubuntu 18.04 (in my case against _ssl.c). What's happening is there's coverage/profiling data being generated in the build chain (somewhere), which spits out files named *.gcda. Interestingly, make clean

[issue32117] Tuple unpacking in return and yield statements

2017-11-29 Thread David Cuthbert
David Cuthbert <da...@kanga.org> added the comment: Oops, I wasn't looking broadly enough. This is also used in the augmented assignment statements syntax, e.g. a += 1, 2, 3 -- ___ Python tracker <rep...@bugs.python.org> <https://

[issue32117] Tuple unpacking in return and yield statements

2017-11-29 Thread David Cuthbert
David Cuthbert <da...@kanga.org> added the comment: Hm... that leaves the only production for expression_list as: subscription ::= primary "[" expression_list "]" And I'm not sure that this shouldn't also be replaced by starred_list. It's not accepted today, thou

[issue32117] Tuple unpacking in return and yield statements

2017-11-29 Thread David Cuthbert
David Cuthbert <da...@kanga.org> added the comment: CLA processed, and BDFL has assented on python-dev. Serhiy, thoughts on next steps? -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32117] Tuple unpacking in return and yield statements

2017-11-22 Thread David Cuthbert
Change by David Cuthbert <da...@kanga.org>: -- keywords: +patch pull_requests: +4446 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32117] Tuple unpacking in return and yield statements

2017-11-22 Thread David Cuthbert
New submission from David Cuthbert <da...@kanga.org>: This stems from a query on StackOverflow: https://stackoverflow.com/questions/47272460/python-tuple-unpacking-in-return-statement/ Specifically, the following syntax is allowed: def f(): rest = (4, 5, 6) t = 1, 2, 3, *rest

Re: Using python for a CAD program

2006-05-22 Thread David Cuthbert
baalbek wrote: No, concurrent access is highly relevant; for example, on a team of about 50 architects working on design and production drawings for a new hospital, each floor was one 'drawing' (dwg file), and thus stored on disk as a separate entity from the other floors. Now, only one

Re: Using python for a CAD program

2006-05-22 Thread David Cuthbert
baalbek wrote: David Cuthbert wrote: This does not mean the design itself should be stored as an RDBMS. As I've stated previously, CAD data (both electrical and, it appears, mechanical) does not lend itself to RDBMS relationship modeling. I simply do not agree with this. A CAD program

Re: Using python for a CAD program

2006-05-20 Thread David Cuthbert
Terry Hancock wrote: I disagree that transactions are bad for CAD -- they may have a different semantic role and the needed granularity may be different, but the need to roll data back to an earlier revision is just as present in drawings as it is for code or financial transactions. Sure,

Re: Using python for a CAD program

2006-05-18 Thread David Cuthbert
baalbek wrote: CAD systems available today (Autocad, Archicad, Architectural Desktop, etc) have one huge flaw: they don't store data to a SQL database, but to binary files. There's a reason for this. Most CAD data is not in a form (First Normal Form) suitable for a relational database. In

Re: Using python for a CAD program

2006-05-18 Thread David Cuthbert
Paddy wrote: Unfortunately, Cadence got their first with their DFII environment for Schematic based design and their Lisp based language SKILL Well, SKILL (a Franz Lisp derivative) is very old and has some peculiar design quirks. Interfacing with anything not written by Cadence or not

Re: How to determine that if a folder is empty?

2005-08-08 Thread David Cuthbert
Mike Meyer wrote: Just out of curiosity, is there an OS out there where you can have the permissions needed to delete a directory without having the permissions needed to create it appropriately? Not an OS, but AFS has a wider set of permissions (RLIDWKA - which, if I remember correctly, are

Re: python for microcontrollers

2005-08-08 Thread David Cuthbert
Paul Rubin wrote: I don't think you want to do this. Runtime type tags and the overhead of checking them on every operation will kill you all by themselves. Processors like that haven't been used much as Lisp targets either, for the same reasons. Pick a different language. I was thinking

Re: Dabo in 30 seconds?

2005-08-01 Thread David Cuthbert
Ed Leafe wrote: Should we have defensive code for every possible broken installation? We use a lot of the Python standard library modules, many dbapi-compliant modules, and, of course, wxPython. If someone mis-installs one of the pre-requisites, do you expect Dabo to catch that and present