| |
thread by: Scott Chapman |
last post Jul 18 '05 by: Bengt Richter
I'm sure I'm not using the conventional names for this tool, more of a
cross-referencer?. I couldn't find it on Google, I think for this reason.
I need a tool that will go through a python module (ClientForm in this case)
and allow me to specify a starting module to parse and tell me what all it
uses.
What I'm trying to do is to take...
|
thread by: Harry Pehkonen |
last post Jul 18 '05 by: Bengt Richter
I have been defining new class methods when I'm trying to simplify
some code. But I'm thinking I should just define functions within
that method because they aren't useful from the outside anyway.
Example:
Before:
class Mess(object):
def complicated(self, count):
|
thread by: Andrew Chalk |
last post Jul 18 '05 by: Peter Hansen
Is there a python equivalent of the C ternery operator?
I.e.:
fred = (x == 1) ? 12 : 15
If not, what's the best way to construct the same logic?
Regards
|
thread by: yeung_too |
last post Jul 18 '05 by: Roy Smith
Dear all,
My college used C for beginner course and use Java to demostrate OO
concept. Anyway, I tried python and found that it is a very good
language. I think many people spend time on Java and university uses
Java because Sun Microsystem spends much money to promote and
develop the Java language. I just feel that our world spends...
|
thread by: Tonguç Yumruk |
last post Jul 18 '05 by: Peter Otten
Hi,
I'm writing a plugin based application with python 2.1 but I really have
some trouble with creating a package. My directory structure is:
Skib/Server/Python/:
skib
skibserver
|
thread by: Bertel Lund Hansen |
last post Jul 18 '05 by: Bertel Lund Hansen
Hi all
I have made some pages where PHP produces a menu and gets the
contents from separate files. It works okay. But something I read
made me wonder if there smarter ways to access the content file.
At present I use include($content). Now I realize that this means
that the conten file is PHP-parsed. I use that in some cases so I...
|
thread by: Bernd Preusing |
last post Jul 18 '05 by: Martin v. Löwis
Hi,
today I (Python beginner) ran into a problem:^
I have a JPG file which contains some comment as unicode.
After reading in the string with s=file.read(70) from file offest 4
I get a string which is shown as
'UNICODE\\0x00\\ox00K\\0x00o' and so forth in the debugger
(using Komodo).
|
| |
thread by: Daniel Klein |
last post Jul 18 '05 by: Daniel Klein
Is it potentially dangerous to use the variable 'object' in code?
Thanks,
Daniel Klein
|
thread by: Skip Montanaro |
last post Jul 18 '05 by: Skip Montanaro
Awhile ago, in response to confusion about the meaning of "iterable", I
decided the Python documentation needed a glossary and created one with that
single entry. Adding a glossary to the documentation with a single term
seemed kind of pointless, so I didn't check anything into CVS.
I'm still interested in getting this off the ground,...
|
thread by: Balachandra |
last post Jul 18 '05 by: Balachandra
http://www.amazon.com/exec/obidos/ASIN/1558609008/india
|
thread by: Symantec-AntiVirus |
last post Jul 18 '05 by: Symantec-AntiVirus
Content violation found in email message.
From: python-list@python.org
To: sas-pia@powai.ltindia.com
Subject: Re: That movie
Matching Subject: * that movie
|
thread by: John Abel |
last post Jul 18 '05 by: Martin v. Löwis
A while back, I saw a thread asking if the standard lib modules would be
modified to use the new logging module, and it got me thinking. As the
new-style classes will be default for 2.4, will the standard lib modules
be modified accordingly?
Thanks
John
|
thread by: Ian |
last post Jul 18 '05 by: Ulrich Petri
I have written this utility class that has a method which calls
another method. I don't want to pass in the self parameter and was
wondering by doing this does it make the function to be private or
uncallable outside of the class.
This code below works, but I didn't really want to pass self into
testBob1(ideally having it as private), I...
|
thread by: Chris |
last post Jul 18 '05 by: Alex Martelli
Hi
I am posting this on both the perl and python groups
My intention is not to start a war or anything else, I would just like
some pragmatic advice.
My apologies to the python group I am not very conversant with Python at
this stage. that could change soon though.
|
thread by: python |
last post Jul 18 '05 by: python
Hi-
I'm writing some CGI stuff and I'm doing it in python to force myself to
learn the language. Anyway, I want to include some html at the top of
every page but I'm not sure how.
If the header is in header.html, what is the python-ese way of printing
that out in my html?
Thanks for the help.
|
| |
thread by: Kris Caselden |
last post Jul 18 '05 by: Michael Peuser
Particularly in Windows, how do create installation packages for
python scripts? I've noticed that PyOpenGL and PyGame use a pretty
nice installer, and some games I've seen install and run without even
needing python installed. How is this done?
|
thread by: raizor |
last post Jul 18 '05 by: Bertel Lund Hansen
This email address is unreachable. It has been closed.
|
thread by: Elaine Jackson |
last post Jul 18 '05 by: News M Claveau /Hamster-P
I'm new to Python, and I've noticed the following:
>>> def f(a,b):
a+=b
>>> def g(a,b):
a=a+b
>>> p=
>>> q=
>>> r=
>>> s=
|
thread by: Phil Schmidt |
last post Jul 18 '05 by: Michael Peuser
I'm trying to make a custom entry widget, as in the code that follows.
There are two problems I'm trying to fix:
1) I would like the widget to behave as myEntry.Escape() does now,
except that it happens on loss of focus, not when pressing Esc.
2) TABbing between multiple entry fields does undesired things with
the selection, and with...
|
thread by: Mark Moss |
last post Jul 18 '05 by: Mark Moss
I have an XRC file that contains a complete menubar. I load this
menubar into a frame with:
self.ResMenu = wxXmlResource("menus.xrc",0)
self.MenuBar = self.ResMenu.LoadMenuBar("MenuBarEditor")
self.SetMenuBar(self.MenuBar)
Then set up a menu event handler:
EVT_MENU(self, XRCID("MenuItemSnapToGrid"), self.OnSnapToGrid)
|
thread by: Dave |
last post Jul 18 '05 by: Geoff Gerrietts
Hi, I was just wondering if anyone knows whether it's possible to use the
Python port to the Swiss Ephemeris with the latest version Python 2.3?
I downloaded it from the vault, and it worked fine with Python 2.2.2, but
then when I switched to Python 2.3 it gives me this error:
"ImportError: DLL load failed: The specified module could not be...
|
thread by: Lars Behrens |
last post Jul 18 '05 by: Nick Welch
Hi there!
I need help for cgi-script.
I've been fiddling around for quite a while, searched through lots of
doc. But I didn't get it:
Can someone point me a way to change a list with arbitrary number of
items to a string :
|
thread by: Gerhard Häring |
last post Jul 18 '05 by: Terry Reedy
On my mailserver (running a recent Postfix snapshot) I get this since a
few hours:
mylene:/var# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
DA10713E37 1617 Wed Sep 3 11:32:46 gh@ghaering.de
(lost connection with mail.python.org while sending end
of data -- message may be sent more than once)...
|
| |
thread by: Chris Brew |
last post Jul 18 '05 by: Andrew Dalke
I've just been writing some code to merge items from
a collection of streams, where each item has a key,
and each stream is known to be sorted in ascending
order of key. I read all the streams once, then
pick the minimum element of the results, replace
it with a new one read from the corresponding
stream, and repeat.
Thing is, what...
|
thread by: Brian Donovan |
last post Jul 18 '05 by: Jp Calderone
Does anyone know a way to replace the python: in syslog messages?
As an example:
Currently I have:
Sep 5 16:57:03 typhoon python: jeeves_backup starting
I would like:
|