ANN: wxPython 2.6.1.0

2005-06-06 Thread Robin Dunn
Announcing -- The 2.6.1.0 release of wxPython is now available for download at http://wxpython.org/download.php. Anybody keeping track will probably notice that the prior release (2.6.0.1) was released just about a week ago. This short turn-around time is because I was slow getting the

Re:

2005-06-06 Thread Jatinder Singh
I am reading a only. But what if I want read write and execute that file. -- Regards, Jatinder Singh “ Everyone needs to be loved... especially when they do not deserve it.” XX Quoting Tiago Stürmer Daitx [EMAIL

Re: urllib2 pinger : insight as to use, cause of hang-up?

2005-06-06 Thread EP
Mahesh advised: Timing it out will probably solve it. Thanks. Follow-on question regarding implementing a timeout for use by urllib2. I am guessing the simplest way to do this is via socket.setdefaulttimeout(), but I am not sure if this sets a global parameter, and if so, whether it

easiest way to split a list into evenly divisble smaller lists, and assign them to variables?

2005-06-06 Thread flamesrock
Lets say I have a list containing 12, 13, 23 or however many entries. What I want is the greatest number of lists evenly divisible by a certain number, and for those lists to be assigned to variables. This leads to a few problems.. If I don't know the length of the list beforehand, I can't

Re: Socket Speed

2005-06-06 Thread marinus van aswegen
Hi Jeff Would you care to do that between two machines on a 100mb link ? M On 6/5/05, Jeff Epler [EMAIL PROTECTED] wrote: 300KB/s sounds dreadfully low. I simply ran python /usr/lib/python2.3/SimpleHTTPServer.py , then wget -O /dev/null http://0.0.0.0:8000/70megfile;. On the best of 4

Re: Socket Speed

2005-06-06 Thread marinus van aswegen
Would you care to do that between two machines on a 100mb link ? On 6/5/05, Jeff Epler [EMAIL PROTECTED] wrote: 300KB/s sounds dreadfully low. I simply ran python /usr/lib/python2.3/SimpleHTTPServer.py , then wget -O /dev/null http://0.0.0.0:8000/70megfile;. On the best of 4 runs (when the

Re: Help with pythonpath

2005-06-06 Thread mg
Tim Roberts wrote: Observer [EMAIL PROTECTED] wrote: Hi, im a newbie both to python and this list. I hope someone can help me whith this: I have a directory structure like this: . |-- src | `-- pkg | |-- __init__.py | |-- main.py | `-- spkg1 | |-- __init__.py |

Re: easiest way to split a list into evenly divisble smaller lists, and assign them to variables?

2005-06-06 Thread Paul Rubin
flamesrock [EMAIL PROTECTED] writes: Lets say I have a list containing 12, 13, 23 or however many entries. What I want is the greatest number of lists evenly divisible by a certain number, and for those lists to be assigned to variables. You almost certainly don't want to do that. That's

Re: anygui,anydb, any opinions?

2005-06-06 Thread bruno modulix
Thomas Bartkus wrote: rzed [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] snip So what do you think? What's wrong with the picture? Why isn't there a greater priority to work in this direction? What's wrong with the picture? Just one teeny little item. The Python

Re:

2005-06-06 Thread Jatinder Singh
B and C are subdirectories of Parent Directory A. I am executing a file in Directory C which is importing a file f' in directory B. Now while running python file m getting an error of can't open f'. If I copy f' in current directory B. then It is running. I want to get rid of that and run the

Re: easiest way to split a list into evenly divisble smaller lists, and assign them to variables?

2005-06-06 Thread flamesrock
hmmm..that makes much more sense. thanks :) -- http://mail.python.org/mailman/listinfo/python-list

Re: If - Or statements

2005-06-06 Thread bruno modulix
Ognjen Bezanov wrote: (snip) filelist = os.listdir('/mnt/cdrom/') #get a list of files from the cdrom drive OT Please put long comments on the previous line... And BTW, please avoid useless comments that just paraphrase the code /OT for thefile in filelist[:]: #for each file in the

how to show simulation at web

2005-06-06 Thread Hallo
hi all, I have tried making a simulation with python. I want it to be shown at a web. It is ok when I run it. so, I decided using cgi. but, when I try it using a web browser it doesn't work. Is it problem in the header or something else ? If there are any suggestions about this problem, I

Re: how to show simulation at web

2005-06-06 Thread Robert Kern
Hallo wrote: hi all, I have tried making a simulation with python. I want it to be shown at a web. It is ok when I run it. so, I decided using cgi. but, when I try it using a web browser it doesn't work. Is it problem in the header or something else ? If there are any suggestions

Re: Socket Speed

2005-06-06 Thread Jeff Epler
The machines with the 100mbps ethernet link are slightly different---Pentium 4, 2.8GHz, Python 2.2, RedHat 9. File size: 87490278 Best of 4 runs: 7.50 MB/s reported by wget. There was other network activity and system load at the time. Jeff pgpNVPeW3ghJL.pgp Description: PGP signature --

Review of 'Python Cookbook'

2005-06-06 Thread TechBookReport
TechBookReport (http://www.techbookreport.com) has just published a review of the Python Cookbook. This is an extract from the full review: We're big fans of cookbooks here at TechBookReport, whether its Java, XSLT or Linux, they're a great way of pulling together lots of useful snippets of

Re: odbc and python

2005-06-06 Thread Michele Petrazzo
Giles Brown wrote: MM wrote: Are there any other odbc packages other than the win32all and mxodbc ones? The win32all odbc.pyd can't access table structure info like SQLColumns, and mxobdc requires a commercial license which is unjustifiable for this tiny project. Any other OS alternatives for

Re: Destructive Windows Script

2005-06-06 Thread Michele Simionato
BTW, since this is a bit off-topic anyway, how do I recover files accidentally removed? Is there a free tool that works on FAT/NTFS and ext2/ext3? Thanks, Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: Destructive Windows Script

2005-06-06 Thread TZOTZIOY
On 05 Jun 2005 21:14:37 -0700, rumours say that Paul Rubin http://[EMAIL PROTECTED] might have written: The only way to be 100% sure the data is gone from a drive, is basically to melt the drive. However, if your data is that sensitive, you shouldn't ever write it to a hard drive in the clear

Re: Destructive Windows Script

2005-06-06 Thread Robert Kern
Michele Simionato wrote: BTW, since this is a bit off-topic anyway, how do I recover files accidentally removed? Is there a free tool that works on FAT/NTFS and ext2/ext3? On all of those filesystems at the same time? Probably not. But there are tools for each. Google, and ye shall find. --

Re: Destructive Windows Script

2005-06-06 Thread Michele Simionato
The problem is that Google gives me too many non-relevant hits. I just would like something like this: $ rm what-I-think-is-an-useless-file ACK! It was not that useless!! $ recover what-I-think-is-an-useless-file Michele Simionato --

Re: Destructive Windows Script

2005-06-06 Thread Robert Kern
Michele Simionato wrote: The problem is that Google gives me too many non-relevant hits. google(fat undelete) google(ext2 undelete) -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams allowed to die. -- Richard Harter --

Computer Cluster Python Software

2005-06-06 Thread uli
Is there any open source Python software (preferably biopython) written which runs on a cluster. Alternatively are there interfaces written in Python to existing cluster software. -- http://mail.python.org/mailman/listinfo/python-list

Using IDLE for checking versions

2005-06-06 Thread d
Okay, so I need to find out what version of wxPython is being used on a companies computer. I figured I can do this through IDLE, but I cant find the proper commands. Any help would be appriciated. -- http://mail.python.org/mailman/listinfo/python-list

Re: Computer Cluster Python Software

2005-06-06 Thread Mandus
6 Jun 2005 07:22:54 -0700 skrev uli: Is there any open source Python software (preferably biopython) written which runs on a cluster. Alternatively are there interfaces written in Python to existing cluster software. Can you be more specific? There are for example several MPI interfaces

Re: If - Or statements

2005-06-06 Thread Steven Bethard
bruno modulix wrote: Here's a somewhat more pythonic version: filelist = os.listdir(path) for filename in filelist: # I assume you want to remember what's the ext is ext = os.path.splitext(filename) Check the docs[1]. This should probably read: _, ext =

Re: Question about Object Oriented + functions/global vars?

2005-06-06 Thread Christopher J. Bottaro
flamesrock wrote: ok, so to my knowledge, object oriented means splitting something into the simplest number of parts and going from there. That sounds like normal top down imperative (procedural) programming to me. But the question is- when is it enough? Thats a judgment call on the

Re: anygui,anydb, any opinions?

2005-06-06 Thread Thomas Bartkus
bruno modulix [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thomas Bartkus wrote: rzed [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] snip So what do you think? What's wrong with the picture? Why isn't there a greater priority to work in this direction?

Lost in the inheritance tree...

2005-06-06 Thread Adam Munoz Lopez
Can anyone help with this code... I have infinite recursion but since I'm pretty new to Python (and programming in general) I can't find where I did the mistake. Thanks a lot in advance. Adam * import Tkinter class RootFrame(Tkinter.Frame): def

Re: urllib2 pinger : insight as to use, cause of hang-up?

2005-06-06 Thread Mahesh
socket.setdefaulttimeout() is what I have used in the past and it has worked well. I think it is set in the global namespace though I could be wrong. I think it retains its value within the module it is called in. If you use it in a different module if will probably get reset though it is easy

Re: Computer Cluster Python Software

2005-06-06 Thread uli
Hi Mandus Thanks for your reply. I am looking for an application written in python (preferably a bioinformatics application) which will be able to take advantage of parallel processing on a cluster. I guess what I am asking for is applications which have been written using pyMPI or other python

Re: Using IDLE for checking versions

2005-06-06 Thread d
nvm, i found the wxPython directory with __version__.py which told me everything i need to know. -- http://mail.python.org/mailman/listinfo/python-list

Re: If - Or statements

2005-06-06 Thread Steven D'Aprano
On Sun, 05 Jun 2005 13:52:09 -0400, Roy Smith wrote: One sure sign of somebody trying to write C in Python is when they loop over a list by doing for i in range (len (myList)): doSomethingWith (myList[i]) I usually do that, and I've never coded a line of C in my life. I can't even read

Re: Lost in the inheritance tree...

2005-06-06 Thread Rocco Moretti
Adam Munoz Lopez wrote: Can anyone help with this code... I have infinite recursion but since I'm pretty new to Python (and programming in general) I can't find where I did the mistake. It really does help to start removing things trying to get the minimal code which causes the problem.

Re: anygui,anydb, any opinions?

2005-06-06 Thread James Tanis
Previously, on Jun 6, Thomas Bartkus said: # bruno modulix [EMAIL PROTECTED] wrote in message # news:[EMAIL PROTECTED] # You mean the wimp gui builder + db - ui pipeline model ? If yes, C # doesn't have it, C++ doesn't have it (in fact most languages doesn't # have it) - and # #

Re: Software licenses and releasing Python programs for review

2005-06-06 Thread Steven D'Aprano
On Sun, 05 Jun 2005 03:57:29 -0400, Terry Reedy wrote: Robert Kern [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Meyer wrote: I've heard people argue otherwise on this case. In particular, if you allow an employee to use your GPL'ed-but-not-distributed software, they are

Re: Lost in the inheritance tree...

2005-06-06 Thread Jordan Rastrick
Although you get infinite recursion with this code, you still get enough information on the error from the interpreter to help you debug. Running IDLE, I get a traceback of: File C:/Documents and Settings/Jordan/Desktop/more_blah.py, line 11, in __init__ self.createFrames() File

Re: Lost in the inheritance tree... THANKS!

2005-06-06 Thread Adam Munoz Lopez
Thanks a lot for your quick response. I actually just found the answer by myself before reading your reply. Just printed out the code and read it. The mistake was pretty obvious then. Yes, Ill try your suggestion. I was just trying to experiment a bit with inheritance to understand how it works

Re: Adding a command to a Pmw.counter widget

2005-06-06 Thread Mark Light
Martin Franklin wrote: Mark Light wrote: Hi, I have a Pmw.Counter widget and I would like to add a command that is called on pressing either the up or down arrows (the command will be the same for both). I have managed to do this for the entryfield with entryfield_command = , but

Re: Software licenses and releasing Python programs for review

2005-06-06 Thread max
Steven D'Aprano [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: By law, corporations (and possibly some other organisations) *are* people. Not natural people like you or I, but nevertheless people. For good or bad, this is the legal fact (or perhaps legal fiction) in most countries, and

Re: Question about Object Oriented + functions/global vars?

2005-06-06 Thread [EMAIL PROTECTED]
Well, if you want to apply object orientatation techniques to your work you would get something like this. Polymorphism is used to distinct between the ftp method. Another concept is data encapsulation, see the filedescription class . A third technique is inheritance - ftp is derived from an

Re: maybe a bug in python

2005-06-06 Thread venkata subramanian
If you have any doubts, try to remeber this when creating tuples, if a tuple is to have 0 elements, then it must be given as a=() in other words, the ( and the ) are essential if it has one element, then a comma after that element is essential a=1, or alternatively a=(1,) in other words, an end

Re: Lost in the inheritance tree... THANKS!

2005-06-06 Thread Jordan Rastrick
comp.lang.python is a great newsgroup in that respect - so long as you ask a semi-intelligent question, you nearly always end up with a quick and helpful response. Good luck with learning programming, and Python (IMO its one of the best possible languages to do it in) --

Re: Software licenses and releasing Python programs for review

2005-06-06 Thread Steven D'Aprano
On Mon, 06 Jun 2005 16:12:18 +, max wrote: This is one thing that bothers me about the gpl. It essentially tries to create 'code as a legal entity'. That is, it gives rights not to the creator of some code, but to the code itself. Can you please show me where in the GPL it gives rights

Re: how to get name of function from within function?

2005-06-06 Thread Christopher J. Bottaro
posted mailed Hey again Steven, I'm still having problems... Steven Bethard wrote: Something like this might work: py class C(object): ... def func_a(self): ... print func_a ... def func_b_impl(self): ... print func_b ... raise Exception ... def

Using PAMIE to upload and download files...is it possible?

2005-06-06 Thread scrimp
Ive been using PAMIE 1.4 to try to automate web page processes. The one thing I cannot do with it is upload files and download files. With uploading files, the file input box does not allow PAMIE to enter in a path to a file. With downloading files, I can click on the link to download the file,

Reading a CSV file into a list of dictionaries

2005-06-06 Thread RFQ
Hi, I'm struggling here to do the following with any success: I have a comma delimited file where each line in the file is something like: PNumber,3056,Contractor,XYZ Contracting,Architect,ABC Architects,... So each line is intended to be: key1,value1,key2,value2,key3,value3... and each line is

About size of Unicode string

2005-06-06 Thread Frank Abel Cancio Bello
Hi all! I need know the size of string object independently of its encoding. For example: len('123') == len('123'.encode('utf_8')) while the size of '123' object is different of the size of '123'.encode('utf_8') More: I need send in HTTP request a string. Then I need know the length of

Re: Software licenses and releasing Python programs for review

2005-06-06 Thread Andreas Kostyrka
On Sat, Jun 04, 2005 at 11:49:28PM -0700, Robert Kern wrote: Well, the FSF at least thinks that internal use within an organization does not constitute distribution. Well, the problem are contractors. It's very important (for example in Germany) for a number of legal reasons that contractors

Re: Reading a CSV file into a list of dictionaries

2005-06-06 Thread Robert Kern
RFQ wrote: Hi, I'm struggling here to do the following with any success: I have a comma delimited file where each line in the file is something like: PNumber,3056,Contractor,XYZ Contracting,Architect,ABC Architects,... So each line is intended to be:

Re: random module question

2005-06-06 Thread Raymond Hettinger
Can I rely on the random.py module to produce the same series of numbers for future/past versions of Python, given the same seed? The answer is a qualified Yes. While the core generator (currently the Mersenne Twister algorithm) is subject to change across versions, whenever we've updated the

Re: Reading a CSV file into a list of dictionaries

2005-06-06 Thread Peter Otten
RFQ wrote: I have a comma delimited file where each line in the file is something like: PNumber,3056,Contractor,XYZ Contracting,Architect,ABC Architects,... So each line is intended to be: key1,value1,key2,value2,key3,value3... and each line is to be variable in length (although it will

Re: About size of Unicode string

2005-06-06 Thread Laszlo Zsolt Nagy
Frank Abel Cancio Bello wrote: Hi all! I need know the size of string object independently of its encoding. For example: len('123') == len('123'.encode('utf_8')) while the size of '123' object is different of the size of '123'.encode('utf_8') More: I need send in HTTP request a string.

Re: how to get name of function from within function?

2005-06-06 Thread Steven Bethard
Christopher J. Bottaro wrote: Steven Bethard wrote: ... def _impl_wrapper(self, func): ... def wrapper(*args, **kwargs): ... try: ... return func(*args, **kwargs) ... except: ... print entered except ... raise ...

Re: Software licenses and releasing Python programs for review

2005-06-06 Thread max
Steven D'Aprano [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On Mon, 06 Jun 2005 16:12:18 +, max wrote: This is one thing that bothers me about the gpl. It essentially tries to create 'code as a legal entity'. That is, it gives rights not to the creator of some code, but to the

Re: maybe a bug in python

2005-06-06 Thread Steven Bethard
venkata subramanian wrote: If you have any doubts, try to remeber this when creating tuples, if a tuple is to have 0 elements, then it must be given as a=() in other words, the ( and the ) are essential if it has one element, then a comma after that element is essential a=1, or

the python way?

2005-06-06 Thread Grooooops
Hi All, I've been lurking the list for a month and this is my first post. I am hoping this post is appropriate here, otherwise, my apologies. I'm somewhat new to Python, (I'm reading all the tutorials I can find, and have read through Andre Lessa's Developers Handbook.) I am trying to learn the

Re: idiom for constructor?

2005-06-06 Thread tracyshaun
How about just doing this: class Foo(object): __slots__ = ('a','b','c','d') def __init__(self, *args): for (name, arg) in zip(self.__slots__, args): setattr(self, name, arg) --T -- http://mail.python.org/mailman/listinfo/python-list

Re: idiom for constructor?

2005-06-06 Thread tracyshaun
And you probably should add: ... def __init__(self, *args): assert len(args) == len(self.__slots__) ... --T -- http://mail.python.org/mailman/listinfo/python-list

Re: Software licenses and releasing Python programs for review

2005-06-06 Thread Andrew Dalke
max: For me, the fact that corporations are considered people by the law is ridiculous. Steven D'Aprano wrote: Ridiculous? I don't think so. Take, for example, Acme Inc. Acme purchases a new factory. Who owns the factory? The CEO? The Chairperson of the Board of Directors? Split in equal

RE: About size of Unicode string

2005-06-06 Thread Frank Abel Cancio Bello
Well I will repeat the question: Can I get how many bytes have a string object independently of its encoding? Is the len function the right way of get it? Laci look the following code: import urllib2 request = urllib2.Request(url= 'http://localhost:6000') data = 'data to

Requirements for Software Coding Standards?

2005-06-06 Thread Tim Couper
Does anyone have any knowledge of where to find details of docs like Requirements for Software Coding Standards, etc applicable for work within the US govt (preferably non-military). Thanks in advance Dr Tim Couper UK -- No virus found in this outgoing message. Checked by AVG Anti-Virus.

Re: how to get name of function from within function?

2005-06-06 Thread Christopher J. Bottaro
posted mailed Christopher J. Bottaro wrote: The problem is: c.func_b.__name__ 'wrapper' That messes up SOAPpy's RegisterFunction() method which apparently depends on the __name__ of the function to publish it as an available SOAP function. Any suggestions on how to change the name of

Re: the python way?

2005-06-06 Thread Kent Johnson
Grops wrote: The code just seems kind of bulky to me. I am wondering, is this an efficient way to do things, or am I making things harder than necessary? Harder than necessary. contains() is not needed at all, you can test for 'b in alist' directly. List comprehensions simplify

Re: the python way?

2005-06-06 Thread Steven Bethard
Grops wrote: Hi All, I've been lurking the list for a month and this is my first post. I am hoping this post is appropriate here, otherwise, my apologies. I'm somewhat new to Python, (I'm reading all the tutorials I can find, and have read through Andre Lessa's Developers Handbook.)

Re: the python way?

2005-06-06 Thread Reinhold Birkenfeld
Grops wrote: Hi All, I've been lurking the list for a month and this is my first post. I am hoping this post is appropriate here, otherwise, my apologies. I'm somewhat new to Python, (I'm reading all the tutorials I can find, and have read through Andre Lessa's Developers Handbook.)

Re: Software licenses and releasing Python programs for review

2005-06-06 Thread Andreas Kostyrka
On Mon, Jun 06, 2005 at 06:08:36PM -, max wrote: I guess my argument is that with multiple contributors, the gpl, in comparison to say, a BSD style license, grants power to the code. If 3 people work on a gpl project, they must agree to any changes. If 3 people work on a BSD style

OT: Survey facing design patterns and communication

2005-06-06 Thread Nico
Hello everybody! We are a group of students at Freie Universitaet Berlin. As part of our computer science studies we are going to do a survey facing the use of design patterns in communication. Examples of design patterns are Abstract Factory, Singleton, Composite, Iterator and Listener. If

Re: random module question

2005-06-06 Thread Paul Rubin
Raymond Hettinger [EMAIL PROTECTED] writes: Can I rely on the random.py module to produce the same series of numbers for future/past versions of Python, given the same seed? The answer is a qualified Yes. While the core generator (currently the Mersenne Twister algorithm) is subject to

Re: Destructive Windows Script

2005-06-06 Thread Terry Reedy
Dennis Lee Bieber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My previous facility didn't even accept mil-spec wipes -- all disk drives leaving the facility had to go through a demagnitizer, OT but I am curious: does a metallic case act as a metallic shield, so that the case

Re: the python way?

2005-06-06 Thread Grooooops
Wow... Thanks for all the tips guys... I will study the above examples. ...down to 8 lines of exquisitely readable code... Wow... Python rocks... (still aspiring to greatness myself,) cheers, -John

Re: Software licenses and releasing Python programs for review

2005-06-06 Thread Robert Kern
max wrote: Perhaps 'attempts' is too strong a word. Maybe 'ends up giving' would help my argument more. The best example I can come up with at the moment is programmer A releases a project under the gpl. Programmer B makes a substantial contribution to the project, which pA reads through

Re: Destructive Windows Script

2005-06-06 Thread Grant Edwards
On 2005-06-06, Terry Reedy [EMAIL PROTECTED] wrote: OT but I am curious: does a metallic case act as a metallic shield, It depends on the metal and the case thickness. Thin sheet-aluminum provides virtually no magnetic shielding. Some good thick iron plate will provide shielding. so that

RE: About size of Unicode string

2005-06-06 Thread Andrew Dalke
Frank Abel Cancio Bello wrote: Can I get how many bytes have a string object independently of its encoding? Is the len function the right way of get it? No. len(unicode_string) returns the number of characters in the unicode_string. Number of bytes depends on how the unicode character are

EnumKey vs EnumValue

2005-06-06 Thread Pykid
I'm having trouble getting any responses back from the following snippet, where I am just trying to read some data from the Windows Registry. I intend to do a little bit more with this but will work on that later, but I think I can get more data back from EnumValue, I'd like to see the

Re: Looking for Image, Audio and Internet/Web HOTWO's or tutorials

2005-06-06 Thread CPUFreak91
thanks. It's a huuuge list -- http://mail.python.org/mailman/listinfo/python-list

split up a list by condition?

2005-06-06 Thread Reinhold Birkenfeld
Hi, while writing my solution for The python way?, I came across this fragment: vees = [c for c in wlist[::-1] if c in vocals] cons = [c for c in wlist[::-1] if c not in vocals] So I think: Have I overlooked a function which splits up a sequence into two, based on a condition? Such as

Re: About size of Unicode string

2005-06-06 Thread Leif K-Brooks
Frank Abel Cancio Bello wrote: request.add_header('content-encoding', 'UTF-8') The Content-Encoding header is for things like gzip, not for specifying the text encoding. Use the charset parameter to the Content-Type header for that, as in Content-Type: text/plain; charset=utf-8. --

Re: Destructive Windows Script

2005-06-06 Thread rbt
Terry Reedy wrote: Dennis Lee Bieber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My previous facility didn't even accept mil-spec wipes -- all disk drives leaving the facility had to go through a demagnitizer, OT but I am curious: does a metallic case act as a metallic

Re: the python way?

2005-06-06 Thread Andrew Dalke
Reinhold Birkenfeld wrote: To make it short, my version is: import random def reinterpolate2(word, vocals='aeiouy'): wlist = list(word) random.shuffle(wlist) vees = [c for c in wlist[::-1] if c in vocals] cons = [c for c in wlist[::-1] if c not in vocals] Why the [::-1]?

Re: Destructive Windows Script

2005-06-06 Thread Mike Meyer
Terry Reedy [EMAIL PROTECTED] writes: On *nix, one could open '/dev/rawdisk' (actual name depends on the *nix build) and write a tracks worth of garbage for as many tracks as there are. I don't how to programmaticly get the track size and number (if there is a standard way at all). Modern

Re: Destructive Windows Script

2005-06-06 Thread rbt
Mike Meyer wrote: Terry Reedy [EMAIL PROTECTED] writes: On *nix, one could open '/dev/rawdisk' (actual name depends on the *nix build) and write a tracks worth of garbage for as many tracks as there are. I don't how to programmaticly get the track size and number (if there is a standard way

Re: anygui,anydb, any opinions?

2005-06-06 Thread Thomas Bartkus
James Tanis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Previously, on Jun 6, Thomas Bartkus said: # bruno modulix [EMAIL PROTECTED] wrote in message # news:[EMAIL PROTECTED] # You mean the wimp gui builder + db - ui pipeline model ? If yes, C # doesn't have it, C++ doesn't

Re: Destructive Windows Script

2005-06-06 Thread Grant Edwards
On 2005-06-06, rbt [EMAIL PROTECTED] wrote: Just open the raw disk device (assuming your Unix has such), and start writing data to it. Keep going until the write fails at the end of the media. Wouldn't /dev/urandom or /dev/random on Linux systems work better? Maybe. Last time I found an

wxPython: GridBagSizer, EXPAND, and HtmlListBox

2005-06-06 Thread Adam Endicott
I'm having some trouble using an HtmlListBox with a GridBagSizer. I'm not sure how best to explain what's happening, but it seems that every time my frame gets resized, the HtmlListBox grows taller, even when the resize is only horizontal, or makes the frame smaller. I'm pretty new to GUI layout

RE: About size of Unicode string

2005-06-06 Thread Frank Abel Cancio Bello
Thanks to all. Andrew's answer was an excellent explanation. Thanks Leif for you suggestion. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leif K-Brooks Sent: Monday, June 06, 2005 4:29 PM To: python-list@python.org Subject: Re: About size of

Re: anygui,anydb, any opinions?

2005-06-06 Thread James Tanis
Previously, on Jun 6, Thomas Bartkus said: # James Tanis [EMAIL PROTECTED] wrote in message # news:[EMAIL PROTECTED] # Previously, on Jun 6, Thomas Bartkus said: # # # bruno modulix [EMAIL PROTECTED] wrote in message # # news:[EMAIL PROTECTED] # # You mean the wimp gui builder + db - ui

Re: Controlling source IP address within urllib2

2005-06-06 Thread Dan
John, Thanks for your input. I can kind of see the light in this, but I'm having difficulty knowing where the do_open method comes from. Also, I'll need to follow redirects, so I assume then I would add a HTTPRedirectHandler instance to the urllib2.build_opener. (?) Thanks again for your help.

help with sending mail in Program

2005-06-06 Thread Ivan Shevanski
Hey i'm new here and relatively new to python. I've made a few small programs and now I'm making a program for my friends that at the end has a feedback form. I want to send the feedback back to my email adress. I know I should use the SMTP module and I have figured out how to send with it,

Re: Destructive Windows Script

2005-06-06 Thread Mike Meyer
rbt [EMAIL PROTECTED] writes: Mike Meyer wrote: Terry Reedy [EMAIL PROTECTED] writes: On *nix, one could open '/dev/rawdisk' (actual name depends on the *nix build) and write a tracks worth of garbage for as many tracks as there are. I don't how to programmaticly get the track size and

[wxPython] How to change deafult tab traversing (radiobuttons panel)

2005-06-06 Thread w.p.
Hello! I want change default tab traversing in my app. But i don't know how to do it :( Belowe i include simple example - i want change default tab order: radiobutton mode11 - radiobutton mode31 - button OK I can't find any option, flag, or another way. I try use wx.EVT_KEY_DOWN macro, or

PyRun_String does not appear to handle EInvalidOp exceptions

2005-06-06 Thread Heather Korns
Here's a snippet of code that demonstrates my problem: result = PyRun_String (import math, Py_file_input, pdict,pdict); result = PyRun_String (math.sqrt(-1), Py_file_input, pdict,pdict); result = PyRun_String (math.pow(2,1024), Py_file_input, pdict,pdict); Other types of exceptions seem

file permissions on windows XP (home)

2005-06-06 Thread barney
I'm trying to write to an existing file under windows XP (home). The files are in 'My Music' which I think may be treated in some special way under XP. The relevant python code is as follows: os.chdir(dir) os.chmod(filename, 0744) print Okay to write = +str(os.access(filename, os.W_OK)) afile =

Creating file of size x

2005-06-06 Thread Jan Danielsson
Hello all, Is there any way to create a file with a specified size? -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating file of size x

2005-06-06 Thread Erik Max Francis
Jan Danielsson wrote: Is there any way to create a file with a specified size? What do you want to put in the file? Once you've answered that question, the solution should present itself. -- Erik Max Francis [EMAIL PROTECTED] http://www.alcyone.com/max/ San Jose, CA, USA 37 20 N 121

RE: EnumKey vs EnumValue

2005-06-06 Thread Hughes, Chad O
EnumKey enumerates subkeys which are equivalent to the folders in regedit. EnumValue enumerates values only. The reason your script is not printing anything must be due to the fact that you are passing in a registry path that contains only subkeys and no values. As I mentioned before, the

Re: Creating file of size x

2005-06-06 Thread Ivan Shevanski
Can you elaborate more? Just any file? Yes -- a binary file. The file will contain check blocks for another file. The problem is that the order of the received check blocks is not specified, so I need to be able seek to the block's position in the file, and then just write the block. --

Re: Creating file of size x

2005-06-06 Thread Jan Danielsson
Erik Max Francis wrote: Is there any way to create a file with a specified size? What do you want to put in the file? Once you've answered that question, the solution should present itself. Check blocks from an FEC-encoder (Freenet, more specifically). The problem is that the design

poker card game revisited (code included)

2005-06-06 Thread flupke
Hi, i've included the code so interested people can take a look. I've tried to expand on the thread of 26/05/2005 on Checking for a full house. Code is suboptimal as I coded it rather quickly. I've added the normal classes one would expect from a cardgame: card, deck, hand etc. 1. I can detect

Re: How to change deafult tab traversing (radiobuttons panel)

2005-06-06 Thread Mudcat
I just figured this out myself, but probably not the way you're asking. There are supposed to be ways to change the tab order using tk_focusNext() and tk_focusPrevious(), but I've never used it. What I've done is simply point one widget to the next one, basically creating a linked list of tabs. I

  1   2   >