Re: Only one forum app in Python?

2010-07-09 Thread Jeroen Ruigrok van der Werven
ive instance of it. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B All for one, one for all... -- http://mail.python.org/mailman/listinfo/python-list

Re: Natural Language Processing in Python

2009-08-14 Thread Jeroen Ruigrok van der Werven
-On [20090814 18:39], Prateek (prateekkakir...@gmail.com) wrote: >Can somebody please provide me link to a good online resource or e- >book for doing natural language processing programming in Python. http://www.nltk.org/ comes to mind. -- Jeroen Ruigrok van der Werven / asmodai イェルーン

Re: unicode() vs. s.decode()

2009-08-09 Thread Jeroen Ruigrok van der Werven
asy on hand waving here that mere minute runtimes are not noticeable. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B When we have not what we like, we must like what we have... -- http://mail.python.org/mailm

Re: Convert UNIX formated text files to DOS formated?

2009-05-12 Thread Jeroen Ruigrok van der Werven
-On [20090513 05:53], walterbyrd (walterb...@iname.com) wrote: >As you probably know, cygwin formats to UNIX. That entirely depends on how you install it. Anyway, I am sure the Cygwin repository has the tools dos2unix/unix2dos available for installation. -- Jeroen Ruigrok van der Wer

Re: import and package confusion

2009-04-29 Thread Jeroen Ruigrok van der Werven
each subpackage/module you could add an import and __all__ to __init__.py to expose Conditions and then shorten it all to: import VLMLegacy.VLM4997 as VLM4997 import VLMLegacy.VLMPC as VLMPC import VLMLegacy.WINGTL as WINGTL So that you can do: a = VLM4997.Conditions(rdr, 2) a.test() -- Jeroen R

Re: Help AIX 5.3 build on Python-3.1a2

2009-04-28 Thread Jeroen Ruigrok van der Werven
s passed to the compiler/linker correct (-L) for locating libtk8.3.so? -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Time is a twofold teacher, harsh and yet patient like no-one... -- http://mail.python.org

Re: Help AIX 5.3 build on Python-3.1a2

2009-04-27 Thread Jeroen Ruigrok van der Werven
I will >experiment a little bit and see if I make it compile. I'll be interested to see if that fixes it. I have had to support a bunch of different Unix systems over the years compile-wise, but I don't think AIX was one of them though, so I might be a bit rusty there. -- Jeroen R

Re: Help AIX 5.3 build on Python-3.1a2

2009-04-26 Thread Jeroen Ruigrok van der Werven
can a redefinition. One way around it, depending how AIX protects headers might be to change Include/token.h to either: #if defined(_SYS_IOCTL_H_) #undef TILDE #define TILDE 32 #endif or #if defined(aix) #undef TILDE #define TILDE 32 #endif -- Jeroen Ruigrok van der Wer

Re: need to start a new project , can python do all that ?

2009-04-18 Thread Jeroen Ruigrok van der Werven
-On [20090415 14:25], Deep_Feelings (doctore...@gmail.com) wrote: >4- support of international languages http://babel.edgewall.org/ -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Hope is a letter t

Re: Can some1 review my code?

2009-04-18 Thread Jeroen Ruigrok van der Werven
-On [20090419 08:20], zaheer.ag...@gmail.com (zaheer.ag...@gmail.com) wrote: >Need to some one to look at it and tell me if there are better ways of >doing same things Just post the snippets of code you want review of. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェ

Re: Python wrapper for Ebay

2009-04-05 Thread Jeroen Ruigrok van der Werven
#x27;s what Ebay offers, so it is best to use that route. It's quite a straightforward implementation in Python. Just use something like httplib2 with lxml or so. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG:

Re: Python Goes Mercurial

2009-04-05 Thread Jeroen Ruigrok van der Werven
e decision for the Python project to use a DVCS at all, which was evident from my initial email. I merely stated that I cannot understand why there's a meme and/or group of people on the 'net that vehemently declare that everything less than a DVCS sucks. -- Jeroen Ruigrok van der

