Hey,
I don’t know but in case you don’t get other good answers, I’m pretty sure
Numpy is more of a mathematical library and Pandas is definitely for
handling spreadsheet data.
So maybe both.
Julius
On Sun 23. Jan 2022 at 18:28, Chris Angelico wrote:
> On Mon, 24 Jan 2022 at 04:10, Tobiah
Hello,
I would like to significantly increase my abilities to find the information
I am seeking about any Python object I am using from within Python. I find
this to be a really essential skill set. After reading documentation, it
really helps to get under the hood at the command line and start
Hey,
This is something I have been working on for a very long time. It’s one of
the reasons I got into programming at all. I’d really appreciate if people
could input some advice on this.
This is a really simple program which extracts the text from webpages and
displays them one sentence at a
Hey,
Could anyone please comment on the purest way simply to strip HTML tags
from the internal text they surround?
I know Beautiful Soup is a convenient tool, but I’m interested to know what
the most minimal way to do it would be.
People say you usually don’t use Regex for a second order
Hey,
I am currently working on a simple program which scrapes text from webpages
via a URL, then segments it (with Spacy).
I’m trying to refine my program to use just the right tools for the job,
for each of the steps.
Requests.get works great, but I’ve seen people use urllib.request.urlopen()
Julius Hamilton added the comment:
I’m currently planning on studying the C code for initscr and newterm so I can
really understand how they work.
I’ll post any updates about this soon.
Thanks.
--
___
Python tracker
<https://bugs.python.
Julius Hamilton added the comment:
I’m trying to patch this bug.
Here are my current working questions:
1. What is the relationship between an fd (file descriptor) and a terminal?
What software / hardware component goes to “fd 0” to receive input from it?
Is there a GNU Screen command
Julius Hamilton added the comment:
I’m trying to patch this bug.
Here are my current working questions:
1. What is the relationship between an fd (file descriptor) and a terminal?
What software / hardware component goes to “fd 0” to receive input from it? Is
there a GNU Screen command
Change by Julius Hamilton :
--
nosy: +Guido.van.Rossum, juliushamilton100
___
Python tracker
<https://bugs.python.org/issue45934>
___
___
Python-bugs-list mailin
New submission from Darren Hamilton :
This is related to https://bugs.python.org/issue17797, which is closed.
Using Python 3.7.4, Windows 10.0.18362, Visual Studio 2017 and running as a C
Application. Py_Initialize() eventually calls is_valid_fd with STDIN. The
behavior appears to cause
handling under Python 3.5
* Fix bug with detached instance errors in the server test suite
GitHub: https://github.com/OpenKMIP/PyKMIP
PyPI: https://pypi.python.org/pypi/PyKMIP/0.7.0
IRC: #pykmip on freenode.net
Thanks to all of the contributors for their time and effort.
Cheers,
Peter Hamilton
/OpenKMIP/PyKMIP
PyPI: https://pypi.python.org/pypi/PyKMIP/0.6.0
<https://pypi.python.org/pypi/PyKMIP/0.5.0>
IRC: #pykmip on freenode.net
Thanks to all of the contributors for their time and effort.
Cheers,
Peter Hamilton
--
https://mail.python.org/mailman/listinfo/python-announc
/0.5.0
IRC: #pykmip on freenode.net
Thanks to all of the contributors for their time and effort.
Cheers,
Peter Hamilton
--
https://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
I woke up two days ago to find out that python literally won't work any
more. I have looked everywhere, asked multiple Stack Overflow questions,
and am ready to give up. Whenever I run python (3.5), I get the following
message:
Fatal Python error: Py_initialize: unable to load the file system
://pypi.python.org/pypi/PyKMIP/0.4.1
IRC: #pykmip on freenode.net
Thanks to all of the contributors for their time and effort.
Cheers,
Peter Hamilton
--
https://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf
simpleaudio.b...@gmail.com.
Thanks and have fun.
-Joe Hamilton
jhamilto...@georgefox.edu
--
https://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
On 8/21/2015 7:02 PM, Chris Angelico wrote:
On Sat, Aug 22, 2015 at 9:53 AM, sohcahto...@gmail.com wrote:
On Friday, August 21, 2015 at 3:42:36 PM UTC-7, hamilton wrote:
On 8/21/2015 1:41 PM, Chris Angelico wrote:
Python 3.5 does not support Windows XP.
Is there a simple explanation
On 8/21/2015 1:41 PM, Chris Angelico wrote:
Python 3.5 does not support Windows XP.
Is there a simple explanation for this ?
Or is it just is.
--
https://mail.python.org/mailman/listinfo/python-list
On 6/17/2015 7:20 AM, Chris Angelico wrote:
On Wed, Jun 17, 2015 at 11:10 PM, subhabrata.bane...@gmail.com wrote:
Thank you all. It seems going fine now. I have one additional question if I run
the .exe files created in Non Python Windows environment. Linux has Python
builtin but in Non
On 6/12/2015 9:47 PM, Seymore4Head wrote:
Yes I have tried the DNCR. It didn't help. The calls are not coming
from the US although the caller ID says they are.
So you want to block calls from a faked number ?!?
( do you have a good program to select lotto numbers?? :-)
On my cell phone,
On 5/24/2015 3:59 AM, Steven D'Aprano wrote:
On Sun, 24 May 2015 09:34 am, hamilton wrote:
[quoted bullshit from a spammer]
[tried to argue with said spammer]
Please don't reply to fly-by-spammers. Even if the spammer was interested in
honest debate -- and he is not (fortunately!) -- the last
On 5/23/2015 8:11 AM, bv4bv4...@gmail.com wrote:
Human Rights and Justice in Islam
Description: A glimpse at the foundations of human rights laid by Islam.
By islam-guide.com
Islam provides many human rights for the individual. The following are some of
these human rights that Islam
On 3/19/2015 3:57 PM, bv4bv4...@gmail.com wrote:
Monotheism - One God
The religion of Islam is based on one core belief, that there is no god worthy
of worship but Allah.
Man has invented many GODs, in their image.
Pick One:
http://www.godchecker.com/
--
On 3/7/2015 10:19 PM, Grant Edwards wrote:
On 2015-03-07, Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
alister wrote:
a popular UK soap made an extreme effort not to show a cross or
Christmas tree during a church wedding in case it offended
not-Christians.
In today's climate, when
On 9/24/2012 9:35 PM, Suzi Mrezutttii wrote:
Google and watch 9/11 Missing Links before Jews remove it from
youtube anytime now!
Hey dude, Nice name, a boy named sue !!!
--
http://mail.python.org/mailman/listinfo/python-list
On 9/9/2012 6:39 AM, Dave Angel wrote:
See the identical thread you posted on tutor, where it was a better match.
Would you please post that link for those of us that did not see that one.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
all communicate with the host
computer using a full-speed USB 2.0 interface. This interface also
operates with USB Version 1.1 or later. The printers implement the
standard USB Printer Class Device interface for communications (see
http://www.usb.org/developers/devclass/).
hamilton
PS: Page 14
On 8/28/2012 11:04 PM, alex23 wrote:
On Aug 29, 1:03 pm, hamilton hamil...@nothere.com wrote:
The OP posted the link to the manual.
If your not going to at least look it over, .
Speaking for myself, I _don't_ go out of my way to read extra material
But, you will give advice that has
On 7/28/2012 1:23 PM, wxjmfa...@gmail.com wrote:
For info: http://scintilla.org/
Just did a quick check on scintilla.
This looks like a single file editor.
Is there a project like capability in there that I did not notice ?
Thanks
hamilton
--
http://mail.python.org/mailman/listinfo
On 7/28/2012 4:42 PM, Chris Angelico wrote:
On Sun, Jul 29, 2012 at 7:43 AM, hamilton hamil...@nothere.com wrote:
On 7/28/2012 1:23 PM, wxjmfa...@gmail.com wrote:
For info: http://scintilla.org/
Just did a quick check on scintilla.
This looks like a single file editor.
Is there a project
On 7/21/2012 9:06 AM, Devin Jeanpierre wrote:
On Fri, Jul 20, 2012 at 11:15 PM, hamilton hamil...@nothere.com wrote:
You are an idiot, or a scammer.
Please be nice.
-- Devin
Devin,
When someone asks me to download a compressed file, its just like the
SCAM junk email I get all too often
On 7/20/2012 8:09 PM, Menghsiu Lee wrote:
Hi,
I have tried 1000 times to compile this python file to be an exe file by using
py2exe and gui2exe
But, it does not work out.
I am thinking if there can be some genius teaching me how to make this happen.
The link in below is the complete code with
Thank you Fred.
I am new to python and am reviewing code I find online.
Some projects do have docs that spell out what its doing,
but many projects that I have download have just the code.
I have my own personal style to decypher C and C++ code.
But python is still foreign to me.
hamilton
Is there any software to help understand python code ?
Thanks
hamilton
--
http://mail.python.org/mailman/listinfo/python-list
On 7/15/2012 7:38 PM, Chris Rebert wrote:
On Sun, Jul 15, 2012 at 6:26 PM, hamilton hamil...@nothere.com wrote:
Subject: Diagramming code
Is there any software to help understand python code ?
What sort of diagrams? Control flow diagrams? Class diagrams? Sequence
diagrams? Module dependency
Hamilton ma...@netsight.co.uk
Netsight Internet Solutions, Ltd. Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development and Consulting | Co-location | Hosting
Hey People,
I am wondering if there are any OS shopping cart application written in python?
Regards,
Luke Hamilton
Solutions Architect
RPM Solutions Pty. Ltd.
Mobile: 0430 223 558
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Thanks...
Do you happen to have anymore details?
From: Tino Wildenhain [EMAIL PROTECTED]
Date: Wed, 10 Sep 2008 06:52:40 -0500
To: Luke Hamilton [EMAIL PROTECTED]
Cc: python-list@python.org python-list@python.org
Subject: Re: Web shopping carts
Luke Hamilton wrote:
Hey People,
I am
From: Tino Wildenhain [EMAIL PROTECTED]
Date: Wed, 10 Sep 2008 08:40:42 -0500
To: Luke Hamilton [EMAIL PROTECTED]
Cc: python-list@python.org python-list@python.org
Subject: Re: Web shopping carts
Hi,
Luke Hamilton wrote:
Thanks...
Do you happen to have anymore details?
Yes well
Regards,
Luke Hamilton
Solutions Architect
RPM Solutions Pty Ltd
Mobile: 0430 223 558
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Seongsu Lee [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
I want to get the size of a block device by ftell(). I found that I
can get
the size of a device by seek() and tell() in Python. But not in C.
What is difference between them? How can I get the size of a block
device by
what it looks like you are trying to do.
alist = range(3)
for index, i in enumerate(alist):
for jndex, j in enumerate(alist[index:]):
print index, jndex, i, j
0 0 0 0
0 1 0 1
0 2 0 2
1 0 1 1
1 1 1 2
2 0 2 2
--
-Bill Hamilton
--
http://mail.python.org
would probably pronounce it Nuke-lee-ur.
I dislike Bush as much as the next guy, but could we please keep
politics off the group?
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
line, but instead jogs east around Asia and then west
around the Aleutian Islands.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
On 10/9/07, John Machin [EMAIL PROTECTED] wrote:
On 10/10/2007 1:33 AM, Hamilton, William wrote:
From: Tommy Grav
Hi everyone,
I have a list of objects where I have want to do two loops.
I want to loop over the list and inside this loop, work on all
the elements of the list after
, with the middle row containing a frame with
another grid in it. I don't try to create a single massive grid that
manages everything, I break it up into subgrids of related widgets.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
order. Sorting the keys every time
keys() is called isn't an improvement over using a regular dict and
sorting the keys normally. So the extra memory cost of maintaining an
internal keys list looks reasonable to me.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
.
Or subclass dict to carry along a sorted list of keys with it and return
that when dict.keys() is called. Even better, only have .keys() sort
the keys list when a key has been added to it since the last call.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
string or not? In this case, the logic in the following conditional is
perfectly valid.
if y[0] == :
...print True
... else
...print False
(len(y[0]) == 0) would also work, and is the solution you originally
gave the OP.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo
be others.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
in a font for 1, l, and I and do some unpleasant
things.)
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
the typical four
spaces? Python should accept it just fine. You'll still have problems
reading other people's code. Maybe you can write a quick script that
converts code down to one-space indents.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
to replace it without thinking.
Thanks in advance.
Check if the file exists and delete it before saving the new one.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
that do version checking.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
, while
exceptions in Python are a standardized way to handle errors of all
sorts. Where in C you would, say, open a file and check the return code
to ensure that the file actually exists before using it, in Python you
wrap the open statement in a try/except block instead.
--
-Bill Hamilton
, but
the variables are only created when the function is actually called, and
new ones are created every time the function is called.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
From: Lee Fleming
On Aug 6, 12:30 pm, Hamilton, William [EMAIL PROTECTED] wrote:
When you call f(23), the variable y within it gets created and
points at
None. When f(23) exits, the y that it created gets destroyed.
(Well,
goes out of scope, but even if it's not garbage collected
')))
117360
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
) as its master, causing it
to be created in a new window. In the second, it has Frame(root) as its
master, which does not create a new window. Changing Frame to Toplevel
in the class statement and the call to __init__ causes them to act
identically.
--
-Bill Hamilton
--
http://mail.python.org
that may or may not be harder to identify. If your program gets a
piece of data that breaks it, you'll get a failure in the field. Static
typechecking won't prevent that.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
and it gets processed.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
]) or
iterating over them (for f in c:).
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
that have the same first six non-space characters. This should work on any
Windows long-filename system where you need 8.3 filenames for backwards
compatibility.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
, then worker.start() is
going to generate the TypeError you received. Did you actually mean to call
worker.run() instead?
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
of the button.
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
= random.random()
ran
0.70415952329234965
for index, value in enumerate(x):
if sum(x[0:index]) ran:
print index, ran
break
2 0.704159523292
--
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
.
Thanks
Rahul
This link has a decent amount of info about the various dialog modules.
http://www.pythonware.com/library/tkinter/introduction/x1164-data-entry.htm
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
.
No, they'll work just fine. They just won't work with Python 3. It's not
like the Python Liberation Front is going to hack into your computer in the
middle of the night and delete you 2.x installation.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
in keyword.kwlist:
print input + is keyword
else:
print input + is not keyword
It works fine for me. Well, it did once I realized that 'keyword.py' was
not a good name to save the file under.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
From: [EMAIL PROTECTED]
F:\Ohjelmat\Python25\Lib\keyword.pyc
That's your problem. Rename keyword.py to keywordcheck.py, and delete
keyword.pyc in this directory, and it should work fine.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
, all you care about is whether each input and
output is on or off.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
interpreter window as part
of your program, if you really need access to the interpreter alongside
your GUI. You may be able to extract IDLE's interpreter window and use
it directly.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
a long, long time since I've used *nix
in a gui environment.)
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
on it, maybe he got it from a function that he
knows provides a string. Maybe he's checked its type. It doesn't really
matter, if he's aware it is a string he doesn't have to test it for
stringness.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
in a module supporting that
application.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
-Original Message-
From: Steven D'Aprano
Sent: Monday, April 30, 2007 10:14 PM
To: python-list@python.org
Subject: RE: Dict Copy Compare
On Mon, 30 Apr 2007 12:50:58 -0500, Hamilton, William wrote:
On quick question, how can I order a dict by the 'values' (not
keys)
before
that imports from each of those.
from a import *
from b import *
from c import *
Then, import d and use it as the module name. So if a had a SomeThing
class, you could do this:
import d
x = d.SomeThing()
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
-Original Message-
From: [EMAIL PROTECTED]
[mailto:python-
[EMAIL PROTECTED] On Behalf Of spohle
Sent: Monday, April 30, 2007 10:25 AM
To: python-list@python.org
Subject: Re: import structures
On Apr 30, 8:16 am, Hamilton, William [EMAIL PROTECTED] wrote:
If you've got
to get away with converting them to strings.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
from any page in the reference: click
the index link, then scroll down to the link to in operator.
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
will greatly improve the quality of the python
documentation.
Fat chance, if they reason like you.
So you're saying your insights aren't valuable?
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
-2 -1
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
they are. My problem is I don't know how many of
these entries there will be. Thanks for any help you can give!
for x in xrange(len(listing['id'])):
... print
... for key in listing.keys():
... print listing[key][x],
a Joe
b Jane
c Bob
---
-Bill Hamilton
--
http
the tuple to a list? Sure, but for a
large tuple that's potentially a large speed and memory hit.
That probably the biggest general use case for tuple.index(). A
third-party module returns a tuple in which you need to find a piece of
data.
---
-Bill Hamilton
[EMAIL PROTECTED]
--
http
the constructor of class A, returning
an instance. If you change that line to:
print [b(item, A) for item in d]
you'll get the output you expected.
---
-Bill Hamilton
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
-
spam.pop(4)
IndexError: pop index out of range
---
-Bill Hamilton
--
http://mail.python.org/mailman/listinfo/python-list
to believe it could happen? Yes. Is it
reasonable to say, We don't think this is likely to happen often, so we
won't provide a simple way to deal with it? Well, I'm not a developer,
so it's not my decision.
---
-Bill Hamilton
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python
way off base?
---
-Bill Hamilton
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
in current_settings:
print line + found.
This may do what you want.
---
-Bill Hamilton
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
parameter to a new list. The second_collection doesn't work because
you're appending to the (flawed) existing list assignment.
---
-Bill Hamilton
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
, if anyone does have a solution to it I'd like to see it. I hate
having unresolved wierdnesses in our code.
--
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666
--
http://mail.python.org/mailman/listinfo/python-list
We don't run these scripts as root, so I can't say whether they work as
root. I suspect they would, though, since root has permissions to do
anything.
--
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666
--
http
95 matches
Mail list logo