Hi Jason,
I will try it out... Nothing in the documentation tells a person.
Thanks
From: Python-list on behalf
of Jason Friedman
Sent: Wednesday, November 13, 2019 7:19 PM
Cc: python-list@python.org
Subject: Re: Logistic Regression Define X and Y for
Hi All,
I have the below code.
X = df.iloc[:, [4, 403]].values​
y = df.iloc[:, 404].values
Dummy Data looks like:
host Mnemonic
12.234.13.6 start
22.22.44.67 something
23.44.44.14 begin
When I define the X and Y values for prediction in the train and test
Same here. Debugging in Python is annoying, I like to step through my code line
by line, it's impossible to do it with object-oriented programming language.
Also, there's no good REPL IDE.
Spyder barely works with some basic features. PyCharm, the most popular, takes
too long to start, and you
Yes, I forgot that strings are immutable. I can't change anything in the
string. Silly me!
Thank you very much, I appreciate it. I guess sometimes it just take an
outsider to take you outside the box. And all is answered. :)
From: Python-list on behalf
of Mark
Yes, I forgot that strings are immutable. I can't change anything in the
string. Silly me!
Thank you very much, I appreciate it. I guess sometimes it just take an
outsider to take you outside the box. And all is answered. :)
From: Python-list on behalf
of
object systems out
there. You'll also likely find about a thousand metaclasses these days.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
https://mail.python.org/mailman
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
https://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf
)
my_ctypes_function( ..., byref(result) )
print result.value
i.e. you have to pass the variable into the function (as a
reference/pointer).
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
On 13-01-21 11:52 AM, Steve Simmons wrote:
Mike,
Thanks for your response - I was puzzled by one part of it though...
On 21/01/2013 15:14, Mike C. Fletcher wrote:
That's because you've just discarded the object you created
I (mis?)understood from the ctypes documentation
different wouldn't be a good
direction to move, IMO.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
that this is *not* an error, it is a *style* related
*warning*.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
support is
auto-generated. As always, we are limited by the number of test programs that
exercise more advanced features and the availability of hardware that can
support the features on which to test
-- Mike C. Fletcher
Designer, VR Plumber, Coder
the thing should return
globalsub.subs( shutil.copytree, fake_copytree )
$ pip install globalsub
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org
and
templates/section.kid files are all you need to look at to understand
the docbook processing.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman
they use it for more than a short period...
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
New submission from mike c coolbutusel...@gmail.com:
Could a test be added to ./Lib/test/test_defaultdict.py to test for TypeError
being thrown when the the first argument to collections.defaultdict is not
callable?
pypy does not behave the same way as CPython 2.7.2 as the problem
mike c coolbutusel...@gmail.com added the comment:
Cloning repo. Reading the devguide. Patch forthcoming.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13531
mike c coolbutusel...@gmail.com added the comment:
Patch to add a defaultdict test which checks that if the first argument is not
callable, then a TypeError is thrown.
--
keywords: +patch
Added file: http://bugs.python.org/file23855/defaultdict_callable_test.patch
mike c coolbutusel...@gmail.com added the comment:
patch v2. Now with assertRaises()!
--
Added file: http://bugs.python.org/file23856/defaultdict_callable_test_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13531
https://launchpad.net/meliae
http://www.vrplumber.com/programming/runsnakerun/
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
On 11-10-26 05:12 AM, Vinay Sajip wrote:
Mike C. Fletcher mcfletch at vrplumber.com writes:
I actually consider .warning() a nit :) . After all, it's 3 extra
characters :) , and *who* actually reads documentation instead of just
poking around and finding the shortest-named method
as a piece of data. I'll withdraw the suggestion that it is not a
trivial thing to add to 2to3, though I'll leave the implementation to
someone else.
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
with easy_install.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
he does this, and how you can do it too.
Regular time (Third Tuesday of the Month) and place (Linux Caffe). More
details on the web site:
http://www.pygta.org
Enjoy,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http
, there will be an immediate feedback channel
available.
PyGTA:
http://www.pygta.org
Linux Caffe:
http://www.pygta.org/venue/
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http
wanted to use it in real code :) .
Projects which haven't ported to Python 3.x aren't necessarily dead,
they're just not nailed to that particular perch (yet),
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http
, there will be an immediate feedback channel available.
Directions to the venue, RSS feeds of upcoming events, and all the
details are available on the web site:
http://www.pygta.org
Enjoy yourselves,
Mike
--
Mike C. Fletcher
Designer, VR
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
names and
the like). Threads aren't really part of the twisted way in my
understanding, but they can be used if necessary AFAIK, and they will
let your application remain responsive to network events during the
processing.
HTH,
Mike
--
Mike C
content loaders, though I haven't
played with them enough to be able to say what formats they support.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org
We'll also likely have a discussion about putting together a series of
1/2 or 1-day classes (in a more formal classroom-like setting) for new
Python users.
Have fun all,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http
on Tuesday,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http
Tobias Weber wrote:
In article mailman.1631.1245160392.8015.python-l...@python.org,
Mike C. Fletcher mcfle...@vrplumber.com wrote:
See PyDispatcher for code to do this.
That was the original problem. Got it now: if used inside the class
definition dispatcher.connect will raise
to change anything in a rather long time. It pretty much just works.
Enjoy,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
is used extensively by the
Zope and Plone communities. It is a recipe based engine for
reproducing a set of modules and application code onto a number of
machines.
http://www.pygta.org/
Enjoy yourselves,
Mike
--
Mike C. Fletcher
to aid
in the development of games, all of which can be easily installed on
common platforms.
Enjoy yourselves,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org
, with the meeting starting at 7:15pm. More
details on the NextMeeting page on the web-site:
http://www.pygta.org
Enjoy yourselves,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
anything else you feel should be said about the program, let me know.
http://www.vrplumber.com/py3d.py#supy
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http
outweighed my
interest.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
We'll be having our regular Toronto Area Python User's Group meeting
this upcoming Tuesday (Dec 16th). Topic for the evening's discussions:
What's your programming mantra?
When you code, do you consciously think about the principles in the
Zen of Python? Do you find yourself
://www.pygta.org.
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation
.
http://www.pygta.org/
Have fun all,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software
. If wxPython, see their GLcanvas
object. If GLUT, see glutInitDisplayMode, etceteras.
Good luck,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman
what's wrong there. glColor
should be working.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
://www.pygta.org/
Have fun all,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation
.
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
tutorials that are not wxPython specific on the PyOpenGL
documentation page.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
as the evening winds on and
the philosophy runs deep.
http://www.pygta.org
Have fun,
Mike
[1] http://pyre.third-bit.com/blog/archives/1650.html
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http
sites.
Have fun all,
Mike
http://www.pygta.org/
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python
Seneca will be describing how to use Core Image to process your images
in subtle and advanced ways (think sufficiently complex to support an
image bureau).
Enjoy everyone,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http
Laszlo Nagy wrote:
...
Is there any way I can specify precedence tables? Or do I have to use
a different parser generator then?
You normally specify them as
top_precedence/second_precedence/last_precedence sets. SimpleParse'
limitation is with ambiguity, not with precedence. SimpleParse
formulations.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
dmitrey wrote:
Hi all,
the url http://torquedev.blogspot.com/2008/02/changes-in-air.html
(blog of a game developers)
says IronPython is faster than CPython in 1.6 times.
Is it really true?
On certain platforms, I believe so, for certain types of operations.
Not sure if Mono also
pointer.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
a thread started in 1999!
For some of us 1999 is well into our Pythonic life-cycle :)
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman
that have problems with the 3.x
alphas so far.
Tempus fugit,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
If you are using Pygame (you don't say which GUI library you are using),
you can draw the mini-map into a surface and then re-blit the surface to
the screen each time you want to display it.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
:
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
access, good eats, and a very cool
ambiance. They're at the corner of Grace and Harbord, one block South
of Christie station.
Hope to see you all out,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http
page in a few seconds of googling, so I
guess finding that is left as an exercise for the reader.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org
period.
Our venue for the meeting is the wonderful Linux Caffe at Grace and
Harbord Streets, more details available on the NextMeeting page in the
wiki[1].
Have fun all,
Mike
[1] http://web.engcorp.com/pygta/wiki/NextMeeting
--
Mike C
://www.google.com/codesearch?q=lang%3Apython
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
the hardcore stuff.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
and sandwiches, ice
cream, smoothies, coffee, tea and the like.
Details on how to get to Linux Caffe are available on the PyGTA
next-meeting page:
http://www.pygta.org/
Have fun all,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http
for/with the OLPC platform.
Have fun all,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
are just as important educational
targets as new Python programmers.
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
, but then you'd have to do that in assembler too.
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
out for beer, ice cream and what have you around
8:30 or 9:00.
Maps and the like available on the wiki:
http://web.engcorp.com/pygta/wiki/NextMeeting
Have fun all,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http
) for the rendering,
which may (depending on implementation) allow for higher resolutions.
If you want a true vector graphic (PS, EPS) you'll need to use something
like GL2PS.
http://www.geuz.org/gl2ps/
HTH,
Mike
--
Mike C. Fletcher
Designer, VR
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
://blog.vrplumber.com/835
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
a simpler API and that you have to pass an array (list) of strings,
not just a single string to the compilation function. The count and
length (array of lengths) parameters are pulled from the list-of-strings
you pass.
HTH,
Mike
--
Mike C
to use for the script.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
fragmented view of your objects (that
is, you get the triangles that would be rendered). That *can* be coded
around, but generally people are either focused on making it look good
or making it editable.
Good luck,
Mike
--
Mike C. Fletcher
institutions.
Have fun,
Mike
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
that to be *, not +
Best way to write a SimpleParse grammar is from the ground up, using
test cases, so test each thing you think you're parsing. Makes it much
easier to spot situations like this.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
If you have lots of experience with another framework, let me know at
the meeting and we'll add that framework to the list being reviewed.
Details available here:
http://web.engcorp.com/pygta/wiki/NextMeeting
Enjoy yourselves,
Mike
--
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
, but
that was quite a while ago. I don't *think* there's any discarding, but
rather a delay so long in publishing that it would feel like a discard...
Take care,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http
are probably looking for the gstreamer package. It has Python
bindings available.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
between nodes should be a much bigger win for
converting the whole thing to a single display list.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org
that we'll have time for open discussion.
Meeting is at the regular time and place, Linux Caffe, 7pm.
Details here:
http://web.engcorp.com/pygta/wiki/NextMeeting
Hope to see you all there,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
simultaneous queries and/or use multiple protocols (gives you
more OS-level buffering).
Have fun,
Mike
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo
these days is focusing on the
OpenGL-ctypes implementation, which hopefully will let far more people
work on the source-code (and add features and coverage of more extensions).
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http
an empty array
of a given size, that kind of thing. I haven't written a numarray one
yet, but it should be a fairly trivial change from the Numpy/scipy-core
module.
Have fun,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http
by writing code to display the results
statically.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 157 matches
Mail list logo