Re: Python Goes Mercurial

2009-04-05 Thread Jeroen Ruigrok van der Werven
's always a group who actively push one solution over all others without regard to what the current situation demands. If you cannot step back and look at the whole without trying to push your own things, there's nary a word other than rabid and zealous for that type of behaviour. -- Je

Re: Python Goes Mercurial

2009-04-04 Thread Jeroen Ruigrok van der Werven
;s a whole group of rabid, zealous proponents of one system or ther other out there that are quick to denounce any of your rationale for going with one or the other if it is not their $FAVOURITE_ONE. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ |

Re: "Pythoner",Wish me luck!

2009-04-04 Thread Jeroen Ruigrok van der Werven
mpletion. The benefit is easily testing code snippets, inspecting the contents of various variables, modules, classes, and so on. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B I must be cruel, only to

Re: Python + PostgreSQL

2009-03-17 Thread Jeroen Ruigrok van der Werven
Also, chalk up my preference for SQLAlchemy. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B The thought of a moment is as fleeting as the memory of it intense... -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows vista

2009-02-16 Thread Jeroen Ruigrok van der Werven
ard Windows firewall but perhaps some third-party one. Most of the time in the firewall configuration windows you can add specific executables to be allowed access. As such you probably have to point it to the C:\Python25\Python.exe file, but that's just a guess. -- Jeroen Ruigrok van der Werven

Re: explain

2009-02-16 Thread Jeroen Ruigrok van der Werven
u make sure to 'rehash' your $PATH or add the appropriate directory to the $PATH variable. On Windows, you set your environment variable PATH to include the path to Python programs (typically something like C:\Python25), which you can find under the system control panel. -- Jeroen Ruigro

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Jeroen Ruigrok van der Werven
would be correct, yes. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Earth to earth, ashes to ashes, dust to dust... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Jeroen Ruigrok van der Werven
ed section was thoroughly reviewed otherwise you're duplicating a flaw across X other sections. And then you also best hope that whoever finds said flaw and fixes it is also smart enough to check for similar constructs around the code base. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック

Re: Fastest database solution

2009-02-06 Thread Jeroen Ruigrok van der Werven
comparing a file to those that are already stored in the database. Maybe CouchDB [1] is more in line with what you need. [1] http://couchdb.apache.org/ -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Eart

Re: what IDE is the best to write python?

2009-02-02 Thread Jeroen Ruigrok van der Werven
-On [20090201 15:18], Craig (fasteliteprogram...@yahoo.com) wrote: >eclipse With the pydev plugin of course. Personally I prefer to just use vim and (i)python. But at work I am using Eclipse with pydev as well. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン h

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-28 Thread Jeroen Ruigrok van der Werven
I'll double check the documentation and expand where necessary. [1] http://zine.pocoo.org/ -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Earth to earth, ashes to ashes, dust to dust... -- http:/

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-28 Thread Jeroen Ruigrok van der Werven
-On [20090128 19:01], excord80 (excor...@gmail.com) wrote: >Again, the solution must work for plain vanilla CGI. I don't have WSGI >available. But thank you. It works for plain CGI. I myself use it for FCGI. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン ht

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-28 Thread Jeroen Ruigrok van der Werven
k for Python, maybe similar to Perl's >CGI::Application? Werkzeug[1] should be in your line, I think. [1] http://werkzeug.pocoo.org/ -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Earth to earth, ash

Re: How to display Chinese in a list retrieved from database via python

2008-12-25 Thread Jeroen Ruigrok van der Werven
ick Python Unicode (with encode or decode) should get you there. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Knowledge is soon changed, then lost in the mist, an echo half-heard... -- http://mail.python.or

Re: [Python-Dev] Python 2.5.3: call for patches

2008-10-20 Thread Jeroen Ruigrok van der Werven
eady based on the last comment) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Ignorance is the opportunity to learn... -- http://mail.python.org/mailman/listinfo/python-list

Re: universal unicode font for reportlab

