Re: Call for a cooperation

2005-12-06 Thread Jeremiah
that seems to be very simple program. You just ask the user for input and save it to different lists. What's the point, you could write that program without knowing almost any python. Just get a reference book and you'll instantly have all the commands that you need. -- http://mail.python.org/

Re: pythonic exec* spawn*

2006-02-09 Thread Jeremiah
you can use the threads commands -- http://mail.python.org/mailman/listinfo/python-list

python parser overridden by pymol

2009-11-11 Thread Jeremiah
parseexpr return self.transform(parser.expr(text)) AttributeError: 'module' object has no attribute 'expr' If I understand the problem correctly, can anyone tell me where python.expr() is defined, or suggest a better method to fix this problem? Thanks, Jeremiah -- http://mail.python.org/mailman/listinfo/python-list

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-25 Thread Jeremiah Dodds
rantingrickjohn...@gmail.com writes: > On Monday, June 25, 2012 5:10:47 AM UTC-5, Michiel Overtoom wrote: >> It has not. Python2 and Python3 are very similar. It's not like if >> you learn Python using version 2, you have to relearn the language >> when you want to switch Python3. The syntax is t

Re: Conditional decoration

2012-06-18 Thread Jeremiah Dodds
r...@panix.com (Roy Smith) writes: > Is there any way to conditionally apply a decorator to a function? > For example, in django, I want to be able to control, via a run-time > config flag, if a view gets decorated with @login_required(). > > @login_required() > def my_view(request): > pass Y

Re: ActivePython: multiple versions on OSX?

2011-07-26 Thread Jeremiah Yongue
It's definitely possible. I've done it myself. On Jul 25, 2011 8:21 PM, "Robert" wrote: > Is it possible to install the 2 and 3 series side by side? > > -- > Robert > > > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Constructive Criticism

2014-01-08 Thread jeremiah valerio
On Thursday, January 9, 2014 12:09:17 AM UTC-6, Ben Finney wrote: > jeremiahvalerio...@gmail.com writes: > > > > > Hi, hows it going I've been self teaching myself python > > > > Welcome to Python, and to this discussion forum! > > > > > and i typed up this small script now i know its not

Re: Constructive Criticism

2014-01-09 Thread jeremiah valerio
On Thursday, January 9, 2014 3:56:37 AM UTC-6, Peter Otten wrote: > jeremiahvalerio...@gmail.com wrote: > > > > > Hi, hows it going I've been self teaching myself python, and i typed up > > > this small script now i know its not the best the coding is not the best > > > but i would like to kno

Re: Constructive Criticism

2014-01-09 Thread jeremiah valerio
On Thursday, January 9, 2014 2:54:44 PM UTC-6, Christopher Welborn wrote: > On 01/08/2014 11:56 PM, jeremiahvalerio...@gmail.com wrote: > > > Hi, hows it going I've been self teaching myself python, and i typed up > > this small script now i know its not the best the coding is not the best > > b

Re: Constructive Criticism

2014-01-10 Thread jeremiah valerio
On Friday, January 10, 2014 2:56:14 AM UTC-6, Alister wrote: > On Thu, 09 Jan 2014 13:05:23 -0800, jeremiah valerio wrote: > > > > > On Thursday, January 9, 2014 2:54:44 PM UTC-6, Christopher Welborn > > > wrote: > > >> On 01/08/2014 11:56

compiling matplotlib in virtual env

2015-10-01 Thread Rolston Jeremiah
Hello everyone, I been trying to compile matplotlib in a python3.4 virtual env using pip version 1.7 on Fedora 22. I am in about 3 weeks learning python and Django so I am not clear on the error response to: commmand = pip3 install matplotlib error message = Traceback

Re: How many followers of comp.lang.python

2009-01-28 Thread Jeremiah Dodds
On Tue, Jan 27, 2009 at 10:07 AM, rantingrick wrote: > I curious of how many are "really" out there. I have been watching the > list for some time but basically see the same 10 or so people > answering questions. > > Reply to this message so we can see how many exists here > > Thanks > -- > http:

Re: Re: how to get all repeated group with regular expression

2008-11-22 Thread Jeremiah Dodds
On Fri, Nov 21, 2008 at 9:12 PM, scsoce <[EMAIL PROTECTED]> wrote: > MRAB wrote: > >> Steve Holden >> wrote: >> >>> Please keep this on the list. >>> >>> scsoce wrote: >>> Steve Holden wrote: > scsoce wrote: > > >> say, when I try to search and match every char from vari

