Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-11 Thread Julien Phalip
Hi Michael, Thanks again for your reply. I've tried using SMTP with TLS. And again it works with the VPN turned on but it still won't work with the VPN turned off. For some reason I don't understand, it simply won't instantiate the SMTP/SMTP_SSL/IMAP4/IMAP4_SSL objects at all and will hang fore

Re: functions which take functions

2012-04-11 Thread Tim Roberts
Kiuhnm wrote: > >That won't do. A good example is when you pass a function to re.sub, for >instance. This is an odd request. I often pass functions to functions in order to simulate a C switch statement, such as in a language translator: commands = { 'add': doAdd, 'subtract' : doSubt

[Windows] drag-and-drop onto .py file in modern versions?

2012-04-11 Thread Karl Knechtel
Hello all, Back when I had 2.6.x installed, I used to be able to drag a file onto a .py file in order to open it with that script (rather, pass the name of the file as `sys.argv[1]`). I did nothing special to make this work, as far as I can recall; it was something that the installer set up automa

Re: f python?

2012-04-11 Thread Tim Roberts
"WJ" wrote: > >Slashes can work under windows, up to a point: ALL Windows APIs accept forward slashes. The only place they are not accepted is command line commands that take options which can begin with forward slash. >Also, most languages I use under windows allow you to use >slashes in paths

Re: Framework for a beginner

2012-04-11 Thread Louis des Landes
A simpler version of Django or Pyramid is 'Flask' It's doco is great and aimed at a reasonably entry level. It's still quite powerful, but easier to set up to start with: http://flask.pocoo.org/ Louis. http://psykar.com -- http://mail.python.org/mailman/listinfo/python-list

FrinzoO Themes | Download Premium WordPress Themes For Free

2012-04-11 Thread hazem dahab
FrinzoO Themes give you magento themes,magento extensions,joomla templates,joomla extensions,wordpress theme,web templates,graphic Visit us at http://www.frinzoo.com -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Distutils2 Sprint in Montreal

