How to parse usenet urls?

2007-05-30 Thread [EMAIL PROTECTED]
I'm trying to parse newsgroup messages, and I need to follow URLs in this format: news://some.server. I can past them into a newsreader with no problem, but I want to do it programatically. I can't figure out how to follow these links - anyone have any ideas? -- http://mail.python.org/mailman/li

THE UNIVERSAL GOD BODY

2007-05-30 Thread [EMAIL PROTECTED]
THE UNIVERSAL GOD BODY http://groups.yahoo.com/group/Multidimensionalman/ Introduction to The Universal God Body: We have now established that our bodies consist of 4 Personality Bodies and 4 Spiritual Bodies. We have also established that the life which exists in the cellular, plant, and animal ki

Re: How to parse usenet urls?

2007-05-30 Thread [EMAIL PROTECTED]
: Bush desea mi muerte, pero las ideas no se matan', >>> 'news://newsclip.ap.org/[EMAIL PROTECTED]', ... How can I take the message link 'news://newsclip.ap.org/ [EMAIL PROTECTED]' and follow it? -- http://mail.python.org/mailman/listinfo/python-list

How do I Extract Attachment from Newsgroup Message

2007-05-31 Thread [EMAIL PROTECTED]
116431') ('220 116431 <[EMAIL PROTECTED]> article', '116431', '<[EMAIL PROTECTED]>', ['MIME-Version: 1.0', 'Message-ID: <[EMAIL PROTECTED]>', 'Content-Type: Multipart/Mixed;', ' boundary="----Bound

Re: decorators tutorials

2007-07-23 Thread [EMAIL PROTECTED]
james_027 wrote: > Hi, > > I am learning python by learning django, and I stumble upon decorator > which is very cool, any beginners resources for python decorators, > although I can google it, I just want to get a good tutorial for this > topic. Decorators are just a more concise but less obvious

[XBOX] Python XBOX360 Migration Question

2007-07-23 Thread [EMAIL PROTECTED]
Hello ALL, I have just migrated python-core to xbox360. I wonder if someone else has already done it yet ? The ctypes-module-migration puzzle me because I seldom use powerpc assembly. Can someone give me a hint ?? -- http://mail.python.org/mailman/listinfo/python-list

wxPython Internationalization

2007-07-23 Thread [EMAIL PROTECTED]
I know this may have a very simple answer, nonetheless. I am wishing to find the cleanest and most pythonic way of implementing the following: I am creating a internationalized application in wxPython and have sorted the directory structure in the following manner: start.py metamen

Re: From D

2007-07-24 Thread [EMAIL PROTECTED]
On Jul 24, 5:19 am, [EMAIL PROTECTED] wrote: > There are various things I like about the D language that I think > Python too may enjoy. Here are few bits (mostly syntactical ones): > > 1) (we have discussed part of this in the past) You can put > underscores inside number literals,

Re: Base class for file-like objects? (a.k.a "Stream" in Java)

2007-07-25 Thread [EMAIL PROTECTED]
On Jul 25, 12:28 pm, Asun Friere <[EMAIL PROTECTED]> wrote: > On Jul 25, 8:51 am, Boris Dušek <[EMAIL PROTECTED]> wrote: > > > In Python, I found that "file" objects exist. While specifying > > argument types in Python is not possible as in Java, it is possi

Interactive remote debugging by redirecting sys.stdin and sys.stdout to a socket or pipe

2007-07-25 Thread [EMAIL PROTECTED]
Hi I want a simple way to interactively remote debug a running python script which has no tty terminal attached to it. The scripts are running standalone (i.e. they are automatically started and have no terminal) and very infrequently come into error conditions which i want to understand and debug

Re: Flatten a list/tuple and Call a function with tuples

2007-07-25 Thread [EMAIL PROTECTED]
On Jul 25, 8:46 am, beginner <[EMAIL PROTECTED]> wrote: > On Jul 25, 10:19 am, Stargaming <[EMAIL PROTECTED]> wrote: > > > > > On Wed, 25 Jul 2007 14:50:18 +, beginner wrote: > > > Hi, > > > > I am wondering how do I 'flatten' a l

Re: From D