2008-09-09 Thread Jeroen Ruigrok van der Werven
properly design the fonts. Not to mention such fonts would quickly grow unwieldy. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B A kiss is a lovely trick designed by nature to stop speech when words become sup

Re: You advice please

2008-08-14 Thread Jeroen Ruigrok van der Werven
are participating in either Python itself or core modules. Europeans in general tend to be less involved in spin doctoring/marketing. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Embrace Love,

Re: You advice please

2008-08-13 Thread Jeroen Ruigrok van der Werven
ith Ruby. I merely commented on the fact that from where you are sitting and looking you do not see as much Python out there as you see Ruby. I merely provided a counterpoint that from where I am sitting I am seeing more and more Python pop up, also for jobs. -- Jeroen Ruigrok van der Wer

Re: You advice please

2008-08-13 Thread Jeroen Ruigrok van der Werven
>language and it is used by many big, big names? At least in my experience Python is getting more and more exposure. More job openings as well. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B A liar ne

Re: Perl to Python using MqSQLdb

2008-08-13 Thread Jeroen Ruigrok van der Werven
cursor.fetchall(): combined = ', '.join(row) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Focus on your one purpose... -- http://mail.python.org/mailman/listinfo/python-list

Re: how to cut and paste in the windows of python(command line)

2008-07-24 Thread Jeroen Ruigrok van der Werven
: a Out[2]: u'\xe6\x84\x9b' Normal python shell: >>> a = u'愛' >>> a u'\u611b' I wonder if it can be easily fixed with a getpreferredencoding() or by using an .encode(sys.stdout.encoding or getpreferredencoding() or 'ascii', 'replace

Re: Instance

2008-07-17 Thread Jeroen Ruigrok van der Werven
t the class Classroom has no self.desk_offset. So in your class definition you would need to add something to __init__() like: self.desk_offset = None # or 0 or... -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625

Re: recommended gcc versions for python2.5 compilation on Solaris sparc/x86, AIX, Linux

2008-07-11 Thread Jeroen Ruigrok van der Werven
CCs. So do not automatically assume that newer is better. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B The weak can never forgive. Forgiveness is the attribute of the strong... -- http://mail.python.org/mail

Fwd: [ANN] Babel 0.9.3 released

2008-07-10 Thread Jeroen Ruigrok van der Werven
ck, reported bugs, and/or contributed patches! Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ - End forwarded message - -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EA

Fwd: [ANN] Genshi 0.5.1 released

2008-07-10 Thread Jeroen Ruigrok van der Werven
hank you to everyone who tried Genshi and provided feedback, reported bugs, and/or contributed patches! Cheers, -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ ----- End forwarded message - -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nom

Re: re.search much slower then grep on some regular expressions

2008-07-09 Thread Jeroen Ruigrok van der Werven
le ago I did tests with various GCC compilers and their effect on Python running time as well as Intel's cc. Intel won on (nearly) all accounts, meaning it was faster overall. From the top of my mind: GCC 4.1.x was faster than GCC 4.2.x. -- Jeroen Ruigrok van der Werven / asmodai イェルーン

Re: Freesoftware for auto/intelligent code completing in Python

2008-07-04 Thread Jeroen Ruigrok van der Werven
-On [20080704 09:00], Aspersieman ([EMAIL PROTECTED]) wrote: >Here's a tutorial on setting this up. >http://blog.sontek.net/2008/05/11/python-with-a-modular-ide-vim/ Thanks Nicol, there's some things there that can speed up my current setup as well. -- Jeroen Ruigro

Re: Freesoftware for auto/intelligent code completing in Python

2008-07-03 Thread Jeroen Ruigrok van der Werven
in vim. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Don't always think in a straight line... -- http://mail.python.org/mailman/listinfo/python-list

Re: Extending Python with C: Cannot find MPI library

2008-06-19 Thread Jeroen Ruigrok van der Werven
-On [20080619 17:11], Spectrum ([EMAIL PROTECTED]) wrote: > ImportError: dynamic module does not define init function Might be it's looking, but not finding, something like crti.S or the likes, the C runtime files that specify stuff like _init and _fini. -- Jeroen Ruigrok van de

Re: Extending Python with C: Cannot find MPI library

2008-06-19 Thread Jeroen Ruigrok van der Werven
penmpi/1.2.4-gcc/libopen- >pal.so.0 (0x00344000) These libraries are what your binaries (.so and such) needs to link against as well. I am not sure if you have to add a flag (-mpi) to your compiler or if you need to add a -L/usr/lib/openmpi/1.2.4-gcc -lmpi -lopen-rte -lopen-pal to the incantations.

Re: Extending Python with C: Cannot find MPI library

2008-06-19 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Under this standard shalt thou conquer... -- http://mail.python.org/mailman/listinfo/python-list

Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Jeroen Ruigrok van der Werven
ou to >have python-ldap updates still supporting it. Not that I use python-ldap at work, but our lowest Python version is 2.3 and we're working towards making 2.5 the default. Hopefully that helps you for versions used. :) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル

Re: PEP 372 -- Adding an ordered directory to collections

2008-06-16 Thread Jeroen Ruigrok van der Werven
ew times already. The suggested design choices seem logical to me. +1 -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Of all that is to come, the Dream has just begun... -- http://mail.python.org/mailman/listinfo/python-list

Re: PHP + TinyButStrong Python replacement

2008-05-08 Thread Jeroen Ruigrok van der Werven
and Mako are currently two of the fastest around. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B If Winter comes, can Spring be far behind..? -- http://mail.python.org/mailman/listinfo/python-list

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Jeroen Ruigrok van der Werven
Different philosophies, but after having spent more than 10+ years on too many Unix and Unix-like systems I know the importance of platform portability a bit too much and hardcoding a shebang sequence is not the solution in general. Using env is the, arguably, best solution available. -- Jeroen

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-01 Thread Jeroen Ruigrok van der Werven
's more than just Linux you know. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B I dream of Love as Time runs through my hand... -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to host a membership site

2008-05-01 Thread Jeroen Ruigrok van der Werven
-On [20080430 17:48], Aaron Watters ([EMAIL PROTECTED]) wrote: >Wow. An initial glance looks great! I need help with pronunciation, >though :(. Werkzeug is supposed to be pronounced in German. It translates to 'tool'. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァ

Re: best way to host a membership site

2008-04-30 Thread Jeroen Ruigrok van der Werven
ided me with a lot of flexibility, more than Django could've provided me with (but hey, welcome to the general limitation of frameworks). -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B The human race is challe

Re: restructured text in python

2008-04-24 Thread Jeroen Ruigrok van der Werven
on your code, for example, and observe the resulting output. Once you see the output it's quite easy, since you already know reSt, how to change your docstrings to use appropriate formatting for what you need. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www

Re: Chinese character become ??? by pymssql or pyodbc

2008-04-14 Thread Jeroen Ruigrok van der Werven
-On [20080414 10:31], James Su ([EMAIL PROTECTED]) wrote: >But when I query those data by pymssql or pyodbc, all Chinese >Character display ??? instead. Sounds like you are getting typical Unicode replacement characters. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル

Re: 有中国人乎?

2008-04-13 Thread Jeroen Ruigrok van der Werven
rok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ My greatest fear... Is that all my Memories will be lost... Like tears, in the rain... -- http://mail.python.org/mailman/listinfo/python-list

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Jeroen Ruigrok van der Werven
-On [20080331 12:56], Pradeep Rai ([EMAIL PROTECTED]) wrote: >Can you guide me how to install a 2.5 version of dbi for it to work ? Same way you installed dbi for 2.4 just make sure the called python executable is the 2.5 one. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Jeroen Ruigrok van der Werven
ut what can happen. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ The last word in a chronicle is never set down... -- http://mail.python.org/mailman/listinfo/python-list

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Jeroen Ruigrok van der Werven
id you copy everything from site-packages of the old one to the new one? -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ If you're afraid of dyin', then you're holding on. You see devils tearing your life

Re: Why prefer != over <> for Python 3.0?

2008-03-29 Thread Jeroen Ruigrok van der Werven
-On [20080329 13:01], Paul Rubin ("http://phr.cx"@NOSPAM.invalid) wrote: >Yes, what I mean is that some languages (e.g. Ada, Haskell) use /= for >nonequality. /= is understandable given how it looks like a digraph for ≠ (U+2260) and I am guessing that was the intent. -- Jeroen

Re: Thousand Seperator

2008-03-14 Thread Jeroen Ruigrok van der Werven
ocs/babel.numbers We make use of the Unicode CLDR information to provide locale-specific formatting. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ When we have not what we like, we must like what we have... -- http://mail.python.

Re: Regarding coding style

2008-03-07 Thread Jeroen Ruigrok van der Werven
ave up on two spaces after a period. It's archaic. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ When you are right, you cannot be too radical; When you are wrong, you cannot be too conservative. -- http://mail.python.org/mailman/listinfo/python-list

Re: Better grammar.txt

2008-03-06 Thread Jeroen Ruigrok van der Werven
-On [20080306 19:21], member thudfoo ([EMAIL PROTECTED]) wrote: >An error occurred while loading >http://www.martinrinehart.com/articles/python-grammar.html: >Unknown host www.martinrinehart.com Works for me. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http

Re: Unknown locale error for Malayalam language in Python

2008-02-26 Thread Jeroen Ruigrok van der Werven
usr/share/locale and see if ml is even supported, you'd generally have to use ml_IN I guess. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Imitation is the sincerest form of flattery... -- http://mail.python.org

Re: Developing Techniques (and naming conventions)

2008-02-24 Thread Jeroen Ruigrok van der Werven
da from food.ham import parma __all__ = ['gouda', 'parma'] and in turn in your script you can now use food.gouda and food.parma. Unless I totally misunderstood what you are trying to achieve. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomi

Re: newbie in python

2008-02-21 Thread Jeroen Ruigrok van der Werven
-On [20080221 11:56], [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: >Can someone help me to get in the right track, and get a good move? http://wiki.python.org/moin/BeginnersGuide -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | h

Re: Python 3.0

2008-02-18 Thread Jeroen Ruigrok van der Werven
ing piece by piece, but the 2.x -> 3.0 transition allows to clean up some thing in a good way, rather than bolting things on top of others. Anyway, please search around a bit, this kind of stuff has been extensively discussed in the past. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック

Re: dream hardware

2008-02-13 Thread Jeroen Ruigrok van der Werven
e a 'wth' experience. Tasted nice though. But talk about weird... -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Just remain in the centre, watching. And then forget that you are there... -- http://mail.python.or

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Jeroen Ruigrok van der Werven
-On [20080213 20:16], Jeff Schwab ([EMAIL PROTECTED]) wrote: >So what is the mass of a slug, anyway? (I assume this is slug as in >bullet, not slimy, creeping thing.) http://en.wikipedia.org/wiki/Slug_(mass) would be my guess. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Jeroen Ruigrok van der Werven
st...] -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Sometimes I wonder why are we so blind to face... -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-12 Thread Jeroen Ruigrok van der Werven
gt;measure different things. Eh? Last I checked both pound and kilogram are units of mass, so where is the incompatibility? -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ To fight and conquer in one hundred battles is not

Re: python 3.0 memory leaking?

2008-02-10 Thread Jeroen Ruigrok van der Werven
Python memory use and proper coding is better understood. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ What is to be, will be. And what isn't to be sometimes happens... -- http://mail.python.org/mailman/listinfo/python-list

Re: Time conversion between UTC and local time

2008-02-08 Thread Jeroen Ruigrok van der Werven
-On [20080208 15:16], [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: >What is an elegant way of getting the local time (considering DST - >daylight saving time) with that data? Perhaps using pytz might be the easiest way: http://pytz.sourceforge.net/ -- Jeroen Ruigrok van der Werven / a

Re: Why not a Python compiler?

2008-02-07 Thread Jeroen Ruigrok van der Werven
k holes, Solo managed to cut the distance down to about 11.5 parsecs. In the A New Hope novelization, Han says "standard time units" rather than "parsecs". Therefore, the reduced distance of Solo's Kessel Run is most likely a retcon to explain George Lucas's confusion

Re: Why not a Python compiler?

2008-02-05 Thread Jeroen Ruigrok van der Werven
his provides a Python to C++ compiler, but it enforces some restrictions on Python's code. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ We have met the enemy and they are ours... -- http://mail.python.org/mailman/

Re: python for a matlab user

2008-02-03 Thread Jeroen Ruigrok van der Werven
- Python starts indexing at 0, not 1 like Matlab does -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ We have met the enemy and they are ours... -- http://mail.python.org/mailman/listinfo/python-list

Re: Mysterious xml.sax Encoding Exception

2008-02-01 Thread Jeroen Ruigrok van der Werven
om the Basic Latin Unicode block? -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ We have met the enemy and they are ours... -- http://mail.python.org/mailman/listinfo/python-list

Re: Doesn't know what it wants

2008-01-26 Thread Jeroen Ruigrok van der Werven
king on a , to denote a tuple since in almost every other language seeing (()) is just an additional layer of braces. I had totally forgotten Python would make it a tuple. And I guess my head was still stuck with some other languages as well when I made my other suggestion. Mea culpa. -- Jeroen R

Re: [OT] "just like Java" (was :Re: translating Python to Assembler)

2008-01-26 Thread Jeroen Ruigrok van der Werven
ad hominems so readily? Just an observation from peanut gallery. :) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ We have met the enemy and they are ours... -- http://mail.python.org/mailman/listinfo/python-list

Re: Doesn't know what it wants

2008-01-25 Thread Jeroen Ruigrok van der Werven
f.mass, .2, 0, temp) I am curious about your use of double braces for vec2d though. Why ((0,0)) and not (0, 0)? -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ We have met the enemy and they are ours... -- http://mail.pyth

Re: finding memory leak in edgewall trac 0.11

2008-01-19 Thread Jeroen Ruigrok van der Werven
ng much to reduce the clutter and provide insight. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Life is not a problem to be solved but a reality to be experienced... -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] "Code Friendly" Blog?

