|
Mr. Heavy posted:Is there any really good standard library reference for Python? Compared to Ruby, the official documentation absolutely sucks, and it's really frustrating me because I absolutely adore the Pylons framework and then doing more menial Python stuff in the framework is comparatively painful. I you're using Windows, pywin32 includes a nice .chm of the official documentation, with the usual fast keyword searching of a Windows help file.
|
# ¿ Nov 12, 2007 15:04 |
|
|
# ¿ Apr 27, 2024 23:00 |
|
I have a system at work where I run about 10 processes in the background using pythonw.exe - this is a bit tricky if I want to kill a specific process from the task manager, since they are all listed as, well, "pythonw.exe" Anybody know if there's a way of "renaming" the python interpreter short of renaming the .exe/compiling with py2exe so that it's easier to kill? My current solution involves adding a XMLRPC interface to all of the processes, which kind-of solves the killing problem (unless it's stopped responding totally), but still makes it hard to see which of the processes is the one taking up 99% CPU
|
# ¿ Nov 16, 2007 13:22 |
|
pokeyman posted:Having been turned on to Pygame in this thread and elsewhere, I've decided I really want to make a version of the board game Acquire. py2exe should be able to create a nice runnable distribution for Windows, and there is a py2app in the default Mac python 2.5 installation, if I remember correctly (but, that requires you to have a Mac to create it, and the files become insanely large (40+Mb), since you have to include the entire Python installation in the .app - why can't it be like py2exe and have python in a single 500kb .dll? ) For Linux, I'm not really sure, though...
|
# ¿ Jan 25, 2008 07:45 |
|
porkface posted:Yahoo!, NASA Indeed; I remember some map editor for Quake implemented scripting in Python back...in the old days (fake edit: it was called Quake Army Knife (ninja edit to my fake edit: 1996? drat )), and I'm sure tons of places used it at that time, but not as "visible" as it is today
|
# ¿ Mar 4, 2008 22:55 |
|
code:
|
# ¿ Jan 10, 2009 07:20 |
|
The first part is not "selected", you're effectively only finding the "latest whitespace before 450 chars"code:
EDIT: code:
dorkanoid fucked around with this message at 09:48 on Apr 3, 2009 |
# ¿ Apr 3, 2009 09:46 |
|
dancavallaro posted:I used py2exe to make an executable of a Python script I wrote. It works great on the Windows XP computer that I created it on, and it works great on my Windows Vista laptop at home. But it doesn't work on my boss's Vista computer, and fails with the error "the application has failed to start because its side-by-side configuration is incorrect. Please see application event log for more details". Any ideas what could be wrong? For the record (even if this is an old post, and seems resolved), this is most likely because the target computer needs the Visual C++ 2008 SP1 Redistributable Package (I'm guessing you use Python 2.6.0-2.6.1?) I think this was fixed in 2.6.2, and it's related to issue #4566 (downgrading to Python 2.5 was not an option for me - I've used a lot of time getting stuff to work on 2.6).
|
# ¿ May 15, 2009 05:16 |
|
checkeredshawn posted:I'm trying to parse the results from onelook.com for words related to a given word, and then store them in a list, but I can't figure out what the regexp should be to match the lines to grab the words. Here are some example lines from the source of the site after searching for words related to the word "emotion": I think you want p.findall(source)
|
# ¿ Jun 6, 2009 22:21 |
|
checkeredshawn posted:Thanks for the tip, but that returned an empty list, so I'm guessing there's something wrong with my regular expression? I can't recommend retest enough for these kinds of things
|
# ¿ Jun 6, 2009 23:08 |
|
|
# ¿ Apr 27, 2024 23:00 |
|
Habnabit posted:I know it's from the last page, but this bugs me every drat time. REGULAR EXPRESSIONS! And yes, BeautifulSoup is nice when it works, but the latest version is annoying (breaks on invalid/strange HTML). I still use it when I can, but regular expressions typically work (until the page changes slightly )
|
# ¿ Jun 8, 2009 09:50 |