Re: build minimal python 2.6 on linux

2008-11-23 Thread Jeremiah Dodds
On Sat, Nov 22, 2008 at 9:31 PM, r <[EMAIL PROTECTED]> wrote: > > > And i know this may be asking alot but: > where do i put the files before i run "./configure" > does it matter what directory there in?? > any help here would be great since i am new to linux > and have never built a python instal

Re: Emacs vs. Eclipse vs. Vim

2008-11-30 Thread Jeremiah Dodds
There is, as other people have pointed out, no "correct" answer to this question, other that "use a few different editors, and settle on what you like". I personally use emacs. In fact, I use emacs for a lot more than just editing code. The reason I found myself really liking emacs was because I'

Re: Pycon 2009

2008-11-30 Thread Jeremiah Dodds
On Sat, Nov 29, 2008 at 1:59 AM, r <[EMAIL PROTECTED]> wrote: > do you have any suggestions where? I am not as versed as you in Usenet. > -- > http://mail.python.org/mailman/listinfo/python-list > Try comp.lang.lisp -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyhon (with wxPython) on Windows' cygwin: can it be done fully ?

2008-12-02 Thread Jeremiah Dodds
On Mon, Dec 1, 2008 at 12:25 PM, Fernando H. Sanches < [EMAIL PROTECTED]> wrote: > At first I also disliked print's new syntax, but later I realised it > could be useful. > > However, I agree that the parentheses are annoying. Not because of the > parens theirselves, but because of the Shift key.

Re: noob needs help

2008-12-03 Thread Jeremiah Dodds
On Wed, Dec 3, 2008 at 1:01 AM, Sambo <[EMAIL PROTECTED]> wrote: > Peter Pearson wrote: > > > In slackware one needs "./" before the filename if you executing > files in current dir. > -- > http://mail.python.org/mailman/listinfo/python-list > Umm, only if you're running files marked as executabl

Re: Multiple equates

2008-12-03 Thread Jeremiah Dodds
On Wed, Dec 3, 2008 at 6:23 AM, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > > So why is that better? > -- > http://mail.python.org/mailman/listinfo/python-list > I personally think that it looks marginally cleaner (indentation issues aside). Do you think it's substantially worse? If so, why

Re: Converting a .xls file to .html

2008-12-03 Thread Jeremiah Dodds
On Wed, Dec 3, 2008 at 5:54 AM, tarun <[EMAIL PROTECTED]> wrote: > Hello All, > > I've a .xml file (saved as .xls) that can be opened in Microsoft excel. I > want to write python code that converts this excel file into .html (so that > it can be viewed as is in an explorer). > > Can any one help?

Re: RELEASED Python 3.0 final

2008-12-03 Thread Jeremiah Dodds
thankers.append(self) -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple equates

2008-12-04 Thread Jeremiah Dodds
On Thu, Dec 4, 2008 at 1:19 PM, Hendrik van Rooyen <[EMAIL PROTECTED]>wrote: > > "Cameron Laird" <[EMAIL PROTECTED]> wrote: > > > There's a realm within Pythonia that favors lambdalessness. > > And who, may I ask, Is the King of this realm? > > - Hendrik > > -- > http://mail.python.org/mailman/li

Re: Python advocacy ... HELP!

2008-12-04 Thread Jeremiah Dodds
On Thu, Dec 4, 2008 at 1:52 AM, Michael_D_G <[EMAIL PROTECTED]> wrote: > > I am a faculty member of a cs department. We currently teach C++ in > our intro to programming course. I am teaching this class and it seems > to me that we would be much better served teaching python in the intro > course,

Re: Guido's new method definition idea

2008-12-06 Thread Jeremiah Dodds
On Fri, Dec 5, 2008 at 9:21 PM, Daniel Fetchinson <[EMAIL PROTECTED] > wrote: > > The proposal is to allow this: > > class C: >def self.method( arg ): >self.value = arg >return self.value > > instead of this: > > class C: >def method( self, arg ): >self.value = arg

Re: Python is slow

2008-12-10 Thread Jeremiah Dodds
Does anybody else think it's really funny when people argue over which language used for _web apps_ is fastest? I mean, I'm not aware of any language that's slow enough to make it noticeable compared to say, network latency or database access. I guess you might notice if you're not caching any cont

