473,786 Members | 2,567 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.
0
915
thread by: Andrii V. Mishkovskyi | last post Oct 31 '07 by: Andrii V. Mishkovskyi
2007/10/31, Frank Aune <Frank.Aune@broadpark.no>: You mean something like this: .... print '42' 42 am I right? -- Wbr, Andrii Mishkovskyi.
1
1,543
thread by: mikhail.savitsky | last post Oct 31 '07 by: Diez B. Roggisch
Hi, Official Python distro is very stable, with release cycle of around 1 year. However, to include the new version of SQLite, which has a much shorter release cycle, one has to rebuild the main Python distribution (to compile with the new SQLite headers) - this is from Python docs. Therefore, inclusion of PySQLite in Python-2.5.1 distro...
1
7,398
thread by: Shawn Minisall | last post Oct 31 '07 by: Tim Roberts
Does anyone know how to clear the shell screen completely ? I tried import os and then os.system("clear") was said to have worked in Windows XP, but it's just bringing up another window, then it turns black and then it closes in within about a second moving the prompt at the os.system("clear") line . I've also tried os.system("cls") with the...
6
2,147
thread by: barronmo | last post Oct 31 '07 by: mensanator
I'm new to programming and even newer to Python and would be grateful for some help on what has been a tough problem for me. The project I am working on is an electronic medical record using MySQL/Python. I'm currrently working on a module that looks up a patient's name based on input from the user. My goal is a lookup based on the first...
2
5,499
thread by: amjadcsu | last post Oct 31 '07 by: Yu-Xi Lim
Hello, I have a network on same subnet. I have an ip address of a machine. but i need to get its MAC Adress. Sendingf ARP request is the way i am taking. IS there any other way to get this MAC Adress in python.?? Also does python go down to level 2 of TCP/IP model??
0
1,056
thread by: johnbadawi79 | last post Oct 31 '07 by: johnbadawi79
NEW INVENTED CAR INSURANCE FOR YOUR CAR New invented car insurance option to add for your ride http://www.dream-cars.bravehost.com
59
5,819
thread by: Py-Fun | last post Oct 31 '07 by: Gabriel Genellina
I'm stuck trying to write a function that generates a factorial of a number using iteration and not recursion. Any simple ideas would be appreciated.
0
1,008
thread by: Grzegorz Makarewicz | last post Oct 31 '07 by: Grzegorz Makarewicz
simple data for simple test - my version fails after 10 loops after removing sgmlop.pyd from DLLs - everything is working as expected mak #python data='''\ <?xml version="1.0"?> <methodCall> <methodName>mws.ScannerLogout</methodName>
1
3,920
thread by: sberry | last post Oct 31 '07 by: sberry
I have an Adobe InDesign server running that includes a built-in SOAP server. The wsdl is located here: http://www.seanberry.com/IDSP.wsdl. I have a PHP example that looks like this for calling the SOAP function runScriptParameters //--------------------------------------------------------------------------- $scriptArgs = array();...
5
4,931
thread by: amjadcsu | last post Oct 30 '07 by: Stefan Behnel
I am a newbie in python I am trying to parse a xml file and write its content in a txt file. The txt contains null elements. Any reason what iam doing wrong here Here is the code that i wrote import sys,os import xml.sax import xml.sax.handler
16
1,367
thread by: Donn Ingle | last post Oct 30 '07 by: George Sakkis
Hello, Is there a way I can, for debugging, access the instance variable name from within a class? E.g: Class X: def debug(self): print "My instance var is %s" % (some magic Python stuff) So that:
1
4,278
thread by: getafixx | last post Oct 30 '07 by: bartonc
Hello everyone, We have a linux server (Fedora core 7, default install, firewall turned off) and a bunch of windows XP machines on network/domain. All machines are visible and I can get to both windows and linux by various methods. We are trying to resolve a problem of not being able to connect to the linux box from the xp machines using...
10
2,083
thread by: exodus | last post Oct 30 '07 by: bartonc
As a fun little task to gain more knowledge of python, i decided to try to mimick the ipod UI with it. here's what i've got so far #!/usr/bin/env python # -*- coding: utf-8 -*- # generated by wxGlade 0.5 on Sat Oct 27 15:46:36 2007 import wx, os, pygame pygame.init() class MyFrame2(wx.MDIChildFrame):
7
4,351
thread by: plumb and tree | last post Oct 30 '07 by: MrJean1
I've been trying for days to build 64 bit python with Solaris 10 + Sun Studio 12. Can anyone helpl please. This is how I tried to do build: # ./configure --prefix=/opt/python2.4 --without-gcc --enable-shared checking MACHDEP... sunos5 checking EXTRAPLATDIR...
0
931
thread by: Oleg Broytmann | last post Oct 30 '07 by: Oleg Broytmann
Hello! I'm pleased to announce the 0.7.9 release of SQLObject. What is SQLObject ================= SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get started with.
0
898
thread by: Oleg Broytmann | last post Oct 30 '07 by: Oleg Broytmann
Hello! I'm pleased to announce the 0.8.6 release of SQLObject. What is SQLObject ================= SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be
0
918
thread by: Oleg Broytmann | last post Oct 30 '07 by: Oleg Broytmann
Hello! I'm pleased to announce the 0.9.2 release of SQLObject. What is SQLObject ================= SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be
1
1,239
thread by: JoeSox | last post Oct 30 '07 by: Aahz
I have two threads going class guiThread(threading.Thread) class mainThread(threading.Thread) Within the guiThread, I have an instance of class GUIFramework(Frame) in this Tkinter instance I have a ListBox. The second thread, mainThread, has an instance of a custom class the will need to send out text or other objects to the gui.
0
1,000
thread by: Jean-Paul Calderone | last post Oct 30 '07 by: Jean-Paul Calderone
On Tue, 30 Oct 2007 14:09:39 -0000, Steven D'Aprano <steve@remove-this-cybersource.com.auwrote: If you have some time to experiment, PyPy has some support for logic programming with Python. http://codespeak.net/pypy/dist/pypy/doc/objspace-proxies.html#the-logic-object-space Jean-Paul
0
1,340
thread by: Charles Fox | last post Oct 30 '07 by: Charles Fox
Hi guys, I'm playing with Python in emacs, with python mode. I'd like to be able to press a key to toggle the code comments on and off -- to switch between beautiful clean Python code, and the full text that tells me what's going in in English. Is this currently possible? I know there is a hide/show mode in emacs, it would need to be...
2
1,165
thread by: Martin Marcher | last post Oct 30 '07 by: Martin Sand Christensen
Hello, more a recipe question. I'm working on a proxy that will download a file for a client. The thing that doesn't yield problems is: Alice (Client) Bob (Client) Sam (Server) 1 Alice asks Sam for "foobar.iso"
3
3,004
thread by: writeson | last post Oct 30 '07 by: BartlebyScrivener
Hi all, At work we're using python2.3 and I'd like to start getting us moved up to python2.5. We run Centos4 which is the free, open source version of RedHat Enterprise. I've got python2.5 installed on this machine, but am stuck trying to get mysqldb installed and running on this machine. I've tried with easy_install and by building from...
17
2,323
thread by: Sunburned Surveyor | last post Oct 30 '07 by: Chris Mellon
I was thinking of a way I could make writing Python Class Files a little less painful. I was considering a Ptyhon script that read a file with a list of property names and method names and then generated a skeleton class file. I was even thinking of automatically generating the shell for doc strings and epydoc tags. Is there existing...
7
1,901
thread by: GHZ | last post Oct 30 '07 by: GHZ
Is this the best way to test every item in a list? def alltrue(f,l): return reduce(bool.__and__,map(f,l)) def onetrue(f,l): return reduce(bool.__or__,map(f,l)) False
11
20,823
thread by: Dick Moores | last post Oct 30 '07 by: Gabriel Genellina
Windows XP Pro, Python 2.5.1 import msvcrt while True: if msvcrt.kbhit(): key = msvcrt.getch() if key == 'Enter' do something Is there a way to catch the pressing of the 'Enter' key?

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.