A new SCons release, 4.6.0, is now available on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 4.5.2:
NEW FUNCTIONALITY
-
- D compilers : added support for generation of .di interface files.
New variables
A new SCons release, 4.5.2, is now available on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 4.5.1:
FIXES
-
- Fix a problem (#4321) in 4.5.0/4.5.1 where ParseConfig could cause an
exception in MergeFlags when the result would
A new SCons release, 4.5.1, is now available on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 4.5.0:
FIXES
-
- Fix a problem in 4.5.0 where using something like the following code
will cause a Clone()'d environment to share the
A new SCons release, 4.5.0, is now available on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 4.4.0:
NOTE: If you build with Python 3.10.0 and then rebuild with 3.10.1 (or
higher), you may
see unexpected rebuilds. This is due to
A new SCons release, 4.4.0, is now available
on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 4.3.0:
NOTE: If you build with Python 3.10.0 and then rebuild with 3.10.1 (or
higher), you may
see unexpected rebuilds. This is due
A new SCons release, 4.3.0, is now available
on the SCons download page:
https://scons.org/pages/download.html
NOTE: 4.3.0 now requires Python 3.6.0 and above. Python 3.5.x is no longer
supported
Here is a summary of the changes since 4.2.0:
NEW FUNCTIONALITY
-
- Ninja
Bill Borskey added the comment:
No worries. I find bugs in my day job, thought this might be a useful segfault
but it segfaults because it’s incrementing that reference count on the pyobj
that don’t exist. So pretty lame. I did spend an hour tracking it down so I
thought I’d let y’all know
New submission from Bill Borskey :
Dereferencing a python object that does not exist through ctypes caused a
segfault in pymalloc_alloc.
rdi: 0x0006 rsi: 0x0006
0 org.python.python 0x0001081ee277 pymalloc_alloc + 74
1 org.python.python
Usage: grocli check|add|delete [-u USERS ...]
Bill
--
INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www2.celestial.com/ 6641 E. Mercer Way
Mobile: (206) 947-5591 PO Box 820
Fax:(206) 232-9186 Mercer Island, WA 98040-0820
Force a
Bill Collins added the comment:
Confirmed, thanks!
--
___
Python tracker
<https://bugs.python.org/issue43745>
___
___
Python-bugs-list mailing list
Unsubscribe:
Bill Collins added the comment:
The embeddable dists for 3.9.4 have updated, but the 3.8.9 packages are still
showing the builds from April 2nd.
--
___
Python tracker
<https://bugs.python.org/issue43
Bill Collins added the comment:
Thanks for the quick action on this!
I've downloaded the new 3.8.9/3.9.4 installers, but they are unable to run over
my existing 3.8.9/3.9.4 installs; "Unable to install python 3.9.4 (64-bit) due
to an existing install." This is probably fine as
New submission from Bill Collins :
>>> import sys,ssl
>>> sys.version
'3.9.4 (tags/v3.9.4:1f2e308, Apr 4 2021, 13:27:16) [MSC v.1928 64 bit (AMD64)]'
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.1.1i 8 Dec 2020'
I may well be holding it wrong, but something seems off.
---
(.*)(\1)$')
slast = None
while slast != s:
slast = s
s = pat.cub(r'\2', s)
return s
# end stripquotes(s)
Bill
--
INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www2.celestial.com/ 6641 E. Mercer Way
Mobile: (206) 947
A new SCons release, 4.0.1, is now available
on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 4.0.1:
NEW FUNCTIONALITY
- Added Environment() variable TEMPFILEDIR which allows setting the
directory which temp
Bill Wallace added the comment:
There are a few other places on the documentation that are imprecise or
misleading for await. While the information needed is scattered around the
docs, I think these can also be improved. I'm pretty sure these fit with this
issue.
Developing with asyncio
alent is attr_get() which gets the current
>attributes.
I haven't looked for it.
...
>Is anyone other than me still even using Python curses? :-)
Raises hand.
Bill
--
INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www2.celestial.com/ 6641 E. Mercer Way
their roots in
doing a lot of scientific programming in ALGOL on the B-5500,
then in BPL (Burroughs Programming Language) on Burroughs Medium
Systems, B-2500->B-4500.
Bill
--
INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www2.celestial.com/ 6641 E. Mercer Way
Mobi
Glad that helped!
Big thanks to Mats Wichmann for that one!
On Sat, Dec 21, 2019 at 10:41 AM Eric Fahlgren
wrote:
> On Mon, Dec 16, 2019 at 7:02 PM Bill Deegan
> wrote:
>
>> - EXPERIMENTAL NEW FEATURE: Enable caching MSVC configuration
>> If SCONS_CACHE_MSVC_CON
A new SCons checkpoint release, 3.1.2, is now available
on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 3.1.1:
NOTE: The 4.0.0 Release of SCons will drop Python 2.7 Support
NEW FUNCTIONALITY
- Added debug option
On Sat, Dec 07, 2019, Peter J. Holzer wrote:
>As an aside, to prevent vim from inserting tabs in the first place, set
>expandtab
>sw=4
>and maybe also
>ts=4
Inserting a comment in the file like this makes thing easy.
# vim: expandtab sw=4 ts=4 nows wm=0
Bill
--
You could use SCons (native python... )
On Mon, Nov 11, 2019 at 2:04 PM Grant Edwards
wrote:
> On 2019-11-11, Rhodri James wrote:
> >> I'm sure it's possible to write Makefiles that work with both GNU make
> >> and NMake, but I imagine it's a rather limiting and thankless
> enterprise.
> >>
>
You might just consider working with the BuildBot project to add support
for lighter weight build workers.
Re-Re-Re-inventing the wheel is almost always wasted effort.
On Tue, Oct 8, 2019 at 8:33 AM Rhodri James wrote:
> On 08/10/2019 11:22, Simon Connah wrote:
> > I'm posting this message as a
t;>> methodfinder.find(1,2) == 3
1+2
1^2
1|2
2+1
2^1
2|1
>>> methodfinder.find(1,1) == 1
1&1
1**1
1*1
1.__class__(1)
1.denominator
1.numerator
1.real
1//1
1|1
math.gcd(1, 1)
max(1, 1)
min(1, 1)
pow(1, 1)
round(1, 1)
>>> methodfinder.find([1,2], '__iter__') == True
hasattr([1, 2], '__iter__')
Bill Six
--
https://mail.python.org/mailman/listinfo/python-list
Bill Minasian added the comment:
Under OSX 10.15 beta and Xcode 11.0 beta the following does not work:
./configure --enable-framework
DYLD_FRAMEWORK_PATH=/Users/bill/cpython ./python.exe -E -S -m sysconfig
--generate-posix-vars ;\
if test $? -ne 0 ; then \
echo
SCons - a software construction tool
What is SCons?
SCons is an Open Source software construction tool—that is, a
next-generation build tool. Think of SCons as an improved, cross-platform
substitute for the classic Make utility with integrated functionality
similar to
New submission from Bill Collins :
Firstly, I'd acknowledge that expecting 2to3 to work on the embeddable
distribution might be the problem, but the mode of failure is silent and
delayed.
The problem is that 2to3 loads fix names by searching for files in a package
that end in '.py'
(https
New submission from Bill Collins :
pyc files within the embeddable zip are compiled with their filename as the
temporary directory in which they are compiled. Thus, stack traces will appear
as (e.g.) D:\obj\windows-release\37win32_Release\msi_python\zip_win32\image.py,
which is a little
A new SCons checkpoint release, 3.1.0, is now available
on the SCons download page:
https://scons.org/pages/download.html
SCons is an Open Source software construction tool—that is, a
next-generation build tool. Think of SCons as an improved, cross-platform
substitute for the classic
you must be picking up pip from a different python installl (or virtualenv)
than you are picking up python.
Check your %PATH%
On Fri, Jun 21, 2019 at 6:29 AM Malcolm Greene wrote:
> 64-bit Python 3.6.8 running on Windows with a virtual environment
> activated.
>
> "pip -v" reports 19.0.3
>
A new SCons release, 3.0.5, is now available on the SCons download page:
https://scons.org/pages/download.html
And via pypi:
pip install scons
SCons is a tool for building software (and other files). SCons is
implemented in Python, and its "configuration files" are actually
rs plus some other platform specific logic?
See os.path.join
Bill
--
INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www2.celestial.com/ 6641 E. Mercer Way
Mobile: (206) 947-5591 PO Box 820
Fax:(206) 232-9186 Mercer Island, WA 98040-0820
The
h the ConfigParser
libraries.
>3. File location? I'm using Ubuntu and I believe that the correct location
>would be home/.config/ . What about Mac and Windows?
See above. Same for Mac. I don't do Windows.
Bill
--
INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC
URL: http://
A new SCons release, 3.0.4, is now available
on the SCons download page:
http://www.scons.org/download.php
Or via pypi:
pip install scons
Here is a summary of the changes since 3.0.3:
NEW FUNCTIONALITY
- Added TEMPFILESUFFIX to allow user to specify suffix for
A new SCons release, 3.0.3, is now available on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 3.0.1:
NEW FUNCTIONALITY
- Properly support versioned shared libraries for MacOS. We've also
introduced two
new env
A new SCons release, 3.0.2, is now available on the SCons download page:
https://scons.org/pages/download.html
Here is a summary of the changes since 3.0.1:
NEW FUNCTIONALITY
- Properly support versioned shared libraries for MacOS. We've also
introduced two
new env
tr(f.read().strip())*
This command should get the gateway IP.
Linux: cmd = "ip route list | awk '/^default/{print $3}'"
or perhaps
Linux: cmd = "netstat -rn | awk '/^0.0.0.0/{print $2}'"
OSX: cmd = "netstat -rn | awk '/^default/{print $2}'"
I don't have a freebsd system
I also got such.
I'm guessing your track record of searches has flagged you as someone they
might want to hire.
On Fri, Jul 13, 2018 at 5:36 AM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> On Thu, 12 Jul 2018 22:31:35 -0400, Travis McGee wrote:
>
> > I somehow managed to
Greetings,
I'm doing some refactoring on a fairly large python codebase.
Some of the files are > 4000 lines long and contain many classes.
Should I expect any performance hit from splitting some of the classes out
to other files?
Thanks,
Bill
--
https://mail.python.org/mailman/listinfo/pyt
Is it possible to get the release notes included on the download page(s)?
On Tue, May 1, 2018 at 10:35 AM, Guido van Rossum wrote:
> Simple. I misread "latest" for "last" and was hopeful that no new bugs
> would need to be fixed between now and 2020. I will post a correction
back up for me.
On Mon, Apr 30, 2018 at 2:26 PM, Mark Lawrence
wrote:
> On 30/04/18 19:17, Paul Moore wrote:
>
>> It's working for me now.
>> Paul
>>
>> On 30 April 2018 at 18:38, Jorge Gimeno wrote:
>>
>>> Not sure who to report to, but the site
Still 502 for me.
On Mon, Apr 30, 2018 at 2:17 PM, Paul Moore wrote:
> It's working for me now.
> Paul
>
> On 30 April 2018 at 18:38, Jorge Gimeno wrote:
> > Not sure who to report to, but the site comes back with a 503. Anyone
> know
> > where I can
Ditto. I see a 502.
On Mon, Apr 30, 2018 at 1:38 PM, Jorge Gimeno wrote:
> Not sure who to report to, but the site comes back with a 503. Anyone know
> where I can direct this to?
>
> -Jorge L. Gimeno
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
You need a good lesson in "program documentation". Your code
looks terrible--really!
fifii.ge...@gmail.com wrote:
class AiMove:
def __init__(self):
self.x = -1
self.y=-1
self.score = 0
def Imprimir(Matriz,n):
for i in range(n):
Re color.
Would the python.org background color (which is darker) work?
To my eyes the background on pypi looks like the highlight color on
python.org
(I've said this earlier, but just curious if that's what others see as well)
On Thu, Mar 29, 2018 at 2:33 PM, Ethan Furman
The back ground blue on the pypi page is the highlight blue on the
python.org page, they should change the color to match to background
python.org color.
-Bill
On Tue, Mar 27, 2018 at 7:50 AM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> On Tue, 27 Mar 2018 22:25
Dan Sommers wrote:
On Wed, 14 Mar 2018 04:08:30 +, Steven D'Aprano wrote:
Explain the difference between these two triple-quoted strings:
But remove the spaces, and two of the quotation marks disappear:
py> """\""
'"'
That's (a) a triple quoted string containing a single escaped
boB Stepp wrote:
This article is written by Nathan Murthy, a staff software engineer at
Tesla. The article is found at:
https://medium.com/@natemurthy/all-the-things-i-hate-about-python-5c5ff5fda95e
Apparently he chose his article title as "click bait". Apparently he
does not really hate
Steve D'Aprano wrote:
On Thu, 21 Dec 2017 08:37 am, Bill wrote:
namenobodywa...@gmail.com wrote:
On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote:
Does this have anything specifically to do with Python programming?
i'm working on a game-playing script (ie: in python
namenobodywa...@gmail.com wrote:
On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote:
Does this have anything specifically to do with Python programming?
i'm working on a game-playing script (ie: in python), i want to incorporate
pruning into my search algorithm, and i'd
bob gailer wrote:
Has any thought been given to adding elif to the for statement?
I don't think it is a good idea because it needlessly, from my point of
view, embeds too much complexity into a single construct (making it more
difficult to maintain, for instance). That's what language
quot;know it all". ; )The point of college is
more about teaching students to think rather than in being efficient. I
have little doubt that a tech school could "get through everything" much
faster.
Bill
--
https://mail.python.org/mailman/listinfo/python-list
Chris Angelico wrote:
On Sun, Dec 17, 2017 at 12:01 PM, Bill <bill_nos...@noway.net> wrote:
I think we are talking about the same people.
But in college, the prerequisite of "at least co-enrolled in pre-calc",
turned out to be the right one (based upon quite a lot of tea
Chris Angelico wrote:
On Mon, Dec 18, 2017 at 4:04 PM, Chris Angelico <ros...@gmail.com> wrote:
On Mon, Dec 18, 2017 at 3:54 PM, Bill <bill_nos...@noway.net> wrote:
Chris Angelico wrote:
I don't know about vtables as needing to be in ANY programming course.
They're part of a
Chris Angelico wrote:
I agree with some of that, but you then take it to absurdity. You most
certainly CAN drive a car without knowing how one works; in fact, with
this century's cars, I think that's very much the case. How many
people REALLY know what happens when you push the accelerator
Chris Angelico wrote:
I don't know about vtables as needing to be in ANY programming course.
They're part of a "let's dive into the internals of C++" course. You
certainly don't need them to understand how things work in Python,
because they don't exist; and I'm doubtful that you need to explain
Chris Angelico wrote:
I don't know about vtables as needing to be in ANY programming course.
They're part of a "let's dive into the internals of C++" course. You
certainly don't need them to understand how things work in Python,
because they don't exist; and I'm doubtful that you need to
Chris Angelico wrote:
On Mon, Dec 18, 2017 at 11:31 AM, Bill <bill_nos...@noway.net> wrote:
Larry Martell wrote:
So, your experience is that the style of learning you offer is
unsuitable to anyone who doesn't have some background in algebra.
That's fine. For your course, you set the p
Chris Angelico wrote:
On Mon, Dec 18, 2017 at 6:51 AM, Bill <bill_nos...@noway.net> wrote:
The point is that it takes a certain amount of what is referred to as
"mathematical maturity" (not mathematical knowledge) to digest a book
concerning computer programming.
Emphasis on *
Gregory Ewing wrote:
Bill wrote:
In my years of teaching experience, students who came to college
without the equivalent of "college algebra" were under-prepared for
what was expected of them.
This could be simply because it weeds out people who aren't
good at the required style o
Larry Martell wrote:
So, your experience is that the style of learning you offer is
unsuitable to anyone who doesn't have some background in algebra.
That's fine. For your course, you set the prereqs. But that's not the
only way for someone to get into coding. You do NOT have to go to
college
Rustom Mody wrote:
In response to
Rustom Mody wrote:
On Saturday, December 16, 2017 at 9:45:17 AM UTC+5:30, Bill wrote:
so it really doesn't make that much difference where one starts, just
"Do It!". : )
Really ¿?
https://en.wikipedia.org/wiki/Principles_of_learning#Primacy
Gregory Ewing wrote:
Bill wrote:
In my experience, if they do not have the basic (~pre-calc) math
behind them, then learning from a textbook on a programming language,
say, may be a bit beyond them.
Very little mathematical *knowledge* is needed to get started
with programming. You can do
Rustom Mody (Rustom Mody) wrote:
On Saturday, December 16, 2017 at 9:45:17 AM UTC+5:30, Bill wrote:
Chris Angelico wrote:
On Sat, Dec 16, 2017 at 8:51 AM, Bill wrote:
Varun R wrote:
Hi All,
I'm new to programming, can anyone guide me, how to start learning python
programming language,...plz
Chris Angelico wrote:
On Sat, Dec 16, 2017 at 8:51 AM, Bill <bill_nos...@noway.net> wrote:
Varun R wrote:
Hi All,
I'm new to programming, can anyone guide me, how to start learning python
programming language,...plz suggest some books also.
Thanks all
Are you sure you want to learn
Varun R wrote:
Hi All,
I'm new to programming, can anyone guide me, how to start learning python
programming language,...plz suggest some books also.
Thanks all
Are you sure you want to learn Python first?
Python does enough things "behind the scene"
that it makes me question the wisdom of
sooner I start doing that, the sooner my debugging
session is over. Good luck!
Bill
As you can see, I tried using globals in order use variables from previous
classes, but nothing has worked. For this specific approach, no error message
popped up, but nothing happened either. Thanks so much!
COLORS
I think carelessness in choosing variable names may be at the root of
the problem.
nick.martin...@aol.com wrote:
I have a question on my homework. My homework is to write a program in which
the computer simulates the rolling of a die 50
times and then prints
(i). the most frequent side of
SCons - a software construction tool
Release Notes
This is SCons, a tool for building software (and other files). SCons is
implemented in Python, and its "configuration files" are actually Python
scripts, allowing you to use the full power of a
John Pote wrote:
Hi all,
I have successfully used Python to perform unit and integration tests
in the past and I'd like to do the same for some C modules I'm working
with at work. There seem to be a number of ways of doing this but
being busy at work and home I looking for the approach with
subhendu.pand...@gmail.com wrote:
Hi,
Could you please help me with the below if possible:
Possible and reasonable are two different things. Why don't you try
some web searches and try to answer some of your own questions. I offer
this advice as a Python newbe myself.
Bill
1. Best
Fabien wrote:
On 10/25/2017 03:07 PM, Thomas Jollans wrote:
What options are there for Python (that work)?
PyCharm's debugger is fine (also available in the community edition)
+1
Cheers,
Fabien
--
https://mail.python.org/mailman/listinfo/python-list
t newly created object
and it gets lost.
The problem and both solutions are great! Thanks for posting!
Bill
--
https://mail.python.org/mailman/listinfo/python-list
Marko Rauhamaa wrote:
Grant Edwards :
I like [const qualifiers] in C because it allows the linker to place
them in ROM with the code. It also _sometimes_ provides useful
diagnostics when you pass a pointer to something which shouldn't be
modified to something that is
Grant Edwards wrote:
On 2017-10-11, Bill <bill_nos...@whoknows.net> wrote:
Grant Edwards wrote:
On 2017-10-11, Bill <bill_nos...@whoknows.net> wrote:
[...] I'm not here to "cast stones", I like Python. I just think
that you shouldn't cast stones at C/C++.
Mikhail V wrote:
[...] I'm not here to "cast stones", I like Python. I just think
that you shouldn't cast stones at C/C++.
Not while PHP exists. There aren't enough stones in the world...
PHP seems (seemed?) popular for laying out web pages. Are their vastly
superior options?
Python?
Grant Edwards wrote:
On 2017-10-11, Bill <bill_nos...@whoknows.net> wrote:
[...] I'm not here to "cast stones", I like Python. I just think
that you shouldn't cast stones at C/C++.
Not while PHP exists. There aren't enough stones in the world...
PHP seems (seemed?) popula
Dennis Lee Bieber wrote:
On Tue, 10 Oct 2017 20:48:26 -0400, Bill <bill_nos...@whoknows.net>
declaimed the following:
cast stones at C/C++. People started programming in C in the late 70's,
and before that some were programming in B ("B Programming Language"),
Precede
s and write device drivers, from scratch. And "woe" if
you need performance, such as applications involving AI.
Cheers,
Bill
But even if it were the best language in the world, and Stroustrup the
greatest language designer in the history of computing, what makes you think
that he
s have 5-star rankings on
Amazon.com. That doesn't mean that either of them is right for
everybody. Come back to Stroustrup's book "after" you learn C++
somewhere else, and maybe you'll enjoy it more.
Bill
--
https://mail.python.org/mailman/listinfo/python-list
Fetchinson . wrote:
Hi folks,
I have a rather simple program which cycles through a bunch of files,
does some operation on them, and then quits. There are 500 files
involved and each operation takes about 5-10 MB of memory. As you'll
see I tried to make every attempt at removing everything at
Marko Rauhamaa wrote:
That's good advice, but it's not all that dangerous to express off-topic
statements in this newsgroup.
It may not be "dangerous", but I find it a little annoying. I wasn't
going to say anything, but now you are bringing it up explicitly.
--
But neither »range« nor lists have been shown so far.
As long as I have two teachers here, which textbooks are you using? I am
hoping to teach a college course in Python next fall.
Thanks,
Bill
The basic course may already and there after about 12 - 18 hours.
(This time includes
Stefan Ram wrote:
One might wish to implement a small language with these commands:
Explain why. What is the advantage?
F - move forward
B - move backward
L - larger stepsize
S - smaller stepsize
. One could start with the following pseudocode for a dictionary:
{ 'F': lambda:
Leam Hall wrote:
A while back I pointed out some challenges for the Python community's
intake of new coders. Mostly focusing on IRC and the Python e-mail list.
What is the Python e-mail list?
Thanks,
Bill
Several people have stepped up their "welcome" game and I've been very
Stefan Ram wrote:
Is this the best way to write a "loop and a half" in Python?
Is your goal brevity or clarity, or something else (for instance, what
does the code written by the other members of your "team" look
like--woudn't it be nice if it matched)?
Bill
x
Steve D'Aprano wrote:
On Tue, 3 Oct 2017 06:51 am, Bill wrote:
Can you inspire me with a good decorator problem (standard homework
exercise-level will be fine)?
Here is a nice even dozen problems for you. Please ask for clarification if any
are unclear.
Thank you for sharing the problems
Bill wrote:
Chris Angelico wrote:
Decorators are fairly straight-forward if you understand higher-order
functions.
ChrisA
I was just minding my own business, and thought to write my first
decorator for a simple *recursive* function f. The decorator WORKS if
f does not make a call
I might do that yet (first things first... ).
Thanks!
Bill
--
https://mail.python.org/mailman/listinfo/python-list
Steve D'Aprano wrote:
There's no need to set the radius and the diameter, as one is completely derived
from the other
Good point; I'm glad I submitted my code for grading. Sort of a "trick
question" to ask me to add diameter and then take off points because I
used it!
Chris Angelico wrote:
On Tue, Oct 3, 2017 at 6:23 AM, Larry Hudson via Python-list
<python-list@python.org> wrote:
On 10/01/2017 03:52 PM, Bill wrote:
Steve D'Aprano wrote:
The definitive explanation of descriptors is here:
https://docs.python.org/3/howto/descriptor.html
Tha
:-)
It WAS a good exercise!! I was concerned about "infinite recursion"
between my two property setters.. Thanks! Next? :)
Bill
import math
class Circle(object):
""" Define a circle class with radius and diameter""" def __init__(self
Steve D'Aprano wrote:
The definitive explanation of descriptors is here:
https://docs.python.org/3/howto/descriptor.html
Thank you! It is next on my list. Then I'll try that Circle problem
you mentioned as an exercise last night! I don't expect run into any
difficulties. : )
--
Stephan Houben wrote:
Op 2017-10-01, Bill schreef <bill_nos...@whoknows.net>:
I watched an example on YouTube where someone wrote a simple descriptor
("@Time_it) to output the amount of time that it took ordinary functions
to complete.To be honest, I AM interested in descriptor
Steve D'Aprano wrote:
On Sun, 1 Oct 2017 05:46 pm, Bill wrote:
If you were going to show non-Python users, say science undergraduates
and faculty, that Python is an interesting tool (in 45 minutes), would
one delve into descriptors?
Hell no :-)
Oops, I see I used the word "descriptor&qu
Steve D'Aprano wrote:
[1] Technically, the interpreter knows nothing about properties. What it cares
about is *descriptors*. Properties are just one kind of descriptor, as are
methods. But I'm intentionally not talking about the gory details of
descriptors. Feel free to ask if you care, but
ested.
Thanks,
Bill
--
https://mail.python.org/mailman/listinfo/python-list
Ned Batchelder wrote:
On 9/30/17 7:18 PM, Bill wrote:
Ned Batchelder wrote:
On 9/30/17 5:47 PM, Bill wrote:
I spent a few hours experimenting with @property. To my mind it
seems like it would be preferable to just define (override)
instance methods __get__(), __set__(), and possibly __del__
Steve D'Aprano wrote:
On Sun, 1 Oct 2017 08:47 am, Bill wrote:
I spent a few hours experimenting with @property. To my mind it seems
like it would be preferable to just define (override) instance methods
__get__(), __set__(), and possibly __del__(), as desired, as I could
easily provide them
I spent a few hours experimenting with @property. To my mind it seems
like it would be preferable to just define (override) instance methods
__get__(), __set__(), and possibly __del__(), as desired, as I could
easily provide them with "ideal" customization. Am I overlooking somethi
1 - 100 of 1008 matches
Mail list logo