On 05/15/2013 05:53 PM, Andrew Bradley wrote:
I apologize if these questions are too rudimentary--I am trying to wrap my head
around how this
language works in a more general sense so I can start applying it to things.
-Andrew
Check out the book "Making Games with Python & Pygame" at
http:/
On Wed, May 15, 2013 at 8:06 PM, Steven D'Aprano
wrote:
> On Wed, 15 May 2013 13:16:09 +0100, Oscar Benjamin wrote:
>
>
>> I don't generally use super()
>
> Then you should, especially in Python 3.
>
> If you're not using super in single-inheritance classes, then you're
> merely making your own co
Tim Daneliuk wrote:
> All You People are making this way too hard. To understand how
> questions like the OPs ought be resolved, please read:
>
> http://pvspade.com/Sartre/cookbook.html
On this list, I would expect a Sartre reference to be something like this:
https://www.youtube.com/watch?v
Henry Leyh writes:
> But now I would also like to be able to _write_ such a config file
> FILE that can be read in a later run. And FILE should contain only
> those arguments that were given on the command line.
>
> Say, I tell argparse to look for arguments -s|--sopt STRING,
> -i|--iopt INT, -b
Steven D'Aprano writes:
> I wish to generate some test data for a program that deals with emails. I
> need something that can produce multi-part emails, including "broken"
> emails that violate email standards, especially when it comes to Unicode.
I would start producing legal messages (e.g. w
On 15.05.2013 17:29, Roy Smith wrote:
In article ,
Henry Leyh wrote:
On 15.05.2013 14:24, Roy Smith wrote:
In article ,
Henry Leyh wrote:
Is there a simple way to determine which
command line arguments were actually given on the commandline, i.e. does
argparse.ArgumentParser() know whic
I wish to generate some test data for a program that deals with emails. I
need something that can produce multi-part emails, including "broken"
emails that violate email standards, especially when it comes to Unicode.
Does anyone know of something like this that already exists? It's not
necessa
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On behalf of the Python development team, I am pleased to announce the
releases of Python 3.2.5 and 3.3.2.
The releases fix a few regressions in 3.2.4 and 3.3.1 in the zipfile, gzip
and xml.sax modules. Details can be found in the changelogs:
ht
On May 16, 6:17 am, Tim Daneliuk wrote:
> On 05/15/2013 08:01 PM, Ned Batchelder wrote:
>
> > On 5/11/2013 4:03 PM, Citizen Kant wrote:
> >> Don't get me wrong. I can see the big picture and the amazing things that
> >> programmers write on Python, it's just that my question points to the
> >> l
On 05/15/2013 11:49 PM, alex23 wrote:
On May 16, 11:17 am, Tim Daneliuk wrote:
http://pvspade.com/Sartre/cookbook.html
Best recipe for tuna casserole ever! Cheers for this :)
"I have have realized that the traditional omelet form (eggs and cheese) is
bourgeois."
--
On 05/15/2013 10:43 PM, Terry Jan Reedy wrote:
On 5/15/2013 9:17 PM, Tim Daneliuk wrote:
http://pvspade.com/Sartre/cookbook.html
Wikedly funny.
"Today I made a Black Forest cake out of five pounds of cherries and a live
beaver,"
--
---
On May 16, 11:17 am, Tim Daneliuk wrote:
> http://pvspade.com/Sartre/cookbook.html
Best recipe for tuna casserole ever! Cheers for this :)
--
http://mail.python.org/mailman/listinfo/python-list
test_asynchat still hangs! What it does? Should I care?
> Date: Wed, 15 May 2013 23:19:06 -0500
> Subject: [RELEASED] Python 2.7.5
> From: benja...@python.org
> To: python-...@python.org; python-list@python.org;
> python-announce-l...@python.org
>
> It is
It is my greatest pleasure to announce the release of Python 2.7.5.
2.7.5 is the latest maintenance release in the Python 2.7 series. You may be
surprised to hear from me so soon, as Python 2.7.4 was released slightly more
than a month ago. As it turns out, 2.7.4 had several regressions and
incomp
On May 14, 8:08 am, Dan Sommers wrote:
> On Tue, 14 May 2013 04:12:53 +1000, Chris Angelico wrote:
> > On Tue, May 14, 2013 at 4:02 AM, Skip Montanaro wrote:
> >>> 8. A programming language is low level when its programs require
> >>> attention to the irrelevant.
> >> I think "irrelevant" in this
On 5/15/2013 9:17 PM, Tim Daneliuk wrote:
http://pvspade.com/Sartre/cookbook.html
Wikedly funny.
--
http://mail.python.org/mailman/listinfo/python-list
On 2013.05.15 20:47, Eric Miller wrote:
> Can python sockets be used to capture IP traffic when the traffic is
> originating from a non-python source?
Python just exposes the underlying OS socket interface. There is nothing
special about sockets in Python. The whole point is to connect
heterogene
On Wed, 15 May 2013 13:16:09 +0100, Oscar Benjamin wrote:
> I don't generally use super()
Then you should, especially in Python 3.
If you're not using super in single-inheritance classes, then you're
merely making your own code harder to read and write, and unnecessarily
difficult for others
Can python sockets be used to capture IP traffic when the traffic is
originating from a non-python source?
Using a Lantronix UDS-1100 serial to IP converter. The goal is to write a small
proof of concept piece in Python to capture serial data output by this device
over IP.
I've done a couple t
On 05/15/2013 08:01 PM, Ned Batchelder wrote:
On 5/11/2013 4:03 PM, Citizen Kant wrote:
Don't get me wrong. I can see the big picture and the amazing things that
programmers write on Python, it's just that my question points to the lowest
level of it's existence.
Sometimes a cigar is just a
On 05/15/2013 08:53 PM, Andrew Bradley wrote:
So now, how can I utilize this new grid list? Thank you for the
help so far, I feel like the entire grid is now being worked out.
-Andrew
That's a Pygame question, and I told you at the beginning, I can't really
help with that. I'd like t
On 5/11/2013 4:03 PM, Citizen Kant wrote:
Don't get me wrong. I can see the big picture and the amazing things
that programmers write on Python, it's just that my question points to
the lowest level of it's existence.
Sometimes a cigar is just a cigar. Python is a tool, it does what you
tell
>
>
> SQUARESIZE = 43
>>>
>>> grid = []
>>> for row in range(10):
>>> row_squares = []
>>> for column in range(20):
>>> rect = Rect(12 + column * SQUARESIZE, 10 + row * SQUARESIZE,
>>> SQUARESIZE, SQUARESIZE)
>>> row_squares.append(rect)
>>> grid.append(row_squares
On 15 May 2013 19:33, "Neil Cerutti" wrote:
>
> On 2013-05-15, F?bio Santos wrote:
> >> It is a tautology is disguise. When you use a low level
> >> language, low level details are relevant to the scope of your
> >> program.
> >
> > I don't see it that way. I think relevance and level are two
> >
On 15 May 2013 20:59, "Citizen Kant" wrote:
> Of course one always may want to perform random hacking and turn tables
just because and treat the word python as a variable's name, setting that
python equals Monty Python in order to checkmate any given conversation. In
that case we'll have to cope t
Please put new comments AFTER the part you're quoting. In other words,
don't top-post. Also please trim off the stuff that's no longer
relevant, so people don't have to read through it all wondering where
your implied comments are.
On 05/15/2013 06:48 PM, Andrew Bradley wrote:
ok, now I hav
On May 15, 10:07 pm, "Colin J. Williams" wrote:
> Google is your friend. Try "Mandelbrot Python"
My favourite is this one:
http://preshing.com/20110926/high-resolution-mandelbrot-in-obfuscated-python
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, May 16, 2013 at 8:00 AM, Hala Gamal wrote:
> I want to use A translator from Arabic to English and reverse in my
> application which is written in pyhton,
> Is there any open source Translator that can be used with python,
> Or Any Suggestion?
> Please Help,
> Thanks In Advance :)
I wou
On May 16, 12:09 am, "D'Arcy J.M. Cain" wrote:
> It's sort of like when Bush said "The French don't even have a word for
> entrepreneur."
Or "The Russians have no word for it, therefore detente must be a one-
way street."
--
http://mail.python.org/mailman/listinfo/python-list
On May 16, 5:55 am, Citizen Kant wrote:
> As a matter of
> class, the word python names first a python snake than a Monty Python,
> which is 50% inspired by that python word, word that's been being
> considered the given name of a particular kind of snake since times in
> which Terry Gilliam wasn'
ok, now I have tested this more thoroughly, and it seems i can only do the
grid[x][y] function up to grid[9][9], when i really should be able to be
doing up to grid[10][20].
What exactly is the function of this row_squares list?
On Wed, May 15, 2013 at 4:35 PM, Andrew Bradley wrote:
> Now I wan
I want to use A translator from Arabic to English and reverse in my application
which is written in pyhton,
Is there any open source Translator that can be used with python,
Or Any Suggestion?
Please Help,
Thanks In Advance :)
--
http://mail.python.org/mailman/listinfo/python-list
My web server is using python 2.5.
My cgi file is trying to open a shelve.
I xxx out some of the path below.
I am trying to find out if this
error is caused because I am using python 2.7 to write
the cgi file and my web server is using python 2.5.
I would appreciate a confirmation of this.
Hi,
This is Girish, - Recruitment and Resources from SancroSoft USA Inc.
We have an urgent requirement as follows:
Please respond with resumes in MS-Word Format with the following
details togir...@sancrosoftusa.com
Full Name :
Location :
Contact Number :
Email :
Availability :
Visa Status :
Bus
Hi,
This is Girish, - Recruitment and Resources from SancroSoft USA Inc.
We have an urgent requirement as follows:
Please respond with resumes in MS-Word Format with the following
details togir...@sancrosoftusa.com
Full Name :
Location :
Contact Number :
Email :
Availability :
Visa Status :
Bus
Now I want to show you what I have written:
row = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
column = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 20)
SQUARESIZE = 43
grid = []
for row in range(10):
row_squares = []
for column in range(20):
rect = Rect(12 + colum
On 05/15/2013 02:14 PM, Andrew Bradley wrote:
Please reply on the list, not privately, unless it's something like a
simple thank-you. Typically, you'd do a reply-all, then delete the
people other than the list itself. Or if you're using Thunderbird, you
could just reply-list.
> Thank you v
On 2013-05-14, Citizen Kant wrote:
> 2013/5/14 Steven D'Aprano
>
>> On Tue, 14 May 2013 01:32:43 +0200, Citizen Kant wrote:
>>
>> >> An entity named Python must be somehow as a serpent. Don't forget that
>> >> I'm with the freeing up of my memory, now I'm not trying to follow the
>> >> path of wh
On 15/05/2013 1:21 PM, MRAB wrote:
On 15/05/2013 18:04, Jean-Michel Pichavant wrote:
- Original Message -
On 15/05/2013 14:19, Jean-Michel Pichavant wrote:
This reflects a lack of understanding of Unicode.
jmf
And this reflects a lack of a sense of humor. :)
Isn't that a crime
On Wed, May 15, 2013 at 1:58 PM, Chris “Kwpolska” Warrick
wrote:
> On Tue, May 14, 2013 at 9:14 PM, Skip Montanaro wrote:
>> I haven't touched the SpamBayes setup for the usenet-to-mail gateway
>> in a long while. For whatever reason, this message was either held
>> and then approved by the curr
On Tue, May 14, 2013 at 9:14 PM, Skip Montanaro wrote:
> I haven't touched the SpamBayes setup for the usenet-to-mail gateway
> in a long while. For whatever reason, this message was either held
> and then approved by the current list moderator(s), or (more likely)
> slipped through unscathed. N
On 2013-05-15, F?bio Santos wrote:
>> It is a tautology is disguise. When you use a low level
>> language, low level details are relevant to the scope of your
>> program.
>
> I don't see it that way. I think relevance and level are two
> unrelated concepts.
>
> For example, in python you are handl
On Wed, May 15, 2013 at 10:56 AM, Andrew Bradley wrote:
> Hello everyone.
>
> I am having a good time programming with Python 3.3 and Pygame. Pygame seems
> like the perfect platform for the kind of simple games that I want to make.
>
> What I have currently programmed is basically a drawn rectang
On 05/15/2013 12:56 PM, Andrew Bradley wrote:
Hello everyone.
I am having a good time programming with Python 3.3 and Pygame. Pygame
seems like the perfect platform for the kind of simple games that I want to
make.
Pygame indeed looks pretty good to me as well. But I haven't done
anything w
On 15 May 2013 18:29, "Neil Cerutti" wrote:
>
> On 2013-05-13, F?bio Santos wrote:
> >
> > On 13 May 2013 19:48, "Neil Cerutti" wrote:
> >>
> >> On 2013-05-13, Skip Montanaro wrote:
> >> >> 8. A programming language is low level when its programs
> >> >> require attention to the irrelevant.
> >
- Original Message -
> On Wed, 15 May 2013 15:19:00 +0200 (CEST)
> Jean-Michel Pichavant wrote:
> > > British humour includes "double entendre", which is not
> > > French-compliant.
> >
> > I didn't get that one. Which possibly confirm MRAB's statement.
>
> It's sort of like when Bush sa
On 2013-05-13, F?bio Santos wrote:
>
> On 13 May 2013 19:48, "Neil Cerutti" wrote:
>>
>> On 2013-05-13, Skip Montanaro wrote:
>> >> 8. A programming language is low level when its programs
>> >> require attention to the irrelevant.
>> >>
>> >> So much a matter of debate. Indentation is irrelevan
On 15/05/2013 18:04, Jean-Michel Pichavant wrote:
- Original Message -
On 15/05/2013 14:19, Jean-Michel Pichavant wrote:
This reflects a lack of understanding of Unicode.
jmf
And this reflects a lack of a sense of humor. :)
Isn't that a crime in the UK?
ChrisA
The problem wi
- Original Message -
> On 15/05/2013 14:19, Jean-Michel Pichavant wrote:
> >> >> >> This reflects a lack of understanding of Unicode.
> >> >>
> >> >> >> jmf
> >> >>
> >> >> > And this reflects a lack of a sense of humor. :)
> >> >>
> >> >> Isn't that a crime in the UK?
> >> >>
> >> >> Chri
Hello everyone.
I am having a good time programming with Python 3.3 and Pygame. Pygame
seems like the perfect platform for the kind of simple games that I want to
make.
What I have currently programmed is basically a drawn rectangle filled with
200 squares, each side of the squares being 43 pixel
On Wed, May 15, 2013 at 12:15 PM, dieter wrote:
>
> If Python would automatically redecorate overridden methods in a derived
> class, I would have no control over the process. What if I need
> the undecorated method or a differently decorated method (an
> uncached or differently cached met
On Wed, May 15, 2013 at 6:16 AM, Oscar Benjamin
wrote:
> I don't generally use super() but I did see some advice about it in
> this article:
> https://fuhm.net/super-harmful/
>
> From the conclusion:
> "Never use positional arguments in __init__ or __new__. Always use
> keyword args, and always ca
In article ,
Henry Leyh wrote:
>On 15.05.2013 14:24, Roy Smith wrote:
>> In article ,
>> Henry Leyh wrote:
>>
>>> Is there a simple way to determine which
>>> command line arguments were actually given on the commandline, i.e. does
>>> argparse.ArgumentParser() know which of its namespace memb
On Mon, May 13, 2013 at 9:41 AM, Sharon COUKA wrote:
> Hello, I'm new to python and i have to make a Mandelbrot fractal image for
> school but I don't know how to zoom in my image.
> Thank you for helping me.
Is this a GUI application or does it just write the image to a file?
What GUI / image l
> However, maybe I could ...
... switch to getopt?
Skip
--
http://mail.python.org/mailman/listinfo/python-list
> != is explicit.
>
> There is no ambiguity that needs to be guessed.
Which is why i said it thought X != Y is cleaner
i guess i wasn't totally clear, I would write X != Y its because the OP
preferred to use the other format I recommended that he made the operator
ordering explicit.
--
Na
On 15.05.2013 16:08, Skip Montanaro wrote:
Yes, I was trying that and it sort of works with strings if I use something sufficiently improbable
like "__UNSELECTED__" as default. But it gets difficult with boolean or even number
arguments where you just may not have valid "improbable" defaults.
On 2013-05-14, Citizen Kant wrote:
> 2013/5/14 Steven D'Aprano
>
>> On Tue, 14 May 2013 01:32:43 +0200, Citizen Kant wrote:
>>
>> >> An entity named Python must be somehow as a serpent. Don't forget that
>> >> I'm with the freeing up of my memory, now I'm not trying to follow the
>> >> path of wh
On 2013-05-13, Sharon COUKA wrote:
> Hello, I'm new to python and i have to make a Mandelbrot fractal image for
> school but I don't know how to zoom in my image.
> Thank you for helping me.
It's a fractal image, so you zoom in/out with the following Python
instruction:
pass
;)
--
Grant
On 15/05/2013 14:19, Jean-Michel Pichavant wrote:
>> >> This reflects a lack of understanding of Unicode.
>>
>> >> jmf
>>
>> > And this reflects a lack of a sense of humor. :)
>>
>> Isn't that a crime in the UK?
>>
>> ChrisA
>
> The problem with English humour (as against standard humor) is that
On Wed, 15 May 2013, Henry Leyh wrote:
Yes, I was trying that and it sort of works with strings if I use something
sufficiently improbable like "__UNSELECTED__" as default. But it gets
difficult with boolean or even number arguments where you just may not have
valid "improbable" defaults. You
On Wed, 15 May 2013 15:19:00 +0200 (CEST)
Jean-Michel Pichavant wrote:
> > British humour includes "double entendre", which is not
> > French-compliant.
>
> I didn't get that one. Which possibly confirm MRAB's statement.
It's sort of like when Bush said "The French don't even have a word for
ent
> Yes, I was trying that and it sort of works with strings if I use something
> sufficiently improbable like "__UNSELECTED__" as default. But it gets
> difficult with boolean or even number arguments where you just may not have
> valid "improbable" defaults. You could now say, so what, it's th
On 15.05.2013 15:00, Oscar Benjamin wrote:
On 15 May 2013 13:52, Henry Leyh wrote:
On 15.05.2013 14:24, Roy Smith wrote:
In article ,
Henry Leyh wrote:
Is there a simple way to determine which
command line arguments were actually given on the commandline, i.e. does
argparse.ArgumentPars
> >> >> This reflects a lack of understanding of Unicode.
> >>
> >> >> jmf
> >>
> >> > And this reflects a lack of a sense of humor. :)
> >>
> >> Isn't that a crime in the UK?
> >>
> >> ChrisA
> >
> > The problem with English humour (as against standard humor) is that
> > its not unicode compliant
On 15 May 2013 13:52, Henry Leyh wrote:
> On 15.05.2013 14:24, Roy Smith wrote:
>>
>> In article ,
>> Henry Leyh wrote:
>>
>>> Is there a simple way to determine which
>>> command line arguments were actually given on the commandline, i.e. does
>>> argparse.ArgumentParser() know which of its na
On 15.05.2013 14:24, Roy Smith wrote:
In article ,
Henry Leyh wrote:
Is there a simple way to determine which
command line arguments were actually given on the commandline, i.e. does
argparse.ArgumentParser() know which of its namespace members were
actually hit during parse_args().
I thin
Colin J. Williams writes:
> On 15/05/2013 2:34 AM, Henry Leyh wrote:
> > Hello,
> > I am writing a program that gets its parameters from a combination
> > of config file (using configparser) and command line arguments
> > (using argparse). Now I would also like the program to be able to
> > _wri
On 05/15/2013 08:24 AM, Roy Smith wrote:
In article ,
Henry Leyh wrote:
Is there a simple way to determine which
command line arguments were actually given on the commandline, i.e. does
argparse.ArgumentParser() know which of its namespace members were
actually hit during parse_args().
I t
In article ,
Henry Leyh wrote:
> Is there a simple way to determine which
> command line arguments were actually given on the commandline, i.e. does
> argparse.ArgumentParser() know which of its namespace members were
> actually hit during parse_args().
I think what you're looking for is sys
On 15 May 2013 12:18, wzab wrote:
> I had to implement in Python 2.7.x a system which heavily relies on
> multiple inheritance.
> Working on that, I have came to very simplistic code which isolates
> the problem:
> (The essential thing is that each base class receives all arguments
> and uses only
On 13/05/2013 11:41 AM, Sharon COUKA wrote:
Hello, I'm new to python and i have to make a Mandelbrot fractal image for
school but I don't know how to zoom in my image.
Thank you for helping me.
Envoyé de mon iPad
Google is your friend. Try "Mandelbrot Python"
Colin W.
--
http://mail.py
On 15/05/2013 2:34 AM, Henry Leyh wrote:
Hello,
I am writing a program that gets its parameters from a combination of
config file (using configparser) and command line arguments (using
argparse). Now I would also like the program to be able to _write_ a
configparser config file that contains onl
I had to implement in Python 2.7.x a system which heavily relies on
multiple inheritance.
Working on that, I have came to very simplistic code which isolates
the problem:
(The essential thing is that each base class receives all arguments
and uses only those,
which it understands).
class a(object)
On Sun, May 12, 2013 at 10:48 PM, Mark Janssen
wrote:
> You're very right. But that is what has made it sort of a test-bed
> for internet collaboration. The project I'm working on is aimed to
> solve that problem and take the Wiki philosophy to its next or even
> ultimate level. By adding a "n
On Tue, May 14, 2013 at 4:14 AM, rusi wrote:
> It costs $10K for a car which goes at around 80 kmph
>
> Now if I want to move at 800 kmph I need to switch from car to plane
> and that will cost me in millions
>
> And if I want to move at 8000 kmph I need to be in a rocket in outer
> space. Cost pe
Hello, I'm new to python and i have to make a Mandelbrot fractal image for
school but I don't know how to zoom in my image.
Thank you for helping me.
Envoyé de mon iPad
--
http://mail.python.org/mailman/listinfo/python-list
77 matches
Mail list logo