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
"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)
--
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 the
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
You
On Wed, Jul 15, 2009 at 1:42 AM, Mohan Parthasarathy surut...@gmail.comwrote:
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
On Wed, Jul 15, 2009 at 11:54 AM, Tim Rowe digi...@gmail.com 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
On Wed, Jul 1, 2009 at 2:14 AM, David Hirschfield dav...@ilm.com 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
On Wed, Jun 10, 2009 at 10:33 PM, Johannes Bauer dfnsonfsdu...@gmx.dewrote:
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
--
On Fri, Jun 5, 2009 at 4:12 AM, Vincent Davis vinc...@vincentdavis.netwrote:
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
On Mon, Jun 1, 2009 at 8:26 AM, P. Kaminski cge...@gmail.com 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...
--
On Thu, May 28, 2009 at 9:11 AM, Sean DiZazzo half.ital...@gmail.comwrote:
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
On Wed, May 27, 2009 at 6:29 AM, Teguh Iskanto tiska...@gmail.com 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).
On Mon, May 25, 2009 at 6:35 PM, LittleGrasshopper
seattleha...@yahoo.comwrote:
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
On Mon, May 18, 2009 at 8:30 PM, Laurent Luce laurentluc...@yahoo.comwrote:
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
--
On Sat, May 16, 2009 at 2:18 PM, S.Selvam s.selvams...@gmail.com 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
On Mon, May 11, 2009 at 9:44 PM, Sam Tregar s...@tregar.com 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
On Tue, May 12, 2009 at 9:15 AM, Matteo tadweles...@gmail.com wrote:
On 11 Mag, 23:06, Shawn Milochik sh...@milochik.com 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
On Fri, May 8, 2009 at 2:52 AM, baseelin...@yahoo.com 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
On Wed, Apr 29, 2009 at 6:48 AM, Banibrata Dutta
banibrata.du...@gmail.comwrote:
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
On Thu, Apr 23, 2009 at 2:58 PM, Ben Finney
ben+pyt...@benfinney.id.auben%2bpyt...@benfinney.id.au
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
On Thu, Apr 23, 2009 at 3:59 PM, Francesco Pietra chiendar...@gmail.comwrote:
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)
On Wed, Apr 22, 2009 at 3:50 AM, Esmail ebo...@hotmail.com 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
On Wed, Apr 22, 2009 at 3:07 PM, Brian b_glass...@hotmail.com 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
On Mon, Apr 20, 2009 at 3:40 PM, Stefan Behnel stefan...@behnel.de 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
On Mon, Apr 20, 2009 at 2:18 PM, Scott David Daniels
scott.dani...@acm.orgwrote:
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
On Fri, Apr 17, 2009 at 3:19 PM, S.Selvam s.selvams...@gmail.com 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
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
output of
On Wed, Apr 15, 2009 at 9:46 AM, Gilles Ganault nos...@nospam.com wrote:
Hello
I stumbled upon something funny while downloading web pages and
trying to extract one or more blocks from a page: Even though Python
seems to return at least one block, it doesn't actually enter the for
On Thu, Apr 9, 2009 at 12:16 PM, andrew cooke and...@acooke.org 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
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
On Sun, Apr 5, 2009 at 8:17 AM, Good Z goodz...@yahoo.com 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.
On Thu, Apr 2, 2009 at 9:02 PM, andrew cooke and...@acooke.org wrote:
Echo wrote:
2009/4/2 Jeremiah Dodds jeremiah.do...@gmail.com
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
On Thu, Apr 2, 2009 at 12:36 PM, Gabriel dun...@dreams.sk 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
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
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'div class=texthello ça boumebr //div')
soup
div
On Tue, Mar 31, 2009 at 6:19 PM, Artur M. Piwko
milusi.pysiac...@buziaczek.pl wrote:
In the darkest hour on Tue, 24 Mar 2009 00:50:10 + (UTC),
R. David Murray rdmur...@bitdance.com screamed:
I got a problem. İ want to send udp package and get this package (server
and
clinet ). it's
On Wed, Apr 1, 2009 at 3:40 PM, 一首诗 newpt...@gmail.com 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
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 for
On Wed, Mar 25, 2009 at 9:25 PM, *nixtechno epctec...@gmail.com 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
On Fri, Mar 20, 2009 at 9:59 AM, pranav pra...@gmail.com 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
On Thu, Mar 19, 2009 at 4:30 AM, gaeasian...@gmail.com wrote:
On Mar 18, 5:21 am, Tino Wildenhain t...@wildenhain.de 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
On Thu, Mar 19, 2009 at 9:39 AM, Kottiyath n.kottiy...@gmail.com 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
On Thu, Mar 19, 2009 at 1:25 AM, Carl tg2.u...@gmail.com 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
On Tue, Mar 17, 2009 at 8:32 PM, Armin feng.sh...@gmail.com 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
On Wed, Mar 18, 2009 at 10:54 AM, gaeasian...@gmail.com 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
On Sat, Mar 14, 2009 at 9:09 AM, mattia ger...@gmail.com 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',
On Sat, Mar 14, 2009 at 5:10 AM, Saurabh nirkh...@gmail.com 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
On Tue, Jan 27, 2009 at 10:07 AM, rantingrick rantingr...@gmail.com 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
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, for
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
On Thu, Dec 25, 2008 at 7:02 AM, James Stroud jstr...@mbi.ucla.edu 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 in
On Mon, Dec 22, 2008 at 10:42 PM, Jeffrey Barish
jeff_bar...@earthlink.netwrote:
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 --
On Sat, Dec 20, 2008 at 12:30 AM, r rt8...@gmail.com 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
On Sat, Dec 13, 2008 at 10:54 PM, Amit Goyal goyal...@gmail.com 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 pyshell#13, line 4, in -toplevel-
print 'Light sensor value:
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
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
return
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
--
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, C++
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 executable. If
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?
I
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?
thankers.append(self)
--
http://mail.python.org/mailman/listinfo/python-list
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.
Why
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'm
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
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 installation.
On Fri, Nov 21, 2008 at 9:12 PM, scsoce [EMAIL PROTECTED] wrote:
MRAB wrote:
div class=moz-text-flowed style=font-family: -moz-fixedSteve 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
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 associated
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/python-list
If
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 time with slicehost (http://slicehost.com).
Yes, I
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
0.99340584
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 a keyword
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 material
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 can't be
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 different, ie not
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
Steve
Are
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
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 written in
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:
***
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 11i v3.
80 matches
Mail list logo