2007-07-25 Thread [EMAIL PROTECTED]
On Jul 24, 6:08 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Tue, 24 Jul 2007 20:09:00 +0200, Bjoern Schliessmann wrote: > > Stargaming wrote: > >> On Tue, 24 Jul 2007 03:19:53 -0700, bearophileHUGS wrote: > > >>> While in a syntax like: > >

Re: is_iterable function.

2007-07-25 Thread [EMAIL PROTECTED]
erable = ', is_iterable(NotIterable()) Results: list is iterable = True int is iterable = False float is iterable = False dict is iterable = True Iterable is iterable = True NotIterable is iterable = False On Jul 25, 12:24 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > def is_i

Re: Reading files, splitting on a delimiter and newlines.

2007-07-25 Thread [EMAIL PROTECTED]
On Jul 25, 8:46 am, [EMAIL PROTECTED] wrote: > Hello, > > I have a situation where I have a file that contains text similar to: > > myValue1 = contents of value1 > myValue2 = contents of value2 but > with a new line here > myValue3 = contents of valu

Re: From D

2007-07-26 Thread [EMAIL PROTECTED]
On Jul 26, 12:18 am, Ben Finney <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > IDLE 1.2c1 > > >>> s = '123 456' > > >>> s.split() > > ['123', '456'] > > The

Re: instantiate a 'classobj'

2007-07-26 Thread [EMAIL PROTECTED]
On Jul 26, 7:03 pm, westymatt <[EMAIL PROTECTED]> wrote: > I have a class where a parameter to its constructor is a type(param) = > 'classobj'. How would I go about instantiating that given it has no > constructor. A old style class may not have a __new__ attribute

Re: From D

2007-07-25 Thread [EMAIL PROTECTED]
On Jul 25, 8:00 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > On Jul 24, 6:08 pm, Steven D'Aprano > > <[EMAIL PROTECTED]> wrote: > > > Python already does: > > > "hello-&qu

Re: From D

2007-07-25 Thread [EMAIL PROTECTED]
On Jul 25, 8:54?pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 25 Jul 2007 10:22:46 -0700, [EMAIL PROTECTED] wrote: > > On Jul 24, 6:08 pm, Steven D'Aprano > > <[EMAIL PROTECTED]> wrote: > >> On Tue, 24 Jul 2007 20:09:00 +0200, Bjoe

Re: From D

2007-07-26 Thread [EMAIL PROTECTED]
On Jul 26, 1:24 am, Ben Finney <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > On Jul 25, 9:04?pm, Steven D'Aprano > > <[EMAIL PROTECTED]> wrote: > > Why does it make no sense? Have you never had to scrape a we

Re: From D

