Asynchronous Soappy on AppEngine

2012-09-14 Thread Dennis
e if I can put in callsbacks with urllib somewhere, but I think I am even more confused now. Thoughts suggestions, besides used twisted? Regards, Dennis [1] ( https://developers.google.com/appengine/docs/python/urlfetch/asynchronousrequests -- http://mail.python.org/mailman/listinfo/python-list

Re: Please help if you can!

2012-12-26 Thread Dennis
> > My *very first* thought about this code is that it's really badly spaced. > Don't put lines together so much! [https://gist.github.com/4383950] shows > how much nicer things look when they're partitioned more. You may not > agree, but it took about 10 seconds and I prefer it. > > On another st

urllib2 opendirector versus request object

2011-06-09 Thread Dennis
[('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv,1.9.2.13) Gecko/20101203 Firefox/3.6.13')] response = opener.open(url, paramaters) Dennis O. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question About Command line arguments

2011-06-10 Thread Dennis
On Fri, Jun 10, 2011 at 11:03 AM, Dennis wrote: > On Fri, Jun 10, 2011 at 10:58 AM, Mark Phillips > wrote: >> On Fri, Jun 10, 2011 at 10:41 AM, MRAB wrote: >> >> On 10/06/2011 18:21, Mark Phillips wrote: > >> > How do I write my script so it picks up argumen

Re: Question About Command line arguments

2011-06-10 Thread Dennis
if len(sys.argv[1:]) > 0: # if the length of the first argument is > 0 #[1:] strip the first string beacause it is the name of the script arg = sys.argv[1:] print arg if __name__ == "__main__": main() fred ['alice&#x

Re: Question About Command line arguments

2011-06-10 Thread Dennis
On Fri, Jun 10, 2011 at 1:33 PM, Dennis wrote: > On Fri, Jun 10, 2011 at 11:58 AM, Mark Phillips > fred > > ['alice'] > fred Just realized the if/else will have to be changed slightly if we want to output both argv and stdin. -- http://mail.python.org/mailman/listinfo/python-list

Re: i want to learn pyqt ,but i have no c++ knowlage. is it ok????

2011-06-10 Thread Dennis
well. This was posted to the list recently too in case you missed it: http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html I'm sure everyone else has their own list of links. Thanks, Dennis O. -- http://mail.python.org/mailman/listinfo/python-list

which threading libraries to use?

2011-06-11 Thread Dennis
es do you consider best documented? Most thread-safe? Efficient? Ultimately this will be used for asynchronous SNMP, HTTP, and WMI. I don't think this will need to evolve into a multi-process project, unless of course that is much easier to do than multi-threading? Thanks, Dennis O

Re: Security test of embedded Python

2011-06-21 Thread Dennis
/commontasks.html I hope this helps somewhat - I know lacking some specifics. Dennis O. -- http://mail.python.org/mailman/listinfo/python-list

change spacing to two instead of four with pep8 or flake8?

2014-04-07 Thread Dennis
as obvious. hacky/non-hacky solutions welcome of course. If this is too specific and I should go to the pep8/flake8 MLs that is welcome advice too. Thanks, Dennis -- https://mail.python.org/mailman/listinfo/python-list

python confusion possibly related to pickle

2008-05-18 Thread Dennis
I have a problem that I don't understand at all. I run a python script, which uses pickle, and it fails. That alone is, perhaps, no big deal. The problem that's got me annoyed is that after getting said error I close the shell window, open a new one, run the python interpreter and type "impo

Re: python confusion possibly related to pickle

2008-05-18 Thread Dennis
Never mind. I solved it. I had a file called pickle in the same folder I was in when I ran python, and that's the file it was trying to import. Duh @ me :s Dennis wrote: I have a problem that I don't understand at all. I run a python script, which uses pickle, and it fails. Tha

Re: python confusion possibly related to pickle

2008-05-19 Thread Dennis
Derek Martin wrote: On Sun, May 18, 2008 at 08:28:34PM +0100, Dennis wrote: The problem that's got me annoyed is that after getting said error I close the shell window, open a new one, run the python interpreter and type "import pickle" and get the error that the script I'

A small and very basic python question

2008-04-27 Thread Dennis
Could anyone tell me how this line of code is working: filter(lambda x: x in string.letters, text) I understand that it's filtering the contents of the variable text and I know that lambda is a kind of embedded function. What I'd like to know is how it would be written if it was a normal fun

Re: A small and very basic python question

2008-04-27 Thread Dennis
I didn't give up after posting and managed to grasp this whole lambda thing! No need to respond now :-) I understood it the moment I tried to type out, instead of just thinking in my head, what was going on as a normal function. Dennis wrote: Could anyone tell me how this line of co

Re: twenty years ago Guido created Python

2010-01-01 Thread dennis
On Jan 1, 6:04 am, Krishnakant wrote: > On Fri, 2010-01-01 at 03:25 -0800, J Peyret wrote: > > On Dec 31 2009, 2:06 pm, Steve Howell wrote: > > > FYI: > > > >http://twitter.com/gvanrossum > > > > Python is a truly awesome programming language.  Not only is Guido a > > > genius language designer,

How to properly implement worker processes

2012-08-22 Thread Dennis Jacobfeuerborn
to simply kill the child process when it's no longer needed? Regards, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: How to properly implement worker processes

2012-08-22 Thread Dennis Jacobfeuerborn
On Wednesday, August 22, 2012 7:46:34 PM UTC+2, Ian wrote: > On Wed, Aug 22, 2012 at 11:29 AM, Dennis Jacobfeuerborn > > wrote: > > > Hi, > > > I'm trying to implement a system for periodically checking URLs and I've > > run into problems with some

Re: How to properly implement worker processes

2012-08-22 Thread Dennis Jacobfeuerborn
On Wednesday, August 22, 2012 11:15:10 PM UTC+2, Ian wrote: > On Wed, Aug 22, 2012 at 1:40 PM, Dennis Jacobfeuerborn > > wrote: > > > I was thinking about something like that but the issue is that this really > > only works when you don't do any actual blocki

Where to set default data - where received, or where used

2012-06-11 Thread Dennis Carachiola
I'm programming a project which will use a file to save parameters needed by the program. There are already two previous file formats, each of which can only be run by the version of the program which created them. I'm trying to avoid that problem in the future. To do that, I intend to use a dic

Re: why no camelCase in PEP 8?

2020-05-31 Thread Dennis Carachiola
>From PEP8-- "The guidelines provided here are intended to improve the readability of code and make it consistent across the wide spectrum of Python code. As PEP 20 says, "Readability counts". A style guide is about consistency. Consistency with this style guide is important. Consistency within

Re: OT: ALGOL 60 at 60

2020-05-31 Thread Dennis Carachiola
Ah, but I have used it. Admittedly it was during a programming languages survey course at RPI in 1971-3. -- https://mail.python.org/mailman/listinfo/python-list

Documentation for iteration in mappings

2005-10-25 Thread Dennis Benzinger
Hi! I must be blind because I didn't find anything in the documentation which says iterating over an dictionary iterates over its keys. For example a_dictionary = {0: "zero", 1: "one"} for x in a: print x gives you 0 1 Where is this information hidden?

Re: Math markup in code documentation?

2005-10-25 Thread Dennis Benzinger
job... MathML or LaTeX possible? > [...] Try Doxygen: http://www.doxygen.org Examples of formulas are here: http://www.stack.nl/~dimitri/doxygen/formulas.html Doxygen has the advantage that you can use it for a variety of programming languages. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: any python module to calculate sin, cos, arctan?

2005-11-08 Thread Dennis Benzinger
Shi Mu schrieb: > any python module to calculate sin, cos, arctan? Yes. Use the math module or the cmath module if you need mathematical functions for complex numbers. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: parse data

2005-11-09 Thread Dennis Benzinger
; names = [] for match in re.finditer("Name:(.*)", your_data): names.append(match.group(1)) print names Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: path module / class

2005-11-16 Thread Dennis Benzinger
e to see something like > Jason Orendorff's path class make its way into the python standard > library. > [...] If you think having such a class in the standard library is that important then you should write a PEP by yourself... Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: searching for files on Windows with Python

2005-11-17 Thread Dennis Benzinger
gt; ... > return foundFileNames > > Is the os module where I should start? > [...] Yes, especially the os.walk() function should help you. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: the first element in the list of list

2005-11-22 Thread Dennis Benzinger
],[1,3],[3,4],[5,6],[8,9]] your_list = [[1,3],[3,4],[5,6],[8,9],[14,0],[15,8]] for index, sublist in enumerate(your_list): if abs(sublist[1] - sublist[0]) > 6: your_list = your_list[index:] + your_list[:index] break print your_list Bye, Dennis -- http://mail.python

