On 03/30/2016 06:10 AM, srinivas devaki wrote:
ahh, this is the beginning of a conspiracy to waste my time.
PS: just for laughs. not to offend any one.
It's fair: you waste ours, we waste yours. :) A fair, if not good, trade.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-
On 03/30/2016 11:41 AM, justin walters wrote:
That absolutely answers my questions. I'll keep an eye out for your book
when it is realeased. It seems like it will cover some topics that could be
useful in continuing my learning.
KickStarter plug:
If you want to pledge to buying the book now o
On 03/31/2016 05:02 PM, Roel Schroeven wrote:
Victor Stinner schreef op 2016-03-31 23:40:
Python 3 becomes more and more popular and is close to a dangerous point
where it can become popular that Python 2. The PSF decided that it's
time to elaborate a new secret plan to ensure that Python user
On 04/01/2016 01:27 PM, Fillmore wrote:
notorious pass by reference vs pass by value biting me in the backside
here. Proceeding in order.
It's only notorious for folks that don't understand that Python uses
neither. It also doesn't help when folks don't understand how
name-binding works.
On 04/02/2016 12:54 PM, Random832 wrote:
On Sat, Apr 2, 2016, at 15:28, Ned Batchelder wrote:
On Friday, April 1, 2016 at 4:27:30 PM UTC-4, Fillmore wrote:
notorious pass by reference vs pass by value biting me in the backside
here. Proceeding in order.
As others have pointed out, this is fal
On 04/02/2016 11:58 PM, Marko Rauhamaa wrote:
Stephen Hansen :
On Sat, Apr 2, 2016, at 02:40 PM, Marko Rauhamaa wrote:
That's why I was looking for counterexamples in the standard library
This entire bent of an argument seems flawed to me.
The standard library has never been a beacon for be
On 04/04/2016 06:43 PM, Steven D'Aprano wrote:
On Tue, 5 Apr 2016 02:47 am, Josh B. wrote:
My package, available at https://github.com/jab/bidict, is currently laid
out like this:
bidict/
├── __init__.py
├── _bidict.py
├── _common.py
├── _frozen.py
├── _loose.py
├── _named.py
├── _ordered.py
├
On 04/05/2016 10:38 AM, Sven R. Kunze wrote:
On 05.04.2016 03:43, Steven D'Aprano wrote:
The purpose of packages isn't enable Java-style "one class per file"
coding,
especially since *everything* in the package except the top level
"bidict"
module itself is private. bidict.compat and bidict.util
On 04/05/2016 12:12 PM, Tim Golden wrote:
On 05/04/2016 08:34, Oscar Benjamin wrote:
When did this start happening?
The message in question includes a big block of code posted by someone
else
as context. My comment was that the code was incomplete so I felt it
reasonable to include it as cont
On 04/05/2016 12:09 PM, Sven R. Kunze wrote:
On 05.04.2016 20:40, Ethan Furman wrote:
Steven D'Aprano wrote:
Your package is currently under 500 lines. As it stands now, you could
easily flatten it to a single module:
bidict.py
Yup... well, actually you could just stick it in __init
On 04/05/2016 12:49 PM, Eric S. Johansson wrote:
I was inspired by the thread on packaging practices discussion with
bidict to ask a related question which is what are the best practices
with packaging/releasing a single file Python module ?
Back story: I'm always creating little bits of useful
On 04/05/2016 04:38 PM, Steven D'Aprano wrote:
On Wed, 6 Apr 2016 04:40 am, Ethan Furman wrote:
Well, there should be one more module:
test.py
So in total, two files
bidict/
|-- __init__.py
|-- test.py
Your test code shouldn't necessarily be part of the package though. If
On 04/06/2016 03:58 PM, John Pote wrote:
I have been writing a very useful test script using the standard Python
'unittest' module. This works fine and has been a huge help in keeping
the system I've been writing fully working even when I make changes that
could break many features of the system.
On 04/05/2016 01:05 PM, Thomas 'PointedEars' Lahn wrote:
> | >>> from email import ID10T
Thomas, as has been pointed out to you in previous threads it is not
necessary to be rude to be heard.
You are hereby placed in moderation for the Python List mailing list.
Every one else: If you see of
On 04/08/2016 06:32 PM, Random832 wrote:
Testing posting from an email address other than the one I'm subscribed
in, to determine whether it's possible to post to the list without being
subscribed.
Kinda. :)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 04/09/2016 12:36 PM, Mark Lawrence via Python-list wrote:
Very amusing to see that some highly qualified 'moderators' have been so
bloody rude on other Python mailing lists in the last days. Do as I
say, not as I do?
Nope -- you should take that as all of us are human and sometimes our
te
Mark Lawrence is currently being moderated.
If you see offensive posts from him on the Usenet side please do not
respond.
Thank you.
--
~Ethan~
Python List Owners
--
https://mail.python.org/mailman/listinfo/python-list
On 04/11/2016 04:15 PM, Terry Reedy wrote:
Blog post by Steve Dower of Microsoft and CPython core developer.
'''How to deal with the pain of “unable to find vcvarsall.bat”'''
https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/
Informative post, thanks!
On 04/13/2016 07:07 AM, Marko Rauhamaa wrote:
class Color(enum.Enum):
red
blue
green
This last one is to the point but raises a NameError.
Using the aenum library that last one is possible. It also has
NamedConstant and a metaclass-derived NamedTuple!
--
On 04/13/2016 07:21 AM, Ethan Furman wrote:
On 04/13/2016 07:07 AM, Marko Rauhamaa wrote:
class Color(enum.Enum):
red
blue
green
This last one is to the point but raises a NameError.
Using the aenum library that last one is possible. It also has
On 04/16/2016 10:25 AM, Terry Reedy wrote:
On 4/16/2016 12:58 PM, Larry Martell wrote:
On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa wrote:
Larry Martell wrote:
I have worked for many companies where you are required to get a clean
run of pep8 on your code before your pull request will
On 04/17/2016 03:08 PM, Matt Ruffalo wrote:
That seems like a reasonable approach, though I think there *really*
needs to be an option along the lines of "subscribed to the list for the
purposes of moderation, but not receiving list messages via email".
I don't understand what you are saying.
On 04/17/2016 12:34 PM, Christopher Reimer wrote:
How much sanity checking is too much in Python?
What happens if your extensive sanity checks turn up a bug?
In Python the usual answer is you raise an error:
raise ValueError('blahblah not a valid color')
What happens if you don't sanity
On 04/19/2016 10:55 AM, Jon Ribbens wrote:
On 2016-04-19, Steven D'Aprano wrote:
And yet, we manage to muddle on.
We've muddled on so far, but apparently we're just about to have
a significant change in moderation policy which sounds like it may
very well add to the confusion.
The only thi
On 04/19/2016 12:05 PM, Random832 wrote:
On Tue, Apr 19, 2016, at 15:01, Ethan Furman wrote:
The only thing changing is what happens if someone posts /directly/ to
the mailing list (not through gmane, etc).
Is the mailing list software able to make that distinction? I thought
that was on
On 04/19/2016 10:51 PM, Stephen Hansen wrote:
But that's a fuzzy question, there's no solid and clear answer. Did you
see Ethan's response? I largely agree with his trinity:
On Sun, Apr 17, 2016, at 10:26 PM, Ethan Furman wrote:
I sanity check for three reasons:
1) rais
On 04/20/2016 12:34 PM, Ken Seehart wrote:
New ideas for Python are typically vetted on Python Ideas. [1]
Currently the common pattern for yielding the elements in a sequence
> is as follows:
for x in sequence: yield x
I propose the following replacement (the result would be identical):
On 04/20/2016 08:07 PM, Steven D'Aprano wrote:
Now I want to group subsequences. For example, I have:
"ABCABCABCDEABCDEFABCABCABCB"
and I want to group it into repeating subsequences. I can see two ways to
group it:
ABC ABC ABCDE ABCDE F ABC ABC ABC B
giving counts:
(ABC) count = 2
(ABCDE)
On 04/20/2016 08:57 PM, Ethan Furman wrote:
> [snip same pattern as Steven wrote]
Nevermind. It's obviously time for me to go to bed. :/
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 04/21/2016 06:34 PM, Christopher Reimer wrote:
class PieceFactory(object):
> [...]
Better.
I do plan to incorporate a sanity test in each Piece class to validate
the initial position value. Pawns have 16 specific positions. Bishop,
Knight and Rook each have four specific positions. King a
On 04/21/2016 08:33 PM, Christopher Reimer wrote:
On 4/21/2016 7:20 PM, Stephen Hansen wrote:
Keep in mind that I'm coming from a Java background (not by choice) with
a smattering of C programming.
A refugee! Water! Food! import this!! :)
Oh! and Enum!!! ;)
--
~Ethan~
--
https://mai
On 04/22/2016 10:34 AM, Ricardo Aguilar wrote:
Hi there i try to remove to fields in dbf table, how I can remove two
fields?
I wanna to remove because I have this error "ValueError: could not convert
string to float: " But I no need this field.
Have you tried my dbf package?
https://p
On 04/22/2016 11:28 AM, Ethan Furman wrote:
On 04/22/2016 10:34 AM, Ricardo Aguilar wrote:
Hi there i try to remove to fields in dbf table, how I can remove two
fields?
I wanna to remove because I have this error "ValueError: could not
convert
string to float: " But I no need
On 04/23/2016 06:29 PM, Ian Kelly wrote:
Python enums are great. Sadly, they're still not quite as awesome as Java enums.
What fun things can Java enums do?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 04/23/2016 06:21 PM, Michael Selik wrote:
On Sat, Apr 23, 2016 at 9:01 PM Christopher Reimer wrote:
Hmm... What do we use Enum for? :)
You can use Enum in certain circumstances to replace int or str constants.
It can help avoid mistyping mistakes and might help your IDE give
auto-complete
On 04/23/2016 06:00 PM, Christopher Reimer wrote:
Hmm... What do we use Enum for? :)
from enum import Enum
class Piece(Enum):
king = 'one space, any direction'
queen = 'many spaces, any direction'
bishop = 'many spaces, diagonal'
knight = 'two spaces cardinal, one space sidewa
On 04/24/2016 08:20 AM, Ian Kelly wrote:
On Sun, Apr 24, 2016 at 1:20 AM, Ethan Furman wrote:
On 04/23/2016 06:29 PM, Ian Kelly wrote:
Python enums are great. Sadly, they're still not quite as awesome as Java
enums.
What fun things can Java enums do?
Everything that Python enums c
On 04/24/2016 09:10 AM, Chris Angelico wrote:
On Mon, Apr 25, 2016 at 2:04 AM, Ethan Furman wrote:
Unfortunately, the empty tuple tends to be a singleton, so there is no way
to tell that red and default are (supposed to be) the same and blue is
(supposed to be) different:
--> a = b = ()
--
On 04/24/2016 09:47 AM, Chris Angelico wrote:
I would normally expect enumerated values to be immutable and
hashable, but that isn't actually required by the code AIUI. Under
what circumstances is it useful to have mutable enum values?
Values can be anything. The names are immutable and hasha
On 04/24/2016 11:27 AM, Chris Angelico wrote:
On Mon, Apr 25, 2016 at 4:12 AM, Ethan Furman wrote:
Values can be anything. The names are immutable and hashable.
I know they *can* be, because I looked in the docs; but does it make
sense to a human? Sure, we can legally do this:
Well, not
On 04/24/2016 11:14 AM, Joel Goldstick wrote:
On Sun, Apr 24, 2016 at 2:05 PM, San wrote:
I want details explanation(why this statement used,when it can be used,etc) of
following statement in python code
"from __future__ import print_function"
It lets python 2.7 use python 3.x print functi
On 04/26/2016 08:43 PM, Christopher Reimer wrote:
If I'm using a dictionary to store variables for an object, and
accessing the variable values from dictionary via property decorators,
would it be better to derive the class from object or dict?
class Test1(object):
def __init__(se
On 04/26/2016 08:54 PM, Ben Finney wrote:
(Note that “allow attribute-syntax access to dictionary items” does not
qualify as “better”, IMO; it qualifies as “needlessly confusing distinct
concepts”.)
Well, since one of the side-effects of class instances is to provide
"attribute-syntax access
On 04/27/2016 06:12 PM, Christopher Reimer wrote:
After considering the feedback I got for sanity checking my code, I've
decided to simplify the base class for the chess pieces (see code
below). All the variables are stored inside a dictionary with most
values accessible through properties. A cu
On 04/27/2016 08:07 PM, Christopher Reimer wrote:
On 4/27/2016 7:07 PM, Ben Finney wrote:
>> Ian Kelly wrote:
self.__dict__ = {'key', 'value'}
is essentially equivalent to:
self.key = value
>>
I would say the latter is more Pythonic, because it:
>>
>> [snip]
>>
* Uses the built
On 04/27/2016 09:06 PM, Christopher Reimer wrote:
On 4/27/2016 8:52 PM, Michael Torrie wrote:
In fact if it were me I would save game state to some kind of ini file,
which would mean manually going through each object and writing out the
relevant data to the ini file using the right syntax.
On 04/28/2016 09:33 AM, Steven D'Aprano wrote:
I have an application written in Python which accepts -h or --help to show
help. I can:
(1) print the help text to stdout;
(2) run the help text through a pager;
(3) do something else?
I think if the user is proficient enough to:
a) run the pr
On 04/28/2016 10:02 AM, Dan Strohl via Python-list wrote:
I would suggest using argparse https://docs.python.org/3/library/argparse.html
as it handles all of that natively...
On the other hand, if you feel that argparse is akin to using a canon to
kill a mosquito, you can try scription*:
-
Wow. Thank you for that very informative post!
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 04/29/2016 06:20 PM, Steven D'Aprano wrote:
On Fri, 29 Apr 2016 07:53 pm, Rustom Mody wrote:
JFTR I find git behavior annoying -- as it seems do others
`git --help` behaves as the Unix standard: it prints help output to stdout.
Is that the annoying behaviour?
No.
`git help ` and `git
On 05/01/2016 09:36 AM, Steven D'Aprano wrote:
On Mon, 2 May 2016 02:30 am, Grant Edwards wrote:
It's pretty rare. It is assumed that Unix uses can type " | less"
Is nobody except me questioning the assumption that we're only talking about
Unix users?
Even Windows has "more".
--
~Ethan~
aenum 1.4.1
Advanced Enumerations (compatible with Python's stdlib Enum),
NamedTuples, and NamedConstants
aenum includes a Python stdlib Enum-compatible data type, as well as a
metaclass-based NamedTuple implementation and a NamedConstant class.
An Enum is a set of symbolic names (members)
On 04/24/2016 08:20 AM, Ian Kelly wrote:
On Sun, Apr 24, 2016 at 1:20 AM, Ethan Furman wrote:
What fun things can Java enums do?
Everything that Python enums can do, plus:
>
--> Planet.EARTH.value
(5.976e+24, 6378140.0)
--> Planet.EARTH.surface_gravity
9.802652743337129
On 05/06/2016 01:35 PM, beliavsky--- via Python-list wrote:
Most of [Guido's] keynote at that conference was answering questions from
> the people who had attended. And he actually said, "Let's alternate
between
> men and women asking questions."On the second day of the conference,
he was
> we
On 05/06/2016 04:12 PM, DFS wrote:
On 5/6/2016 4:30 PM, MRAB wrote:
If you don't want to use the 'with' statement, note that closing the
file is:
f.close()
It needs the "()"!
I used close() in 1 place, but close without parens in 2 other places.
So it works either way. Go
On 05/10/2016 08:45 AM, Steven D'Aprano wrote:
I have a decorator that adds an attribute to the decorated function:
My question is, what should I do if the decorated function already has an
instrument attribute?
If the decorator is adding an attribute for the decorated thing to use,
and th
On 05/10/2016 02:21 PM, DFS wrote:
On 5/9/2016 3:53 AM, Steven D'Aprano wrote:
Pointlessly provocative subject line edited.
huh? You called yourself a "master crafts/wo/man".
Challenging someone's boastful claim isn't trolling.
My expectation was to not be met by smug, sanctimonious
On 05/10/2016 02:21 PM, DFS wrote:
[some inflammatory nonsense]
and is now being moderated. If you see flame-bait in one of the
unmoderated venues please ignore it.
Thanks.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 05/18/2016 08:35 AM, Thomas Mlynarczyk wrote:
On 18/05/16 17:21, Ned Batchelder wrote:
Ideally, an empty test wouldn't be a success, but I'm not sure how
the test runner could determine that it was empty. I guess it could
introspect the test function to see if it had any real code in it,
b
On 05/18/2016 03:52 PM, Gregory Ewing wrote:
Ned Batchelder wrote:
I'm not sure how
the test runner could determine that it was empty. I guess it could
introspect the test function to see if it had any real code in it,
Then people would just get clever at putting dummy code
in the test that
On 05/18/2016 05:43 PM, Steven D'Aprano wrote:
On Thu, 19 May 2016 09:30 am, Ethan Furman wrote:
On 05/18/2016 03:52 PM, Gregory Ewing wrote:
Ned Batchelder wrote:
I'm not sure how
the test runner could determine that it was empty. I guess it could
introspect the test function
On 05/20/2016 04:55 AM, Jon Ribbens wrote:
On 2016-05-20, Steven D'Aprano wrote:
On Fri, 20 May 2016 03:55 am, Jon Ribbens wrote:
I guess we should thank our lucky stars that you don't have a time
machine then, since that change would very much be one for the worse
in my opinion. for...else i
On 06/01/2016 04:39 PM, Lawrence D’Oliveiro wrote:
[multiple apparent trolls redacted]
This thread is dead. Please stop beating it.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
There were many good talks and presentations at PyCon 2016, but if you
can only watch one, this is the one to watch:
https://www.youtube.com/watch?v=bSfe5M_zG2s
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 06/15/2016 10:37 AM, Rob Gaddi wrote:
I've got a whole lot of methods I want to add to my Channel class, all
of which following nearly the same form. The below code works, but
having to do the for loop outside of the main class definition feels
kludgey. Am I missing some cleaner answer? I
On 06/15/2016 12:18 PM, Kyle Thomas wrote:
Knuth's quote refers to the output of TeX, the programming language he
authored. The quote cannot be interpreted to speak about formatting of
source-code.
PEP 8 is primarily concerned with the readability of source code, so if
Knuth was speaking abou
On 06/16, Random832 wrote:
> On Wed, Jun 15, 2016, at 15:03, Ethan Furman wrote:
>> [1] https://docs.python.org/3/library/functions.html#locals
>> Yes, returning the class namespace is a language gaurantee.
>
> How do you get a guarantee from that text?
Oops, my bad -
On 06/17/2016 06:19 PM, Steven D'Aprano wrote:
On Sat, 18 Jun 2016 09:49 am, Ian Kelly wrote:
If I tell you that the speed of light is 300,000,000 m/s, do you think
that measurement has 9 significant digits? If you do, then you would be
wrong.
Hmmm.
If I tell you that some physical phenomen
On 06/18/2016 07:05 AM, Joonas Liik wrote:
On 18 June 2016 at 15:04, Pete Forman wrote:
with obj:
.a = 1# equivalent to obj.a = 1
.total = .total + 1 # obj.total = obj.total + 1
the leading dot does not resolve the ambiguity that arises from:
with ob_a:
with
On 06/19/2016 04:56 AM, Joonas Liik wrote:
On 18 June 2016 at 23:47, Ethan Furman wrote:
On 06/18/2016 07:05 AM, Joonas Liik wrote:
the leading dot does not resolve the ambiguity that arises from:
with ob_a:
with ob_b:
.attr_c = 42 # which object are we modifying right now
On 06/19/2016 08:14 AM, Michael Torrie wrote:
On 06/19/2016 09:01 AM, Ethan Furman wrote:
On 06/19/2016 04:56 AM, Joonas Liik wrote:
On 18 June 2016 at 23:47, Ethan Furman wrote:
On 06/18/2016 07:05 AM, Joonas Liik wrote:
the leading dot does not resolve the ambiguity that arises from
On 06/26/2016 07:12 PM, MRAB wrote:
Is it a problem with Tk itself or with the Python wrapper? Would it be
better if we made a more Pythonic version of Tkinter, e.g. making
Frame.title a property?
I would say it's the wrapper.
I appreciate all the work being done on tkinter lately, but it's s
On 06/27/2016 09:31 PM, Zachary Ware wrote:
On Mon, Jun 27, 2016 at 7:32 PM, Chris Angelico wrote:
If you're primarily worried about classes and functions, here's a neat
trick you can use:
__all__ = []
def all(thing):
__all__.append(thing.__name__)
return thing
Barry Warsaw has wr
On 07/01/2016 07:13 AM, Steven D'Aprano wrote:
I like the idea, but I have a couple questions about the design choices.
Comments below.
The Zen of Python says:
Namespaces are one honking great idea -- let's do more of those!
Proposal
=
Add a new "namespace" object to Python
On 07/01/2016 10:10 AM, Steven D'Aprano wrote:
On Sat, 2 Jul 2016 02:00 am, Ethan Furman wrote:
Did you mean for this to go to -Ideas?
Not yet. I wanted some initial feedback to see if anyone else liked the idea
before taking it to Bikeshedding Central :-)
Besides, I expect Python-
On 07/02/2016 08:34 AM, Kevin Conway wrote:
For the proponents of namespace, what is deficient in the above example
that necessitates a language change?
Adding a new widget is not changing the language.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 07/02/2016 08:44 PM, Steven D'Aprano wrote:
Try getting this behaviour from within a class:
class Food(metaclass=Namespace):
# (1) no special decorators required
def spam(n):
return ' '.join(['spam']*n)
# (2) can call functions from inside the namespace
breakf
On 07/03/2016 03:02 PM, Kevin Conway wrote:
>At some point earlier Ethan Furman declared:
It's not a language change.
Perhaps. My argument is that anything that introduces a new class-like
construct and set of lexical scoping rules is a language change. For
example, if this change w
On 07/06/2016 11:43 AM, Nir Cohen wrote:
We decided that we want to package sets of wheels together created or downloaded
> by `pip wheel`, add relevant metadata, package them together into a
single archive
> (tar.gz or zip) and use the same tool which packs them up to install
them later on,
On 07/08/2016 09:57 AM, Rob Gaddi wrote:
Michael Selik wrote:
On Jul 7, 2016, at 7:46 PM, Rob Gaddi wrote:
I've got a package that contains a global ensmartened dict that allows
all the various parts of my program to share state.
The simplest solution would be to use a module as your singl
On 07/08/2016 10:49 PM, Random832 wrote:
On Sat, Jul 9, 2016, at 01:26, Steven D'Aprano wrote:
hmean and gmean
harmonic_mean and geometric_mean
The latter, definitely.
My preference is also for the latter. However, if the rest of the
module is filled with abbreviated names you may as we
On 07/09/2016 03:23 AM, Stefan Behnel wrote:
Ethan Furman schrieb am 09.07.2016 um 08:27:
On 07/08/2016 10:49 PM, Random832 wrote:
On Sat, Jul 9, 2016, at 01:26, Steven D'Aprano wrote:
hmean and gmean
harmonic_mean and geometric_mean
The latter, definitely.
My preference is als
On 07/09/2016 02:57 PM, Chris Angelico wrote:
On Sun, Jul 10, 2016 at 7:37 AM, Malik Rumi wrote:
I want one of those "knuckle down and learn" classes. But even more
>> than that, I want a class with a real teacher who is available to
>> answer questions and explain things. I've done a lot of
On 07/10/2016 12:18 AM, Bob Martin wrote:
in 762247 20160709 223746 Malik Rumi wrote:
I want one of those "knuckle down and learn" classes. But even more than th=
at, I want a class with a real teacher who is available to answer questions=
and explain things. I've done a lot of books and onlin
On 07/09/2016 04:21 PM, Chris Angelico wrote:
Yes, I hear a lot about Udacity. Has anyone taken any of the pay-for
classes? Are the instructors helpful, skilled, etc? Did it seem like
good value for money?
Yes. Yes, yes. Yes. :)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python
On 07/11/2016 09:28 AM, Steven D'Aprano wrote:
On Tue, 12 Jul 2016 01:04 am, Ian Kelly wrote:
Er, what? I count *five* digits in "00123", not three.
You seem to be assuming that "precision" can only refer to digits after the
decimal place, but that's a dubious proposition.
I will readily ad
On 07/11/2016 01:56 PM, Ben Finney wrote:
Precision is not a property of the number. It is a property of the
*representation* of that number.
The representation “1×10²” has a precision of one digit.
The representation “100” has a precision of three digits.
The representation “00100” has a preci
On 07/11/2016 02:51 PM, Chris Angelico wrote:
On Tue, Jul 12, 2016 at 6:56 AM, Ben Finney wrote:
Precision is not a property of the number. It is a property of the
*representation* of that number.
The representation “1×10²” has a precision of one digit.
The representation “100” has a precisio
On 07/11/2016 03:17 PM, Ethan Furman wrote:
So, so far there is no explanation of why leading zeroes make a number
more precise.
An example of what I mean:
174 with a precision of 3 tells us that the tenths place could be any of
0-9, or, put another way, the actual number could be anywhere
On 07/11/2016 04:47 PM, Gregory Ewing wrote:
Ethan Furman wrote:
I will readily admit to not having a maths degree, and so of course to
me saying the integer 123 has a precision of 5, 10, or 99 digits seems
like hogwash to me.
Seems to me insisting that the number after the dot be
called
On 07/13/2016 05:54 AM, Nir Cohen wrote:
On Thursday, July 7, 2016 at 7:47:22 AM UTC+3, Nir Cohen wrote:
On Wednesday, July 6, 2016 at 10:09:01 PM UTC+3, Ethan Furman wrote:
On 07/06/2016 11:43 AM, Nir Cohen wrote:
We decided that we want to package sets of wheels together created or
On 07/15/2016 09:04 PM, Rustom Mody wrote:
Just that suggesting that python's bool notion is straightforward is an
unnecessary lie – especially to newbies.
Python's boolean concept is as simple as it gets -- what is not straightforward
about it?
--
~Ethan~
--
https://mail.python.org/mailman/
On 07/17/2016 04:50 AM, Wilson Ong wrote:
Use this feature sparingly, only when you know that there are going to be
many (millions rather than thousands) of Test instances.
Why use it sparingly? Is it for extensibility? What if I'm pretty sure that
my class is going to have exactly these attr
On 07/24/2016 01:10 PM, Vasiliy Faronov wrote:
I'm building a Python library where I want to use Python 3.4-style
enums. Because I need to support Python 2.7, I'm considering using
enum34 [1]. But I'm not sure how to do this:
If I simply depend on enum34, it will install a module named `enum`
e
Greetings!
I may have a need in the immediate future to work with SOAP and WSDL services,
and a quick search
turned up Zeep (http://docs.python-zeep.org/en/latest/) -- does anyone have any
experience with it?
Or any other libraries that can be recommended?
Thanks.
--
~Ethan~
--
https://mail.p
On 11/19/2018 08:42 AM, skybuck2...@hotmail.com wrote:
As far as I know currently NTFS is missing a key feature for code development and
compare: "versioning information" per file and per folder.
This is not a mailing list for the purpose of discussing Microsoft
Windows enhancements.
How i
On 11/25/2018 08:30 AM, Muhammad Rizwan wrote:
> IF YOU CAN'T HELP BETTER IGNORE THE POST AND DON'T TRY TO BE A SMART
> ASS.
On 11/25/2018 08:49 AM, Muhammad Rizwan wrote:
> IF YOU CAN'T HELP BETTER IGNORE THE POST AND DON'T TRY TO BE A SMART
> ASS.
On 11/25/2018 10:55 AM, Muhammad Rizwan wrote:
On 03/06/2019 10:30 AM, duncan smith wrote:
I've been trying to figure out why one of my classes can be
pickled but not unpickled. (I realise the problem is probably with the
pickling, but I get the error when I attempt to unpickle.)
A relatively minimal example is pasted below.
--> import p
On 05/13/2019 08:06 AM, Abdur-Rahmaan Janhangeer wrote:
Confirmation mails require only some words to be replied but that one asks
for passwords in plain text. Wonder if you guys also got it!
Already discarded it.
Thanks for the warning, though!
--
~Ethan~
--
https://mail.python.org/mailman/
You have been subscribed. Welcome to Python List!
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
601 - 700 of 1928 matches
Mail list logo