Re: Error with SOAPpy

2008-12-13 Thread Jeremiah Dodds
On Sat, Dec 13, 2008 at 10:54 PM, Amit Goyal wrote: > Hi All, > > I am new to Python and was trying the sample code on Dive into Python > for WSDL. Below is the error I get. > > Traceback (most recent call last): > File "", line 4, in -toplevel- >print 'Light sensor value: ' + server._ns(nam

Re: New Python 3.0 string formatting - really necessary?

2008-12-20 Thread Jeremiah Dodds
On Sat, Dec 20, 2008 at 12:30 AM, r wrote: > Why could't we improve on what we had instead of > making radical changes? Thats all i am asking. > -- > http://mail.python.org/mailman/listinfo/python-list > Often times improving on what you have involves radical changes, especially if the goals of

Re: Beep

2008-12-23 Thread Jeremiah Dodds
On Mon, Dec 22, 2008 at 10:42 PM, Jeffrey Barish wrote: > > > On Ubuntu, it is possible to set visual and audible beeps separately. When > I set both, I get the visual beep, but not the audible one. It's not a > Python issue -- so I should take this thread to Ubuntu -- because I observe > this b

Re: object oriënted

2008-12-25 Thread Jeremiah Dodds
On Wed, Dec 24, 2008 at 10:54 AM, Dennis van Oosterhout < de.slotenzwem...@gmail.com> wrote: > I know that python is an Object Oriënted language but I was wondering if it > gets used as a non-OOP also (by a good amount of people). > > -- > http://mail.python.org/mailman/listinfo/python-list > > I,

Re: os.system('cls')

2008-12-25 Thread Jeremiah Dodds
On Thu, Dec 25, 2008 at 7:11 AM, Dennis van Oosterhout < de.slotenzwem...@gmail.com> wrote: > Btw...does that mean that system('cls') only works on Windows...or to > say it otherwise: the program isn't platform independant? > > Yes. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a function to remove escape characters from a string ?

2008-12-25 Thread Jeremiah Dodds
On Thu, Dec 25, 2008 at 7:02 AM, James Stroud wrote: > Stef Mientki wrote: > >> hello, >> >> Is there a function to remove escape characters from a string ? >> (preferable all escape characters except "\n"). >> >> thanks, >> Stef >> > > > import string test = 'this\r is a test\t yeah\n' for c i

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-09 Thread Jeremiah Dodds
On Sun, Nov 9, 2008 at 9:29 PM, Geon. <[EMAIL PROTECTED]> wrote: > hi everyone! > > when i install pysqlite i meet bellow error. ( use easy_install and > source code building same problem ) > > ld: Can't find library for -lpython2.5 > > what mean this message? and what i do? > > my system is hp-ux

Re: First post, recursive references with pickle.

2008-11-10 Thread Jeremiah Dodds
On Mon, Nov 10, 2008 at 4:36 PM, George Sakkis <[EMAIL PROTECTED]>wrote: > On Nov 10, 2:23 pm, mark starnes <[EMAIL PROTECTED]> wrote: > > > Hi everyone, this is my first post to this group, so please be gentle. > > > > I've written a class which, when I attempt to pickle, gives the error: > > > >

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Jeremiah Dodds
On Tue, Nov 11, 2008 at 7:08 AM, Markus Mayer <[EMAIL PROTECTED]> wrote: > Steve Holden schrieb: > > If you want shorter names in your main code, of course, you can use > > > > import project.main as main > > import project.gui.mainwindow as window > > > > or somethihg similar. > > > > regards > >

Re: SHA1withRSA in python

2008-11-11 Thread Jeremiah Dodds
On Tue, Nov 11, 2008 at 12:40 PM, Mailing List SVR <[EMAIL PROTECTED]>wrote: > Hi all, > > in java there are several libraries for sha1withrsa, there is something > similar in python? > > thanks > Nicola > > -- > http://mail.python.org/mailman/listinfo/python-list > http://docs.python.org/librar

Re: Are there any FOSS Python Single-Sign-on Servers?

2008-11-11 Thread Jeremiah Dodds
On Tue, Nov 11, 2008 at 6:29 PM, Phillip B Oldham <[EMAIL PROTECTED]>wrote: > > anyone with an openid account to register with our webapps, we simply > want to centralise registration and sign-on for our employees. > -- > http://mail.python.org/mailman/listinfo/python-list > Are your webapps writ

Re: The return code

2008-11-13 Thread Jeremiah Dodds
On Thu, Nov 13, 2008 at 7:15 AM, devi thapa <[EMAIL PROTECTED]> wrote: > Hi, > > I am running one service in the python script eg like > "service httpd status". > If I execute this command in normal shell kernel, the return code is > 3. But in the python script its return code is differen

Re: special editor support for indentation needed.

2008-11-16 Thread Jeremiah Dodds
On Mon, Nov 17, 2008 at 1:36 AM, John Yeung <[EMAIL PROTECTED]>wrote: > On Nov 15, 8:50 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > > well, therein lies the rub. I don't know lisp, > > I don't know Emacs internals let alone python mode. > > Is vr-mode a "major" mode? If so, I suppose it

Re: Programming exercises/challenges

2008-11-18 Thread Jeremiah Dodds
On Tue, Nov 18, 2008 at 7:39 PM, <[EMAIL PROTECTED]> wrote: > Hi guys, > > I'm learning Python by teaching myself, and after going through several > tutorials I feel like I've learned the basics. Since I'm not taking a class > or anything, I've been doing challenges/programs to reinforce the mater

Re: Possible bug in Tkinter for Python 2.6

2008-11-19 Thread Jeremiah Dodds
On Wed, Nov 19, 2008 at 4:57 AM, Eric Brunel <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm trying out Python 2.6 and I found what might be a bug in the Tkinter > module. How can I report it? > > The possible bug is a traceback when trying to delete a menu item in a menu > where no items have ass

Re: Programming exercises/challenges

2008-11-19 Thread Jeremiah Dodds
On Wed, Nov 19, 2008 at 7:12 AM, Mr. SpOOn <[EMAIL PROTECTED]> wrote: > On Wed, Nov 19, 2008 at 2:39 AM, Mensanator <[EMAIL PROTECTED]> wrote: > > What > requisites should have the host to run python code? > > Thanks and sorry for the meddling. > -- > http://mail.python.org/mailman/listinfo/pytho

Re: Programming exercises/challenges

2008-11-19 Thread Jeremiah Dodds
On Wed, Nov 19, 2008 at 7:44 AM, Mr. SpOOn <[EMAIL PROTECTED]> wrote: > On Wed, Nov 19, 2008 at 1:35 PM, Jeremiah Dodds > <[EMAIL PROTECTED]> wrote: > > > > Personally, I prefer a host that gives me root on a box (or virtual > > machine). I've had a great

Re: Getting fractional part from a float without using string operations

2008-11-19 Thread Jeremiah Dodds
On Wed, Nov 19, 2008 at 8:35 AM, srinivasan srinivas < [EMAIL PROTECTED]> wrote: > Thanks, > Srini > > > Add more friends to your messenger and enjoy! Go to > http://messenger.yahoo.com/invite/ > -- > http://mail.python.org/mailman/listinfo/python-list > x = 2.99340584 y = abs(int(x) - x) y

Re: Optional parameter object re-used when instantiating multiple objects

2008-11-19 Thread Jeremiah Dodds
On Wed, Nov 19, 2008 at 8:58 PM, alex23 <[EMAIL PROTECTED]> wrote: > On Nov 20, 10:14 am, Aaron Brady <[EMAIL PROTECTED]> wrote: > > If you had a menu in a browser interface that had the items, say, > > 'Stop' and 'Reload', what would you expect to happen if you clicked on > > them? > > If you had

Re: String to sequence

2009-03-17 Thread Jeremiah Dodds
On Sat, Mar 14, 2009 at 9:09 AM, mattia wrote: > How can I convert the following string: > > 'AAR','ABZ','AGA','AHO','ALC','LEI','AOC', > EGC','SXF','BZR','BIQ','BLL','BHX','BLQ' > > into this sequence: > > ['AAR','ABZ','AGA','AHO','ALC','LEI','AOC', > EGC','SXF','BZR','BIQ','BLL','BHX','BLQ'] >

