Re: Pandas or Numpy

2022-01-23 Thread Julius Hamilton
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

Advanced ways to get object information from within python

2021-12-23 Thread Julius Hamilton
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

Short, perfect program to read sentences of webpage

2021-12-08 Thread Julius Hamilton
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

HTML extraction

2021-12-07 Thread Julius Hamilton
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

Urllib.request vs. Requests.get

2021-12-07 Thread Julius Hamilton
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()

[issue45934] python curses newterm implementation

2021-12-06 Thread Julius Hamilton
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.

[issue45934] python curses newterm implementation

2021-12-05 Thread Julius Hamilton
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

[issue45934] python curses newterm implementation

2021-12-05 Thread Julius Hamilton
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

[issue45934] python curses newterm implementation

2021-12-04 Thread Julius Hamilton
Change by Julius Hamilton : -- nosy: +Guido.van.Rossum, juliushamilton100 ___ Python tracker <https://bugs.python.org/issue45934> ___ ___ Python-bugs-list mailin

[issue39345] Py_Initialize Hangs on Windows 10

2020-01-15 Thread Darren Hamilton
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

PyKMIP 0.7.0

2017-11-15 Thread Peter Hamilton
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

PyKMIP 0.6.0

2016-12-15 Thread 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

PyKMIP 0.5.0

2016-04-14 Thread Peter Hamilton
/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/

[Glitch?] Python has just stopped working

2016-02-16 Thread Theo Hamilton
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

PyKMIP 0.4.1

2015-12-07 Thread Peter Hamilton
://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 1.0.0 Release

2015-11-30 Thread Joe Hamilton
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/

Re: Bug!

2015-08-21 Thread hamilton
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

Re: Bug!

2015-08-21 Thread hamilton
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

Re: Creating .exe file in Python

2015-06-17 Thread hamilton
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

Re: OT ish Blocking telemarketers

2015-06-13 Thread hamilton
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,

Re: Human Rights and Justice in Islam

2015-05-24 Thread hamilton
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

Re: Human Rights and Justice in Islam

2015-05-23 Thread hamilton
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

Re: Monotheism - One God

2015-03-19 Thread hamilton
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/ --

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-07 Thread hamilton
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

Re: 9/11 Missing Links is the video that Jews do not want you to see!

2012-09-24 Thread hamilton
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

Re: Beginner Q: What does the double underscore __ mean?

2012-09-09 Thread hamilton
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

Re: Sending USB commands with Python

2012-08-28 Thread hamilton
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

Re: Sending USB commands with Python

2012-08-28 Thread hamilton
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

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread hamilton
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

Re: OT: Text editors (was Re: Search and replace text in XML file?)

2012-07-28 Thread hamilton
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

Re: can someone teach me this?

2012-07-21 Thread hamilton
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

Re: can someone teach me this?

2012-07-20 Thread hamilton
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

Re: Diagramming code

2012-07-16 Thread hamilton
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

Diagramming code

2012-07-15 Thread hamilton
Is there any software to help understand python code ? Thanks hamilton -- http://mail.python.org/mailman/listinfo/python-list

Re: Diagramming code

2012-07-15 Thread hamilton
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

Plone Conference 2010 schedule published

2010-09-27 Thread Matt Hamilton
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

Web shopping carts

2008-09-10 Thread Luke Hamilton
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

Re: Web shopping carts

2008-09-10 Thread Luke Hamilton
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

Re: Web shopping carts

2008-09-10 Thread Luke Hamilton
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

Vmware api

