Looking at the docs for warnings.simplefilter
(http://docs.python.org/2/library/warnings.html) I think the following
script should only produce one warning at each line as any message is
matched by the simple filter
import warnings
warnings.simplefilter('default')
for i in xrange(2):
warnings.
I appreciate the responses from everyone. I knew I couldn't be the only who
thought this behavior was unnecessarily limiting.
I found a ticket on the bug tracker. A patch was even submitted, but obviously
it didn't make it into 3.3.
Hopefully, it will make it into 3.4 with some prodding.
http://
> I was hoping to have a good laugh. :|
> > Although I wouldn't call it hostile.
>
> I think the python community is being educated in how to spam and troll at
> the same time.
>
It is possible the OP has a mental disease, which is about as funny as
heart disease and cancer and not blameworthy.
Στις 28/6/2013 2:08 πμ, ο/η Cameron Simpson έγραψε:
On 27Jun2013 16:32, Νίκος wrote:
| a) keep my existing Python cgi way that embed print ''' statements
| within python code to displays mostly tables?
I'd argue against this approach. Like hand constructing SQL, this
is rife with opportunity to
On Thu, Jun 27, 2013 at 8:22 PM, Tim Chase wrote:
> On 2013-06-28 09:02, Cameron Simpson wrote:
> > On 27Jun2013 11:50, Ethan Furman wrote:
> > | If the OP is writing an interactive shell, shouldn't `cmd` be used
> > | instead of `argparse`? argparse is, after all, intended for
> > | argument pa
On 27/06/2013 9:17 AM, Foo Stack wrote:
Given string input such as:
foo=5 AND a=6 AND date=now OR date='2013/6' AND bar='hello'
I am going to implement:
- boolean understanding (which operator takes precendence)
- spliting off of attributes into my function which computes their table in th
On 28/06/2013 1:11 AM, Mok-Kong Shen wrote:
Could one write Python codes and have them run on one's own mobile
phone? If yes, are there some good literatures? Thanks in advance.
Kivy is a well-documented & multi-platform approach to doing this:
http://kivy.org/
--
http://mail.python.org/mailm
On 2013-06-28 09:02, Cameron Simpson wrote:
> On 27Jun2013 11:50, Ethan Furman wrote:
> | If the OP is writing an interactive shell, shouldn't `cmd` be used
> | instead of `argparse`? argparse is, after all, intended for
> | argument parsing of command line scripts, not for interactive
> work.
>
On 27 June 2013 22:30, Jason Swails wrote:
>
> An alternative is, of course, to simply subclass ArgumentParser and copy
> over all of the code that catches an ArgumentError to eliminate the internal
> exception handling and instead allow them to propagate the call stack.
I would think it easier t
On 26/06/2013 9:19 AM, Mark Janssen wrote:
Did you ever hear of the Glass Bead Game?
Which was Hesse's condemnation of the
pure-academic-understanding-unbound-by-pragmatic-use approach as mental
masturbation, _not_ a recommendation for how human knowledge should
work. If you think otherwise,
On 27Jun2013 22:49, Steven D'Aprano
wrote:
| [rant]
| I think it is lousy design for a framework like argparse to raise a
| custom ArgumentError in one part of the code, only to catch it elsewhere
| and call sys.exit. At the very least, that ought to be a config option,
| and off by default.
|
On 27Jun2013 16:32, Νίκος wrote:
| a) keep my existing Python cgi way that embed print ''' statements
| within python code to displays mostly tables?
I'd argue against this approach. Like hand constructing SQL, this
is rife with opportunity to make syntax errors, either outright by
mistyping HTML
On 27Jun2013 11:50, Ethan Furman wrote:
| If the OP is writing an interactive shell, shouldn't `cmd` be used
| instead of `argparse`? argparse is, after all, intended for
| argument parsing of command line scripts, not for interactive work.
This is specious.
I invoke command line scripts intera
On Thu, 27 Jun 2013 12:02:22 -0400, Dave Angel wrote:
> On 06/27/2013 09:49 AM, Andrew Berg wrote:
>> On 2013.06.27 08:08, Roy Smith wrote:
>>> Can you give us a concrete example of what you're trying to do?
>> The actual code I've written so far isn't easily condensed into a short
>> simple snipp
On Fri, Jun 28, 2013 at 8:19 AM, Grant Edwards wrote:
> On 2013-06-27, Jason Swails wrote:
>
>> He _is_ using cmd. He's subclassed cmd.Cmd and trying to use
>> argparse to handle argument parsing in the Cmd.precmd method to
>> preprocess the user input.
>
> [...]
>
>> Having subclassed cmd.Cmd m
On 2013-06-27, Jason Swails wrote:
> He _is_ using cmd. He's subclassed cmd.Cmd and trying to use
> argparse to handle argument parsing in the Cmd.precmd method to
> preprocess the user input.
[...]
> Having subclassed cmd.Cmd myself in one of my programs and written my
> own argument parsing
On Thu, Jun 27, 2013 at 2:50 PM, Ethan Furman wrote:
>
> If the OP is writing an interactive shell, shouldn't `cmd` be used instead
> of `argparse`? argparse is, after all, intended for argument parsing of
> command line scripts, not for interactive work.
>
He _is_ using cmd. He's subclassed c
On 2013-06-27 17:02, Dave Angel wrote:
On 06/27/2013 09:49 AM, Andrew Berg wrote:
On 2013.06.27 08:08, Roy Smith wrote:
Can you give us a concrete example of what you're trying to do?
The actual code I've written so far isn't easily condensed into a short simple
snippet.
I'm trying to use argp
On 06/27/2013 11:39 AM, Terry Reedy wrote:
On 6/27/2013 2:18 PM, Dave Angel wrote:
On 06/27/2013 02:05 PM, Terry Reedy wrote:
On 6/27/2013 8:54 AM, Andrew Berg wrote:
I've begun writing a program with an interactive prompt, and it needs
to parse input from the user. I thought the argparse mod
On 6/27/2013 2:18 PM, Dave Angel wrote:
On 06/27/2013 02:05 PM, Terry Reedy wrote:
On 6/27/2013 8:54 AM, Andrew Berg wrote:
I've begun writing a program with an interactive prompt, and it needs
to parse input from the user. I thought the argparse module would be
great for this,
It is outside
On 06/27/2013 02:05 PM, Terry Reedy wrote:
On 6/27/2013 8:54 AM, Andrew Berg wrote:
I've begun writing a program with an interactive prompt, and it needs
to parse input from the user. I thought the argparse module would be
great for this,
It is outside argparse's intended domain of applicatio
On 6/27/2013 8:54 AM, Andrew Berg wrote:
I've begun writing a program with an interactive prompt, and it needs
to parse input from the user. I thought the argparse module would be
great for this,
It is outside argparse's intended domain of application -- parsing
command line arguments. The gr
Any programming language is only as good as the person who is using it.
--
http://mail.python.org/mailman/listinfo/python-list
Scuzzy,
the links are : http://github.com/zork9/pygame-pyLevelMaker
and http://github.com/zork9/pygame-pyZeldaII
You can download them with git.
Screenshots of the level editor can be found on my blog, see sig.
TW
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I made a simple map editor for using in pyZeldaII overworld maps,
it's fastly written.
You can download it here : http://github.com/pygame-pyLevelMaker
pyZeldaII can be found here : http://github.com/pygame-pyZeldaII
Enjoy,
Turtle Wizard
--
Time heals.
my blog : http://thediaryofelvis
On Thursday, June 27, 2013 11:56:24 AM UTC-4, Irmen de Jong wrote:
> On 27-6-2013 15:48, Dave Angel wrote:
> >> The behavior for these is all the same so they're subclassed
> >> from one base class, but they need to have these particular names so the
> >> parser knows
> >> how to consume them whe
On 06/27/2013 11:39 AM, darpan6aya wrote:
That worked out. I was trying to encode it the entire time.
Now I realise how silly I am.
Thanks MRAB. Once Again. :D
you're not silly, it's a complex question. MRAB is good at guessing
which part is messing you up.
However, when you're writing a
On 06/27/2013 09:49 AM, Andrew Berg wrote:
On 2013.06.27 08:08, Roy Smith wrote:
Can you give us a concrete example of what you're trying to do?
The actual code I've written so far isn't easily condensed into a short simple
snippet.
I'm trying to use argparse to handle all the little details o
On 06/27/2013 11:11 AM, Mok-Kong Shen wrote:
Could one write Python codes and have them run on one's own mobile
phone? If yes, are there some good literatures? Thanks in advance.
M. K. Shen
I've not tried it, but that's what QPython is supposed to do.
http://qpython.com/
--
DaveA
--
http:
On 27-6-2013 15:48, Dave Angel wrote:
>> The behavior for these is all the same so they're subclassed
>> from one base class, but they need to have these particular names so the
>> parser knows
>> how to consume them when encountered in the source file. That is, for every
>> custom
>> command t
On Thursday, June 27, 2013 8:44:36 PM UTC+5:30, Fábio Santos wrote:
> On 27 Jun 2013 14:49, wrote:
> > I've used web frameworks, but I don't know how they work. Is there anywhere
> > that I can learn how this all works from scratch?
> Write CGI scripts. It is the most raw way to program for the
That worked out. I was trying to encode it the entire time.
Now I realise how silly I am.
Thanks MRAB. Once Again. :D
--
http://mail.python.org/mailman/listinfo/python-list
On 27/06/2013 16:05, darpan6aya wrote:
How can i convert text of the following type
नेपाली
into devnagari unicode in Python 2.7?
Is that a bytestring? In other words, is its type 'str'?
If so, you need to decode it. That particular string is UTF-8:
>>> print "नेपाà¤
On 27 Jun 2013 14:49, wrote:
>
> I've used web frameworks, but I don't know how they work. Is there
anywhere that I can learn how this all works from scratch?
Write CGI scripts. It is the most raw way to program for the web. That way
you can dig into what frameworks do for you.
--
http://mail.py
Could one write Python codes and have them run on one's own mobile
phone? If yes, are there some good literatures? Thanks in advance.
M. K. Shen
--
http://mail.python.org/mailman/listinfo/python-list
How can i convert text of the following type
नà¥à¤ªà¤¾à¤²à¥
into devnagari unicode in Python 2.7?
--
http://mail.python.org/mailman/listinfo/python-list
On 06/27/2013 09:37 AM, Tim wrote:
On Thursday, June 27, 2013 9:16:50 AM UTC-4, Joshua Landau wrote:
On 26 June 2013 14:09, Tim wrote:
I am extending a parser and need to create many classes that are all subclassed
from the same object (defined in an external library). When my module is
loa
On 2013.06.27 08:08, Roy Smith wrote:
> Can you give us a concrete example of what you're trying to do?
The actual code I've written so far isn't easily condensed into a short simple
snippet.
I'm trying to use argparse to handle all the little details of parsing and
verifying arguments in the pre
I've used web frameworks, but I don't know how they work. Is there anywhere
that I can learn how this all works from scratch?
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, June 27, 2013 9:16:50 AM UTC-4, Joshua Landau wrote:
> On 26 June 2013 14:09, Tim wrote:
>
> > I am extending a parser and need to create many classes that are all
> > subclassed from the same object (defined in an external library). When my
> > module is loaded I need all the clas
Στις 25/6/2013 9:00 μμ, ο/η ru...@yahoo.com έγραψε:
On 06/23/2013 07:44 PM, Νίκος wrote:> Why use mako's approach which requires 2
files(an html template and the
actual python script rendering the data) when i can have simple print
statements inside 1 files(my files.py script) ?
After all its o
On 26 June 2013 14:09, Tim wrote:
> I am extending a parser and need to create many classes that are all
> subclassed from the same object (defined in an external library). When my
> module is loaded I need all the classes to be created with a particular name
> but the behavior is all the same
خطاب الرئيس محمد مرسي كاملا يوم 26-6-2013
https://www.facebook.com/pages/%D9%86%D8%AA%D8%A7%D8%A6%D8%AC-%D8%A7%D9%84%D8%A7%D9%85%D8%AA%D8%AD%D8%A7%D9%86%D8%A7%D8%AA-%D9%88%D8%A7%D9%84%D8%AC%D8%A7%D9%85%D8%B9%D8%A7%D8%AA-%D9%88%D8%A7%D8%AC%D8%AA%D9%85%D8%A7%D8%B9%D9%8A%D8%A7%D8%AA/299719160065550?r
In article ,
Andrew Berg wrote:
> I've begun writing a program with an interactive prompt, and it needs to
> parse input from the user. I thought the argparse module would be
> great for this, but unfortunately it insists on calling sys.exit() at any
> sign of trouble instead of letting its Ar
On 27 June 2013 13:54, Andrew Berg wrote:
> I've begun writing a program with an interactive prompt, and it needs to
> parse input from the user. I thought the argparse module would be
> great for this, but unfortunately it insists on calling sys.exit() at any
> sign of trouble instead of lettin
On 27/06/2013 11:52, rusi wrote:
On Thursday, June 27, 2013 12:35:14 PM UTC+5:30, Russel Walker wrote:
On Thursday, June 27, 2013 6:19:18 AM UTC+2, Thrinaxodon wrote:
I was hoping to have a good laugh. :|
Although I wouldn't call it hostile.
I think the python community is being educated in
On 27 June 2013 00:57, Steven D'Aprano
wrote:
> On Wed, 26 Jun 2013 10:09:13 -0700, rusi wrote:
>
>> On Wednesday, June 26, 2013 8:54:56 PM UTC+5:30, Joshua Landau wrote:
>>> On 25 June 2013 22:48, Gene Heskett wrote:
>>> > On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine:
>>>
>>> I did n
I've begun writing a program with an interactive prompt, and it needs to parse
input from the user. I thought the argparse module would be
great for this, but unfortunately it insists on calling sys.exit() at any sign
of trouble instead of letting its ArgumentError exception
propagate so that I c
On Thursday, June 27, 2013 5:40:39 PM UTC+5:30, Vlastimil Brom wrote:
> Hi,
>
> I belive, the author is Roman Jakobson, see the respective post about
> this very question:
> http://linguistlist.org/issues/9/9-32.html
Thanks!
>
> There seem to be several variations,
> Another remarkable linguist
On Wed, Jun 26, 2013 at 1:46 PM, Antoon Pardon
wrote:
> But you didn't even go to the trouble of trying to find out
> what those concerns would be and how strong people feel about
> them. You just took your assumptions about those concerns for
> granted and proceeded from there.
Jumping back in h
Op 25-06-13 19:25, Ian Kelly schreef:
On Mon, Jun 24, 2013 at 7:37 AM, Antoon Pardon
wrote:
What do you mean with not a participant in the past? As far
as I can see his first appearance was in dec 2011. That is
over a year ago. It also seems that he always find people
willing to engage with hi
If you insist it fails, JUST DO NOT USE IT or you create a better language.
don't just bother, it does no good.
-- --
??: "Ben Finney";
: 2013??6??27??(??) 1:37
??: "python-list";
: Re: FACTS: WHY THE PYTHON LANGUAGE FAI
2013/6/27 rusi :
> I am looking for a quote
> (from Whorf/Sapir/Wittgenstein/Humboldt dunno... that 'school')
>
> It goes something like this:
>
> What characterizes a language is not what we can say in it but what we must
> -- like it or not -- say.
> [...]
Hi,
I belive, the author is Roman Jako
On Thursday, June 27, 2013 4:49:23 PM UTC+5:30, Chris Angelico wrote:
> On Thu, Jun 27, 2013 at 9:14 PM, rusi wrote:
>
> > I am looking for a quote
> > (from Whorf/Sapir/Wittgenstein/Humboldt dunno... that 'school')
> >
> > It goes something like this:
> >
> > What characterizes a language is not
On Thu, Jun 27, 2013 at 9:14 PM, rusi wrote:
> I am looking for a quote
> (from Whorf/Sapir/Wittgenstein/Humboldt dunno... that 'school')
>
> It goes something like this:
>
> What characterizes a language is not what we can say in it but what we must
> -- like it or not -- say.
I think you may b
I am looking for a quote
(from Whorf/Sapir/Wittgenstein/Humboldt dunno... that 'school')
It goes something like this:
What characterizes a language is not what we can say in it but what we must --
like it or not -- say.
A demo of this is D Hofstadter's
http://www.cs.virginia.edu/~evans/cs655
On Thursday, June 27, 2013 12:35:14 PM UTC+5:30, Russel Walker wrote:
> On Thursday, June 27, 2013 6:19:18 AM UTC+2, Thrinaxodon wrote:
> I was hoping to have a good laugh. :|
> Although I wouldn't call it hostile.
I think the python community is being educated in how to spam and troll at the
sa
Find a new release of python-ldap:
http://pypi.python.org/pypi/python-ldap/2.4.11
python-ldap provides an object-oriented API to access LDAP directory
servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for
that purpose. Additionally it contains modules for other LDAP-related
st
On Thu, 27 Jun 2013 01:34:34 -0700, Russel Walker wrote:
> The type() builtin according to python docs, returns a "type object".
> http://docs.python.org/2/library/types.html
>
> And in this module is bunch of what I assume are "type objects". Is this
> correct? http://docs.python.org/2/library/f
The type() builtin according to python docs, returns a "type object".
http://docs.python.org/2/library/types.html
And in this module is bunch of what I assume are "type objects". Is this
correct?
http://docs.python.org/2/library/functions.html#type
And type(), aside from being used in as an alte
On Wed, 26 Jun 2013 23:28:49 -0700, wgtrey wrote:
> good question
but a very poor reply, you should at least quote SOME of
the original post to give context.
especially as msg threading in this newsgroup is less than perfect.
--
How sharper than a serpent's tooth is a sister's "See?"
On Thursday, June 27, 2013 6:19:18 AM UTC+2, Thrinaxodon wrote:
> =
>
> >MESSAGE FROM COMPUTER GEEK.
>
> =
>
> >
>
> THRINAXODON HAS RECENTLY RECEIVED THIS MESSAGE FROM THE PYTHON FOUNDER:
>
>
>
> Oh my God! It's hard to program with, it`s troubling for so m
62 matches
Mail list logo