Re: python book for a C programmer

2009-03-17 Thread Jeremiah Dodds
On Sat, Mar 14, 2009 at 5:10 AM, Saurabh wrote: > For introduction I am thinking about 'Learning Python' and for > reference I am thinking about 'Python Bible'. > > I need your suggestions on this. > > Thanks in advance > -- > http://mail.python.org/mailman/listinfo/python-list > Here's another

Re: REDIRECT

2009-03-18 Thread Jeremiah Dodds
On Wed, Mar 18, 2009 at 10:54 AM, wrote: > Hi ! > > I'm new to Python. I'm having some difficulties to redirect the pages > using python. Every time when I redirect, the URL changed accordingly. > > (Example : from http://localhost: to > http://localhost/hello.py?name='J

Re: REDIRECT

2009-03-19 Thread Jeremiah Dodds
On Thu, Mar 19, 2009 at 4:30 AM, wrote: > On Mar 18, 5:21 am, Tino Wildenhain wrote: > > gaeasian...@gmail.com wrote: > > > > 3. GoogleAppEngine, Version 1.1.9 > (webapp - framework) > > What actually I'm try to do is : > > I'm having a Login page which developed in HTML. When I click on the >

Re: How complex is complex?

2009-03-19 Thread Jeremiah Dodds
On Thu, Mar 19, 2009 at 9:39 AM, Kottiyath wrote: > I understand that my question was foolish, even for a newbie. > I will not ask any more such questions in the future. > -- > http://mail.python.org/mailman/listinfo/python-list > I didn't think it was a foolish question, just one with a very su

Re: read web page that requires javascript on client

2009-03-19 Thread Jeremiah Dodds
On Thu, Mar 19, 2009 at 1:25 AM, Carl wrote: > Probably the easiest thing is to actually use a browser. There are > many examples of automating a browser via Python. So, you can > programmatically launch the browser, point it to the JavaScript > afflicted page, let the JS run and grab the page so

Re: python equivalent of java technologies

2009-03-19 Thread Jeremiah Dodds
On Tue, Mar 17, 2009 at 8:32 PM, Armin wrote: > You could tell her to try Jython. In that, you can just use the Java > implementations. :) Plus, you have things in Jython that Java doesn't :D > > -- > Armin Moradi > -- > http://mail.python.org/mailman/listinfo/python-list > Exactly. Her challe

