Re: Python Plugin for Web Browser

2006-12-05 Thread MC
Bonjour ! Pour IE, il y a des exemples de plugins, fournis avec PyWin32. Pour FF (comme pour Opera), je ne sais pas. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Python Plugin for Web Browser

2006-12-05 Thread Sébastien Ramage
I've an idea and I've made some search but I found nothing really interesting. There is somebody who have (or can help me to) try to developp a python plugin for web browser just like java ?? I search an how-to for creating a plugin for Firefox and only find how create extension... I've find some

Adults Only! 96112

2006-12-05 Thread Chrismdgr
-- http://mail.python.org/mailman/listinfo/python-list

CVXOPT

2006-12-05 Thread [EMAIL PROTECTED]
Hi, I want to use CVXOPT for my optimization problem but I am not able to find a good tutorial for that. Can someone give me a good link or tell me some basic steps how to write a simple code for a problem like following: min c'x subject to: x'Ax=0 x'Bx=b Thanks Amit -- http://

Re: What are python closures realy like?

2006-12-05 Thread Paddy
Karl Kofnarson wrote: > > Karl, > > > > Usually when using this idiom, fun_basket would return a tuple of all of the > > defined functions, rather than one vs. the other. So in place of: > >>if f == 1: > >>return f1 > >>if f == 2: > >>return f2 > > Just do > >>return

ANN: M2Crypto 0.17beta1

2006-12-05 Thread Heikki Toivonen
First beta of M2Crypto 0.17 is available for testing. This is a pretty minor release compared to the previous one. The planned release date is December 15, 2006. Please try this beta out and let me know if there are any issues. Homepage has information on how to get the source and how to report bu

Re: Subprocess with a Python Session?

2006-12-05 Thread Nick Craig-Wood
Calvin Spealman <[EMAIL PROTECTED]> wrote: > No matter what I do I cant get the following code to do what I expect. > I hadn't used subprocess t o read and write to pipes of a > still-running app, and I just can't seem to get it right. What gives? > > import subprocess > > p = subprocess.Pop

Re: how to invoke the shell command and then get the result in python

2006-12-05 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Assuming the script isn't setuid, this would do no more damage than the > user could do directly on the command line. except that when the user is typing things into the command line, he *knows* that he's typing things into the command line. -- http://mail.python.o

Re: Looking for a decent HTML parser for Python...

2006-12-05 Thread Fredrik Lundh
> Except it appears to be buggy or, at least, not very robust. There are > websites for which it falsely terminates early in the parsing. which probably means that the sites are broken. the amount of broken HTML on the net is staggering, as is the amount of code in a typical web browser

Re: Coding standards without control?