2008-01-17 Thread Jeroen Ruigrok van der Werven
press.org/extend/plugins/wp-syntax/ IIRC it uses for highlighting Python for example. It works quite well. If you can host stuff yourself you might even like to check out http://textpress.pocoo.org/ - a beginning Python solution. :) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァ

Re: working with a subversion repo

2008-01-17 Thread Jeroen Ruigrok van der Werven
project has adequate documentation on this on their website. Just look for documentation on their (SWIG) bindings. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ I was searching through the Heavens and somehow I slipped.

Re: working with a subversion repo

2008-01-17 Thread Jeroen Ruigrok van der Werven
ion. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Nothing is constant but change... -- http://mail.python.org/mailman/listinfo/python-list

Re: anti-spam policy for c.l.py?

2008-01-16 Thread Jeroen Ruigrok van der Werven
.python due to a news gateway. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ I accept that some things will never change, I've let your tiny minds magnify my agony... -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__ explanation please

2008-01-14 Thread Jeroen Ruigrok van der Werven
umping between 4 languages on the same day is not helping much to be honest). -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ If slavery is not wrong, nothing is wrong... -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__ explanation please

2008-01-14 Thread Jeroen Ruigrok van der Werven
ot that clear to me, to be honest. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ I think, therefore I am... -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__ explanation please

