473,804 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
14
4,983
thread by: Mickel Grönroos | last post Jul 18 '05 by: Mickel Grönroos
Hi all, I have a silly question. Is there are simple way to check if the computer is connected to the Internet? It seems this should be a pretty straight-forward thing to do, but as I am totally unfamiliar with sockets and such, I ask for your help before getting my hands dirty. Cheers, Mickel G.
2
7,076
thread by: Sami Viitanen | last post Jul 18 '05 by: Felix McAllister
Hello, Is there a way to check if a command executed in ms-dos returns 0 (success) or greater than 0 (fail) ? In Unix the module commands.getstatusoutput returns exit status.. Thanks in advance.
0
440
thread by: Sami Viitanen | last post Jul 18 '05 by: Sami Viitanen
Hello, Is there a way to check if a command executed in ms-dos returns 0 (success) or greater than 0 (fail) ? In Unix the module commands.getstatusoutput returns exit status.. Thanks in advance.
2
2,333
thread by: john | last post Jul 18 '05 by: Tim Evans
Are there any charting or graphing modules for python that can write PNG, JPEG, or GIF graphics? I have found a couple of nice looking packages that can make beautiful postscript, PDF, or SVGs (PyChart and ReportLab) but they can't make PNGs, GIFs, or JPEGs. (On my Solaris machine with Python 2.2 they don't.) Or are there any simple UNIX...
7
19,659
thread by: Andrew Chalk | last post Jul 18 '05 by: Andrew Chalk
Is this possible? In my CGI app. I display a web page with a link (anchor). When the link is clicked I want to exectute a python script rather than go to an HTML page. Many thanks.
4
12,619
thread by: Indigo Moon Man | last post Jul 18 '05 by: Indigo Moon Man
for the formula J = I / (12 * 100) where I is low (like about 8 to 15) I get 0. But when I do it with a calculator it's actually .008333 for example if I were 10. Is there a way I can get python to recognize the .008333 instead of it just giving me 0? TIA for your help! -- Audio Bible Online: http://www.audio-bible.com/
0
1,246
thread by: Bryan J Gudorf | last post Jul 18 '05 by: Bryan J Gudorf
We at NeuroKode Labs, LLC, are proud to announce the release of Python Database Objects (PDO) 1.0.1. The current release adds support for PostgreSQL via the pgdb Module. As released previously: Python Database Objects (PDO) provides an easy to use Object Oriented API for database developers. PDO utilizes DB-API modules for database access,...
3
1,341
thread by: Tom | last post Jul 18 '05 by: Jp Calderone
Hi, I have a main program that uses a lot of definitions in different classes. They are included like this: from subclass1 import * from subclass2 import * My problem is: whenever I make changes in one of the classes I have to close and reopen the main program for the changes to take effect. This is kind of annoying, because I always...
0
1,276
thread by: tertius | last post Jul 18 '05 by: tertius
I want to use IE or Netscape to print my documents which are in HTML format. Whould com/activex be the way to do it? Are there examples of how I can acieve this? Many thanks Tertius
6
4,930
thread by: Philip | last post Jul 18 '05 by: Jarek Zgoda
Hi, i'am looking for a db2 driver for windows the DB2 servers runs on as400 if that makes any difference. Thanks, Philip
6
2,486
thread by: Robin Becker | last post Jul 18 '05 by: David Mertz
Hi, I'm getting vast numbers of fake upgrade emails containing some kind of virus. My rather old client can be made to reject these based on some patterns in the subject line. They're nearly all based on the word 'New', 'Latest', 'Microsoft', 'Patch', 'Pack', ... etc etc. Is there a python tool that can be made to delete these from my POP3...
5
4,627
thread by: F. GEIGER | last post Jul 18 '05 by: F. GEIGER
Hi all! As I saw Alex Martelli's post about a mbox cleaner based on POP3, I thought, it could be possible to do that based on IMAP too. That way I could ask the server for mails having attached EXE files and delete all those mails on the server. This would save me a lot of traffic over my phone line connection. But I'm missing one...
4
7,359
thread by: Michael | last post Jul 18 '05 by: David Mertz
Is there a scp (ssh) written in Python ? Regards, Michael
0
1,339
thread by: Peter Kropf | last post Jul 18 '05 by: Peter Kropf
I'm looking for a way to create multiple namespaces / dictionaries from within a Python C extension. I'd like to replicate something like: a\__init__.py a\b\__init__.py a\b\c\__init__.py Where a\__init__.py import b and b\__init__.py imports c. Python 2.2.3 (#1, Jul 9 2003, 16:15:35)
5
1,805
thread by: anton muhin | last post Jul 18 '05 by: anton muhin
Hello everybody! I need advice and expertise of the community for the following problem. I'm going to make a psycholinguistic experiment. In this experiment the auditor is asked to listen to some text and to press the button when some event occurs. I need to find out reaction time on different inputs and, therefore, I need 1) rather...
3
2,096
thread by: T.T.H. | last post Jul 18 '05 by: T.T.H.
Hi I am coding a C++ COM object which I want to access in Python. For that I do have some detail questions and need help since I am not that familiar with the documentation itself of Python and win32com yet. 1. How do I know that...
9
2,740
thread by: Alex Martelli | last post Jul 18 '05 by: Karlheinz klingbeil
All my mailboxes have been filling up with files of about 130k to 150k, no doubt copies of some immensely popular virus. So, I've no doubt lost lots of real mail because of "mailbox full" conditions (the proliferating fake bounce messages more or less ensure nobody knows their mail to me has bounced, either). As an emergency response I and...
0
1,182
thread by: Matthew Wilson | last post Jul 18 '05 by: Matthew Wilson
Hi- I'm trying to import a countylist.py file in idle, and it isn't working. What am I doing wrong? >>> os.listdir(os.getcwd()) >>> import countylist Traceback (most recent call last):
21
4,338
thread by: Hilde Roth | last post Jul 18 '05 by: David C. Fox
This may have been asked before but I can't find it. If I have a rectangular list of lists, say, l = ,,], is there a handy syntax for retrieving the ith item of every sublist? I know about for i in l] but I was hoping for something more like l. Hilde
5
1,413
thread by: Roberto A. F. De Almeida | last post Jul 18 '05 by: Roberto A. F. De Almeida
Hi, Suppose I have a dictionary containg nested dictionaries. Something like this: >>> pprint.pprint(dataset) {'casts': {'experimenter': None, 'location': {'latitude': None, 'longitude': None}, 'time': None,
0
1,160
thread by: Patrick W. Fraley | last post Jul 18 '05 by: Patrick W. Fraley
Hi everybuddy, I am experiencing some really weird problems when using the findertools from an Tkinter app (MacPython 2.2.3). When I start another application (i.e. a Browser), the Application starts behaving strangely. It does not seem to continue until I switch back and forth between it and the Tkinter app. Only then will it continue...
0
1,234
thread by: Alan Kennedy | last post Jul 18 '05 by: Alan Kennedy
Greetings all, A few months ago I said I'd put together a page listing all of the python HTTP proxies that I knew of. And now the time has come..... http://xhaus.com/alan/python/proxies.html I'll be keeping that page up to date as much as I can, so please feel free to contact me with updates, corrections, etc.
2
5,441
thread by: Lonnie, SRC employee | last post Jul 18 '05 by: Peter Hansen
*** post for FREE via your newsreader at post.newsfeed.com *** I can figure out how to set the standalone attribute in the <? xml version="1.0 ?> tag eg <?xml version="1.0" standalone="yes" ?> closest I have got to what I need is: <?xml version="1.0" ?> <?standalone yes?> <xpg creator="crusher" version="1.0"> <etr>
0
1,045
thread by: sjf | last post Jul 18 '05 by: sjf
Is it possible to distinguish if script is running on python command line (python.exe) or IDLE? -- regards, sjf :)
2
2,507
thread by: Bram Stolk | last post Jul 18 '05 by: Peter Otten
Hello, I am using python-2.2.2 on linux-ARM. Python itself works OK. However, importing pickle gives me *very* strange results: The first 'import pickle' fails with "ImportError: No module named StringIO" If I immediately do a second 'import pickle', it works????

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.