Re: Use of HTMLparser to change language

2009-03-20 Thread Jeremiah Dodds
On Fri, Mar 20, 2009 at 9:59 AM, pranav wrote: > Greetings All, > > I have huge number of HTML files, all in english. I also have their > counterpart files in Spanish. The non english files have their look > and feel a little different than their english counterpart. > > My task is to make sure t

Re: Introducing Python to others

2009-03-26 Thread Jeremiah Dodds
On Thu, Mar 26, 2009 at 9:35 AM, Paddy O'Loughlin < patrick.olough...@gmail.com> wrote: > Hi, > As our resident python advocate, I've been asked by my team leader to > give a bit of a presentation as an introduction to python to the rest > of our department. > It'll be less than an hour, with time

Re: Debugging in Py

2009-03-26 Thread Jeremiah Dodds
On Wed, Mar 25, 2009 at 9:25 PM, *nixtechno wrote: > Big thanks tkc, and I was wondering what your thoughts are on logging > module: http://docs.python.org/library/logging.html > > "Instead of using many print statements for debugging, use > logger.debug: Unlike the print statements, which you wi

Re: Beautiful soup : why does "string" not give me the string?

2009-04-01 Thread Jeremiah Dodds
On Wed, Apr 1, 2009 at 8:25 AM, Gabriel Rossetti < gabriel.rosse...@arimaz.com> wrote: > Hello everyone, > > I am using beautiful soup to parse some HTML and I came across something > strange. > Here is an illustration: > > >>> soup = BeautifulSoup(u'hello ça boume >>> soup > hello ça boume > >>>

Re: udp package header

2009-04-01 Thread Jeremiah Dodds
On Tue, Mar 31, 2009 at 6:19 PM, Artur M. Piwko wrote: > In the darkest hour on Tue, 24 Mar 2009 00:50:10 + (UTC), > R. David Murray screamed: > >> I got a problem. İ want to send udp package and get this package (server > and > >> clinet ). it's easy to python but i want to look the udp hea

Re: A design problem I met again and again.

2009-04-01 Thread Jeremiah Dodds
On Wed, Apr 1, 2009 at 3:40 PM, 一首诗 wrote: > What are the average size of source files in your project? If it's > far lower than 15,000, don't feel it's a little unbalance? > -- > http://mail.python.org/mailman/listinfo/python-list > While I think 15,000 is, in the vast majority of cases, qu

Re: Low level hard drive reading

2009-04-02 Thread Jeremiah Dodds
On Thu, Apr 2, 2009 at 12:36 PM, Gabriel wrote: > Hello, > I have to write linux application that will analyze disk/partition (ext3 > filesystem) on really low level. It has to find/analyze files on the disk by > reading disk blocks to analyze file's headers to find out file type and > then bloc

Re: Python Goes Mercurial

2009-04-02 Thread Jeremiah Dodds
The one thing that makes me want to use git more than any other dvcs is that you don't have to create a new directory for branches. This may be possible in other dvcs's , but git is the only one I've seen advertise the capability. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Goes Mercurial

2009-04-03 Thread Jeremiah Dodds
On Thu, Apr 2, 2009 at 9:02 PM, andrew cooke wrote: > Echo wrote: > > 2009/4/2 Jeremiah Dodds > > > >> The one thing that makes me want to use git more than any other dvcs is > >> that you don't have to create a new directory for branches. This may be >

Re: Python2.4 and HTTPS

2009-04-06 Thread Jeremiah Dodds
On Sun, Apr 5, 2009 at 8:17 AM, Good Z wrote: > Dear all, > I am using Python 2.4.3 for my project. We need to use HTTPS with > python2.4.3 unfortunately it seems httplib is not working fine for me. Below > is small code that works well with Python2.6.1 but not with Python2.4.3. > Unfortunately i

Re: Retrieving a specific object from a list?

2009-04-09 Thread Jeremiah Dodds
On Thu, Apr 9, 2009 at 12:16 PM, andrew cooke wrote: > but when you need to access instances by more than one value (.bar and > .baz) then typically that's a hard problem, and there's a trade-off > somewhere. you might find writing a special container that contains two > dicts is useful. if so,

Retrieving a specific object from a list?

2009-04-09 Thread Jeremiah Dodds
I've been looking over some of my code, and I've found something I do that has a bit of a smell to it. I've searched the group and docs, and haven't found much of anything that solves this particular problem, although I may just not be searching correctly. Anyhow, I find that often I'll have a lis

Re: Something weird about re.finditer()

2009-04-15 Thread Jeremiah Dodds
]: type(blocks) Out[239]: In [241]: blocks.next() --- StopIteration Traceback (most recent call last) /home/jeremiah/ in () StopIteration: Maybe you should just use a different method, like

Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread Jeremiah Dodds
On Thu, Apr 16, 2009 at 12:12 PM, Rüdiger Ranft <_r...@web.de> wrote: > Hi all, > > I need to call some programms and catch their stdout and stderr streams. > While the Popen class from subprocess handles the call, I get the > results of the programm not until the programm finishes. Since the > ou