2008-01-13 Thread Jeroen Ruigrok van der Werven
by assignment. I personally tend to see __init__ or __new__ as equivalent to what other languages call a constructor. (And I am sure some people might disagree with that. ;)) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ T

Mailinglist/newsgroup gateway

2008-01-13 Thread Jeroen Ruigrok van der Werven
ke its way unto the mailing list. I wonder what the ratio of newsgroup posters versus mailinglist posters is nowadays. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Faith, it seems, is not without irony... --

Re: where do my python files go in linux?

2008-01-12 Thread Jeroen Ruigrok van der Werven
ges solution is one of the cleanest I can think of. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Only I can change my life. No one can do it for me... -- http://mail.python.org/mailman/listinfo/python-list

Re: where do my python files go in linux?

2008-01-12 Thread Jeroen Ruigrok van der Werven
need to do and gets installed into a typical PATH directory. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ ...fools rush in where Angels fear to tread. -- http://mail.python.org/mailman/listinfo/python-list

Re: converting JSON to string

2008-01-12 Thread Jeroen Ruigrok van der Werven
sense of allowing raw Unicode codepoints. Instead JSON uses a \u scheme to encode Unicode characters (a bit flawed to limit it to four hexadecimal digits though, it leaves the whole CJK Unified Ideographs Extension B out of scope.). I use simplejson along with lxml/ElementTree for my JSON<&g