2012-04-11 Thread Éric Araujo
Hi all, The Montreal-Python user group (http://montrealpython.org/) is hosting a sprint on the 21st of April to work on Distutils2. I will lead the sprint and commit the patches into the main distutils2 and cpython repositories, with the help of a few local hackers. If you live in Montreal, b

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread Mark Lawrence
On 11/04/2012 22:03, Dan Sommers wrote: These days, every job interview includes (or should include!) questions regarding which structures and which algorithms are better (or worse) for which circumstances, not to mention questions about algorithm complexity and big-O-notation. I find that peopl

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread Antti J Ylikoski
On 11.4.2012 23:20, John Nagle wrote: On 4/11/2012 6:03 AM, Antti J Ylikoski wrote: I wrote about a straightforward way to program D. E. Knuth in Python, and received an excellent communcation about programming Deterministic Finite Automata (Finite State Machines) in Python. The following stem

RE: Framework for a beginner

2012-04-11 Thread Ed W LaHay
You may want to look at udacity.com CS101. This is a free web based training program. CS101 introduces Python the next sessions starts the week of April 16. During the 7 weeks of sessions you will build a web browser. Ed W LaHay +1 925 429 1958 -Original Message- From: python-list-bo

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread Dan Sommers
On Wed, 11 Apr 2012 13:20:29 -0700 John Nagle wrote: > You don't need those books as much as you used to. You > don't have to write collections, hash tables, and sorts much any > more. Those are solved problems and there are good libraries. > Most of the basics are built into Python. "Nee

Re: Framework for a beginner

2012-04-11 Thread Micky Hulse
Hello, I've got more experience with PHP stuff, but for Python, I would recommend checking out Django "getting started": ... to see if you like it. Having used a few PHP frameworks and CMSs, I really dig that Django has a built-in admin; I am in th

Re: trac.util

2012-04-11 Thread Benjamin Kaplan
On Wed, Apr 11, 2012 at 4:52 PM, cerr wrote: > > Hi, > > I want to install some python driver on my system that requires trac.util > (from Image.py) but I can't find that anywhere, any suggestions, anyone? > > Thank you very much, any help is appreciated! > > Error: > File "/root/weewx/bin/Image.p

trac.util

2012-04-11 Thread cerr
Hi, I want to install some python driver on my system that requires trac.util (from Image.py) but I can't find that anywhere, any suggestions, anyone? Thank you very much, any help is appreciated! Error: File "/root/weewx/bin/Image.py", line 32, in from trac.util import escape ImportError

Re: red-black tree data structure

2012-04-11 Thread Dan Stromberg
Bringing this back to Python a bit: http://newcenturycomputers.net/projects/rbtree.html http://pypi.python.org/pypi/bintrees/0.3.0 http://pypi.python.org/pypi/treap/0.995 Red-Black trees are supposed to be slower than treaps on average, but they're also supposed to have a lower standard deviation

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread John Nagle
On 4/11/2012 6:03 AM, Antti J Ylikoski wrote: I wrote about a straightforward way to program D. E. Knuth in Python, and received an excellent communcation about programming Deterministic Finite Automata (Finite State Machines) in Python. The following stems from my Knuth in Python programming e

Framework for a beginner

2012-04-11 Thread biofobico
I am new to python and only have read the Byte of Python ebook, but want to move to the web. I am tired of being a CMS tweaker and after I tried python, ruby and php, the python language makes more sense (if that makes any "sense" for the real programmers). I heard a lot of good things about Dja

Re: python module development workflow

2012-04-11 Thread Miki Tebeka
> Could any expert suggest an authoritative and complete guide for > developing python modules? Thanks! I'd start with http://docs.python.org/distutils/index.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Library or Module for clipping audio files

2012-04-11 Thread Miki Tebeka
> I'm trying to find a good python library/module that will allow me to > clip audio files, preferably mp3/ogg format. Does anyone have any good > suggestions? I never used it, but I think pymedia might fit the bill. -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-04-11 Thread Benjamin Peterson
We're bursting with enthusiasm to announce the immediate availability of Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3. These releases included several security fixes. Note: Virtualenvs created with older releases in the 2.6, 2.7, 3.1, or 3.2 series may not work with these bugfix releases. Specifically, t

Re: functions which take functions

2012-04-11 Thread Tim Chase
On 04/10/12 08:36, Kiuhnm wrote: On 4/10/2012 14:29, Ulrich Eckhardt wrote: Am 09.04.2012 20:57, schrieb Kiuhnm: That won't do. A good example is when you pass a function to re.sub, for instance. If that's a good example, then why not use it? I've used it on multiple occasions to do lookups

Wing IDE 4.1.5 released

2012-04-11 Thread Wingware
Hi, Wingware has released version 4.1.5 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call tip

Re: red-black tree data structure

2012-04-11 Thread Jabba Laci
Hi, Thanks for the answer. I copy the solution here: According to wikipedia: "The original structure was invented in 1972 by Rudolf Bayer and named "symmetric binary B-tree," but acquired its modern name in a paper in 1978 by Leonidas J. Guibas and Robert Sedgewick." Answer from Professor Guidas

How to filter a dictionary ?

2012-04-11 Thread Wenhua Zhao
Hi, Nikhil Verma writes: > In [9]: (k for k,v in for_patient_type.iteritems() if v == 'Real') You can use dict comprehension, just change () to {}. >>> for_patient_type = {37: u'Test', 79: u'Real', 80: u'Real', 81: u'Real', 83: >>> u'Real', 84: u'Real', 91: u'Real', 93: u'Real'} >>> {k:v for k

Re: red-black tree data structure

2012-04-11 Thread Ian Kelly
On Wed, Apr 11, 2012 at 11:14 AM, Jabba Laci wrote: > Hi, > > It's not really a Python-related question, sorry for that. Does anyone > know why red-black trees got these colors in their names? Why not > blue-orange for instance? I'm just curious. http://programmers.stackexchange.com/questions/116

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread Kurt Mueller
Am 11.04.2012 16:38, schrieb mwil...@the-wire.com: Antti J Ylikoski wrote: I wrote about a straightforward way to program D. E. Knuth in Python, Maybe it's godly coded... $ python Easter.py The year: 2012 (20, 'th ', 'APRIL, ', 2012) $ AFAIK it was the 8th of April 2012? Grüessli -- Kurt

red-black tree data structure

2012-04-11 Thread Jabba Laci
Hi, It's not really a Python-related question, sorry for that. Does anyone know why red-black trees got these colors in their names? Why not blue-orange for instance? I'm just curious. Thanks, Laszlo -- http://mail.python.org/mailman/listinfo/python-list

Re: python module development workflow

2012-04-11 Thread Peng Yu
On Apr 11, 10:25 am, John Gordon wrote: > In <2900f481-fbe9-4da3-a7ca-5485d1ceb...@m13g2000yqc.googlegroups.com> Peng > Yu writes: > > > It is confusing to me what the best workflow is for python module > > development. There is setup.py, egg. Also, pip, easy_install. > > It's unclear what you a

Re: f python?

2012-04-11 Thread Pascal J. Bourguignon
Shmuel (Seymour J.) Metz writes: > In <87wr5nl54w@sapphire.mobileactivedefense.com>, on 04/10/2012 >at 09:10 PM, Rainer Weikusat said: > >>'car' and 'cdr' refer to cons cells in Lisp, not to strings. How the >>first/rest terminology can be sensibly applied to 'C strings' (which >>are sim

Re: python module development workflow

2012-04-11 Thread John Gordon
In <2900f481-fbe9-4da3-a7ca-5485d1ceb...@m13g2000yqc.googlegroups.com> Peng Yu writes: > It is confusing to me what the best workflow is for python module > development. There is setup.py, egg. Also, pip, easy_install. It's unclear what you are asking. How to develop your own modules? How to

python module development workflow

2012-04-11 Thread Peng Yu
Hi, It is confusing to me what the best workflow is for python module development. There is setup.py, egg. Also, pip, easy_install. Could any expert suggest an authoritative and complete guide for developing python modules? Thanks! Regards, Peng -- http://mail.python.org/mailman/listinfo/python

Re: f python?

2012-04-11 Thread Rainer Weikusat
Shmuel (Seymour J.) Metz writes: > In <87wr5nl54w@sapphire.mobileactivedefense.com>, on 04/10/2012 >at 09:10 PM, Rainer Weikusat said: > >>'car' and 'cdr' refer to cons cells in Lisp, not to strings. How the >>first/rest terminology can be sensibly applied to 'C strings' (which >>are simi

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread mwilson
Antti J Ylikoski wrote: > > I wrote about a straightforward way to program D. E. Knuth in Python, > and received an excellent communcation about programming Deterministic > Finite Automata (Finite State Machines) in Python. [ ... ] > #You can adjust that for your needs. Sometimes I have the stat

Re: f python?

2012-04-11 Thread Kaz Kylheku
["Followup-To:" header set to comp.lang.lisp.] On 2012-04-11, Shmuel Metz wrote: > In <87wr5nl54w@sapphire.mobileactivedefense.com>, on 04/10/2012 >at 09:10 PM, Rainer Weikusat said: > >>'car' and 'cdr' refer to cons cells in Lisp, not to strings. How the >>first/rest terminology can be s

Re: functions which take functions

2012-04-11 Thread Antti J Ylikoski
On 9.4.2012 21:57, Kiuhnm wrote: Do you have some real or realistic (but easy and self-contained) examples when you had to define a (multi-statement) function and pass it to another function? Thank you. Kiuhnm A function to numerically integrate another function comes as follows:

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread Antti J Ylikoski
On 11.4.2012 16:23, Grant Edwards wrote: On 2012-04-11, Antti J Ylikoski wrote: I wrote about a straightforward way to program D. E. Knuth in Python, Yikes. I think if you're going to try to write AI in Pyton, you might want to start out programming something a bit simpler... ;) :-))

Re: f python?

2012-04-11 Thread Seymour J.
In <87wr5nl54w@sapphire.mobileactivedefense.com>, on 04/10/2012 at 09:10 PM, Rainer Weikusat said: >'car' and 'cdr' refer to cons cells in Lisp, not to strings. How the >first/rest terminology can be sensibly applied to 'C strings' (which >are similar to linked-lists in the sense that ther

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread Grant Edwards
On 2012-04-11, Antti J Ylikoski wrote: > I wrote about a straightforward way to program D. E. Knuth in Python, Yikes. I think if you're going to try to write AI in Pyton, you might want to start out programming something a bit simpler... ;) -- Grant Edwards grant.b.edwards

Donald E. Knuth in Python, cont'd

2012-04-11 Thread Antti J Ylikoski
I wrote about a straightforward way to program D. E. Knuth in Python, and received an excellent communcation about programming Deterministic Finite Automata (Finite State Machines) in Python. The following stems from my Knuth in Python programming exercises, according to that very good communica

Webhosting, Domain Name, Data Center Cyprus, Hosting Services

2012-04-11 Thread Webhosting, Domain Name, Data Center Cyprus, Hosting Services
Webhosting – postcy - a leading web hosting company. We offer webhosting, domain name, hosting services, cyprus domain, domain names cyprus at affordable cost. for more details please contact : http://www.postcy.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: functions which take functions

2012-04-11 Thread Dave Angel
On 04/11/2012 06:55 AM, Kiuhnm wrote: > On 4/10/2012 23:43, Eelco wrote: >> On Apr 10, 3:36 am, Kiuhnm wrote: >>> On 4/10/2012 14:29, Ulrich Eckhardt wrote: >>> Am 09.04.2012 20:57, schrieb Kiuhnm: > Do you have some real or realistic (but easy and self-contained) > examples when you

Re: functions which take functions

2012-04-11 Thread Kiuhnm
On 4/10/2012 23:43, Eelco wrote: On Apr 10, 3:36 am, Kiuhnm wrote: On 4/10/2012 14:29, Ulrich Eckhardt wrote: Am 09.04.2012 20:57, schrieb Kiuhnm: Do you have some real or realistic (but easy and self-contained) examples when you had to define a (multi-statement) function and pass it to anot

Re: f python?

2012-04-11 Thread WJ
Xah Lee wrote: > > so recently i switched to a Windows version of python. Now, Windows > version takes path using win backslash, instead of cygwin slash. This > fucking broke my find/replace scripts that takes a dir level as input. > Because i was counting slashes. Slashes can work under windows

[Click the star to watch this topic] HOT LINKS FOR YOUTH ONLY

2012-04-11 Thread e kartheeka
[Click the star to watch this topic]HOT LINKS FOR YOUTH ONLY -- http://mail.python.org/mailman/listinfo/python-list