2006-12-05 Thread Stephan Kuhagen
Soni Bergraj wrote: > editormt wrote: >> A majority of the participating organisations have coding standards... >> and a majority does not control them ;o) What is the situation at your >> location? Does this lack of control really hurt? > > """A Foolish Consistency is the Hobgoblin of Little Min

Re: Looking for a decent HTML parser for Python...

2006-12-05 Thread Just Another Victim of the Ambient Morality
"Just Another Victim of the Ambient Morality" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >Okay, I think I found what I'm looking for in HTMLParser in the > HTMLParser module. Except it appears to be buggy or, at least, not very robust. There are websites for which i

Re: PythonTidy

2006-12-05 Thread Chuck Rhode
Thomas Heller wrote this on Tue, Dec 05, 2006 at 07:06:30PM +0100. My reply is below. > I suggest you open the file with open(input-file, "rU"). This doesn't work so pretty good while reading from sys.stdin, so I'm still at the drawing board. -- .. Chuck Rhode, Sheboygan, WI, USA .. 1979 Honda

Re: Ensure a variable is divisible by 4

2006-12-05 Thread Jonathan Smith
MRAB wrote: >> if ( x % 4 ) == 0: >> whatever # x is divisible by 4 >> >> modulus is your friend :) >> >> -smithj > > > It's "modulo"; "modulus" is a different operation. > > Wikipedia says "modulus may refer to... %, the modulo operator of various programming languages" http://en.wikip

PyQt, designer, and directional flow

2006-12-05 Thread borntonetwork
I am creating a simple form using designer (qt4) on Ubuntu. I use pyuic to create a python script from the form. I run the script and the form shows up fine. The idiosyncrasy occurs when I try to type text into a QTextEntry widget. The text is right-aligned, not left-aligned as I had set it up in t

Re: Looking for a decent HTML parser for Python...

2006-12-05 Thread Just Another Victim of the Ambient Morality
"Just Another Victim of the Ambient Morality" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I'm trying to parse HTML in a very generic way. >So far, I'm using SGMLParser in the sgmllib module. The problem is > that it forces you to parse very specific tags through object

Re: Tkinter on Silicon Graphics machine?

2006-12-05 Thread [EMAIL PROTECTED]
David Lees wrote: > Does anyone have advice on installing Tkinter on s Silicon Graphics > machine (under IRIX 6, I think). The SysAdmin at work build Python 2.4.3 > for me on the SGI box, but it does not have Tkinter. Are there any > prebuilt distributions for SGI machines that include Tkinter? >

Re: PythonTidy

2006-12-05 Thread Chuck Rhode
rzed wrote this on Tue, Dec 05, 2006 at 08:19:28PM -0500. My reply is below. > I ran PythonTidy on a wxPython sample, and found that wx.CONSTANTS > were being translated to wx.Constants, which won't do at all. Find the first line in the PythonTidy code where the following global variables are d

Looking for a decent HTML parser for Python...

2006-12-05 Thread Just Another Victim of the Ambient Morality
I'm trying to parse HTML in a very generic way. So far, I'm using SGMLParser in the sgmllib module. The problem is that it forces you to parse very specific tags through object methods like start_a(), start_p() and the like, forcing you to know exactly which tags you want to handle. I

Inheritance problem. Creating an instance.

2006-12-05 Thread .nu
#!/usr/bin/env python # -*- coding: utf-8 -*- # Name: Sleepy Hollow # Author: .nu import wx import os import sys NEW_ID = 1; OPEN_ID = 2; SAVE_ID = 3; SAVE_AS_ID = 4; QUIT_ID = 5; UNDO_ID = 6; REDO_ID = 7; HELPME_ID = 8; ABOUT_ID = 9; OPTIONS_ID = 10 APP_NAME = 'Sleepy Hollow' class SleepyHoll

X11 bitmap image conversion problem

2006-12-05 Thread Craig
Hi there, This could be a curly question. When I created the x11 bitmap image using the im.tobitmap() function I found out later that the display information in the array is big endian (I think) but I want little endian. Basically if an image byte in the X11 format is 0001 (0x3D), I want 101

Tkinter on Silicon Graphics machine?

2006-12-05 Thread David Lees
Does anyone have advice on installing Tkinter on s Silicon Graphics machine (under IRIX 6, I think). The SysAdmin at work build Python 2.4.3 for me on the SGI box, but it does not have Tkinter. Are there any prebuilt distributions for SGI machines that include Tkinter? TIA david lees -- http

Re: Submitting change requests through correct channels

2006-12-05 Thread Ben Finney
Fredrik Lundh <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > > I hope that, instead, it's possible to perform the research needed > > to describe the requested change, submit it as an email or online > > form > > are you perhaps volunteering to help setup and monitoring such a > sub- mission

Re: Opening colour BMPs with PIL

2006-12-05 Thread Craig
Fredrik Lundh wrote: > Craig wrote: > > > I'm trying to open colour BMPs using PIL and I'm getting the following > > errors. > > what program did you use to produce those BMP files? can you prepare > reasonably small samples using the same program and post them somewhere? > > Thanks for the rep

Re: how to invoke the shell command and then get the result in python

2006-12-05 Thread [EMAIL PROTECTED]
Nick Craig-Wood wrote: > > What if I entered "; rm -rf * ;" as my pattern? > Assuming the script isn't setuid, this would do no more damage than the user could do directly on the command line. I agree, when dealing with web applications or setuid programs, direct shell access isn't a good idea.

Parsing data from pyserial (final resolution)

2006-12-05 Thread Lone Wolf
After going back and reading everybody's suggestions, I finally got a simple, efficient solution. As was pointed out to me in several posts, I needed to use readline rather than read. That's obvious to me now ... but isn't everything obvious once you understand it :) Anyway, I am posting my code o

List of Events in wxPython

2006-12-05 Thread Jacksondf
What is that procedure for determining which events can be binded for a particular widget? The docs don't seem to help. For example, how can I know which events wx.SpinButton will send. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonTidy

2006-12-05 Thread rzed
Chuck Rhode <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > That went well. PythonTidy has been looked at at least 10**2 > times, and I have received a couple of complaints, which I hope > I have addressed satisfactorily -- plenty good enough for a beta > test. The basic concept stands.

Re: Mod_python vs. application server like CherryPy?

2006-12-05 Thread fumanchu
Vincent Delporte wrote: > I'm still a newbie when it comes to web applications, so would like > some help in choosing a solution to write apps with Python: What's the > difference between using running it through mod_python vs. building an > application server using Python-based tools like CherryPy

Re: newb: Join two string variables

2006-12-05 Thread John Machin
johnny wrote: > In my code, I have the following: > > p = posixpath.basename(e).strip > filename = download_dir+p > > I am getting the following error: > > filename = download_dir+p > TypeError: cannot concatenate 'str' and 'builtin_function_or_method' > objects > > You need to *call* the strip

Re: newb: Join two string variables

2006-12-05 Thread Robert Bauck Hamar
johnny wrote: Please don't top post. Arrange your answer so that your comments follow what you comment. > In my code, I have the following: > > p = posixpath.basename(e).strip make this: p = posixpath.basename(e).strip() > filename = download_dir+p > > I am getting the following error: > >

Re: newb: Join two string variables

2006-12-05 Thread johnny
In my code, I have the following: p = posixpath.basename(e).strip filename = download_dir+p I am getting the following error: filename = download_dir+p TypeError: cannot concatenate 'str' and 'builtin_function_or_method' objects Cameron Walsh wrote: > johnny wrote: > > How do I join two strin

Re: newb: Join two string variables

2006-12-05 Thread Cameron Walsh
johnny wrote: > How do I join two string variables? > I want to do: download_dir + filename. > download_dir=r'c:/download/' > filename =r'log.txt' > > I want to get something like this: > c:/download/log.txt > Hi Johnny, This is actually two questions: 1.) How do I concatenate strings 2.)

Re: newb: Join two string variables

2006-12-05 Thread Fuzzyman
johnny wrote: > How do I join two string variables? > I want to do: download_dir + filename. That should do it. :-) You can concatenate strings using the plus operator. For large number of strings it is very inefficient. (Particularly in versions of Python pre 2.4 or in IronPython.) For these

Mod_python vs. application server like CherryPy?

2006-12-05 Thread Vincent Delporte
Hi I'm still a newbie when it comes to web applications, so would like some help in choosing a solution to write apps with Python: What's the difference between using running it through mod_python vs. building an application server using Python-based tools like CherryPy, Quixote, Draco, etc.? Tha

newb: Join two string variables

2006-12-05 Thread johnny
How do I join two string variables? I want to do: download_dir + filename. download_dir=r'c:/download/' filename =r'log.txt' I want to get something like this: c:/download/log.txt -- http://mail.python.org/mailman/listinfo/python-list

Re: Ensure a variable is divisible by 4

2006-12-05 Thread MRAB
Jonathan Smith wrote: > > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> I am sure this is a basic math issue, but is there a better way to > >> ensure an int variable is divisible by 4 than by doing the following; > >> > >> x = 111 > >> x = (x /4) * 4 > >> > >> Just seems a

Internet Gambling Losses Refunded

2006-12-05 Thread Stephen . Egan
Greetings, I came across your ad via Google Search and wanted to inquire about your services. I am hoping to recover my losses from online gaming Please Contact me as soon as possible Regards, Steve Egan Disclaimer "The inf

pyopengl glShaderSourceARB error

2006-12-05 Thread joroy
Hi all, I think this is ctypes related but how can I call the glShaderSourceARB function? The function have this header: glShaderSourceARB( GLhandleARB(shaderObj), GLsizei(count), POINTER(arrays.GLcharARBArray)(string), GLintArray(length) ) -> None I call the function with someting like: glShad

Re: About the 79 character line recommendation

2006-12-05 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Steve Bergman wrote: > While I'm on this general topic, the guide mentions a pet peeve about > inserting more than one space to line up the "=" in assignment > statements. To me, lining them up, even if it requires quite a few > extra spaces, helps readability quite a bit.

Re: Cross-platform issue with wxRadioBox

2006-12-05 Thread eugene . gokhvat
I have updated my script to use wx.RadioButton instead, which works perfectly on my mac again, but now the submit button doesn't show up on the pc and I can't click in the netid field on the pc either. any ideas? # BEGIN CODE import wx; SUBMIT_BUTTON = wx.ID_HIGHEST + 10; class regFrame(wx.Fram

Copy vs Deepcopy in multithreaded contexts

2006-12-05 Thread Carl . Wolff
Helloquestion about copy vs deepcopy used in multithreaded context:suppose the following program below:the original dictionary is modified after the thread is started, the thread works on a copied and deepcopied version of the original dictionary. Is the dictionary named "originalcopy" isolated fro

Re: About the 79 character line recommendation

2006-12-05 Thread Steve Bergman
Thanks for the responses. The point about 132 columns is good. Pretty much any printer will handle that today, though I reserve the right to change my mind about the utility of 17cpi print after I'm 50. Hopefully, all printers will be at least 1200dpi by then. ;-) --- Yes, I dislike "\" for co

Re: Does this always go right

2006-12-05 Thread Gabriel Genellina
At Tuesday 5/12/2006 12:04, [EMAIL PROTECTED] wrote: question about copy vs deepcopy used in multithreaded context: suppose the following program below: the original dictionary is modified after the thread is started, the thread works on a copied and deepcopied version of the original dictio

Re: Multiple FTP download using Muliti thread

2006-12-05 Thread johnny
Ok I fixed it. Needed to put in username, and password in the c.login inside while True loop. while True: host, e = tq.get() c = ftplib.FTP(host) c.connect() try: c.login() p = posixpath.basename(e) fp = open('H:/eclipse/workspac

Re: Ensure a variable is divisible by 4

2006-12-05 Thread david brochu jr
You can use the modulous "%" to check for a remainder of division. If no remainder is found you know the number is divisible by 4. Ex: x = 111 if x%4 == 0: print "X is divisible by 4" -- Forwarded message -- From: "John Machin" <[EMAIL PROTECTED]> To: python-list@python.org D

RE: About the 79 character line recommendation

2006-12-05 Thread Olivier Langlois
Hi, There was a coding standard where I worked and the intention behind this requirement was to make the code printer friendly. Printing code source with lines longer than 80 chars greatly hinder readability on paper. Greetings, Olivier Langlois http://www.olivierlanglois.net > > I also think th

Re: About the 79 character line recommendation

2006-12-05 Thread Virgil Dupras
Steve Bergman wrote: > As I study Python, I am trying to develop good, Pythonic, habits. For > one thing, I am trying to keep Guido's the style guide in mind. > > And I know that it starts out saying that it should not be applied in > an absolute fashion. > > However, I am finding that the 79 char

Re: logo design

2006-12-05 Thread Ken Tilton
Xah Lee wrote: > Logo LISP > > Xah Lee, 2006-12 > > Ken Tilton wrote: > > «Small problem. You forget that Ron Garret wants us to change the > name of Common Lisp as the sure-fire way to make it more popular (well, > hang on, he says it is necessary, not sufficient. Anyway...) I do not > th

Re: Subprocess with a Python Session?

2006-12-05 Thread Shane Hathaway
Calvin Spealman wrote: > No matter what I do I cant get the following code to do what I expect. > I hadn't used subprocess t o read and write to pipes of a > still-running app, and I just can't seem to get it right. What gives? > > import subprocess > > p = subprocess.Popen("python", stdout=subpr

Re: Subprocess with a Python Session?

2006-12-05 Thread Calvin Spealman
On 12/5/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Calvin Spealman wrote: > > > No matter what I do I cant get the following code to do what I expect. > > I hadn't used subprocess t o read and write to pipes of a > > still-running app, and I just can't seem to get it right. What gives? > > > >

Re: Ensure a variable is divisible by 4

2006-12-05 Thread John Machin
Paul Rudin wrote: > Max M <[EMAIL PROTECTED]> writes: > > > [EMAIL PROTECTED] skrev: > >> Nick Craig-Wood wrote: > >>> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am sure this is a basic math issue, but is there a better way to > ensure an int variable is divisible by 4 than by do

Re: Linear regression in NumPy

2006-12-05 Thread Robert Kern
Jianzhong Liu wrote: > Hello, Guys, > > I have a question about the linear_least_squares in Numpy. > > My linear_least_squares cannot give me the results. > > I use Numpy1.0. The newest version. So I checked online and get your > guys some examples. The package name for numpy 1.0 is "numpy", no

Re: About the 79 character line recommendation

2006-12-05 Thread John Machin
Steve Bergman wrote: [snip] > However, I am finding that the 79 character line prescription is not > optimal for readability. > > Certainly, cutting back from the length of lines that I used to use has > *helped* readability. But if I triy very hard to apply 79, I think > readability suffers. If

Re: Subprocess with a Python Session?

2006-12-05 Thread Fredrik Lundh
Calvin Spealman wrote: > No matter what I do I cant get the following code to do what I expect. > I hadn't used subprocess t o read and write to pipes of a > still-running app, and I just can't seem to get it right. What gives? > > import subprocess > > p = subprocess.Popen("python", stdout=subp

Subprocess with a Python Session?

2006-12-05 Thread Calvin Spealman
No matter what I do I cant get the following code to do what I expect. I hadn't used subprocess t o read and write to pipes of a still-running app, and I just can't seem to get it right. What gives? import subprocess p = subprocess.Popen("python", stdout=subprocess.PIPE, stdin=subprocess.PIPE) p.

Re: Linear regression in NumPy

2006-12-05 Thread Jon
> I have a question about the linear_least_squares in Numpy. Not quite sure what is going on, it looks like there could be some confusion as to linear_least_squares is expecting as an argument of some Numeric arrays and what you are supplying (a Matrix) is perhaps not close enough to being the sam

Re: About the 79 character line recommendation

2006-12-05 Thread Stephen Hansen
On 5 Dec 2006 09:55:20 -0800, Steve Bergman <[EMAIL PROTECTED]> wrote: However, I am finding that the 79 character line prescription is not optimal for readability. For me, 79 characters per line... would basically make my code a LOT harder for me to read and manage. I mean, a basic structur

Re: logo design

2006-12-05 Thread Diez B. Roggisch
> > Web-badges serve slightly different purpose than logos. It is more for > the purpose of promotion, than representation. For the same reason, > there are mascots. For example, Java the language, has a official logo > of a smoking coffee cup, but also has a mascot of a penguin named > “Duke”. h

Re: Multiple FTP download using Muliti thread

2006-12-05 Thread johnny
I am getting the following error: raise error_temp, resp error_temp: 421 Unable to set up secure anonymous FTP Here is the code: import ftplib, posixpath, threading from TaskQueue import TaskQueue def worker(tq): while True: host, e = tq.get() c = ftplib.FTP(host)

Re: About the 79 character line recommendation

2006-12-05 Thread sam
Steve Bergman wrote: > As I study Python, I am trying to develop good, Pythonic, habits. For > one thing, I am trying to keep Guido's the style guide in mind. > > And I know that it starts out saying that it should not be applied in > an absolute fashion. > > However, I am finding that the 79 cha

Re: PythonTidy

2006-12-05 Thread Thomas Heller
Chuck Rhode schrieb: > That went well. PythonTidy has been looked at at least 10**2 times, > and I have received a couple of complaints, which I hope I have > addressed satisfactorily -- plenty good enough for a beta test. The > basic concept stands. Sure. There is still one major issue. python

About the 79 character line recommendation

2006-12-05 Thread Steve Bergman
As I study Python, I am trying to develop good, Pythonic, habits. For one thing, I am trying to keep Guido's the style guide in mind. And I know that it starts out saying that it should not be applied in an absolute fashion. However, I am finding that the 79 character line prescription is not op

Re: Why not just show the out-of-range index?

2006-12-05 Thread rurpy
Russ wrote: > Folks, > > I'm truly sorry that so many feathers got ruffled in this thread. Let's > see if I can put this thing to rest gracefully. I too am tired of this and I apologize to you (Russ) for jumping into it and for this (hopefullly last) followup. But the same thing happened here a

Re: Thread error

2006-12-05 Thread Salvatore Di Fazio
Dennis Lee Bieber ha scritto: > Ah, sorry... Warned you that I didn't test... > > Duplicate the block of lines with the .join() calls. Put this block > just before them, but after the threading.Thread calls, and change the > .join() to .start() Tnx Dennis I resolved yesterday after th

Linear regression in NumPy

2006-12-05 Thread Jianzhong Liu
Hello, Guys, I have a question about the linear_least_squares in Numpy. My linear_least_squares cannot give me the results. I use Numpy1.0. The newest version. So I checked online and get your guys some examples. I did like this. [EMAIL PROTECTED] 77] ~ >> py Python 2.4.3 (#1, May 18 2006,

[ANN] argparse 0.3 - Command-line parsing library

2006-12-05 Thread Steven Bethard
Announcing argparse 0.3 --- argparse home: http://argparse.python-hosting.com/ argparse single module download: http://argparse.python-hosting.com/file/trunk/argparse.py?format=raw argparse bundled downloads at PyPI: http://www.python.org/pypi/argparse/ About thi

Re: About alternatives to Matlab

2006-12-05 Thread Mark Morss
Carl, I agree with practically everything you say about the choice between Python and functional languages, but apropos of Ocaml, not these remarks: > > In the same way that a screwdriver can't prevent you from driving a > nail. Give me a break, we all know these guys (Haskell especially) are >

Re: Why not just show the out-of-range index?

2006-12-05 Thread Russ
stdazi wrote: > Usually, when I make some coding mistake (index out of range - in this > case) I just care to fix the mistake and I usually don't mind to > inspect by how much the index was overflowed. It really seems like a > feature that should be embedded in some Python debugger than a feature >

PyPy Leysin Winter Sports Sprint (8-14th January 2007)

2006-12-05 Thread Carl Friedrich Bolz
= PyPy Leysin Winter Sports Sprint (8-14th January 2007) = .. image:: http://www.ermina.ch/002.JPG The next PyPy sprint will

Re: win32 com problem

2006-12-05 Thread Mike P
No Problem, Thanks for your help so far, i've sent this problem off to SPSS as it seems it doesn't work on a work colleagues machine either Thanks for your time though Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: The del statement

2006-12-05 Thread Sion Arrowsmith
Marco Aschwanden <[EMAIL PROTECTED]> wrote: [ ... ] >> so what about >> >> del x > >Ups. I never used it for an object. So far I only used it for deletion of >elements of a container. In that case del has two purposes: > >1. Deletes an item from a container (and of course destructs it) -->

Re: decorators question

2006-12-05 Thread king kikapu
>you're not listening. Be sure that i do...The fact that i come from another world does not mean that i am not listening, just that i find as strange some (new) things. Thank you all guys, i know what is happening now... Thanks again! kikapu -- http://mail.python.org/mailman/listinfo/python-

py2exe / Tkinter problem

2006-12-05 Thread maryannj
I've got a python GUI working with Tkinter, and I need to package it as an executable file, preferably a single file. I've got py2exe working without the 'bundle_files' option, but when I add that option in ("bundle_files": 1), the built executable gives me the following error: --

suppresing error pop-ups in Win32 app

2006-12-05 Thread Bart Ogryczak
Hi, I'm developing mixed Python/C app which runs on WinNT server. When something fails in Python, that´s not a problem, prints a traceback to the log and thats it. When something fails within the C code, the error message window pops up. To kill it I´ve got to access server with VNC. I´ve tried to

Re: Fw: [wxPython-users] 1>make_buildinfo.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] referenced in function _make_buildinfo2

2006-12-05 Thread Fredrik Lundh
etaoinbe wrote: > I have added advapi32 &user32. This is my current result : > > I am quite surprised there are so many issues with the solution file > that comes with python25. > I remember py23 built out of the box :( python 2.5 also builds out of the box, if you're using an ordinary visual s

Re: Fw: [wxPython-users] 1>make_buildinfo.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] referenced in function _make_buildinfo2

2006-12-05 Thread etaoinbe
I have added advapi32 &user32. This is my current result : I am quite surprised there are so many issues with the solution file that comes with python25. I remember py23 built out of the box :( 1>-- Build started: Project: make_versioninfo, Configuration: Debug Win32 -- 2>-- Build sta

Re: Printing unix Line endings from Windows.

2006-12-05 Thread Fredrik Lundh
Ant wrote: > Is it worth me submitting a patch to fileinput which can take an > optional write mode parameter? absolutely. -- http://mail.python.org/mailman/listinfo/python-list

Re: Monitoring number of smtp bytes sent through python e-mail socket

2006-12-05 Thread BJ Swope
BTW, I noticed a bunch of new line characters in your test message. If you ever send mail to a qmail server it will be rejected because rfc 821 says that new line characters cannot occur without a carriage return. So change all those \n's to \r\n's ;) -- We are all slave to our own paradigm. --

Re: Why not just show the out-of-range index?

2006-12-05 Thread Aahz
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > >(maybe I should stop using a threaded newsreader to read this group; >it's obvious that nobody else ever bothers to check what subthread a >message is appearing in.) Hey! I've been using trn3.6 for more than fifteen ye

Re: global name 'self' is not defined

2006-12-05 Thread Fredrik Lundh
Evan wrote: > A few questions: Why does python use the double underscore (__main__ or > if __name__)? I've only been using python for about 3 weeks, and I see > this syntax a lot, but haven't found an explanation for it so far? to quote the language reference, "System-defined names. These names

Re: Multiple FTP download using Muliti thread

2006-12-05 Thread Fredrik Lundh
johnny wrote: > It places the ftp downloaded contents on the same folder as the this > ftp python script. How do I set a diffrent download folder location? by prepending a directory name to the filename in the open(p, 'wb') call. -- http://mail.python.org/mailman/listinfo/python-list

Re: logo design

2006-12-05 Thread Xah Lee
Logo LISP Xah Lee, 2006-12 Ken Tilton wrote: «Small problem. You forget that Ron Garret wants us to change the name of Common Lisp as the sure-fire way to make it more popular (well, hang on, he says it is necessary, not sufficient. Anyway...) I do not think we can safely pick a new logo unt

Re: About alternatives to Matlab

2006-12-05 Thread Mark Morss
Hans >Langtangen<, rather. Mark Morss wrote: > I doubt that anyone would dispute that even as boosted by Numpy/Scipy, > Python will almost certainly be notably slower than moderately > well-written code in a compiled language. The reason Numpy exists, > however, is not to deliver the best possible

Re: About alternatives to Matlab

2006-12-05 Thread Mark Morss
I doubt that anyone would dispute that even as boosted by Numpy/Scipy, Python will almost certainly be notably slower than moderately well-written code in a compiled language. The reason Numpy exists, however, is not to deliver the best possible speed, but to deliver enough speed to make it possib

Does this always go right

2006-12-05 Thread Carl . Wolff
Hello question about copy vs deepcopy used in multithreaded context: suppose the following program below: the original dictionary is modified after the thread is started, the thread works on a copied and deepcopied version of the original dictionary. Is the dictionary named "originalcopy" iso

PythonTidy

2006-12-05 Thread Chuck Rhode
That went well. PythonTidy has been looked at at least 10**2 times, and I have received a couple of complaints, which I hope I have addressed satisfactorily -- plenty good enough for a beta test. The basic concept stands. PythonTidy.py cleans up, regularizes, and reformats the text of Python scr

Re: Why not just show the out-of-range index?

2006-12-05 Thread Thomas Ploch
stdazi wrote: > Usually, when I make some coding mistake (index out of range - in this > case) I just care to fix the mistake and I usually don't mind to > inspect by how much the index was overflowed. It really seems like a > feature that should be embedded in some Python debugger than a feature >

Re: Multiple FTP download using Muliti thread

2006-12-05 Thread johnny
It places the ftp downloaded contents on the same folder as the this ftp python script. How do I set a diffrent download folder location? johnny wrote: > It works using ftp.microsoft.com. But where does it put the downloaded > files? can I specify a download folder location? > > Justin Ezequiel w

Re: Multiple FTP download using Muliti thread

2006-12-05 Thread johnny
It works using ftp.microsoft.com. But where does it put the downloaded files? can I specify a download folder location? Justin Ezequiel wrote: > johnny wrote: > > When I run the following script, with host and password and username > > changed, I get the following errors: > > raise error_temp, res

Re: Ensure a variable is divisible by 4

2006-12-05 Thread Paul Rudin
Max M <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] skrev: >> Nick Craig-Wood wrote: >>> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am sure this is a basic math issue, but is there a better way to ensure an int variable is divisible by 4 than by doing the following; x

Re: Ensure a variable is divisible by 4

2006-12-05 Thread Max M
[EMAIL PROTECTED] skrev: > Nick Craig-Wood wrote: >> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> I am sure this is a basic math issue, but is there a better way to >>> ensure an int variable is divisible by 4 than by doing the following; >>> >>> x = 111 >>> x = (x /4) * 4 X *= 4 ;-) --

Re: Why not just show the out-of-range index?

2006-12-05 Thread Soni Bergraj
stdazi wrote: > It really seems like a > feature that should be embedded in some Python debugger than a feature > in the interpreter itself. +1 -- Soni Bergraj http://www.YouJoy.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not just show the out-of-range index?

2006-12-05 Thread stdazi
Usually, when I make some coding mistake (index out of range - in this case) I just care to fix the mistake and I usually don't mind to inspect by how much the index was overflowed. It really seems like a feature that should be embedded in some Python debugger than a feature in the interpreter itse

Re: memory error with matplot

2006-12-05 Thread Tommy Grav
It is hard to know what is wrong when we do not know how the wrapper around the function works. The error could also be in ConstructFigName or ConstructFigPath. Also please send the specific error message when asking for help as that significantly helps in tracking down the error. Cheers Tommy

memory error with matplot

2006-12-05 Thread lisa . engblom
Hi, I am using matplotlib with python to generate a bunch of charts. My code works fine for a single iteration, which creates and saves 4 different charts. The trouble is that when I try to run it for the entire set (about 200 items) it can run for 12 items at a time. On the 13th, I get an erro

Re: Coding standards without control?

2006-12-05 Thread Soni Bergraj
editormt wrote: > A majority of the participating organisations have coding standards... > and a majority does not control them ;o) What is the situation at your > location? Does this lack of control really hurt? """A Foolish Consistency is the Hobgoblin of Little Minds""" from: http://www.python

Re: Ensure a variable is divisible by 4

2006-12-05 Thread geskerrett
Nick Craig-Wood wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am sure this is a basic math issue, but is there a better way to > > ensure an int variable is divisible by 4 than by doing the following; > > > > x = 111 > > x = (x /4) * 4 > > You should use // for future compatibilit

Re: About alternatives to Matlab

2006-12-05 Thread Jon Harrop
Filip Wasilewski wrote: > Besides of that this code is irrelevant to the original one and your > further conclusions may not be perfectly correct. Please learn first > about the topic of your benchmark and different variants of wavelet > transform, namely difference between lifting scheme and dwt,

Coding standards without control?

2006-12-05 Thread editormt
A recent poll asked if programming standards are used by development organisations... and if they are controlled. None: 20% Yes, but without control: 49% Yes, with control: 31% Participants: 369 Source: Methods & Tools (http://www.methodsandtools.com) A majority of the participating organisatio

Re: The del statement

2006-12-05 Thread Dustan
Marco Aschwanden wrote: > > do you find the x[i] syntax for calling the getitem/setitem methods a > > bit awkward too? what about HTTP's use of "GET" and "POST" for most > > about everything ? ;-) > > No. I like the x[i] syntax. I use it in every second row of my code and > getting an item like:

  1   2   >