Re: Python too slow?

2008-01-10 Thread Jeroen Ruigrok van der Werven
designs and calculating the resulting properties and doing this for X iterations in a day it becomes quite painfully obvious that raw CPU execution time *does* matter. 't All varies with what you want, of course... -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://w

Re: Conventions for dummy name (was: for loop without variable)

2008-01-10 Thread Jeroen Ruigrok van der Werven
ocally-translated version of a text string. The same applies for Babel (http://babel.edgewall.org/) where we have _() in similar vein to the gettext implementation. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ With

Re: docstrings style question

2008-01-10 Thread Jeroen Ruigrok van der Werven
classes should have docstrings, but I don't really have >anything else to say, and each module contains only one class. The ultimate test is running `pydoc your.module` or running epydoc on your source and see how well the resulting documentation is built up. -- Jeroen Ruigrok van der Werven /

Re: centre of mass of protein

2008-01-09 Thread Jeroen Ruigrok van der Werven
e that exists. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Only the wisest and the stupidest of men never change... -- http://mail.python.org/mailman/listinfo/python-list

Re: Pet Store

2008-01-08 Thread Jeroen Ruigrok van der Werven
bigger ones. If you want a basic HTTP handling framework under which you can hang your own code more easily then you should look at things like Paste, WebOb, CherryPy, Werkzeug, Twisted and others. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.

Re: Look for a string on a file and get its line number

2008-01-08 Thread Jeroen Ruigrok van der Werven
;ll study your examples, thanks. :) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ A conclusion is simply the place where you got tired of thinking... -- http://mail.python.org/mailman/listinfo/python-list