2008-08-17 Thread Luke Hamilton
Regards, Luke Hamilton Solutions Architect RPM Solutions Pty Ltd Mobile: 0430 223 558 [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: size of block device by ftell()

2007-11-20 Thread Gil Hamilton
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

RE: List loops

2007-10-09 Thread Hamilton, William
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

Fwd: NUCULAR fielded text searchable indexing

2007-10-09 Thread Bill Hamilton
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

Re: pytz has so many timezones!

2007-10-09 Thread Bill Hamilton
line, but instead jogs east around Asia and then west around the Aleutian Islands. -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

Re: List loops

2007-10-09 Thread Bill Hamilton
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

RE: tkinter question

2007-10-08 Thread Hamilton, William
, 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

RE: sorteddict [was a PEP proposal, but isn't anymore!]

2007-10-01 Thread Hamilton, William
Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: sorteddict PEP proposal [started off as orderedict]

2007-09-25 Thread Hamilton, William
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

RE: An ordered dictionary for the Python library?

2007-09-12 Thread Hamilton, William
. 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

RE: Checking if elements are empty

2007-09-11 Thread Hamilton, William
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

RE: newbie: stani's python editor if-else

2007-09-11 Thread Hamilton, William
be others. -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Excel process still running after program completion.

2007-09-11 Thread Hamilton, William
in a font for 1, l, and I and do some unpleasant things.) -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Python code-writing for the blind. Was (Re: newbie: stani's pythoneditor if-else)

2007-09-11 Thread Hamilton, William
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

RE: Silent SaveAs when using the Excel win32com module

2007-09-10 Thread Hamilton, William
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

RE: application version checking against database

2007-09-07 Thread Hamilton, William
that do version checking. -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: list index()

2007-08-30 Thread Hamilton, William
, 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

RE: Something in the function tutorial confused me.

2007-08-06 Thread Hamilton, William
, 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

RE: Something in the function tutorial confused me.

2007-08-06 Thread Hamilton, William
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

RE: Bug in Time module, or in my understanding?

2007-08-02 Thread Hamilton, William
'))) 117360 -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Making Gridded Widgets Expandable

2007-07-30 Thread Hamilton, William
) 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

RE: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-05 Thread Hamilton, William
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

RE: Collections of non-arbitrary objects ?

2007-06-26 Thread Hamilton, William
and it gets processed. -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

Excel file interface for Python 2.3?

2007-06-12 Thread Hamilton, William
. -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: c[:]()

2007-05-30 Thread Hamilton, William
]) or iterating over them (for f in c:). -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Installing Python in a path that contains a blank

2007-05-22 Thread Hamilton, William
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

RE: 'int' object is not callable in an threaded app

2007-05-22 Thread Hamilton, William
, 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

RE: tkinter button state = DISABLED

2007-05-21 Thread Hamilton, William
of the button. -- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Random selection

2007-05-21 Thread Hamilton, William
= 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

RE: tkFileDialog.askopenfilename()

2007-05-16 Thread Hamilton, William
. 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

RE: Trying to choose between python and java

2007-05-15 Thread Hamilton, William
. 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

RE: change of random state when pyc created??

2007-05-10 Thread Hamilton, William
. --- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: keyword checker - keyword.kwlist

2007-05-10 Thread Hamilton, William
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

RE: keyword checker - keyword.kwlist

2007-05-10 Thread Hamilton, William
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

RE: Simulating simple electric circuits

2007-05-09 Thread Hamilton, William
, all you care about is whether each input and output is on or off. --- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Strange terminal behavior after quitting Tkinter application

2007-05-07 Thread Hamilton, William
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

RE: Strange terminal behavior after quitting Tkinter application

2007-05-04 Thread Hamilton, William
a long, long time since I've used *nix in a gui environment.) --- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: How to check if a string is empty in python?

2007-05-04 Thread Hamilton, William
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

RE: re-importing modules

2007-05-01 Thread Hamilton, William
in a module supporting that application. --- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Dict Copy Compare

2007-05-01 Thread Hamilton, William
-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

RE: import structures

2007-04-30 Thread Hamilton, William
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

RE: import structures

2007-04-30 Thread Hamilton, William
-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

RE: Dict Copy Compare

2007-04-30 Thread Hamilton, William
to get away with converting them to strings. --- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Python keywords

2007-04-26 Thread Hamilton, William
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

RE: Tutorial creates confusion about slices

2007-04-25 Thread Hamilton, William
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

RE: Tutorial creates confusion about slices

2007-04-23 Thread Hamilton, William
-2 -1 --- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: Iterate through a dictionary of lists one line at a time

2007-04-18 Thread Hamilton, William
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

RE: tuples, index method, Python's design

2007-04-11 Thread Hamilton, William
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

RE: passing class by reference does not work??

2007-04-11 Thread Hamilton, William
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

RE: pop() clarification

2007-04-11 Thread Hamilton, William
- spam.pop(4) IndexError: pop index out of range --- -Bill Hamilton -- http://mail.python.org/mailman/listinfo/python-list

RE: tuples, index method, Python's design

2007-04-11 Thread Hamilton, William
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

Project organization and import redux

2007-04-05 Thread Hamilton, William
way off base? --- -Bill Hamilton [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Looping issues

2007-04-05 Thread Hamilton, William
in current_settings: print line + found. This may do what you want. --- -Bill Hamilton [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Objects, lists and assigning values

2007-04-05 Thread Hamilton, William
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

Python script produces sem_trywait: Permission denied

2005-10-18 Thread Mark E. Hamilton
, 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

Python script produces sem_trywait: Permission denied

2005-10-18 Thread Mark E. Hamilton
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