Re: XMLSchema Parsing

2005-11-29 Thread Dennis Benzinger
km schrieb: > Hi all, > i'd like to know if there are any good XMLSchema (.xsd files) parsing modules > in python. > regards, > KM > Try lxml <http://codespeak.net/lxml/> a pythonic binding for the libxml2 and libxslt libraries. Bye, Dennis -- http://mail.pytho

Re: newbie question concerning formatted output

2005-11-29 Thread Dennis Benzinger
ds[i::VALUES_PER_LINE]) for triple in map(None, *ranges): print " ".join(str(value) for value in triple if value is not None) Hmm, the second solution seems to be a bit too tricky... Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Python web publishing framework like Cocoon?

2005-12-07 Thread Dennis Benzinger
Hi! Is there a Python web publishing framework like Cocoon? I found Maki <http://maki.sourceforge.net/> but it was last updated in 2003 and its author says that he doesn't want to make another release... Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Folder in Desktop

2005-01-25 Thread Dennis Benzinger
s.Popen('explorer "C:\program files"') With subprocess.Popen no cmd.exe window is opened and the explorer starts in front of the other windows. But the subprocess module is new in Python 2.4. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: module for 'po' files

2005-01-25 Thread Dennis Benzinger
d the source and see if there's something in there which you can use! Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: string.atoi and string.atol broken?