Re: Language detection with python

2009-04-17 Thread Jeremiah Dodds
On Fri, Apr 17, 2009 at 3:19 PM, S.Selvam wrote: > Hi all, > > I am trying for language detection in python.I just need to check whether > the input text is english or not. > > 1)I tried nltk's stopwords and compared with input text,but only with > little success. > > 2)Used oice.langdet for lang

Re: when can i expect libraries and third party tools to be updated for python 3 ?

2009-04-20 Thread Jeremiah Dodds
On Mon, Apr 20, 2009 at 3:40 PM, Stefan Behnel wrote: > alessiogiovanni.baroni wrote: > > On 20 Apr, 15:47, Deep_Feelings wrote: > > > every one is telling "dont go with python 3 , 3rd party tools and > > > libraries have no compitability with python 3" > > > > > > so from previous experience : w

Re: The Python standard library and PEP8

2009-04-20 Thread Jeremiah Dodds
On Mon, Apr 20, 2009 at 2:18 PM, Scott David Daniels wrote: > Steven D'Aprano wrote: > >> ... There's an accepted definition for "objected oriented programming >> language": a language which provides "objects", which are constructs >> encapsulating both data and routines to operate on that data in

Re: Essential tools for Python development

2009-04-22 Thread Jeremiah Dodds
On Wed, Apr 22, 2009 at 3:50 AM, Esmail wrote: > Great list Ben, I use emacs and will check out the tools > you listed. > > What techniques/tools do you recommend for debugging? > > Esmail > -- > http://mail.python.org/mailman/listinfo/python-list > pdb is good if you need to do step-through deb