Re: python syntax:urgent

2008-01-08 Thread Jeroen Ruigrok van der Werven
-r %s" % (Input, List, modeltype, str(mixture), str(dimension), str(vfloor), str(number), str(results)) subprocess.Popen([s]) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ Few are those who see with their own eyes and feel with their own hearts... -- http://mail.python.org/mailman/listinfo/python-list

Re: Look for a string on a file and get its line number

2008-01-08 Thread Jeroen Ruigrok van der Werven
-On [20080108 09:51], John Machin ([EMAIL PROTECTED]) wrote: >Make that >= > >| >>> 'fubar'.find('fu') Or even just: if 'my-string' in line: ... Same caveat emptor applies though. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウ

Re: Strip lines from files

2008-01-08 Thread Jeroen Ruigrok van der Werven
e list of files to your script as a wildcard: ./myscript.py trp.pdb.* And iterate over every argv you have to strip the WAT. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ The wisdom of the wise, and the experience of age

Re: Look for a string on a file and get its line number

2008-01-08 Thread Jeroen Ruigrok van der Werven
'doorway' in it. So 't is merely for inspiration. ;) -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ From morning to night I stayed out of sight / Didn't recognise I'd become No more than aliv

Re: Look for a string on a file and get its line number

2008-01-08 Thread Jeroen Ruigrok van der Werven
suming ASCII, otherwise check out codecs.open().) big_file = open('bigfile.txt', 'r') line_nr = 0 for line in big_file: line_nr += 1 has_match = line.find('my-string') if has_match > 0: print 'Found in line %d' % (line_nr) Somet

  1   2   >