2005-01-25 Thread Dennis Benzinger
t;return _int(s, base) >>ValueError: invalid literal for int(): 8 >> > > s.atoi('4',3) should result in 11 > > s.atoi('13',4) should result in 31 > > s.atoi('12',4) should result in 30 > > s.atoi('8',4) is legitimate, but it generates an error. > > Is this a bug, or am I missing something obvious? > [...] That's not a bug, you'r missing something obvious. The second parameter of string.atoi (or the int builtin) is the base (or radix) in which the number you want to convert is given. For example string.atoi("777", 8) results in 511, because 7 * 8**2 + 7 * 8**1 + 7 * 8**0 = 511. Just out of curiosty: What did you think what atoi does? I don't understand how you came to expect that atoi('4',3) should result in 11. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: String Fomat Conversion

2005-01-27 Thread Dennis Benzinger
? > In the actual application, the pairs are floating pt i.e. -1.003 > Either do what the other posters wrote, or if you really like scanf try the following Python module: Scanf --- a pure Python scanf-like module http://hkn.eecs.berkeley.edu/~dyoo/python/scanf/ Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb - Tuples

2005-02-01 Thread Dennis Benzinger
Woher kommen diese Klammern und Apostrophen, vom MySQLdb? Die Klammern und Apostrophe kommen daher, dass tup ein Tupel (http://docs.python.org/lib/typesseq.html) mit einem Element (der Person) ist. Dennis -- http://mail.python.org/mailman/listinfo/python-list

Embedded Systems Python?

2005-06-20 Thread Dennis Clark
(don't mention Kaffe, it seems pretty fragile to me.) I'm a bit of a newb when it comes to Python, is there anyone with experience compiling it on Linux platforms that can offer me pointers to try this out myself? thanks, DLC -- ====

Re: Embedded Systems Python?

2005-06-21 Thread Dennis Clark
hanks, DLC -- ==== * Dennis Clark [EMAIL PROTECTED]www.techtoystoday.com * * "Programming and Customizing the OOPic Microcontroller" Mcgraw-Hill 2003 * -- ht

Re: command line argument passing

2005-07-22 Thread Dennis Benzinger
optparse module. Docs: http://www.python.org/doc/2.4.1/lib/module-optparse.html Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

certificate-based authentication

2005-08-18 Thread Dennis . Hoffman
I have been using XML-RPC to get information from one of our remote servers. To improve security, the server now has a certificate installed, and when I try to access it, I get an 'Unauthorized' exception. Is there an xmlrpclib module that supports (client-side) certificate-based authentication?

Re: certificate-based authentication (Martin v. L?wis)

2005-08-18 Thread Dennis . Hoffman
ost_info to return the x509_info. > You then pass an instance of your transport to the ServerProxy. > HTH, > Martin I'm using Python version 2.2 - the SafeTransport class in it's xmlrpclib doesn't have a 'get_host_info' method. Which version were you referring to? thanks Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: certificate-based authentication (Martin v. Löwis)

2005-08-19 Thread Dennis . Hoffman
where does it come from? You must excuse my ignorance, as this is all fairly new to me, and am still in the learning phase. Thanks Dennis -- http://mail.python.org/mailman/listinfo/python-list

Downloadable python-dev archive February 2005 contains only one mail?

2005-02-08 Thread Dennis Benzinger
Hi! I just downloaded the archive of the python-dev mailing list for February 2005 from http://mail.python.org/pipermail/python-dev/2005-February.txt.gz and there is only one mail in it. Did anyone have this problem, too? Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: pyclbr

2005-02-10 Thread Dennis Benzinger
module "name" is changed and > some class were added or removed i can't see any changes even if i > execute readmodule again. > > any idea?, thanks in advance pyclbr caches modules it has already read. I think there is no method for clearing that cache, so you have to

Re: Multiple initialization methods?

2005-02-16 Thread Dennis Benzinger
not given!" else: print "par2 is", par2 Read more in the FAQ: http://www.python.org/doc/faq/programming.html#how-can-i-overload-constructors-or-methods-in-python or in the tutorial: http://docs.python.org/tut/node6.html#SECTION00671 Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Whats up with re module vs pre

2005-02-17 Thread Dennis Benzinger
ecursion limit exceeded > > As soon as I switched "import re" to "import pre as re" my program > worked as expected. In the words of Jerry Sienfeld, what's up with > that? Try again with Python 2.4. The re module is now non-recursive (http://www.python.org/2.4/highlights.html), so you shouldn't get any "maximum recursion limit exceeded" errors. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: recombination variations

2004-11-30 Thread Dennis Benzinger
David Siedband wrote: > [...] > Is there a better way to do this? > [...] Take a look at Biopython: http://biopython.org/ Your problem may be solved there already. -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython bug

2004-12-09 Thread Dennis Benzinger
Jive wrote: > [...] > What to do? Ask in comp.soft-sys.wxwindows -- http://mail.python.org/mailman/listinfo/python-list

Re: pywhich script - where is that module?

2004-12-17 Thread Dennis Benzinger
Thomas Guettler wrote: > [...] > Nice, you could add it to the python cookbook. > [...] Just in the case the OP doesn't know where to find the cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question - default values of a function

2004-12-22 Thread Dennis Benzinger
is in effect modified. " > > > Surely the variable i is a mutable object? > [...] No, i is not mutable! i is a name for a number object which is _not_ mutable (http://www.python.org/doc/2.4/ref/types.html). The line i=i+1 creates a new number object with the value 1 and gives it the name i. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: build flow? SCons? AAP? process creation?

2005-04-13 Thread Dennis Benzinger
ch was introduced in Python 2.4: http://docs.python.org/lib/module-subprocess.html Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: RE Engine error with sub()

2005-04-15 Thread Dennis Benzinger
od. [...] I didn't read your code, but this sounds like you have a problem with the regular expression engine being recursive in Python versions < 2.4. Try again using Python 2.4 or later (i.e. Python 2.4.1). The new regular expression engine is not recursive anymore. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Interpretation

2016-03-26 Thread Dennis Ngeno
My programs have never combile, they keep telling me , systax error even after copy pasting -- https://mail.python.org/mailman/listinfo/python-list

Searching for a usable X509 implementation

2015-07-03 Thread Dennis Jacobfeuerborn
no way to save a public key to a file which is baffling. M2Crypto has that ability but apparently no usable way to verify a certificate? Is there really no usable module out there to enable straightforward certificate handling? Regards, Dennis -- https://mail.python.org/mailman/listinfo/python-list

Re: How To Read Excel Files In Python?

2005-12-13 Thread Dennis Benzinger
Anand schrieb: > Hello, > > Can I get some help on how to read the excel files using python? > [...] Besides using the Excel component you could use the pyExcelerator <http://sourceforge.net/projects/pyexcelerator> module. You even don't need Windows for it.

Re: Newbie needs help with regex strings

2005-12-14 Thread Dennis Benzinger
r field in FIELDS: field_regexes[field] = re.compile("%s=([^,\n]*)" % field) for line in StringIO.StringIO(filea_string): field_values = {} for field in FIELDS: match_object = field_regexes[field].search(line) if match_object is not None: field_values[field] = match_object.group(1) print field_values #fileb.write (quantity,pie,cooked,ingredients) Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie needs help with regex strings

2005-12-14 Thread Dennis Benzinger
odule will just separate the key=value pairs and you would still have to take them apart. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: to write set of values to a file from python

2005-12-14 Thread Dennis Benzinger
or ".xls" or ".txt" which will be the > better one. > so that later it will be easy for me to read this file. > > thanks in advance for the help > > regards > yogi > I would use a comma separated values (CSV) file. Have a look at the csv module <http://www.python.org/doc/2.4.2/lib/module-csv.html>. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python newbie needs help

2005-12-14 Thread Dennis Benzinger
; Am I going about this all wrong? > [...] The easiest solution for you would be a world variable in your lets module. Then at the interactive prompt you could refer to it with lets.world. So the loadworld function in lets.py would look like this: def loadworld(): # Your loading code global world world = ... Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: set & random.choice question

2005-12-14 Thread Dennis Benzinger
ris", "tracy")) def draw_from_set(a_set): random_index = random.randint(0, len(x) - 1) for i, name in enumerate(x): if i == random_index: return name somebody = draw_from_set(x) print somebody Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: to write set of values to a file from python

2005-12-14 Thread Dennis Benzinger
[EMAIL PROTECTED] schrieb: > [...] > its printing each character in a seperate row where as > i wanteach string in a seperate column? > > so how can i do that?? Any help for this. > [...] Could you post your code here? Or explain what you did exactly. By

SVG rendering with Python

2005-12-14 Thread Dennis Benzinger
Hi! Does anybody know of a SVG rendering library for Python? Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Which package to choose?

2005-12-21 Thread Dennis Benzinger
need > proper documentation" > [...] lxml <http://codespeak.net/lxml/> may be what you are looking for. It's a pythonic binding for libxml2 and libxslt. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get the type of an object?

2005-12-21 Thread Dennis Benzinger
es.html> may also help you. Small example: a_list = [1, "two", [3], (4,), {5: 5}] for item in a_list: if isinstance(item, list): print "It's a list" else: print type(item) Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

psexec and os.popen help

2006-01-06 Thread dennis . scales
cause when I run the command from the DOS prompt, it shows it. I don't have this problem when wrapping other PSTools. Has anyone else had this problem, or can someone try it and verify that it works, then show me there work? I really appreciate it. Its been a late night. Thanks Dennis -

Re: how to test for a dependency

2006-01-09 Thread Dennis Benzinger
<http://python.org/doc/2.4.2/lib/module-subprocess.html>. Create a Popen object with stdout = PIPE so that a pipe to the child process is created and connected to the client's stdout. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Client/Server Question

2006-07-28 Thread Dennis Benzinger
then after that it doesn't accept subsequent > command. I want is that it should accept subsequent commands like > Driving Sim and launch windows explorer etc untill I send a 'SHUTDOWN' > command. > > Any help on this, it will be greatly appreciated. > os.system() blocks until the called program has finished. Use the subprocess module <http://docs.python.org/lib/module-subprocess.html>: import subprocess subprocess.Popen("notepad") Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Client/Server Question

2006-07-29 Thread Dennis Benzinger
on.org/dev/peps/pep-0324/>. Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie help - test for data type

2006-07-31 Thread Dennis Benzinger
if it's not a list and then turn it into a list: if not isintance(selecteddeptcodes, list): selecteddeptcodes = [selecteddeptcodes] Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

strftime replacement which supports Unicode format strings?

2006-08-06 Thread Dennis Benzinger
Is there a library with a strftime replacement which supports Unicode format strings? Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: item access time: sets v. lists

2006-10-04 Thread Dennis Benzinger
e(1)):pass","") > >>> t2=timeit.Timer("for i in list(xrange(1)):pass","") > [...] You're measuring the time for creating the xrange and the set/list too. Create them before you call Timer() and repeat your timing. Dennis Benzinger -- http://mail.python.org/mailman/listinfo/python-list

Re: How to check for instances of a class

2006-11-14 Thread Dennis Benzinger
e have an example it is much appreciated. Use isinstance() <http://docs.python.org/lib/built-in-funcs.html>. You need something like >> isinstance(list_element, your_class) Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Using pysqlite2

2006-06-02 Thread Dennis Benzinger
contain UPDATE, INSERT, DELETE and SELECT statements http://sqlite.org/lang_createtrigger.html>. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: in python , could I accomplish the purpose that "a=Console.read()" used in C?

2006-06-04 Thread Dennis Benzinger
, and click "enter" key, the program will go > on running. > Use raw_input() <http://docs.python.org/lib/built-in-funcs.html>: age = raw_input("Your age: ") print age Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I automatically redirect stdout and stderr when using os.popen2?

2006-06-07 Thread Dennis Benzinger
or some other file. > > Thanks, > Mike > Use the POpen class <http://docs.python.org/lib/node235.html> from the subprocess module. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: creating and naming objects

2006-06-07 Thread Dennis Benzinger
c. > [...] Just return your Student object from createStudent() and put it in a list. For example: all_students = [] for i in range(10): one_student = createStudent() # Do what you want with one_student here all_students.append(one_student) print all_students BTW: Why don&

Re: tracking dependencies

2006-06-08 Thread Dennis Benzinger
> >Michele Simionato > I've never tried it, but http://www.tarind.com/depgraph.html looks like what you are looking for. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python with Eclipse

2006-06-19 Thread Dennis Benzinger
be appreciated. > > Regards, > > S Cook Which Python plugin are you using? PyDev? Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python with Eclipse

2006-06-20 Thread Dennis Benzinger
Philippe Martin wrote: > Dennis Benzinger wrote: > >> Stan Cook wrote: >>> I've been trying to use Eclipse with Python on Linux for a while and >>> have noticed something odd. After running the code or debugging a few >>> times, its responsiveness ge

Problem with sets and Unicode strings

2006-06-27 Thread Dennis Benzinger
ts succeed and the third one fails with an exception? Why does the use of set/frozenset remove the exception? Thanks, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python UTF-8 and codecs

2006-06-27 Thread Dennis Benzinger
s.open('foo.txt', 'rU', 'utf-8', errors='strict') > and that doesn't work > [...] You want to write to a file but you used the 'rU' mode. This should be 'wU'. Don't know if this is the only reason it doesn't work. Could you show more of your code? Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with sets and Unicode strings

2006-06-27 Thread Dennis Benzinger
Serge Orlov wrote: > On 6/27/06, Dennis Benzinger <[EMAIL PROTECTED]> wrote: >> Hi! >> >> The following program in an UTF-8 encoded file: >> >> >> # -*- coding: UTF-8 -*- >> >> FIELDS = ("Fächer", ) >> FROZEN_FIELDS

Re: Problem with sets and Unicode strings

2006-06-28 Thread Dennis Benzinger
Serge Orlov wrote: > On 6/27/06, Dennis Benzinger <[EMAIL PROTECTED]> wrote: >> Serge Orlov wrote: >> > On 6/27/06, Dennis Benzinger <[EMAIL PROTECTED]> wrote: >> >> Hi! >> >> >> >> The following program in an UTF-8 encoded

Re: Problem with sets and Unicode strings

2006-06-28 Thread Dennis Benzinger
Robert Kern wrote: > Dennis Benzinger wrote: >> Serge Orlov wrote: >>> On 6/27/06, Dennis Benzinger <[EMAIL PROTECTED]> wrote: >>>> Hi! >>>> >>>> The following program in an UTF-8 encoded file: >>>> >>>> >>

Re: Problem with sets and Unicode strings

2006-06-29 Thread Dennis Benzinger
the hashes vary, the set doesn't bother to actually compare the > values. > [...] Ok, I understand. But isn't it a (minor) problem that using a set like this: # -*- coding: UTF-8 -*- FIELDS_SET = set(("Fächer", )) print u"Fächer" in FIELDS_SET print u"F

Re: Problem with sets and Unicode strings

2006-06-29 Thread Dennis Benzinger
Robert Kern wrote: > Dennis Benzinger wrote: >> Ok, I understand. >> But isn't it a (minor) problem that using a set like this: >> >> # -*- coding: UTF-8 -*- >> >> FIELDS_SET = set(("Fächer", )) >> >> print u"Fächer"

Re: change the size of front

2006-07-04 Thread Dennis Benzinger
ies('smaller') ) Try legend('this',prop = matplotlib.font_manager.FontProperties(size = 'smaller')) > show() > > NameError: name 'FontProperties' is not defined > > thanks Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding Return Code From GPG