Re: need help with a multiloop error

2009-04-22 Thread Jeremiah Dodds
On Wed, Apr 22, 2009 at 3:07 PM, Brian wrote: > I'm trying to run a python program with a multiloop and I am getting > this error message. I was wondering if anyone could tell from this > message what I'm doing wrong or where I've made a mistake. Let me > know if you need some of the code for t

Re: Configuring pylint for local conventions (was: pyflakes, pylint, pychecker - and other tools)

2009-04-23 Thread Jeremiah Dodds
On Thu, Apr 23, 2009 at 2:58 PM, Ben Finney > wrote: > a...@pythoncraft.com (Aahz) writes: > > > Second, you can configure pylint to respect your personal style > > How? I haven't seen any decent documentation on doing so. > > -- > \ “When we call others dogmatic, what we really object

Re: value error

2009-04-23 Thread Jeremiah Dodds
On Thu, Apr 23, 2009 at 3:59 PM, Francesco Pietra wrote: > hi: > with script > > data = open('134-176_rectified_edited.pdb', 'r') > outp = open('134-176_renumbered.pdb', 'w') > > for L in data: > if L[3] == 'M': > L = L[:24] + "%4d" % (int(L[24-28])+133) + L[28:] > outp.write(L) > > > i wa

Re: What do you think of ShowMeDo

2009-04-29 Thread Jeremiah Dodds
On Wed, Apr 29, 2009 at 6:48 AM, Banibrata Dutta wrote: > Personally, I faced some despair with a large number of the free > ShowMeDo tutorials, example the one on WxPython, where for the first 4 > free tutorials, the tutor hardly progresses to any bit of programming, > and what is demonstrated wa

Re: Web Based Front End?

2009-05-08 Thread Jeremiah Dodds
On Fri, May 8, 2009 at 2:52 AM, wrote: > So, my question is what is the best method to be able to have a user > enter specific data on a web page, have that data be passed to the > Python script and then have the output returned to the web page? > Essentially, I want to use a web based front end

Re: Your Favorite Python Book

2009-05-12 Thread Jeremiah Dodds
On Mon, May 11, 2009 at 9:44 PM, Sam Tregar wrote: > Greetings. I'm working on learning Python and I'm looking for good books > to read. I'm almost done with Dive into Python and I liked it a lot. I > found Programming Python a little dry the last time I looked at it, but I'm > more motivated n

Re: Fill Javascript form

2009-05-12 Thread Jeremiah Dodds
On Tue, May 12, 2009 at 9:15 AM, Matteo wrote: > On 11 Mag, 23:06, Shawn Milochik wrote: > > How is the form "written in JavaScript"? Is it dynamically generated? > > > > In any case, can you just send a POST request if you know the values > required? > > The problem is indeed that the form is d

Re: Generic web parser

2009-05-18 Thread Jeremiah Dodds
On Sat, May 16, 2009 at 2:18 PM, S.Selvam wrote: > Hi all, > > I have to design web parser which will visit the given list of websites and > need to fetch a particular set of details. > It has to be so generic that even if we add new websites, it must fetch > those details if available anywhere.

Re: strip char from list of strings

2009-05-19 Thread Jeremiah Dodds
On Mon, May 18, 2009 at 8:30 PM, Laurent Luce wrote: > > I have the following list: > > [ 'test\n', test2\n', 'test3\n' ] > > I want to remove the '\n' from each string in place, what is the most > efficient way to do that ? > > Regards, > > Laurent > -- > http://mail.python.org/mailman/listinfo/p

Re: What text editor is everyone using for Python

2009-05-26 Thread Jeremiah Dodds
On Mon, May 25, 2009 at 6:35 PM, LittleGrasshopper wrote: > With so many choices, I was wondering what editor is the one you > prefer when coding Python, and why. I normally use vi, and just got > into Python, so I am looking for suitable syntax files for it, and > extra utilities. I dabbled with

Re: What text editor is everyone using for Python

2009-05-27 Thread Jeremiah Dodds
On Wed, May 27, 2009 at 6:29 AM, Teguh Iskanto wrote: > > > BTW: "screen" does split screen too :) > > HTH > > Unfortunately, screen only does horizontal splitting. (I heard that vertical splitting is supposed to be in the next version of it, and is in the dev trunk, but I don't know). That said

Re: newbie: popen question

2009-05-28 Thread Jeremiah Dodds
On Thu, May 28, 2009 at 9:11 AM, Sean DiZazzo wrote: > On May 27, 6:10 pm, thebiggestbangthe...@gmail.com wrote: > > hello everyone :-), > > I am a newbie to python. I am trying to run a > > bash script from within a python program. I would greatly appreciate > > any point

