in
PCG and Random123 too ;-)
Quite so!
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
__
?) relevant dimensions.
http://xorshift.di.unimi.it/
I'm favorable to the PCG family these days, though xorshift* and Random123 are
reasonable alternatives.
http://www.pcg-random.org/
https://www.deshawresearch.com/resources_random123.html
--
Robert Kern
"I have come to be
, and it isn't
really germane to Chris' historical question. I mention it only because I had
just run across this paper last night, so it was fresh in my mind when you
mentioned studies on the subject.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
it was written, and I personally witnessed all of the history myself so I
don't need it repeated back to me.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
)
not a pointer to PyObject?
Typo, I'm fairly certain.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
identical objects as equal.
http://hg.python.org/cpython/file/79e5bb0d9b8e/Objects/object.c#l716
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto
--no-verbose --etc
This is a common idiom across many argument processors. parse_known_args() is
not a good solution for this situation even if you mitigate the prefix issue.
Exact matches of --options are still possible.
--
Robert Kern
I have come to believe that the whole world is an enigma
=float64)
[~]
|5 np.empty([3,4,0])[1]
array([], shape=(4, 0), dtype=float64)
[~]
|6 len(np.empty([3,4,0]))
3
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
for emptiness not knowing if it is an array or some
other sequence). What people usually want from bool(some_array) is either
some_array.all() or some_array.any(). In the face of this ambiguity, numpy
refuses the temptation to guess and raises an exception explaining matters.
--
Robert Kern
I have
On 2013-06-14 23:31, Robert Kern wrote:
On 2013-06-14 21:55, R. David Murray wrote:
On Fri, 14 Jun 2013 21:12:00 +0200, Martin Schultz masch...@gmail.com wrote:
2. Testing for empty lists or empty ndarrays:
In principle, `len(x) == 0` will do the trick. **BUT** there are several
caveats
predictable. I have never seen
__subclasses__ actually used in production code, so I'm wondering
whether someone might be affected by such a change.
I do use a package that does use __subclasses__ in production code, but the
order is unimportant.
--
Robert Kern
I have come to believe
subclasses of float.
We don't.
[~]
|1 type(float(np.float64(1.0)))
float
[~]
|2 type(int(np.int32(1)))
int
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
permission
to redistribute it. If the agreements that you have with the copyright owner do
not mention redistribution, you do not have permission to redistribute it.
IANAL, TINLA.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible
administrations and
continues today.
http://en.wikipedia.org/wiki/List_of_U.S._executive_branch_%27czars%27
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
Python-Dev@python.org
using 90+.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
On 4/29/11 1:35 AM, Nick Coghlan wrote:
On Fri, Apr 29, 2011 at 3:28 PM, Steven D'Apranost...@pearwood.info wrote:
Robert Kern wrote:
Actually, Python treats all NaNs as quiet NaNs and never signalling NaNs.
Sorry, did I get that backwards? I thought it was signalling NANs that cause
On Fri, Apr 29, 2011 at 11:35, Alexander Belopolsky
alexander.belopol...@gmail.com wrote:
On Fri, Apr 29, 2011 at 11:31 AM, Robert Kern robert.k...@gmail.com wrote:
..
And in fact, 0.0/0.0 is covered by the more general rule that x/0.0 raises
ZeroDivisionError, not a rule that converts IEEE
they subclass Python float and complex, respectively.
2. Have all np.float* and np.complex* scalars follow the Python float semantics.
3. Keep the current IEEE-754 semantics for all float scalar types.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made
are not a way to avoid NaNs arising from computations. NaN
handling is an important part of computing with numpy.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying
for the reason that Guido states. Some bugs only show up under -O, so you
ought to be running your test suite under -O, too.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
contexts.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
Python
their guess as to the general rule from that.
But your point stands, numpy arrays cannot be members of sets or keys of dicts
or orderable/in-able elements of lists.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad
anyone.
Actually, Python treats all NaNs as quiet NaNs and never signalling NaNs.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
, not a bool, so we can't do containment tests for
lists of arrays), so NaN is pretty easy to explain afterward.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying
us for the two
double values. Since there is no concept of identity for this case, there is no
cognate behavior of Python to match.
[~]
|10 b = np.array([1.0, 2.0, nan], dtype=float)
[~]
|11 b == nan
array([False, False, False], dtype=bool)
[~]
|12 nan in b
False
--
Robert Kern
I have come
nonetheless.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
to computational NaNs as you would expect any application that
does that many flops to be.
[1] Okay, that's a lie. I'm sure that persistent minority would *love* to have
NaN == NaN, because that would make their (ab)use of NaNs easier to work with.
--
Robert Kern
I have come to believe
#L299
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
Python-Dev
, opt.logLevel)
or
level = logging._levelNames[opt.logLevel]
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
-generate UIs (e.g. the help text for a --log-level argument or a radio box
widget in a GUI). Having separate mappings makes them easier to work with than
the 2.6-style _levelNames mapping.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made
and application users.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
don't disagree. Please drop and shouldn't be required to think
about it from my statements.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto
.
This is only my personal anecdotal experience, but the current behavior has
always wasted my time and never saved any of my time.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
On 12/7/10 4:59 PM, Robert Kern wrote:
On 12/7/10 2:26 PM, Vinay Sajip wrote:
This issue was brought to my notice today:
http://bugs.python.org/issue10626
and reference was made in the comments to possible obstacles facing stdlib
maintainers who might wish to use logging in the stdlib
think that boilerplate should be minimized. If using getLogger() should almost
always be followed by adding a NullHandler, then it should be the default
behavior. The easiest way to achieve this effect is to simply not issue the
warning message.
--
Robert Kern
I have come to believe
to emulate
does. It looks like it is building up a list of values, not defining a function.
If you take your question over to python-list, I can explain more.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt
/ directory.
My mercurial checkout happens to be slower, but I don't know whose fault that
is. I'm still using Mercurial 1.5.1 on my OS X box, and while I wasn't doing
much that would take up CPU or bandwidth, I wasn't trying especially hard to
prevent such interference, either.
--
Robert
docstring extraction features in
contrast with other such tools. It doesn't generate a manual from the
docstrings; it makes you explicitly reference the docstrings into the manual's
text. This would fit in very naturally with Python's library reference.
--
Robert Kern
I have come to believe
/shared/ subdirectory.
Writing portable libraries (with portable setup.py files!) is difficult to do
that way, though.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
nothing is still on the table, I think.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
will be.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
Python-Dev
.__contains__() and other
such methods. They do not, and should not, know about isnan().
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
incorrect for most use cases. Fuzzy comparisons are
sometimes useful for equality testing, but almost never for ordering.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
On Tue, Mar 9, 2010 at 11:31, R. David Murray rdmur...@bitdance.com wrote:
On Mon, 08 Mar 2010 15:35:46 -0600, Robert Kern robert.k...@gmail.com wrote:
On 2010-03-08 15:20 PM, Greg Ewing wrote:
Mark Russell wrote:
Boolean flags are a common enough case that I'd be inclined to add a
wrapper
():
http://code.google.com/p/argparse/issues/detail?id=62
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
also could use setUpClass/setUpModule. It would be a
waste (and honestly kind of ridiculous) to force people to use a whole new
framework (which would duplicate unittest in almost its entirety) for want of
those two methods.
--
Robert Kern
I have come to believe that the whole world is an enigma
implicit in my opinions to
just about anything I say, if you wish.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
of tests).
nosetests allows you to write such module-level and class-level setup and
teardown functions.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
:
http://bitbucket.org/ned/coveragepy/src/tip/coverage/execfile.py
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
to implement these mechanisms with the
care and attention that they need.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
of the poll
to propagate through Twitter, blogs, etc.
You should also make an announcement on python-announce.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying
:
It is a common expectation, but a false one. __eq__ and __ne__ are explicitly
allowed to return anything, not just bools.
http://www.python.org/dev/peps/pep-0207/
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad
projects don't really assign work. If you
want to help, help. Don't wait for someone to tell you exactly what to do. No
one will. Go to the tracker, find something interesting, and do it.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made
which give different doctest results on different platforms.
Using a consistent routine would actually improve the ability to use doctests in
that one regard. It certainly would make writing examples much more consistent,
particularly for those of us that use infs and nans frequently.
--
Robert
, as mentioned earlier, was for debugging your parser on the
interactive prompt. A custom subclass may also be able to hold more
machine-readable information about the error than the formatted error message,
but I don't have any particular use cases about what may be the most useful.
--
Robert Kern
I
that print to stdout/stderr, and they appear to work fine.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
-methods.html#sub-commands
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
in the _SubparsersAction class. You can register a
new class for it:
parser.register('action', 'parsers', MySubParsersAction)
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though
this role for optparse. It might be straightforward to
port it to argparse.
http://cfgparse.sourceforge.net/
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
of the function than the current situation.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
() when I read your message and thought that you were
proposing to move it to sys. Never mind me.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
? The
official code location is Lib/distutils within the standard library.
He said docutils, not distutils.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
On 2009-05-30 21:02, Greg Ewing wrote:
Robert Kern wrote:
The 'single' mode, which is used for the REPL, is a bit different than
'exec', which is used for modules. This difference lets you insert
blank lines of whitespace into a function definition without exiting
the definition.
All
):
... print 'xx', args
...
warnings.warn_explicit = mywarn_explicit
compile(def f():\n a = 1\n global a\n, , exec)
xx (name 'a' is assigned to before global declaration, type
'exceptions.SyntaxWarning', '', 3, None, None)
code object module at 0x39e9f8, file , line 1
--
Robert Kern
I have
the definition. Ending
with a truly empty line does not cause the IndentationError, so the REPL can
successfully compile the code, signaling that the user has finished typing the
function.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made
boolean somewhere. One would have to query the target directory
for this information. I am not aware of the existence of code that does such a
query, though.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt
an instant user base. From there, if it
is found to be useful it could make the leap to be part of the datetime
module.
dateutil.relativedelta appears to do everything monthdelta does and more in a
general way. Adding monthdelta to dateutil doesn't seem to make much sense.
--
Robert Kern
I
import datetime
datetime(2009, 1, 15) + dt
datetime.datetime(2009, 2, 15, 0, 0)
datetime(2009, 1, 31) + dt
datetime.datetime(2009, 2, 28, 0, 0)
dt.months
1
datetime(2009, 1, 31) + relativedelta(years=-1)
datetime.datetime(2008, 1, 31, 0, 0)
--
Robert Kern
I have come to believe that the whole
than you were hoping.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing
and stepping through the code manually, the
performance is not all that important. However, up until that breakpoint, you
are running a lot of code in bulk. It would be useful to have a performant
trace function that interferes with that code the least.
--
Robert Kern
I have come to believe
(sys.modules)
10 loops, best of 3: 39.9 ms per loop
In [13]: len(sys.modules)
Out[13]: 517
The comparison is somewhat dodgy, though. pretty is not so much a refactoring of
pprint as a reimplementation, so the time differences may not be due to the
dispatch.
--
Robert Kern
I have come to believe
Ronacher's pretty.py for a starting point.
http://dev.pocoo.org/hg/sandbox/file/tip/pretty
I've been using it as my default displayhook under IPython for a few weeks now.
It uses a combination of a function registry and a __pretty__ special method to
find the right pretty printer.
--
Robert Kern
I
object. I don't think there are many
scientists/engineers/whatnot who want to double the number of operators to learn
or who care if the matmult operator works on lists of lists or anything else in
the standard library.
--
Robert Kern
I have come to believe that the whole world is an enigma
test_nicefail():
x = 12
E assert x == 10
assert 12 == 10
[/Users/rkern/test_nicefail.py:3]
__
tests finished: 1 failed in 0.09 seconds
--
Robert Kern
I have come to believe that the whole
.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Python-Dev mailing list
Python-Dev
(product of the elements of the shape
array), the amendment is incorrect. For a shape array like {4*5*6}, the number
of bytes is (4*5*6)*bytes_per_item, not 3*bytes_per_item.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our
have no tools in numpy or scipy for decimal arithmetic. The
focus of numpy is arrays. This decimal module is complementary to numpy and vice
versa.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret
could easily allay that.
http://projects.scipy.org/mailman/listinfo/numpy-discussion
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
Guido van Rossum wrote:
On 9/4/07, Robert Kern [EMAIL PROTECTED] wrote:
The 3.x compatibility break (however alleviated by 2to3) makes a nice clean
cutoff. The numpy that works on Pythons 3.x would essentially be a port from
the
current numpy. Consequently, we could modify the numpy
, we'll provide the manpower ourselves.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
introspecters have priorities
ranging from 20 to 30. The default priority (10) will place new
introspecters before standard introspecters.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt
mechanism, I think it is insufficient. I doubt it
can express all the concepts that ctypes supports.
What do you think is missing that can't be added?
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt
are moving towards distributing a smallish bootstrap
distribution and provide most of the packages as eggs. Upgrades should then be
an easy_install away.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret
. The upshot is
that numpy no longer creates rank-zero arrays unless if the user really asks for
one. The remaining use cases are documented here:
http://projects.scipy.org/scipy/numpy/wiki/ZeroRankArray
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
algorithm considered an implementation detail? It
certainly was when the module migrated from Wichmann-Hill to the Mersenne
Twister. OTGH, I don't foresee the random module ever using an algorithm with
worse characteristics than the Mersenne Twister.
--
Robert Kern
I have come to believe that the whole
://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org
--
Robert Kern
[EMAIL PROTECTED]
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
tracker.
FWIW: Trac has a Sourceforge bug tracker import script:
http://projects.edgewall.com/trac/browser/trunk/contrib/sourceforge2trac.py
Apologies: for the other blank reply.
--
Robert Kern
[EMAIL PROTECTED]
I have come to believe that the whole world is an enigma, a harmless enigma
.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.
-- Richard Harter
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
the Python developers to
use that opportunity to the fullest advantage to make a better language.
[1] By which I mean the sum total of the code that I use not just code
that I've personally written. I am a library-whore.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
argument ((x**y) % z),
which is necessary for really large numbers like the ones you play with
in cryptography.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.
-- Richard Harter
91 matches
Mail list logo