2006-07-04 Thread Dennis Benzinger
ng simple then you can use its call function <http://docs.python.org/lib/node236.html>. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: [Mailman-Developers] Parsing and Rendering rfc8222

2006-07-05 Thread John Dennis
y the MLM, but rather than bringing any of this functionality into Mailman lets define the interfaces which are needed such that Mailman can operate cooperatively with any archiver which supports a well defined API. -- John Dennis <[EMAIL PROTECTED]> Red Hat Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: [Mailman-Developers] Parsing and Rendering rfc2822

2006-07-06 Thread John Dennis
this during your summer of code? You've got great ideas, but be realistic about what you can actually accomplish and don't forget for those folks who dislike pipermail one can with minimal effort use an external archiver. -- John Dennis <[EMAIL PROTECTED]> Red Hat Inc. -- htt

Re: [Mailman-Developers] Parsing and Rendering rfc2822

2006-07-06 Thread John Dennis
On Thu, 2006-07-06 at 14:17 -0400, John Dennis wrote: > ... don't forget for those folks who dislike > pipermail one can with minimal effort use an external archiver. Oh, and I should have added that one of the beefs with using an external archiver is the disjoint UI between mail

BIOS Changes (enable WOL)

2006-09-14 Thread Feiock, Dennis
I was wondering if it is possible to access the BIOS settings on a system using Python.  I would like to be able to write a script that would enable WOL on a specified system.  For the most part, it would be Win32 systems, but could be just about any flavor of UNIX as well.   Thanks for a