2007-07-25 Thread [EMAIL PROTECTED]
On Jul 25, 9:04?pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 25 Jul 2007 18:17:19 -0700, [EMAIL PROTECTED] wrote: > > On Jul 25, 8:00 pm, Ben Finney <[EMAIL PROTECTED]> > > wrote: > >> "[EMAIL PROTECTED]" <[EMAIL PROTECTE

Internet surveying with EZquestionnaire

2007-07-27 Thread [EMAIL PROTECTED]
Hi , Hope you are doing great. Recently I needed to conduct a survey on Employee Satisfaction at the work place to design an employee retention program. I was searching on the net for help on conducting surveys and I came across www.ezqustionnaire.com They had a survey template on employee sat

Re: <> vs !=

2007-07-27 Thread [EMAIL PROTECTED]
On Jul 27, 1:08 pm, "Simon Brunning" <[EMAIL PROTECTED]> wrote: > On 7/26/07, James Matthews <[EMAIL PROTECTED]> wrote: > > > What is the difference between <> and != > > <> is deprecated, != isn't. Other than that, noth

Compile python with Mingw

2007-07-27 Thread [EMAIL PROTECTED]
Hi all, I was trying to build pymol with mingw on my windows box, but during the compilation it said that my python.exe was built with VS2003, and in order to build compatible binary executable file, I have to build pymol with VS2003. I don't have VS2003, so I think I may compile both pymol and p

Re: Factory pattern again

2007-07-27 Thread [EMAIL PROTECTED]
; and you need create index on type field maybe you need set limit 2000 to sql depend on your requirement On Jul 27, 11:26 pm, Mike Howarth <[EMAIL PROTECTED]> wrote: > Having overcome my first hurdle with the factory pattern, I've now hit > another stumbling block > > At the m

Re: 128 or 96 bit integer types?

2007-07-27 Thread [EMAIL PROTECTED]
On Jul 27, 1:27 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > Robert Dailey wrote: > > Is there build-in or third party support for large integer types, such > > as 96 or 128 bits in size? I require such large sizes for precision > > issues (nanoseconds). Thanks. >

Re: 128 or 96 bit integer types?

2007-07-28 Thread [EMAIL PROTECTED]
On Jul 28, 12:30 am, Tim Roberts <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >On Jul 27, 1:27 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >> Robert Dailey wrote: > >> > Is there build-in or third pa

Re: 128 or 96 bit integer types?

2007-07-28 Thread [EMAIL PROTECTED]
On Jul 28, 2:28?am, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > has 146 digits. And that's just the begining. The above > > actually represents a polynomial with 264 terms, the > > expo

Re: Split a string based on change of character

2007-07-28 Thread [EMAIL PROTECTED]
On Jul 28, 9:46 pm, Andrew Savige <[EMAIL PROTECTED]> wrote: > Python beginner here. > > For a string 'ABBBCC', I want to produce a list ['A', 'BBB', 'CC']. > That is, break the string into pieces based on change of character. > What&#

Re: Split a string based on change of character

2007-07-29 Thread [EMAIL PROTECTED]
On Jul 28, 11:36 pm, Andrew Savige <[EMAIL PROTECTED]> wrote: (snipped) > > Yes. Here's a simpler example without any backreferences: > > s = re.split(r'(?<=\d)(?=\D)', '1B2D3') > > That works in Perl but not in Python. > Is it that "

Re: 128 or 96 bit integer types?

2007-07-29 Thread [EMAIL PROTECTED]
On Jul 28, 3:34 am, David H Wild <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > For example, how many ways can you put 492 marbles into > > 264 ordered bins such that each bi

making a variable available in a function from decorator

2007-07-29 Thread [EMAIL PROTECTED]
Hi I create a variable in a decorator. i want to be able to access that variable in the function to be decorated. How to do this? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: making a variable available in a function from decorator

2007-07-30 Thread [EMAIL PROTECTED]
is it possible to do this without passing it as a function argument? On 30 Jul 2007 06:17:25 GMT, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Sun, 29 Jul 2007 15:22:47 -0700, [EMAIL PROTECTED] wrote: > > > I create a variable in a decorator. i wa

Re: yield keyword usage

2007-07-30 Thread [EMAIL PROTECTED]
On Jul 30, 4:40 pm, Erik Jones <[EMAIL PROTECTED]> wrote: > On Jul 30, 2007, at 4:13 PM, Ehsan wrote: > > > > > > > hi > > coulde any one show me the usage of "yield" keyword specially in this > > example: > > > """F

Re: 128 or 96 bit integer types?

2007-07-30 Thread [EMAIL PROTECTED]
On Jul 29, 11:35 pm, Tim Roberts <[EMAIL PROTECTED]> wrote: > John DeRosa <[EMAIL PROTECTED]> wrote: > >On Sat, 28 Jul 2007 00:19:02 -0700, "[EMAIL PROTECTED]" > ><[EMAIL PROTECTED]> wrote: > > >>For example, how many ways can you put 492 marb

Re: What is the "functional" way of doing this?

2007-07-30 Thread [EMAIL PROTECTED]
On Jul 30, 3:48 pm, beginner <[EMAIL PROTECTED]> wrote: > Hi, > > If I have a number n and want to generate a list based on like the > following: > > def f(n): > l=[] > while n>0: > l.append(n%26) > n /=26 > return l >

Re: What is the "functional" way of doing this?

2007-07-30 Thread [EMAIL PROTECTED]
On Jul 30, 4:39 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > Recursion is common in functional programming: > > > def f(n, l=None): > > if l == None: > > l = [] &g

Re: From D

2007-07-30 Thread [EMAIL PROTECTED]
Gabriel Genellina wrote: > En Tue, 24 Jul 2007 11:10:53 -0300, Stargaming <[EMAIL PROTECTED]> > escribió: > >> On Tue, 24 Jul 2007 03:19:53 -0700, bearophileHUGS wrote: >> >>> There are various things I like about the D language that I think Python >>

Live editing...

2007-07-31 Thread [EMAIL PROTECTED]
There's been some chatter on edu-sig (python.org) of late regarding Python's capabilities in the "edit/continue" tradition, meaning debugging tools, and/or IDE tools, that give the developer real time write access to running programs. I think a good design would be something like the ZODB, or the

How does xmlrpc work ?

2007-07-31 Thread [EMAIL PROTECTED]
Hi everyone I am working on a system which used XMLRPC to communicate between hundreds of computer. One administrative computer keeps hundreds of xmlrpc instance of other computers. I want to know if evey instance use a single connection and keep it alive forever OR create a new connection when a

Re: Assertion in list comprehension

2007-08-01 Thread [EMAIL PROTECTED]
On Aug 1, 9:37 am, beginner <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know how to put an assertion in list comprehension? I have > the following list comprehension, but I want to use an assertion to > check the contents of rec_stdl. I ended up using another loo

Re: Awkward format string

2007-08-01 Thread [EMAIL PROTECTED]
On Aug 1, 9:42 am, beginner <[EMAIL PROTECTED]> wrote: (snipped) > > e is not complicated. It is a record that have 7 fields. In my program > a function outputs a list of tuples, each is of type e, and now I just > need to send them to a text file. > > I have no proble

Re: a dict trick

2007-08-02 Thread [EMAIL PROTECTED]
james_027 wrote: > hi > > for example I have this dictionary > > dict = {'name':'james', 'language':'english'} > > value = 'sex' in dict and dict['sex'] or 'unknown' > > is a right pythonic of doing this one? I am trying to get a value from > the dict, but if the key doesn't exist I will provid

IWCIA 08 - USA, 7-9 April 2008: Invitation

2007-08-02 Thread [EMAIL PROTECTED]
Dear Colleague, I would like to bring to your attention information about a forthcoming conference and to strongly encourage you to submit a paper or papers to it. This is the 12th International Workshop on Combinatorial Image Analysis (IWCIA 08) which will take place in Buffalo, USA, 7-9 April 2

Efficient Rank Ordering of Nested Lists

2007-08-02 Thread [EMAIL PROTECTED]
A naive approach to rank ordering (handling ties as well) of nested lists may be accomplished via: def rankLists(nestedList): def rankList(singleList): sortedList = list(singleList) sortedList.sort() return map(sortedList.index, singleList) return map(r

Job Fair F/OSS project

2007-08-02 Thread [EMAIL PROTECTED]
Hello Pythonistas! I'm looking for some volunteers for a new open source project. At the Institute of Design (http://www.id.iit.edu ), our next project is a system for the management of our job fair (http://www.id.iit.edu/ recruitID/ ) The systems goal is to allow students and employers to enter

Re: Best way to capture output from an exec'ed (or such) script?

2007-08-03 Thread [EMAIL PROTECTED]
On Aug 2, 7:32 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > If your web server is multithreaded (or you use some other way to process > many simultaneous requests) you have to be more careful - remember that > sys.stdout is global, you must find a way to distingui

Re: Efficient Rank Ordering of Nested Lists

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 3, 8:38 am, [EMAIL PROTECTED] (Alex Martelli) wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > A naive approach to rank ordering (handling ties as well) of nested > > lists may be accomplished via: > > >def rankLists(nestedList): >

Re: Efficient Rank Ordering of Nested Lists

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 3, 9:20 am, [EMAIL PROTECTED] wrote: > On Aug 2, 10:20 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > A naive approach to rank ordering (handling ties as well) of nested > > lists may be accomplished via: > > >def rank

Re: Efficient Rank Ordering of Nested Lists

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 3, 5:53 am, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-08-03, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > A naive approach to rank ordering (handling ties as well) of nested > > lists may be accomplished via: > > >def

Encoding DeprecationWarning

2007-08-04 Thread [EMAIL PROTECTED]
Hey There, Sorry if I am missing something here, but I get a DeprecationWarning when importing a list which has some unicode characters in it (it's a list of countries -- it's being raised on Åland), and I am left wondering why. I am using the syntax u' to denote a unicode string. If anyone would

Re: Best way to capture output from an exec'ed (or such) script?

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 3, 11:14 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Aug 2, 7:32 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:> If your > web server is multithreaded (or you use some other way to process > > many simultaneous reques

Re: Encoding DeprecationWarning

2007-08-04 Thread [EMAIL PROTECTED]
>>> from wt.lib.misc_lists import all_countries __console__:1: DeprecationWarning: Non-ASCII character '\xc3' in file / Django/wt/../wt/lib/misc_lists.py on line 141, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details -- http://mail.python.org/mailman/listinfo/pyth

Re: Encoding DeprecationWarning

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 4, 11:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >>> from wt.lib.misc_lists import all_countries > > __console__:1: DeprecationWarning: Non-ASCII character '\xc3' in file / > Django/wt/../wt/lib/misc_lists.py on line 141, but n

Re: Formatting Results so that They Can be Nicely Imported into a Spreadsheet.

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 4, 6:35?pm, SMERSH009 <[EMAIL PROTECTED]> wrote: > Hi All. > Let's say I have some badly formatted text called doc: > > doc= > """ > friendid > Female > > 23 years old > >

Re: Formatting Results so that They Can be Nicely Imported into a Spreadsheet.

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 4, 9:21?pm, "Jim Langston" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > > > On Aug 4, 6:35?pm, SMERSH009 <[EMAIL PROTECTED]> wrote: > >> Hi All. >

Re: the one python book

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 4, 8:23 am, "dhr" <[EMAIL PROTECTED]> wrote: > newbie question: > > Is there a 'K&R" type of Python book? The book that you'd better have on > your shelf if you are going into Python? I thought Python Essential Reference was helpfull but It do

Re: the one python book

2007-08-05 Thread [EMAIL PROTECTED]
On Aug 4, 7:23 am, "dhr" <[EMAIL PROTECTED]> wrote: > newbie question: > > Is there a 'K&R" type of Python book? The book that you'd better have on > your shelf if you are going into Python? Personally, I have two paths for you to take. If you a

Re: Best way to capture output from an exec'ed (or such) script?

2007-08-05 Thread [EMAIL PROTECTED]
On Aug 5, 5:50 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 04 Aug 2007 18:52:16 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > >> On Aug 2, 7:32 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:> > >&g

Re: Formatting Results so that They Can be Nicely Imported into a Spreadsheet.

2007-08-05 Thread [EMAIL PROTECTED]
On Aug 5, 4:06?am, SMERSH009 <[EMAIL PROTECTED]> wrote: > On Aug 4, 8:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > On Aug 4, 9:21?pm, "Jim Langston" <[EMAIL PROTECTED]> wrote: > > > > <[EMAIL PROTEC

Re: Google message munging (was: Live editing...)

2007-08-05 Thread [EMAIL PROTECTED]
> What the blazes is Google doing with messages that such a high > proportion of them come through in this painful-to-read double-wrapped > format? I'm referring to the fact that the lines appear to have been > wrapped at one length, and then each line broken again into a long and > a short line.

Re: Google message munging (was: Live editing...)

2007-08-05 Thread [EMAIL PROTECTED]
On Jul 31, 10:38?pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > Ben Finney <[EMAIL PROTECTED]> writes: > > > [... more lines of broken line wrapping...] > > What the blazes is Google doing with messages that such a high > > proportion of them come through in

Re: Efficient Rank Ordering of Nested Lists

2007-08-05 Thread [EMAIL PROTECTED]
On Aug 4, 7:29 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: > Cousin Stanley <[EMAIL PROTECTED]> wrote: > >... > > > for i , item in reversed( enumerate( sorted( single_list ) ) ) : >... > > TypeError: argument to reversed() must be a seq

Re: Any Good Book To Start ?

2007-08-06 Thread [EMAIL PROTECTED]
On Aug 6, 10:00 pm, "Simon Brunning" <[EMAIL PROTECTED]> wrote: > On 8/6/07, Katie Tam <[EMAIL PROTECTED]> wrote: > > > Please let me know any good book to start ? Thank You > > http://wiki.python.org/moin/PythonBooks > > -- > Cheers, > Simon B

Re: Tkinter or wxpython?

2007-08-06 Thread [EMAIL PROTECTED]
On Aug 2, 8:00 pm, "wang frank" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to build a GUI to execut python script. I found TKinter and > wxpython. Which one is easier for a newbie? and which one is better? > If you want to have a native look and feel, I'

Re: RTF 2 Tiff

2007-08-08 Thread [EMAIL PROTECTED]
On Aug 7, 4:09 pm, [EMAIL PROTECTED] wrote: > [...] > We are running Windows Operating Systems. I was not able to find > anything that actually would convert the images via command line or > interface. > [...] You could instruct OpenOffice to export the RTF files as PDF files by u

Re: 'Advanced' list comprehension? query

2007-08-08 Thread [EMAIL PROTECTED]
On Aug 8, 10:00 am, [EMAIL PROTECTED] wrote: > Hi, > > I'm playing around with list comprehension, and I'm trying to find the > most aesthetic way to do the following: > > I have two lists: > > noShowList = ['one', 'two', 'three'] &g

Re: Launch file from Python

2007-08-08 Thread [EMAIL PROTECTED]
On Aug 8, 2:39 pm, [EMAIL PROTECTED] wrote: > On Aug 8, 2:35 pm, Arnau Sanchez <[EMAIL PROTECTED]> wrote: > > > > > > > [EMAIL PROTECTED] escribió: > > > > That's just the exit status or run status, if I recall correctly. I > > > think 0 (i.

Re: accessing parts of large files with File.seek()

2007-08-08 Thread [EMAIL PROTECTED]
On Aug 8, 11:46 am, "mhearne808[insert-at-sign-here]gmail[insert-dot- here]com" <[EMAIL PROTECTED]> wrote: > I'm having a problem with the File object's seek() method. > Specifically, I cannot use it to seek to a location in a binary file > that is greater

Emacs PDB Windows

2007-08-09 Thread [EMAIL PROTECTED]
I'm trying to get PDB working on Emacs 2.1.3, Python 2.3, Windows XP. Whenever I try to run a Python file from the Emacs buffer using the PDB command I get the following error "spawning child process: invalid process" I've tried the exact same command from the command prompt and the debugger works

AttributeError: 'module' object has no attribute 'HTTPSHandler'

2007-08-10 Thread [EMAIL PROTECTED]
Hi I built and installed python 2.5 from source and when I do this: opener = urllib2.build_opener(SmartRedirectHandler(), DefaultErrorHandler(), urllib2.HTTPSHandler()) I get this error. AttributeError: 'module' object has no attribute 'HTTPSHandler' What should I do? -- http://mail.python.org/

Re: AttributeError: 'module' object has no attribute 'HTTPSHandler'

2007-08-10 Thread [EMAIL PROTECTED]
On 8/10/07, Matt McCredie <[EMAIL PROTECTED]> wrote: > > I built and installed python 2.5 from source and when I do this: > > opener = urllib2.build_opener(SmartRedirectHandler(), > > DefaultErrorHandler(), urllib2.HTTPSHandler()) > > I get this error. > > At

Re: The Future of Python Threading

2007-08-11 Thread [EMAIL PROTECTED]
Justin T. wrote: > On Aug 10, 2:02 pm, [EMAIL PROTECTED] (Luc Heinrich) wrote: >> Justin T. <[EMAIL PROTECTED]> wrote: >>> What these seemingly unrelated thoughts come down to is a perfect >>> opportunity to become THE next generation language. &g

Re: Complexity of methods etc

2007-08-13 Thread [EMAIL PROTECTED]
On Aug 13, 1:04 am, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > Hi, > > I was wondering if anyone knew of any resources, where I might be able > to find information about the complexity of certain python functions > or little tips on how to reduce complexity. I

Re: Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread [EMAIL PROTECTED]
Hi Joe You'd probably have better luck posting this to the mod python mailing list. Did you name your python script mptest.py and did you remember to restart Apache when you edited the httpd.conf file? If so then I don't see any reason why it shouldn't work although I've never tried mod_python und

Re: (sort of) deterministic timing in Python

2007-08-13 Thread [EMAIL PROTECTED]
On Aug 13, 5:16 pm, [EMAIL PROTECTED] (John Fisher) wrote: > I am working on a framework for data acquisition in Python 2.5, am > trying to get a structure going more like this: > > mark start time > start event > event finishes > count time until next interval

Re: Simple python iteration question

2007-08-14 Thread [EMAIL PROTECTED]
On Aug 14, 10:22 am, Bryan <[EMAIL PROTECTED]> wrote: > Hi, > > I just started with python, and have a for loop question > > In c++ (or a number of other languages) I can do this: > > for (int i=0, j=0; i < i_len, j< j_len; ++i, ++j) {} > > If I have this

Re: Simple python iteration question

2007-08-14 Thread [EMAIL PROTECTED]
On Aug 14, 11:27 am, [EMAIL PROTECTED] (Lawrence Oluyede) wrote: > Bryan <[EMAIL PROTECTED]> wrote: > > How do I do this? > > for i, item in enumerate(l): > print i, item > ^^ That is the `most-correct` answer. But because you're new, I'll take this tim

Re: module: zipfile.writestr - line endings issue

2007-08-14 Thread [EMAIL PROTECTED]
On Aug 14, 11:04 am, towers <[EMAIL PROTECTED]> wrote: > Hi > > I'm probably doing something stupid but I've run into a problem > whereby I'm trying to add a csv file to a zip archive - see example > code below. > > The csv just has several rows with carr

Re: A dumb question about a class

2007-08-14 Thread [EMAIL PROTECTED]
On Aug 13, 3:30 am, Steven Bethard <[EMAIL PROTECTED]> wrote: > Dick Moores wrote: > > At 03:35 PM 8/12/2007, Steven Bethard wrote: > >> Note that if you just want to iterate over all the primes, there's no > >> need for the class at all. Simply writ

ooh-yes

2007-08-14 Thread [EMAIL PROTECTED]
http://Theologos.kokkonis.googlepages.com/ http://kokonis.aygoystinos.googlepages.com/ -- http://mail.python.org/mailman/listinfo/python-list

ooh-yes

2007-08-14 Thread [EMAIL PROTECTED]
http://Theologos.kokkonis.googlepages.com/ http://kokonis.aygoystinos.googlepages.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python for dynamic behavior from C++

2007-08-15 Thread [EMAIL PROTECTED]
On Aug 15, 8:35 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi all, > > I am looking into using Python to introduce dynamic behavior in my > C++, e.g. something like a simulation where objects can interact with > eachother. I know Python can be called from C++,

Re: ming on win32 anyone ? [help a noob]

2007-08-15 Thread [EMAIL PROTECTED]
On Aug 15, 8:03 am, "daz.diamond" <[EMAIL PROTECTED]> wrote: > hoping someone can help ... > > how do I install ming (with python) on win32? have downloaded the tar.gz > of ming-0.3.0 which doesn't have a handy self-installer, and I'm > absolutely fo

Re: threads, mutual exclusion, and lists

2007-08-15 Thread [EMAIL PROTECTED]
On Aug 15, 1:36 pm, Scott <[EMAIL PROTECTED]> wrote: > I have two threads that share a python list. One thread adds to the > list with append(), the other thread removes items with pop(). > > My question is -- are python list operations atomic? If they are not, > then I assu

Re: Coroutines and argument tupling

2007-08-15 Thread [EMAIL PROTECTED]
On Aug 15, 3:37 pm, "Marshall T. Vandegrift" <[EMAIL PROTECTED]> wrote: > Bjoern Schliessmann <[EMAIL PROTECTED]> writes: > >> I'm trying to write a decorator which allows one to produce simple > >> coroutines by just writing a function as a

Re: Layer 2 socket connection

2007-08-16 Thread [EMAIL PROTECTED]
On Aug 15, 7:21 pm, alisonken1 <[EMAIL PROTECTED]> wrote: > Hello all - > > I'm looking at trying to write a python script to connect to a layer 2 > bridge (no IP available). > > Looking at the sockets function, it's not clear if I can connect using > only

Tuning - Styling

2007-08-16 Thread [EMAIL PROTECTED]
Cool cars, tuning & styling, modified cars, many upgrades here... http://tuning-styling.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: sub-classing the types in the builtin module datetime

2007-08-16 Thread [EMAIL PROTECTED]
On Aug 15, 5:54 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote: > I posted this about 5 hours ago, but it seems to have gone astray. (snipped) > > > >> I wish to sub-class (if that's the right word) datetime and to use a > >> different signa

Re: Naming dictionaries recursively

2007-08-17 Thread [EMAIL PROTECTED]
On Aug 17, 7:38 am, TYR <[EMAIL PROTECTED]> wrote: > I'd like to do something like this; iterate through a file which > consists of data stored in dictionary format, one dict on each line, > and read each line into a new dict using one of the values in the dict > as its

Re: best GUI library for vector drawing program

2007-08-17 Thread [EMAIL PROTECTED]
I used wxWidgets for a work like that. I found it quite easy to use and I found simple to create a Gui with wxdev which is quite rad. bye Pier Paolo -- http://mail.python.org/mailman/listinfo/python-list

Python library for RTSP protocol

2007-08-19 Thread [EMAIL PROTECTED]
Hi, Can you please tell me if there is a Python library which can talk RTSP/RTP protocol? i.e. i would like to write a script in python to download a video via a RTSP server? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Sorting a list of Unicode strings?

2007-08-19 Thread [EMAIL PROTECTED]
Hey Guys, Maybe I'm missing something fundamental here, but if I have a list of Unicode strings, and I want to sort these alphabetically, then it places those that begin with unicode characters at the bottom. Is there a way to avoid this, and make it sort them properly? I'm sure that this is the

Re: Sorting a list of Unicode strings?

2007-08-19 Thread [EMAIL PROTECTED]
On Aug 19, 6:01 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hey Guys, > > ... and girls - maybe ... > > > Maybe I'm missing something fundamental here, but if I have a list of > > Unicode strings, and I want to sort these

ctypes and unsigned char*

2007-08-19 Thread [EMAIL PROTECTED]
Hi, can anybody with ctypes experience tell me, how to handle a C function that returns an unsigned char*? Obviously it is not a restype of c_char_p. Best regards, Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: best GUI library for vector drawing program

2007-08-20 Thread [EMAIL PROTECTED]
Hi All, Today I have downloaded a SWT Software which is great to its features. You can learn many GUI details out of it. The basic functionality is it lists IP Addresses of the remote PC's your system is accessing. You may find the project under sourceforge.net http://sourceforge.net/projects/ne

Re: How to decompress .Z file?

2007-08-20 Thread [EMAIL PROTECTED]
On Aug 20, 9:02 am, Hyunchul Kim <[EMAIL PROTECTED]> wrote: > How can .Z file be decompressed? > > According to python library reference, .Z file might not be supported by > python, yet. Guess you can *outsource* the process to 7zip: http://7-zip.org/download.html It su

Re: Sorting a list of Unicode strings?

2007-08-20 Thread [EMAIL PROTECTED]
Thank you all for your very quick and informative replies. I was basing this assumption that Å was classed as a standard 'A' from a list of countries I was looking at (Wikipedia sorts it like this, too - though this isn't what I was using http://en.wikipedia.org/wiki/List_of_countries#A) I will l

Re: ctypes and unsigned char*

2007-08-20 Thread [EMAIL PROTECTED]
On 19 Aug., 20:40, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > In the first case, use a plain c_char_p - the individual "chars" are > already unsigned in Python (that is, ord(xxx[i]) is always positive) > In the second case, first define the pointer type: > &

Re: I Need help from all the group participants

2007-08-20 Thread [EMAIL PROTECTED]
On Aug 20, 9:16 am, Boris Ozegovic <[EMAIL PROTECTED]> wrote: > Hi, > > I am working on some system, and the communication will take place through > the chatterbot which will be written in AIML (interpreter is written in > Python). English is not my mother tongue, so I need h

Re: Handwriting Recognition

2007-08-20 Thread [EMAIL PROTECTED]
On Aug 20, 9:00 am, "Ian Dickinson" <[EMAIL PROTECTED]> wrote: > However a friend of mine who is a special educational needs teacher was > asking me if I could write some handwriting recognition software for her, > which would allow here pupils to write their inp

<    25   26   27   28   29   30   31   32   33   34   >