Re: Why does __ne__ exist?

2018-01-08 Thread Cody Piersall
> Let's put it this way. Suppose that __eq__ existed and __ne__ didn't, > just like with __contains__. Go ahead: sell the notion of __ne__. > Pitch it, show why we absolutely need to allow this. Make sure you > mention the potential confusion when subclassing. Be sure to show why > it's okay for "n

Re: fastest way to read a text file in to a numpy array

2016-06-28 Thread Cody Piersall
On Tue, Jun 28, 2016 at 8:45 AM, Heli wrote: > Hi, > > I need to read a file in to a 2d numpy array containing many number of lines. > I was wondering what is the fastest way to do this? > > Is even reading the file in to numpy array the best method or there are > better approaches? > numpy.genf

Re: psss...I want to move from Perl to Python

2016-01-29 Thread Cody Piersall
On Fri, Jan 29, 2016 at 2:42 PM, Fillmore wrote: > I actually have a few followup question. > - will iNotebook also work in Python 3? Yes! And just FYI, it's called they Jupyter Notebook now, but pretty much everyone still (colloquially) calls it the IPython Notebook so you're in good company.

Re: Question about how to do something in BeautifulSoup?

2016-01-23 Thread Cody Piersall
On Fri, Jan 22, 2016 at 8:01 AM, inhahe wrote: > Say I have the following HTML (I hope this shows up as plain text here > rather than formatting): > > "Is > today the day?" > > And I want to extract the "Is today the day?" part. There are other places > in the document with and , but this is the

Re: Post processing contour plot, how?

2016-01-14 Thread Cody Piersall
Sorry for the short response, but check out this Stack Overflow question/answer http://stackoverflow.com/q/5666056/1612701 On Thu, Jan 14, 2016 at 3:42 PM, Martin Schöön wrote: > I am interested in creating contours but not for printing or > including in a report as an illustration. I want to g

Re: licenses

2016-01-10 Thread Cody Piersall
On Fri, Jan 8, 2016 at 1:41 PM, Martinez, Jorge Alberto (GE Aviation) < jorgealberto.marti...@ge.com> wrote: > > Hello > We develop applications here with Python and I want to know if there's issues by using. > We use NumPy, PyDaqMx, Py Visa > > How can we cover this licensing? I am not a lawyer,

Re: Bug in Python 3.5.1

2015-12-24 Thread Cody Piersall
On Wed, Dec 23, 2015 at 6:57 PM, wrote: > Dear Sir, >In the future, can you kindly include numpy, scipy, and pygame as part of >the Python release? >Nick Srinivasan Hello Nick, Any time you want to install a Python package, the first thing you should try is typing "pip install [p

Re: Need Help w. PIP!

2015-09-08 Thread Cody Piersall
On Sat, Sep 5, 2015 at 3:14 AM, Thomas 'PointedEars' Lahn < pointede...@web.de> wrote: > > Cody Piersall wrote: > > > Please respond to the list as well as the person you're actually talking > > to. It works out better for everyone that way. (You shou

Re: Need Help w. PIP!

2015-09-04 Thread Cody Piersall
On Fri, Sep 4, 2015 at 12:50 PM, Steve Burrus wrote: > > "Do you have pip.exe in C:\Python34\Scripts?" well I remember seeing it in thar folder the other day but not now! D oes this mean I have to re-install python or just pip? Please respond to the list as well as the person you're actually talk

Re: Need Help w. PIP!

2015-09-04 Thread Cody Piersall
On Fri, Sep 4, 2015 at 12:40 PM, Steve Burrus wrote: > > "C:\Python34\Tools\Scripts>python checkpip.py > The latest version of setuptools on PyPI is 18.2, but ensurepip has 12.0.5 > The latest version of pip on PyPI is 7.1.2, but ensurepip has 6.0.8" > > I ran this pythpon file, checkpip.py, and g

Re: Need Help w. PIP!

2015-09-04 Thread Cody Piersall
etti ng the usual error message! > > On Fri, Sep 4, 2015 at 11:35 AM, Cody Piersall wrote: >> If you installed Python to the default location, you should be able to find pip at "C:\Python34\Scripts\pip.exe". If you type "C:\Python34\Scripts\pip.exe" at the command prompt,

Re: Need Help w. PIP!

2015-09-04 Thread Cody Piersall
On Fri, Sep 4, 2015 at 11:04 AM, Steve Burrus wrote: > > Well I think that this is a Win 10 "thing" befcause using previous versions of Windows all I had to do was to type in "pip" to get the pip info. but now apparently it's "python -m pip". Can someone please "set me straight" about the path I

Re: [a,b,c,d] = 1,2,3,4

2015-08-25 Thread Cody Piersall
On Tue, Aug 25, 2015 at 9:16 AM, ast wrote: > [a,b,c,d] = 1,2,3,4 a >>> 1 > >> b >>> 2 > >> c >>> 3 > >> d >>> 4 > > I have never seen this syntax before. Is it documented. > Is there a name for that ? > > thx > -- > https://mail.python.org/mailman/listinfo/python-list >