Re: automatically grading small programming assignments

2006-12-14 Thread Dennis Benzinger
rian Blais > Perhaps the Sphere Online Judge can help you: https://www.spoj.pl/info/ Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: sha, PyCrypto, SHA-256

2006-12-16 Thread Dennis Benzinger
256 algorithm? > > Thank you. > Python 2.5 comes with SHA-256 in the hashlib module. So you could install Python 2.5 instead of the PyCrypto module. Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: url filtering

2006-12-17 Thread Dennis Benzinger
script, html tags and other not nececary data) ? > > Thanx Try Beautiful Soup: http://www.crummy.com/software/BeautifulSoup/ Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and XML Schema

2006-01-25 Thread Dennis Benzinger
I don't know how complete the structures implementation is and if it can already do what you want. So you might ask the libxml2 guys how to do what you want with libxml2 and then use lxml to do it in Python. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange behavior with os call in cgi script

2006-02-05 Thread Dennis Benzinger
sophie_newbie schrieb: > I have written a cgi script that seems to run perfectly from the > command line when I simulate some cgi input using > os.environ['QUERY_STRING']. > > The thing is that when I run it from the browser, one of my os.system > calls, which gets excecuted fine when running the

Re: Most prominent Tkinter applications?

2006-02-05 Thread Dennis Benzinger
atform. > > I know IDLE is written in Tkinter, so that's one example. Can anyone > direct me to others? > Leo <http://webpages.charter.net/edreamleo/front.html>, an outlining editor, uses Tkinter. It's at least as prominent as IDLE ;-) Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

Re: apache mod_python problem

2006-02-15 Thread Dennis Benzinger
mentation, especially the Configuring Apache section: http://modpython.org/live/current/doc-html/inst-apacheconfig.html Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >