473,543 Members | 3,135 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
3,099
thread by: Jimmy Retzlaff | last post Nov 16 '08 by: Jimmy Retzlaff
py2exe 0.6.9 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported. Changes in 0.6.9:
0
1,591
thread by: =?GB2312?B?0rvK18qr?= | last post Nov 16 '08 by: =?GB2312?B?0rvK18qr?=
Hi all, Recently I am writing more codes in python with vim so I made some search for python auto completion plugins. Finally I found pydcition: http://www.vim.org/scripts/script.php?script_id=850 Anyway, it works. But I met one problem. After you have set
0
1,116
thread by: Steve Holden | last post Nov 16 '08 by: Steve Holden
Mr.SpOOn wrote: By default Python uses the built-in "cmp()" function to compare pairs of elements during its sorts. You can use the "cmp=f" argument to sort to replace it with your own function, but if this is a Python function the comparison *will* be slower. Alternatively for can provide a "key=f" argument; in this case before beginning...
0
1,014
thread by: Chris Rebert | last post Nov 16 '08 by: Chris Rebert
On Sun, Nov 16, 2008 at 8:16 AM, Mr. SpOOn <mr.spoon21@gmail.comwrote: It uses the comparison operators. IIRC, at a minimum it needs __lt__ and __eq__ to be defined on the elements. You should probably use the `bisect` module (http://docs.python.org/library/bisect.html) for searching and inserting into the list as it takes advantage of...
0
1,712
thread by: Orestis Markou | last post Nov 16 '08 by: Orestis Markou
I'm very proud to announce the release of PySmell v0.7.2, now with extra goodness. Changes: * TextMate's dialog no longer errors when dealing with a huge number of entries. * New --input allows mutation of existing PYSMELLTAGS file; useful to run after a file is saved * Analyze the current file when detecting completion type; more up-
0
1,040
thread by: Matthew Wilson | last post Nov 17 '08 by: Matthew Wilson
I want to write some middleware to notice when the inner app returns a 500 status code. I'm sure there are already sophisticated loggers that do this sort of thing, but I'm using this as a learning exercise. Right now, I wrapped the start_response callable. So when the WSGI application calls the start response callable, I look at the first...
0
955
thread by: Chris Spencer | last post Nov 17 '08 by: Chris Spencer
After I "compile" my program with py2exe 0.6.9 with Python 2.6, I'm still getting the "Application Did Not Initialize Properly" error dialog whenever I run my code. What am I doing wrong? Note that py2exe 0.6.9 with Python 2.5 works just fine. Help! Chris.
0
1,329
thread by: vmars956 | last post Nov 17 '08 by: vmars956
Greetings: The following files are all ' *.file ' . This seems wrong. They all contain similar to this: #!/usr/bin/env python from wx.tools.XRCed.xrced import main main() What are they, and can I rename to: *.py or *.pyw ?
0
2,695
thread by: Mark Hammond | last post Nov 17 '08 by: Mark Hammond
After I "compile" my program with py2exe 0.6.9 with Python 2.6, I'm This probably means the Microsoft VC90 binaries aren't installed globally on your machine - which would imply they are installed locally in the \Python26 directory by the python 2.6 installer (I haven't checked that though - I tend to not use the installers). In that case,...
0
993
thread by: ryan payton | last post Nov 17 '08 by: ryan payton
I still need help with a PP3E error I am getting in my 'PyEdit' program I have from Progamming Python 3rd Edition. I am working on a mac and the error is coming from: from PP3E.Gui.Tools.guimaker import *
0
523
thread by: Gabriel Genellina | last post Nov 17 '08 by: Gabriel Genellina
En Mon, 17 Nov 2008 03:32:35 -0200, ryan payton <silas428@gmail.com> escribió: Please provide more info, like the whole traceback you got. -- Gabriel Genellina
0
967
thread by: Reimar Bauer | last post Nov 17 '08 by: Reimar Bauer
Hi does one know a project / tool which can be embedded (or interact with) into a webpage and does read and save svg files? cheers Reimar
0
1,381
thread by: Steve Holden | last post Nov 17 '08 by: Steve Holden
ganesh gajre wrote: You are getting too ambitious. Text files don't have any font information associated with them. Not only that, but the encoding of Unicode character data is independent of the font used to render the readable glyphs as text. This makes it look as though you don't really know what you are doing. Perhaps you should...
0
476
thread by: ryan payton | last post Nov 17 '08 by: ryan payton
sorry: Traceback (most recent call last): File "texteditor.py", line 460, in <module> class TextEditorMain(TextEditor, GuiMakerWindowMenu): NameError: name 'GuiMakerWindowMenu' is not defined On Nov 16, 2008, at 10:14 PM, Gabriel Genellina wrote:
0
1,290
thread by: Tim Golden | last post Nov 17 '08 by: Tim Golden
Darren Mansell wrote: This is a bit of a non-answer but... use pyodbc, use NVARCHAR cols, and use unicode values on insert: <code> import pyodbc import unicodedata
0
1,303
thread by: Darren Mansell | last post Nov 17 '08 by: Darren Mansell
On Mon, 2008-11-17 at 15:24 +0000, Tim Golden wrote: Thanks for the help. Unfortunately pyodbc seems to only work on Windows. I need to connect to the SQL server from a Linux box. The db schema is very set in stone, I can't do anything with it. I'm currently opening autogenerated SQL scripts, decoding them from utf-16 and then back into...
0
1,258
thread by: CarlFK | last post Nov 17 '08 by: CarlFK
I need some code that will read in grubs menu.lst file, and give me a list of dicts: I am not really sure what the rules are, like does it have to have a title, and do blank lines mean anything? so 1/2 of what I am looking for is something that already knows what the rules are. What I really want to parse is pxelinux.cfg/default file...
0
1,576
thread by: Chris Rebert | last post Nov 17 '08 by: Chris Rebert
On Mon, Nov 17, 2008 at 10:42 AM, Abah Joseph <joefazee@gmail.comwrote: Have you considered basing this off existing software for schools, like one of the programs listed on http://en.wikipedia.org/wiki/Learning_management_system ? Sounds like one hell of a project. Are you sure you aren't encountering the Second System Effect...
0
1,128
thread by: godavemon | last post Nov 17 '08 by: godavemon
I'm using urllib2 to pull pages for a custom version of a web proxy and am having issues with 404 errors. Urllib2 does a great job of letting me know that a 404 happened with the following code. import urllib2 url = 'http://cnn.com/asfsdafsadfasdf/' try: page = urllib2.urlopen( url ) except urllib2.URLError, e: print e
0
1,017
thread by: John Machin | last post Nov 17 '08 by: John Machin
On Nov 18, 9:26*am, Robocop <btha...@physics.ucsd.eduwrote: The "extra" newline is inserted by the print statement. To see unambiguously what you've got, do print repr(line) Yes. It's part of the line (if it exists; the last line in a file may not have a newline at the end).
0
1,491
thread by: Albert Hopkins | last post Nov 17 '08 by: Albert Hopkins
On Mon, 2008-11-17 at 15:27 -0800, rowen wrote: subprocess.call = call(*popenargs, **kwargs) Run command with arguments. Wait for command to complete, then return the returncode attribute. The arguments are the same as for the Popen constructor. Example: retcode = call()
0
1,990
thread by: Gabriel Genellina | last post Nov 18 '08 by: Gabriel Genellina
En Mon, 17 Nov 2008 13:16:10 -0200, ryan payton <silas428@gmail.com> escribió: Please follow the instructions on the book, or read the README-PP3E.txt file; below I copy the most relevant parts: """Copy the entire PP3E directory tree to some directory on your computer, and add the name of the directory containing PP3E to your module...
0
2,570
thread by: Mailing List SVR | last post Nov 18 '08 by: Mailing List SVR
Ok thanks, for the records here is the python code to be compatible with java sha1withrsa: import M2Crypto md=M2Crypto.EVP.MessageDigest('sha1') md.update(clearpass) p=md.digest()
0
1,046
thread by: Albert Hopkins | last post Nov 18 '08 by: Albert Hopkins
On Tue, 2008-11-18 at 04:36 -0800, gaurav kashyap wrote: os.chmod = chmod(...) chmod(path, mode) Change the access permissions of a file.
0
1,015
thread by: Jeff Tchang | last post Nov 18 '08 by: Jeff Tchang
Odd issue I am having with class instantiation on Python 2.5.2 (Windows). I have a custom module with a few classes in it. The module is named SAML.py. There is a copy of it in C:\Python25\Lib\site-packages\SAML.py. Basically when I try to run a python file that tries to create an instance of the class Subject I get this error:...

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.