Re: automated web with python?

2009-06-01 Thread Jeremiah Dodds
On Mon, Jun 1, 2009 at 8:26 AM, P. Kaminski wrote: > Ech... The problem is that mechanize doesn't support JavaScript, and > these web forms are full of various JS functions... Maybe someone > knows a way out of this? Doesn't have to be Python... > -- > http://mail.python.org/mailman/listinfo/pyth

Re: How to develop a python application?

2009-06-05 Thread Jeremiah Dodds
On Fri, Jun 5, 2009 at 4:12 AM, Vincent Davis wrote: > This might be a off topic but this also seemed like a good place to ask. > > I have an application (several) I would like to develop. Parts of it I > can do but parts I would like to outsource. I am thinking mostly of > outsourcing most of my

Re: Compiling Python3.1

2009-06-11 Thread Jeremiah Dodds
On Wed, Jun 10, 2009 at 10:33 PM, Johannes Bauer wrote: > Martin v. Löwis schrieb: > >> What can I do about that? > > > > Remove the non-ASCII characters from db.h. > > Ehh... > > $ find -type f | grep -i db.h > OT: find -type f -iname "db.h" -- http://mail.python.org/mailman/listinfo/python-li

Re: Tutorial on working with Excel files in Python (without COM and crossplatform!) at EuroPython 2009

2009-06-19 Thread Jeremiah Jester
Chris, Do you have any online tutorial for this topic? Thanks, JJ On Thu, 2009-06-18 at 08:38 -0700, Chris Withers wrote: > Hi All, > > Too many people in the Python community *still* think the only way to > work with Excel files in Python is using COM on Windows. > > To try and correct this, I

Re: Determining if a function is a method of a class within a decorator

2009-07-02 Thread Jeremiah Dodds
On Wed, Jul 1, 2009 at 2:14 AM, David Hirschfield wrote: > Unfortunately that still requires two separate decorators, when I was > hoping there was a way to determine if I was handed a function or method > from within the same decorator. > > Seems like there really isn't, so two decorators is th

Re: Calling functions: Why this complicated ?

2009-07-15 Thread Jeremiah Dodds
On Wed, Jul 15, 2009 at 1:42 AM, Mohan Parthasarathy wrote: > So, all four of them above has its use cases in practice i guess. > > thanks > mohan > As a hopefully semi-informative aside, I've been writing python code for a few years now, and I regularly use all four forms of argument passing lis

Re: Calling functions: Why this complicated ?

2009-07-15 Thread Jeremiah Dodds
On Wed, Jul 15, 2009 at 11:54 AM, Tim Rowe wrote: > > Curiously, I never use the all-named style in Python, whereas it's my > normal style in Ada. I shall now enter a period of self-refelection to > try to work out why I am so inconsistent :-) > > > I use it for functions that only (or mostly) ha

Re: Check Python version from inside script? Run Pythons script in v2 compatibility mode?

2017-07-07 Thread Jeremiah Dodds
"Ben S. via Python-list" writes: > Can I somehow check from inside a Python script if the executing Python > engine is major version v2 or v3? import sys sys.version_info[0] (If you just need to print() consistently, you should follow Terry's advice) -- https://mail.python.org/mailman/listinf

Re: Basic python understanding

2017-07-26 Thread Jeremiah Dodds
monica.sn...@gmail.com writes: > What would be some questions and answers so I gain a strong > understanding of my candidate that has Python experience? In addition to the resources others have pointed you at, it's worth mentioning that it can be very hard to gauge experience past the basics if y

Re: python parser overridden by pymol

2009-11-12 Thread Jeremiah H. Savage
On Wed, Nov 11, 2009 at 7:48 PM, Dave Angel wrote: > > > Jeremiah wrote: >> >> Hello, >> >> I'm fairly new to python (version 2.5.4), and am writing a program >> which uses both pymol (version 1.2r1) and numpy (version 1.3.0) from >> debian. >