Hi guys! This is my first post on this list.
I'd like have your opinion on how to safely implement WSGI on a production
server.
My benchmarks show no performance differences between our PHP and Python
environments. I'm using mod_wsgi v3.4 with Apache 2.4.
Is that ok or can it get faster?
Than
Your "for idx, val in enumerate(words):" is running on words not list_temp.
As you remove from list_temp and keeps parsing words you get the IndexError.
> From: form...@gmail.com
> Date: Wed, 15 May 2013 00:22:05 -0400
> Subject: IndexError: pop index out of range
Christian, have you tried pod[1]? You can use create templates in OpenDocument
format and then create the PDFs just passing the arguments, like:
args = {'name':'John', 'email':'j...@example.com'}
renderer = Renderer('template.odt', args, 'result.odt')renderer.run()
[1] http://appyframework.org
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
I've got the following results on my desktop PC (Win7/Python2.7.5):
C:\src\Python>python -m timeit -cvn3 -r3 "execfile('fastwrite2.py')"
raw times: 123 126 125
3 loops, best of 3: 41 sec per loop
C:\src\Python>python -m timeit -cvn3 -r3 "execfile('fastwrite5.py')"
raw times: 34 34.3 34
3 loops, b
omp.lang.pyt...@pearwood.info
> Subject: Re: How to write fast into a file in python?
> Date: Fri, 17 May 2013 16:42:55 +0000
> To: python-list@python.org
>
> On Fri, 17 May 2013 18:20:33 +0300, Carlos Nepomuceno wrote:
>
>> I've got the following results on my desktop PC
You've hit the bullseye! ;)
Thanks a lot!!!
> Oh, I forgot to mention: you have a bug in this function. You're already
> including the newline in the len(line), so there is no need to add one.
> The result is that you only generate 44MB instead of 50MB.
That's because I'm running on Windows.
Wha
Think the following update will make the code more portable:
x += len(line)+len(os.linesep)-1
Not sure if it's the fastest way to achieve that. :/
> On Fri, 17 May 2013 18:20:33 +0300, Carlos Nepomuceno wrote:
>
>> ### fastwrite5.py ###
>> import cStringIO
>> siz
55 +0100
> Subject: RE: How to write fast into a file in python?
> From: fabiosantos...@gmail.com
> To: carlosnepomuc...@outlook.com
> CC: python-list@python.org
>
>
> On 17 May 2013 19:38, "Carlos Nepomuceno"
> mailto:carlosnepomuc...@outlook.com>>
&
> To: python-list@python.org
> From: wlfr...@ix.netcom.com
> Subject: Re: Please help with Threading
> Date: Sat, 18 May 2013 15:28:56 -0400
>
> On Sat, 18 May 2013 01:58:13 -0700 (PDT), Jurgens de Bruin
> declaimed the following in
> gmane.comp.python.gene
> Date: Sat, 18 May 2013 22:41:32 -0400
> From: da...@davea.name
> To: python-list@python.org
> Subject: Re: How to write fast into a file in python?
>
> On 05/18/2013 01:00 PM, Carlos Nepomuceno wrote:
>> Python really writes '
Thanks Dan! I've never used CPython or PyPy. Will try them later.
I think the main difference between your create_file_numbers_file_like()
and the fastwrite5.py I sent earlier is that I've used cStringIO
instead of StringIO. It took 12s less using cStringIO.
My numbers are much greater, but I'v
BTW, I've downloaded from the following places:
http://stromberg.dnsalias.org/svn/bufsock/trunk/bufsock.py
http://stromberg.dnsalias.org/~dstromberg/backshift/documentation/html/python2x3-pysrc.html
Are those the latest versions?
> From: carlosnepomuc...@
ooops! I meant to say Cython. nevermind...
> Date: Sun, 19 May 2013 19:21:54 +1000
> Subject: Re: How to write fast into a file in python?
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sun, May 19, 2013 at 3:31 PM, Carlos N
It seems to me you can't use ast.literal_eval()[1] to evaluate that kind of
expression because it's just for literals[2].
Why don't you use eval()?
[1] http://docs.python.org/2/library/ast.html#ast-helpers
[2] http://docs.python.org/2/reference/lexical_analysis.html#literals
-
> Date: Sun, 19 May 2013 13:10:36 +1000
> From: c...@zip.com.au
> To: carlosnepomuc...@outlook.com
> CC: python-list@python.org
> Subject: Re: Please help with Threading
>
> On 19May2013 03:02, Carlos Nepomuceno wrote:
> | Just be
> Date: Mon, 20 May 2013 17:45:14 +1000
> From: c...@zip.com.au
> To: fabiosantos...@gmail.com
> Subject: Re: Please help with Threading
> CC: python-list@python.org; wlfr...@ix.netcom.com
>
> On 20May2013 07:25, Fábio Santos wrote:
> | On 18 May 2013 20:33
ck constraint is the most generic constraint
>>> type. It allows you to specify that the value in a certain column must
>>> satisfy a Boolean (truth-value) expression."
>>>
>>> The problem is that I want to store the constraint as a string, and I
>>> was
> Date: Mon, 20 May 2013 18:35:20 +1000
> From: c...@zip.com.au
> To: carlosnepomuc...@outlook.com
> CC: python-list@python.org
> Subject: Re: Please help with Threading
>
> On 20May2013 10:53, Carlos Nepomuceno wrote:
> | I just g
fast into a file in python?
>
> On 19/05/2013 04:53, Carlos Nepomuceno wrote:
>>
>>> Date: Sat, 18 May 2013 22:41:32 -0400
>>> From: da...@davea.name
>>> To: python-list@python.org
>>> Subject: Re: How to writ
sys.stdout.write() does not suffer from the newlines mess up when printing from
many threads, like print statement does.
The only usage difference, AFAIK, is to add '\n' at the end of the string.
It's faster and thread safe (really?) by default.
BTW, why I didn't find the source code to the sys
> On Tue, May 21, 2013 at 11:44 AM, 8 Dihedral
> wrote:
>> OK, if the python interpreter has a global hiden print out
>> buffer of ,say, 2to 16 K bytes, and all string print functions
>> just construct the output string from the format to this string
>> in an efficient low level way, then the
Is there a way to format integers with thousands separator (digit grouping)
like the format specifier of str.format()?
I'm currently using the following:
>>> sys.stdout.write('Number = %s\n' % '{:,.0f}'.format(x))
Number = 12,345
'x' is unsigned integer so it's like using a sledgehammer to crac
> From: alyssonbr...@gmail.com
> Date: Tue, 21 May 2013 09:03:13 -0300
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
> To: python-list@python.org
>
> This work in 3.1+:
>
> $ python3
> Python 3.1.3 (r313:86834, Nov 28 2010, 11:28:10)
>
> From: kwpol...@gmail.com
> Date: Tue, 21 May 2013 21:06:11 +0200
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
> To: carlosnepomuc...@outlook.com
> CC: python-list@python.org
>
> On Tue, May 21, 2013 at 8:49
> Analysing the code of "stringobject.c" I've found formatint() and
> formatlong().
I mean _PyString_FormatLong()
--
http://mail.python.org/mailman/listinfo/python-list
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
> Date: Tue, 21 May 2013 20:26:41 +0100
>
> On 21/05/2013 20:13, Skip Montanaro wrote:
>>> Thank you, but let me rephrase it. I'm al
> Date: Tue, 21 May 2013 14:53:54 -0500
> From: bahamutzero8...@gmail.com
> To: python-list@python.org
[...]
>>
> What myth? People should indeed be using .format(), but no one said %
> formatting was going away soon. Also, the suggested change to the docs
I was looking for something else and just found what I think is the place where
I was first exposed to the myth[1]:
"Since str.format() is quite new, a lot of Python code still uses the %
operator. However, because this old style of formatting will eventually be
removed from the language, str.f
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
> Date: Wed, 22 May 2013 02:42:56 +
> To: python-list@python.org
>
> On Tue, 21 May 2013 23:22:24 +0300, Carlos Nepomuceno
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
> Date: Wed, 22 May 2013 03:08:54 +
> To: python-list@python.org
[...]
>> So, the only alternative to have "'%,d' % x" rendering the thousands
>
g will eventually be
> removed from the language"
>
> On 5/21/2013 10:26 PM, Carlos Nepomuceno wrote:
>> I was looking for something else and just found what I think is the place
>> where I was first exposed to the myth[1]:
>>
>> "Since str.format() i
> Date: Wed, 22 May 2013 07:25:13 -0400
> From: n...@nedbatchelder.com
[...]
> You have to keep in mind that 2.7 is not getting any new features, no
> matter how small they seem. If you create a patch that implements the
> comma flag in %-formatting, it *mig
Funny! I made a lot of assumptions regarding your requirements specification.
Let me know if it isn't what you need:
### 1strow_average.py ###
#Assuming you have CSV (comma separated values) files such as:
#1.txt = '0,1,2,3,4,5,6,7,8,9\n' \
# '10,11,12,13,14,15,16,17,18,19\n' \
# '2
> Date: Wed, 22 May 2013 13:26:23 -0700
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
> From: prueba...@latinmail.com
> To: python-list@python.org
[...]
>
> Maybe a cformat(formatstring, variables) function should be created
> in the strin
> From: alister.w...@ntlworld.com
[...]
> Kevin
>
> Please write out 1000 time (without using any form of loop)
>
> "NEVER use input in python <3.0 it is EVIL"*
>
> as Chris A point out it executes user input an can cause major damage
> (reformatting the har
> From: oscar.j.benja...@gmail.com
[...]
>
> Do you find this code easy to read? I wouldn't write something like
> this and I certainly wouldn't use it when explaining something to a
> beginner.
>
> Rather than repeated list comprehensions you should conside
># contents[3][4][5] : 6th column of 5th row of file '4.txt'
BTW, it should read
# contents[3][4][5] : 6th value of 5th row of file '4.txt'
--
http://mail.python.org/mailman/listinfo/python-list
> From: denismfmcma...@gmail.com
[...]
>
> import re
> def v(s):
> l=len(s)
> t=0.
> for i in range(l):
> t=t+(abs(ord(s[i]))*1.)
> return t/(l*1.)
> for n in range(5):
> m="c:/test/"+str(n+1)+".txt"
> f=open(m,"r")
> d=[]
> t=0.
> for l in range(10):
> d=d+
> From: oscar.j.benja...@gmail.com
> Date: Thu, 23 May 2013 01:34:37 +0100
> Subject: Re: file I/O and arithmetic calculation
> To: carlosnepomuc...@outlook.com
> CC: python-list@python.org
>
> On 23 May 2013 00:49, Carlos Nepomuceno
On 22 May 2013 23:31, Carlos Nepomuceno wrote:
>>
>> I still don't understand why % benefits from literals optimization
>> ("'%d'%12345") while '{:d}'.format(12345) doesn't.
>
> There's no reason why that optimisation can't h
The last line of my noob piece can be improved. So this is it:
### 1strow_average.py ###
#Assuming you have CSV (comma separated values) files such as:
#1.txt = '0,1,2,3,4,5,6,7,8,9\n' \
# '10,11,12,13,14,15,16,17,18,19\n' \
# '20,21,22,23,24,25,26,27,28,29\n' ...
#
# Usage: contents
Have you tried Inspect Shell[1]?
All you have to do to monitor your script is include "import inspect_shell" in
the 1st line of you source code and then run:
"python inspect_shell.py"
When you get the prompt you can enter the following to show the list of modules:
localhost:1234> '\n'.join(['{
You don't! If your app needs local content just use a regular open() (or your
browser) to read the files and render them as you see fit.
For remote content you just need the 'urllib2' module or something like
'requests' module to get the data.
> Date: We
> Date: Thu, 23 May 2013 06:44:05 -0700
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
> From: prueba...@latinmail.com
> To: python-list@python.org
[...]
eggs(a,f)
> Traceback (most recent call last):
> File "", line 1, in
> eggs(a,f)
> To: python-list@python.org
> From: tjre...@udel.edu
[...]
>> It's a conflict in the design. A tuple is used to supply multiple
>> arguments to the % operator. So if you want to have a tuple as the
>> first argument, you need to enclose it in another tuple.
> From: denismfmcma...@gmail.com
[...]
>> Dear all who involved with responding to my question - Thank you so much
>> for your nice code which really helped me.
>
> Hold on a sec? Someone posted code that gave the correct answer to a
> homework question?
>
>
hu, May 23, 2013 at 6:20 PM, Carlos Nepomuceno
> mailto:carlosnepomuc...@outlook.com>>
> wrote:
> Can str.format() do the following?
>
> f = '%d %d %d'
> v = '1,2,3'
> print f % eval(v)
>
> Sure:
>
> Python 3.2.2 (d
Send the output of the following commands:
uname -a
/sbin/iptables -V
> From: notr...@earthlink.net
> Subject: Read txt file, add to iptables not working on new host
> Date: Thu, 23 May 2013 22:44:38 -0400
> To: python-list@python.org
>
> First, let me sa
lol wtf?
If 'n' is the quantity of elements to be sorted there's
no way you can write an algorithm with complexity O(n) for the worst
case not knowing something special about the data.
For example, Quicksort will give you O(n*(log(n)) on average case (O(n^2) in
the worst case).
You gotta be m
something like this?
>
> outPut = os.popen('uname -a' '/sbin/iptables -V INPUT -s' + ' ' + IP + '
> ' + '-j REJECT' )
>
> Sorry but like I said, I have no experience with any of this.
>
>
>
> On 5/23/2
> Date: Fri, 24 May 2013 01:14:45 -0700
> Subject: Simple algorithm question - how to reorder a sequence economically
> From: peter.h.m.bro...@gmail.com
> To: python-list@python.org
>
> What is the easiest way to reorder a sequence pseudo-randomly?
>
> That
> Date: Thu, 23 May 2013 19:29:14 -0700
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
> From: dihedral88...@gmail.com
[...]
> Could a separate instance like the I/O device of a subprocess
> to be easily available in Python?
>
> The next qu
Not exactly what you want but you may consider Google ACL XML[1].
If there aren't any system integration restrictions you can do what you think
it's best... for now.
[1] https://developers.google.com/storage/docs/accesscontrol#applyacls
> Date: Fri, 24
lol that reminds me of George! lol
;)
> Date: Fri, 24 May 2013 19:28:29 +0200
> From: andiper...@gmail.com
> To: python-list@python.org
> Subject: Re: PEP 378: Format Specifier for Thousands Separator
>
> On 24.05.2013 17:25, Carlo
13 12:08:03 -0700
> Subject: Re: Using ACLs in JSON
> From: peter.h.m.bro...@gmail.com
> To: python-list@python.org
>
> On May 24, 6:13 pm, Carlos Nepomuceno
> wrote:
>> Not exactly what you want but you may consider Google ACL XML[1].
>>
>> If there aren't an
> Date: Fri, 24 May 2013 12:01:35 -0700
> Subject: Re: Simple algorithm question - how to reorder a sequence
> economically
> From: peter.h.m.bro...@gmail.com
> To: python-list@python.org
>
> On May 24, 5:00 pm, Carlos Nepomuceno
>
### table_data_extraction.py ###
# Usage: table[id][row][column]
# tables[0] : 1st table
# tables[1][2] : 3rd row of 2nd table
# tables[3][4][5] : cell content of 6th column of 5th row of 4th table
# len(table) : quantity of tables
# len(table[6]) : quantity of rows of 7th table
# l
Thanks Dan! All of that is relevant but I'm specially concerned about security
issues and think another column for that purpose would improve your database,
although I'm not sure if there's data available or how it would be presented.
> Date: Fri, 24 May 2013 16:
> Date: Fri, 24 May 2013 17:11:18 -0700
> Subject: Re: Survey of Python-in-browser technologies
> From: drsali...@gmail.com
> To: carlosnepomuc...@outlook.com
> CC: python-list@python.org
>
>
> Security is an important topic... but I'm not sure how I could
You probably need 'valgrind-devel' package installed.
> Date: Fri, 24 May 2013 20:59:22 -0400
> Subject: Why won't Python 2/3 compile when I have valgrind installed?
> From: yoursurrogate...@gmail.com
> To: python-list@python.org
>
> This isn't a huge issue,
Can you give an example of the code you have?
> From: jcas...@activenetwerx.com
> To: python-list@python.org
> Subject: Ldap module and base64 oncoding
> Date: Fri, 24 May 2013 21:00:01 +
>
> I have some data I am working with that is not being interpre
Is python.org powered by CPython?
Is it using WSGI?
What Python version is been used?
I already checked it's using Apache. Is it using mod_wsgi?
Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
In-depth articles about Python! Like security analisys of modules, packages,
frameworks, everything Python related.
Performance benchmarks. How a Python technology/solution compares to other
competitor technologies.
Python competitions/contests/challenges!
I'd like to have the option to download the source code as text/plain from the
docs.python.org pages.
For example: when I'm a docs page, such as:
http://docs.python.org/2/library/string.html
and I click the source code link I'm taken to a Mercurial page:
http://hg.python.org/cpython/file/2.7/L
Oh great! Thank you!
> Date: Fri, 24 May 2013 21:06:05 -0700
> Subject: Re: Source code as text/plain
> From: c...@rebertia.com
> To: carlosnepomuc...@outlook.com
> CC: python-list@python.org
>
>
> On May 24, 2013 9:0
> Date: Fri, 24 May 2013 21:10:02 -0700
> Subject: Re: Python Magazine
> From: rama29...@gmail.com
> To: python-list@python.org
>
> On Saturday, May 25, 2013 9:13:56 AM UTC+5:30, Carlos Nepomuceno wrote:
>> In-depth articles abo
> Date: Fri, 24 May 2013 23:05:17 -0700
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: lokeshkopp...@gmail.com
> To: python-list@python.org
[...]
> ya steven i had done the similar logic but that
> Date: Sat, 25 May 2013 18:28:32 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sat, May 25, 201
ist@python.org
>
> On Sat, May 25, 2013 at 6:43 PM, Carlos Nepomuceno
> wrote:
>>
>> lol I forgot to include this monkey patch! ;)
>>
>> def length(l):
>> x=0
>> y=l[:]
>> while y:
>> x+=1
>> y.p
> Date: Sat, 25 May 2013 19:01:09 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
[...]
> Very good. You are now in a position to get past the l
ist@python.org
>
> On Sat, May 25, 2013 at 7:10 PM, Carlos Nepomuceno
> wrote:
>>
>>> Date: Sat, 25 May 2013 19:01:09 +1000
>>> Subject: Re: help how to sort a list in order of 'n' in python without
>>
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> Date: Sat, 25 May 2013 13:01:06 +0100
[...]
> In my book this is another fail as lists are in
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> Date: Sat, 25 May 2013 14:28:33 +
> To: python-list@python.org
>
> On Sat, 25 May 2013 19:14:57 +1000, Ch
> Date: Sun, 26 May 2013 01:41:58 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sun, May 26, 2013 at 12:28 AM, Steven D'Aprano
> wrote
> Date: Sat, 25 May 2013 18:11:11 +0530
> Subject: Learning Python
> From: pythona...@gmail.com
> To: Python-list@python.org
>
> Hi All ,
>
> I have started leaning Python through web . Would like to know
> if I should follow any book so that ba
> From: r...@panix.com
> Subject: Re: Python Magazine
> Date: Sat, 25 May 2013 11:24:03 -0400
> To: python-list@python.org
>
> In article ,
> Chris Angelico wrote:
>
>>> Also, comparison of Python flavors (CPython, PyPy, Cython, Stackles, etc.)
>
> Stackles
> Date: Sun, 26 May 2013 03:23:44 +1000
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Sun, May 26, 201
> Date: Fri, 24 May 2013 23:05:17 -0700
> Subject: Re: help how to sort a list in order of 'n' in python without using
> inbuilt functions??
> From: lokeshkopp...@gmail.com
[...]
> ya steven i had done the similar logic but thats not satisfying my professo
> Date: Sat, 25 May 2013 20:04:28 -0700
> Subject: Re: Python Magazine
> From: john_lada...@sbcglobal.net
> To: python-list@python.org
>
> A perfectly fair point, Roy. It's just when you started suggesting connecting
> to your neighbor's file server -- well
Your code isn't threaded. I suggest you consider[1] and take that road! ;) Good
luck!
[1] http://bulk.fefe.de/scalable-networking.pdf
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: CrazyHTTPd - HTTP Daemon in Python
> Date: Su
> Date: Sun, 26 May 2013 14:31:57 +1000
> Subject: Re: Python Magazine
> From: ros...@gmail.com
> To: python-list@python.org
[...]
> I expect that IP blocks will be upgraded to /64 block blocks, if that
> starts being a problem. But it often won't, and speci
> Date: Sun, 26 May 2013 06:00:51 -0700
> Subject: Re: TypeError: unsupported operand type(s) for %: 'NoneType' and
> 'tuple'
> From: nikos.gr...@gmail.com
> To: python-list@python.org
>
> Anyone seeign somethign wrong?
> --
> http://mail.python.org/mailman
> Date: Sun, 26 May 2013 10:21:05 -0700
> Subject: Re: Solving the problem of mutual recursion
> From: peter.h.m.bro...@gmail.com
> To: python-list@python.org
>
> On May 26, 5:09 pm, Jussi Piitulainen
> wrote:
>>
>> A light-weighter way is to have each task
> Date: Sun, 26 May 2013 10:52:14 -0700
> Subject: Cutting a deck of cards
> From: rvinc...@gmail.com
> To: python-list@python.org
>
> Suppose I have a deck of cards, and I shuffle them
>
> import random
> cards = []
> decks = 6
> cards = list(range(13 * 4 *
> Date: Sun, 26 May 2013 11:13:12 -0700
> Subject: Re: Solving the problem of mutual recursion
> From: peter.h.m.bro...@gmail.com
> To: python-list@python.org
[...]
>> How can you get 140% of CPU? IS that a typo??
>>
> No, on a multi-core machine it's normal
> From: felip...@gmx.net
> Subject: Re: Future standard GUI library
> Date: Sun, 26 May 2013 19:43:10 +0200
> To: python-list@python.org
[...]
> one, HTTP will never be a suitable transport layer for a RPC protocol.
>
> Sincerely,
>
> Wolfgang
Please give
https://cffi.readthedocs.org/en/release-0.6/
> Date: Sun, 26 May 2013 09:12:10 -0700
> Subject: Re: Help with implementing callback functions using ctypes
> From: samj...@gmail.com
> To: python-list@python.org
>
> On Friday, May 24, 2013 8:56:28 AM UTC+5:30
> From: usenetm...@solar-empire.de
[...]
> Not in Python3.x
decks = 6
list(range(13 * 4 * decks)) == range(13 * 4 * decks)
> False
>
> Adiaŭ
> Marc
What does "list(range(13 * 4 * decks))" returns in Python 3?
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
[...]
> No wonder the Greek economy is so screwed up.
>
> --
> If you're using GoogleCrap™ please read this
> http://wiki.python.org/moin/GoogleGroupsPython.
>
> Mark Lawrence
LOL LOL LOL LOL LOL
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
[...]
> Wrong if you're using Python 3 :(
>
> --
> If you're using GoogleCrap™ please read this
> http://wiki.python.org/moin/GoogleGroupsPython.
>
> Mark Lawrence
Thanks guys! I've been delaying
> Date: Mon, 27 May 2013 08:42:56 +1000
> Subject: Re: Cutting a deck of cards
> From: ros...@gmail.com
[...]
> Easy. Just grab the standard installer and hit it. You'll get two
> separate directories (or more; I have \Python26, \Python27, \Python32,
> \Pyth
Where can I find all error codes and messages that Python throws (actual codes
and messages from exceptions raised by stdlib)?
I've already found the module 'errno' and got a dictionary (errno.errorcode)
and some system error messages (os.strerror(errno.ENAMETOOLONG)) but there's
more I couldn'
pipes usually consumes disk storage at '/tmp'. Are you sure you have enough
room on that filesystem? Make sure no other processes are competing against for
that space. Just my 50c because I don't know what's causing Errno 0. I don't
even know what are the possible causes of such error. Good luck
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: Python error codes and messages location
> Date: Mon, 27 May 2013 00:53:41 +
> To: python-list@python.org
>
> On Mon, 27 May 2013 02:13:54 +0300, Carlos Nepomuceno wrote:
>
Thanks so much guys!
I'm not planning to prepare for every possible situation, but I certainly am
responsible to handle most common errors. So it's really important to know what
a function/method returns when called.
Exception handling may take lots of code, but I'm used to it. It's much better
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: How to get an integer from a sequence of bytes
> Date: Mon, 27 May 2013 15:00:39 +
> To: python-list@python.org
>
> On Mon, 27 May 2013 16:45:05 +0200, Mok-Kong Shen wrote:
>
>> From an int one
> Date: Mon, 27 May 2013 17:58:00 -0700
> Subject: Re: Total Beginner - Extracting Data from a Database Online
> (Screenshot)
> From: logan.c.gra...@gmail.com
> To: python-list@python.org
[...]
>
> Oh goodness, yes, I have no clue.
For example:
# to retri
curl -O http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
> Date: Mon, 27 May 2013 18:32:43 -0700
> Subject: How to: Setuptools
> From: r...@aarden.us
> To: python-list@python.org
>
> I would like to use easy_install, but can't figure out ho
> Date: Mon, 27 May 2013 14:22:17 -0700
> Subject: Minor consistency question in io.IOBase
> From: dwight.g...@gmail.com
> To: python-list@python.org
>
> Hi, so, I don't necessarily know if this is the right place to ask this
> question since it's kindof a
1 - 100 of 166 matches
Mail list logo