g to. It's
working for me now.
--
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
--
https://mail.python.org/mailman/listinfo/python-list
f the examples here (note: "pylab" is the essentially the same as
"pyplot" for these purposes):
http://matplotlib.org/examples/pylab_examples/index.html
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terr
page this:
In [1]: pandas.DataFrame?
http://ipython.readthedocs.org/en/stable/interactive/reference.html#dynamic-object-information
--
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
line_profiler is written in C, perhaps the author (Robert Kern) doesn't
care about supporting Jython or IronPython, but there may be Python
implementations (PyPy perhaps?) which can run C code but don't have
__builtins__.
Indeed, I do not care about any of them. PyPy does not i
s way?
Does a trivial module work? I.e.
"""
@profile
def run():
pass
run()
"""
--
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
--
https://mail.python.org/mailman/listinfo/python-list
On 2015-02-13 13:35, Neal Becker wrote:
Robert Kern wrote:
@profile
def run():
pass
run()
No, this doesn't work either. Same failure
kernprof -l test_prof.py
Wrote profile results to test_prof.py.lprof
Traceback (most recent call last):
File "/home/nbecker/.local/bin/kernpro
_at(ms, n) < 0)
return -1;
}
else
break;
}
return 0;
}
Or does "Python function" mean something else in this context?
"Corrected merge_collapse function [from the Python implementation of TimSort]"
as opposed t
7;, but
since that optimization isn't guaranteed, neither is that code
pattern.
We don't use `is None` instead of `== None` for the speed. We use it for
robustness. We don't want arbitrary __eq__()s to interfere with our sentinel
tests. If None weren't a singleton that we could
software from AutoDesk.
--
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
--
https://mail.python.org/mailman/listinfo/python-list
If you want us to help, you need to show us what you tried, tell us
what results you expected, and copy-paste the output that you got.
--
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
On 2014-03-03 21:37, Mark H. Harris wrote:
On Monday, March 3, 2014 3:32:43 PM UTC-6, Robert Kern wrote:
Probably. If you want us to help, you need to show us what you tried, tell us
what results you expected, and copy-paste the output that you got.
Robert Kern
hi Robert, well, I finally
On 2014-04-02 12:52, Sturla Molden wrote:
Wolfgang Keller wrote:
Judging from the example screenshots on their website, Kivy might be
adequate.
Kivy depends on PyGame which is GPL, and can only be used to build GPL
software.
It is not.
http://www.pygame.org/LGPL
--
Robert Kern
"I
rt Decimal' you can get a much closer result i.e.
'Decimal('0.0')'
What I'm wondering is why the first calculation that arrives at
'5.55111...' is so far out?
The `...` elides the exponent:
>>> 0.1 + 0.1 + 0.1 - 0.3
5.551115123125783e-17
If you c
tening to. He is to be killfiled and
ignored. Chris, I'm sorry you ran into him on your first introduction to this
community.
--
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 a
public domain. The author has no
choice in the matter.
--
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
--
https://mail.python.org/mailman/listinfo/python-list
Note how they distinguish the CC0 Waiver from their Public Domain Mark: the
Public Domain Mark is just a label for things that are known to be free of
copyright worldwide but does not make a work so. The CC0 *does* have an
operative effect that is substantially similar to the work being in the
On 2014-05-17 15:15, Steven D'Aprano wrote:
On Sat, 17 May 2014 10:29:00 +0100, Robert Kern wrote:
One can state many things, but that doesn't mean they have legal effect.
The US Code has provisions for how works become copyrighted
automatically, how they leave copyright automatica
On 2014-05-17 13:07, Steven D'Aprano wrote:
On Sat, 17 May 2014 09:57:06 +0100, Robert Kern wrote:
On 2014-05-17 02:07, Steven D'Aprano wrote:
On Fri, 16 May 2014 14:46:23 +, Grant Edwards wrote:
At least in the US, there doesn't seem to be such a thing as "pla
;math").
Many mathematicians would disagree.
http://sagemath.org/
--
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 E
/
Can do heaps of stuff, too. For free.
And with Python!
http://sagemath.org/
--
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."
-- U
But all easily available with well-established open source packages. Just
because it's not in the standard library doesn't mean that Python isn't a
suitable language for doing this stuff.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
s your client code (i.e.
what you wrote above) is concerned, it's just another library. E.g.
https://github.com/ipython/ipython/blob/master/examples/Parallel%20Computing/nwmerge.py
https://github.com/ipython/ipython/blob/master/examples/Parallel%20Computing/itermapresult.py
etc.
--
Robert Ker
ts like so: [[]]*3
https://docs.python.org/2/faq/programming.html#how-do-i-create-a-multidimensional-list
--
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
ately coding in this style to troll.
http://en.wikipedia.org/wiki/Troll_(Internet)
For me, this style is easier to read. I have tried the "typical" style, but I
find this one to be easier.
Consider the topic of this thread as evidence against that proposition.
--
Robert Kern
&qu
OP wants is for solving a linear programming
problem (minimize a linear combination of variables subject to linear inequality
constraints). The simplex algorithm that scipy implements is more properly
termed "the Nelder-Mead simplex algorithm" for unconstrained local nonlinear
mini
ather than a solver, but the sources
do contain compiled binaries for the CoinMP solver so it will work out-of-box on
popular platforms, like Windows.
https://projects.coin-or.org/CoinMP
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that i
On 2013-09-02 16:06, Tommy Vee wrote:
On 9/2/2013 5:55 AM, Robert Kern wrote:
On 2013-09-02 02:26, Tommy Vee wrote:
Anyone know where I can get an easy to use Python class or algorithm
for the
Simplex optimization algorithm? I've tried the one in the link below,
but I
can't figur
ing forcing you to use the GUI designers if you don't want to.
--
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
--
https://mail.python.org/mailman/listinfo/python-list
d the standard SMTP library.
http://docs.python.org/2/library/smtplib
--
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."
-- Umbert
ahve both if and for in a one liner?
Not in Python, no.
--
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
--
https://mail.python.org/mailman/listinfo/python-list
Python list.
Please don't valorize my message. I did neither Nikos nor the group any favors.
I can only plead dizziness from the whooshing of Tim's sarcasm flying over
Nikos' head.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
t
#x27;?" At
what point in your Python career did you feel comfortable claiming that?
--
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."
*driven by* contributions from the community.
http://qt-project.org/contribute
http://qt-project.org/wiki/PySideContributors
--
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
one will probably take a couple of
days of computation (for the final run, *after* you have debugged your code and
done the initial experiments to find all of the right hyperparameters for your
problem).
Good luck!
--
Robert Kern
"I have come to believe that the whole world is an enigma,
line,
you have probably left off a closing bracket or something similar in a previous
line. Look back a few lines.
--
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 u
HTTP request, headers and body, through stdin and
just make the program parse them apart.
--
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."
explanation. I studied it
briefly in class in 1970, and have no idea if there are current
implementations.
You are in luck! GNU APL 1.0 was just released!
http://www.gnu.org/software/apl/
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made ter
ral term applied to things with a pointed tip. The fish name is a
shortening of "pike-fish", so it's obviously not the source of the word. The
weapon only really comes into fashion a couple of centuries after the fish's
name is first recorded, so it's not the source either.
e
and axe on the end. Just 'cos that would be cooler than naming it after
the fish.
I don't know which it was named after (could also be a road, eg
turnpike), but the language's logo is the fish.
Our logo is a snake, so that's obviously not a good guide. :-)
--
Robert Kern
example (with data) that demonstrates the problem.
Use pastebin.com or a similar service if necessary.
http://www.scipy.org/scipylib/mailing-lists.html
--
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 attem
a default for an instance attribute is accepted
practice, and one that gets touted as a positive feature of Python's namespace
model when compared against other languages. That said, I have seen it more
often in the past.
[1] In the general "unchanging" sense rather than the C++ "sta
ays,
then only the arrays need to be unboxed once, then the rest of the arithmetic
happens in C.
--
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 2013-10-31 14:49, Chris Angelico wrote:
On Fri, Nov 1, 2013 at 1:41 AM, Robert Kern wrote:
On 2013-10-31 14:05, Chris Angelico wrote:
On Fri, Nov 1, 2013 at 12:17 AM, Alain Ketterlin
wrote:
"E.D.G." writes:
The calculation speed question just involves relatively s
forum.
--
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
--
https://mail.python.org/mailman/listinfo/python-list
e that.
Just a majority of Greeks? How comforting.
Please don't.
--
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
.
os.urandom() gets called in the initial default seeding, but not for each value.
--
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."
-
draw from the random tables on Abulafia[2] which have nearly the same structure.
It scales up reasonably well beyond d100s. It's certainly not a technique I
would pull out to replace one-off if-elif chains that you literally write, but
it works well when you write the generic code once to a
e of these examples come prepackaged in any distribution I am aware of. You
are intended to copy-and-paste them from the wiki if you want to use them.
--
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
optional style guide.
--
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
--
https://mail.python.org/mailman/listinfo/python-list
by the initial development team due to a lack of funding,
so right now the destiny of the bugs such as this is in hands of those who
understand how to debug them."
(Quoted from https://bugreports.qt.io/browse/PYSIDE-164)
Anatoly was wrong.
--
Robert Kern
"I have come to believe t
current license.
http://opensource.org/licenses
--
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
--
https://mail.python.or
compatible.
https://pillow.readthedocs.org/porting-pil-to-pillow.html
--
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
--
h
ured logging".
http://www.structlog.org/en/stable/
http://eliot.readthedocs.org/en/stable/
https://twiggy.readthedocs.org/en/latest/logging.html#structured-logging
http://netlogger.lbl.gov/
--
Robert Kern
--
https://mail.python.org/mailman/listinfo/python-list
ed for it, using two different search engines, and
neither come up with any references for "Toot For Tail" strategies.
I do believe he is trying to make a crude joke.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made
ent module, or did one of your third-party dependencies do
this? Poof! Your pickle files no longer work.
--
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 u
On 2015-06-10 13:08, Marko Rauhamaa wrote:
Robert Kern :
By the very nature of the stated problem: serializing all language
objects. Being able to construct any object, including instances of
arbitrary classes, means that arbitrary code can be executed. All I
have to do is make a pickle file
Mersenne
Twister is not a cryptographically secure pseudorandom number generator. If
I can get some small number of values from the Twister (by memory,
something of the order of 100 such values) then I can predict the rest for
ever.
634.
--
Robert Kern
"I have come to believe that the whole world is an e
On 2015-06-27 08:58, Robert Kern wrote:
On 2015-06-27 04:38, Steven D'Aprano wrote:
Maybe you use Python's standard library and the Mersenne Twister. The period
of that is huge, possibly bigger than 256! (or not, I forget, and I'm too
lazy to look it up). So you think that'
.w3.org/TR/xml-infoset/#infoitem.element
If it didn't, then XHTML would have a hell of a time with ordered constructs
like this:
First item
Second item
Third item
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is
always has the same number of children, etc.),
then it probably does represent an ordered collection. If it's variable, then
putting it into a table structure probably doesn't make any sense regardless of
ordering issues.
--
Robert Kern
"I have come to believe that the whole world
uantity that your code is computing will be
exactly the same because the pixels contribute to the histogram in the same way.
--
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
ppend(self, x) which will give you different results
depending on the number of times you call it, even if the arguments are the same.
Functions that don't change state at all are naturally idempotent, but many
idempotent functions do change state.
--
Robert Kern
"I have come to beli
put. There is no "reversed definition of rows and columns".
He simply instantiated the two vectors as row-vectors instead of column-vectors,
which he could have easily done, so he had to flip the matrix expression.
--
Robert Kern
"I have come to believe that the whole world is an
egex. This will help you QA your regexes, too, to be sure that they match what
you expect them to and not match non-names.
https://github.com/asciimoo/exrex
--
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
ode ?
See the documentation on `sys.displayhook()`, which is the function that makes
the assignment:
https://docs.python.org/3/library/sys.html#sys.displayhook
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own
g form feeds to separate sections of code.
--
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
--
https://mail.python.org/mailman/listinfo/python-list
[~]
|1> import imp
[~]
|2> imp.get_suffixes()
[('.so', 'rb', 3), ('module.so', 'rb', 3), ('.py', 'U', 1), ('.pyc', 'rb', 2)]
--
Robert Kern
"I have come to believe that the whole world is an enigma, a har
On 2014-07-07 12:56, Steven D'Aprano wrote:
On Mon, 07 Jul 2014 12:15:51 +0100, Robert Kern wrote:
On 2014-07-07 09:57, Steven D'Aprano wrote:
What I don't understand is how "import pg" gets turned into "run
pgmodule.so"?
This has been standard Python b
]
|2> x == 3
array([False, False, False, True, False], dtype=bool)
You can blame Numeric/numpy for that feature getting in. :-)
Now certainly, many uses of __eq__, like containment comparisons, do assume that
the result is a bool(able).
--
Robert Kern
"I have come to believe that the w
es that cannot be imported because their names are not Python
identifiers: e.g. check-newconfigs.py. Those are easy to filter out, fortunately.
--
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
http://code.google.com/p/tabhistory/source/browse/tabhistory.py
where I have indenting, code completion, filename completion, and module
completion all working to some degree or another.
Take a look at what has already been implemented in IPython:
https://github.com/ipython/ipython/blob/master/IPyth
sh is in the 3rd party modules, Python could (and
maybe Python 3 does) import each module in a separate subprocess and collect the
information that way.
--
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
ation? Using [x] for subscripts:
x[n+1] = x[n] + 1
we have a perfectly good mathematical recursive definition. All it needs is
an initial value x[0] and we're good to go.
Or a different operator for assignment (to distinguish it more clearly from
equality, which it isn't).
x <- x
h the committer's name/id. I use it all the time at $DAYJOB. I've
managed to avoid CVS, so I can't speak to that.
cvs annotate
http://compbio.soe.ucsc.edu/cvsdoc/cvs-manual/cvs_74.html
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
t
esire to learn it.
Trouble is, I don't have any project that calls for it - there's
nothing I'm desperately wanting to do that involves both Python and
C/C++. Anyone got any suggestions? :)
Class-based, Python 3-compatible bindings for libtcod?
http://doryen.eptalys.net/libtcod/
orrectly, the
way to begin an experimental branch is to use hg clone.
Yes, but this is due to different design decisions of git and Mercurial. git
prioritized the multiple branches in a single clone use case; Mercurial
prioritized re-cloning. It's natural to do this kind of branching in gi
On 2014-09-16 17:25, Chris Angelico wrote:
On Wed, Sep 17, 2014 at 2:08 AM, Robert Kern wrote:
Yes, but this is due to different design decisions of git and Mercurial. git
prioritized the multiple branches in a single clone use case; Mercurial
prioritized re-cloning. It's natural to do
tions.
You can use """ for multiple line texts:
>>> text = \
... """fsdfsfsdfsdf
... sfsdfsfsdf
... sdfsdf s
...
... """
>>> text
'fsdfsfsdfsdf\n sfsdfsfsdf\nsdfsdf s\n\n'
That's not the problem. OptionParser remove
.py can be simply dropped into your codebase, if you want. That's about
as minimal of fuss as you can ask for.
http://pypi.python.org/pypi/argparse
--
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 attemp
al fields as above) pose
a new problem in that its individual elements are sequences themselves. In order
to help it decide whether it should recurse down into a sequence to find its
elements or decide that the sequence *is* an element in its own right, we
settled on the convention that tuples
t you drop what you are doing in Python and
start working with SAS. He is suggesting that you look at the similar procedures
that exist in the SAS standard library for inspiration.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made ter
the Subject line also helps.
--
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
--
http://mail.python.org/mailman/listinfo/python-list
it can read every
bit of text that gets printed. Timing is probably also best recorded by the
runner script to record the startup overhead of the Python interpreter. Continue
to use the SimulationDecorator to record the traceback information, though.
--
Robert Kern
"I have come to believe
ates it with new data:
https://github.com/enthought/chaco/tree/master/examples/demo/updating_plot
I can't help much with the PySerial part, I'm afraid. Integrating that with the
GUI event loop is probably going to be the trickiest bit.
--
Robert Kern
"I have come to believe that th
isError or ThatError
# exceptions that should not be caught by the above except: blocks.
# Other code that runs regardless if a caught-and-continued exception
# was raised or not
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terr
ly *less* uniform to have some questions requiring an enter and
some not. It can be unpleasantly surprising to the user, 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 i
On 11/30/11 3:30 AM, Cameron Simpson wrote:
On 29Nov2011 13:37, Tim Chase wrote:
| On 11/28/11 06:27, Robert Kern wrote:
[...]
|>I actually have a preference for needing to press enter for
|>Y/N answers, too. It's distinctly *less* uniform to have some
|>questions requiring an
pickling
protocol let numpy use raw binary data in the pickle. However, for backwards
compatibility, the default protocol is the one Python started out with. If you
explicitly use the most recent protocol, then you will get the efficiency benefits.
--
Robert Kern
"I have come to believe
e to want to unpack a string. Maybe the message
should changed to "too {many, few} values to unpack (are you sure you
wanted to unpack a string?)" if the RHS is a basestring?
Would including the respective numbers help your thought processes?
ValueError: too many values to unpack (expected
at the end of the process.
unpack_iterable() has the original object available to it, not just the
iterator. It could opportunistically check for __len__() and fall back to the
less informative message when it is absent.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a
like to avoid using boost, swig, etc.
You will find it better to ask numpy questions on the numpy mailing list:
http://www.scipy.org/Mailing_Lists
In this case, you are looking for the PyArray_AsCArray() function:
http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_AsCArray
ttp://docs.python.org/library/functools#functools.update_wrapper
--
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
--
http://
On 12/12/11 3:36 AM, alex23 wrote:
On Dec 9, 8:08 pm, Robert Kern wrote:
On 12/9/11 5:02 AM, alex23 wrote:
The 3rd party 'decorator' module takes care of issues like docstrings
&function signatures. I'd really like to see some of that
functionality in the stdlib thou
ilds typically have math and several other
stdlib "extension" modules built into the PythonXY.dll . Unix builds typically,
but apparently not always, leave mathmodule.so and others as separate extension
modules.
--
Robert Kern
"I have come to believe that the whole world is an enigm
but not quite, the same thing. They aren't saying that you couldn't
*define* such an operator; they would just prefer that we didn't abuse the name.
But really, it's their fault for using notation that looks like an operator.
--
Robert Kern
"I have come to believe that th
So what is this clause for?
I suspect that it's harder to make a grammar rule that allows every kind of
expression except for generator expressions than it is just to reuse the
"testlist" rule and let the runtime reject the generator object when it goes to
construct the class.
On 12/20/11 5:05 PM, Joshua Landau wrote:
On 20 December 2011 10:55, Robert Kern mailto:robert.k...@gmail.com>> wrote:
On 12/20/11 1:34 AM, Joshua Landau wrote:
In reading thorough the syntax defined in the reference
<http://docs.python.org/py3k/__
pe. In
order to handle old-style classes, it checks for the type using .__class__
first. ElementProxy's __getattribute__() gets in the way here by returning a
generator instead of the ElementProxy class.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
able experience. You can point out the
flaws of Elementwise's implementation and compare it to the virtues of PEP 225
without being so demanding. He doesn't "need to tell" you a damn thing.
--
Robert Kern
"I have come to believe that the whole world is an enigma,
On 12/21/11 5:07 PM, Paul Dubois wrote:
You're reinventing Numeric Python.
Actually, he's not. The numerical operators certainly overlap, but Elementwise
supports quite a bit more generic operations than we ever bothered to implement
with object arrays.
--
Robert Kern
"
801 - 900 of 2667 matches
Mail list logo