Re: socket.error: [Errno 98] Address already in use

2010-09-19 Thread Lawrence D'Oliveiro
In message pan.2010.09.19.05.36.20.141...@nowhere.com, Nobody wrote: On Sun, 19 Sep 2010 12:27:08 +1200, Lawrence D'Oliveiro wrote: That's why Stevens recommends that all TCP servers use the SO_REUSEADDR socket option. I don’t think I’ve ever used that. It seems to defeat a safety

Re: The trouble with dynamic attributes.

2010-09-19 Thread Lie Ryan
On 09/18/10 03:53, Ethan Furman wrote: Lie Ryan wrote: [snip] And even dict-syntax is not perfect for accessing XML file, e.g.: a bfoo/b bbar/b /a should a['b'] be 'foo' or 'bar'? Attribute style access would also fail in this instance -- how is this worked-around? By not

Re: compile Py2.6 on SL

2010-09-19 Thread Martin v. Loewis
Am 16.09.2010 17:34, schrieb moerchendiser2k3: Hi, I have some trouble with Python on Snow Leopard (10.6.3). I compile Python as a framework(for 32/64bit) without any problems. But implementing the lib in my C app, I get the following error on linking: Undefined symbols:

Re: Learning inheritance

2010-09-19 Thread Niklasro
On Sep 18, 11:15 pm, Jorgen Grahn grahn+n...@snipabacken.se wrote: On Sat, 2010-09-18, Niklasro wrote: Hi How can I make the visibility of a variable across many methods or files? To avoid repeating the same line eg     url = os.environ['HTTP_HOST'] if os.environ.get('HTTP_HOST') else

Re: Learning inheritance

2010-09-19 Thread Niklasro
On Sep 19, 2:31 am, alex23 wuwe...@gmail.com wrote: Niklasro nikla...@gmail.com wrote: I got 2 files main.py and i18n both with webapp request handlers which I would like access the variable. I'd probably use a module for this. Create a third file, called something like shared.py,

Re: Learning inheritance

2010-09-19 Thread Niklasro
It works but I don't know whether it's formally inheritance or class variable. Before code was url = os.environ['HTTP_HOST'] if os.environ.get('HTTP_HOST') else os.environ['SERVER_NAME'] if url.find('niklas') 0: and now the change saves me from repeating myself! util.py: url =

Re: Plz comment on this code

2010-09-19 Thread Peter Otten
fridge wrote: # bigdigits2.py import sys zero=[***, * *, ***] one=[***, * , ***] digits=[zero,one,zero,one,zero,one,zero,one,zero,one] inputted_digit=sys.argv[1] column_max=len(inputted_digit) row_max=3 r=0 while r3: line= c=0 while ccolumn_max:

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-19, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Define unbalanced. I'm not sure that's the word I'd use. I'm not even sure what it would mean here. Putting aside the over-use of punctuation, The C syntax feels unbalanced to me. You have: condition IF true-clause

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-19, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I'm not entirely sure I agree with you here... you can't ignore syntax in order to understand the meaning of code. No, but the syntax should be invisible. When I read English, I don't have to think about nouns and

Re: Learning inheritance

2010-09-19 Thread Thomas Jollans
On 2010-09-19 09:22, Niklasro wrote: util.py: url = os.environ.get(HTTP_HOST, os.environ[SERVER_NAME]) #declared as class variable(?) There is no class here, so this is no class variable, and you're not inheriting anything. You're simply using a module. And viola just test if

Re: Learning inheritance

2010-09-19 Thread Niklasro
On Sep 19, 8:12 am, Thomas Jollans tho...@jollans.com wrote: On 2010-09-19 09:22, Niklasro wrote: util.py: url = os.environ.get(HTTP_HOST, os.environ[SERVER_NAME]) #declared as class variable(?) There is no class here, so this is no class variable, and you're not inheriting anything.

Re: Plz comment on this code

2010-09-19 Thread Alex Willmer
Your code works (assuming digits gets populated fully), but it's the absolute bare minimum that would. To be brutally honest it's: - unpythonic - you've not used the core features of Python at all, such as for loops over a sequence - poorly formatted - Please read the python style guide and

Re: Plz comment on this code

2010-09-19 Thread Lawrence D'Oliveiro
In message fdd04662-0ae7-46a3-a7d3-d6bb00438...@j19g2000vbh.googlegroups.com, Alex Willmer wrote: # NB Constants are by convention ALL_CAPS SAYS_WHO? -- http://mail.python.org/mailman/listinfo/python-list

Re: Plz comment on this code

2010-09-19 Thread Lawrence D'Oliveiro
In message 4c957412$0$3036$afc38...@news.optusnet.com.au, fridge wrote: digits=[zero,one,zero,one,zero,one,zero,one,zero,one] digits = [zero, one] * 5 row_max=3 Defined but never used. digit_i=int(inputted_digit[c]) digit=digits[digit_i] line+=digit[r] line+= Too many

Re: Cross Compiling Python for ARM

2010-09-19 Thread Lawrence D'Oliveiro
In message 4c911670$0$41115$e4fe5...@news.xs4all.nl, Hans Mulder wrote: The most popular way to get the latter problem is to write the script on a Windows box and then upload it to Unix box using FTP in binary mode (or some other transport that doesn't adjust the line endings). I always

Re: program organization question for web development with python

2010-09-19 Thread Lawrence D'Oliveiro
In message 6102316a-d6e6-4cf2-8a1b-ecc5d3247...@w15g2000pro.googlegroups.com, Hans wrote: print a href=display_tb.py?id=%stable=%scursor=%s%s/a % (record[0],table_name,cursor_name,record1) I would recommend avoiding filename extensions in your URLs wherever possible. For executables, in

Re: Plz comment on this code

2010-09-19 Thread Alex Willmer
On Sep 19, 12:20 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message fdd04662-0ae7-46a3-a7d3-d6bb00438...@j19g2000vbh.googlegroups.com, Alex Willmer wrote: # NB Constants are by convention ALL_CAPS SAYS_WHO? Says PEP 8: Constants Constants are usually

Re: [DB-SIG] dbf files and compact indices

2010-09-19 Thread M.-A. Lemburg
Ethan Furman wrote: Carl Karsten wrote: On Sat, Sep 18, 2010 at 11:23 PM, Ethan Furman et...@stoneleaf.us wrote: Thanks for the suggestion, but I don't want to be tied to Foxpro, which means I need to be able to parse these files directly. I have the dbf files, now I need the idx and cdx

Re: This Is International Don’t-Squawk-Like-A -Parrot Day

2010-09-19 Thread Tim Chase
On 09/18/10 23:46, Lawrence D'Oliveiro wrote: Do your bit to help stamp out parrocy. Did you send this by mistake? It looks like a parroty-error. I think it's a bit off... -tkc -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes and buffers

2010-09-19 Thread Thomas Jollans
On Sunday 19 September 2010, it occurred to Carl Banks to exclaim: I am creating a ctypes buffer from an existing non-ctypes object that supports buffer protocol using the following code: from ctypes import * PyObject_AsReadBuffer = pythonapi.PyObject_AsReadBuffer

Re: C++ - Python API

2010-09-19 Thread Aahz
In article mailman.334.1283373081.29448.python-l...@python.org, Thomas Jollans tho...@jollybox.de wrote: On Wednesday 01 September 2010, it occurred to Markus Kraus to exclaim: So the feature overview: First, the obligatory things you don't want to hear: Have you had a look at similar efforts?

Re: This Is International Don’t-Squawk-Like-A -Parrot Day

2010-09-19 Thread Aahz
In article mailman.878.1284897801.29448.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: On 09/18/10 23:46, Lawrence D'Oliveiro wrote: Do your bit to help stamp out parrocy. Did you send this by mistake? It looks like a parroty-error. I think it's a bit off...

Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Aahz
In article mailman.343.1283384585.29448.python-l...@python.org, geremy condra debat...@gmail.com wrote: On Wed, Sep 1, 2010 at 4:35 PM, patrick mcnameeking pmcnameek...@gmail.com wrote: I've been working with Python now for about a year using it primarily for scripting in the Puredata

Re: This Is International Don’t-Squawk-Like-A -Parrot Day

2010-09-19 Thread Philip Semanchuk
On Sep 19, 2010, at 7:37 AM, Tim Chase wrote: On 09/18/10 23:46, Lawrence D'Oliveiro wrote: Do your bit to help stamp out parrocy. Did you send this by mistake? It looks like a parroty-error. I think it's a bit off... What an wkward thing to say. Are you crackers? --

Re: C++ - Python API

2010-09-19 Thread Thomas Jollans
On Sunday 19 September 2010, it occurred to Aahz to exclaim: In article mailman.334.1283373081.29448.python-l...@python.org, Thomas Jollans tho...@jollybox.de wrote: On Wednesday 01 September 2010, it occurred to Markus Kraus to exclaim: So the feature overview: First, the obligatory

Re: Too much code - slicing

2010-09-19 Thread AK
On 09/18/2010 11:28 PM, Steven D'Aprano wrote: On Sat, 18 Sep 2010 21:58:58 -0400, AK wrote: I don't understand this. So far as I know, the phrase speed reading refers to various methods of reading much faster than most people read, and is real but not exceptionally interesting. Afaik the

Re: Too much code - slicing

2010-09-19 Thread AK
On 09/19/2010 03:31 AM, Seebs wrote: On 2010-09-19, Steven D'Apranost...@remove-this-cybersource.com.au wrote: Define unbalanced. I'm not sure that's the word I'd use. I'm not even sure what it would mean here. Putting aside the over-use of punctuation, The C syntax feels unbalanced to

Re: Too much code - slicing

2010-09-19 Thread AK
On 09/19/2010 03:36 AM, Seebs wrote: On 2010-09-19, Steven D'Apranost...@remove-this-cybersource.com.au wrote: I'm not entirely sure I agree with you here... you can't ignore syntax in order to understand the meaning of code. No, but the syntax should be invisible. When I read English, I

comp.lang.python

2010-09-19 Thread roshini begum
http://127760.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Making logging.getLogger() simpler

2010-09-19 Thread Kev Dwyer
On Sun, 19 Sep 2010 02:35:15 +1000, Lie Ryan wrote: I was expecting this to work: import logging logger = logging.getLogger(__name__) logger.warn('this is a warning') instead it produced the error: No handlers could be found for logger __main__ However, if instead I do:

Re: socket.error: [Errno 98] Address already in use

2010-09-19 Thread Nobody
On Sun, 19 Sep 2010 18:42:51 +1200, Lawrence D'Oliveiro wrote: That's why Stevens recommends that all TCP servers use the SO_REUSEADDR socket option. I don’t think I’ve ever used that. It seems to defeat a safety mechanism which was put in for a reason. It was put in for the benefit of

newbie: class and __dict__ variable.

2010-09-19 Thread mafeusek
Hallo Group Members. From time to time I see in python code following notation that (as I believe) extends namespace of MyClass. class MyClass: def __init__(self): self.__dict__[maci]=45 myCl2 = MyClass2() print myCl2.maci I am guessing that there must be some difference between

develop for Windows on GNU/Linux, using Python

2010-09-19 Thread Default User
Consider: Can someone do development of programs for use on Windows systems, but developed totally on a GNU/Linux system, using standard, contemporary 32 and / or 64-bit PC hardware? This would be for someone who can not or will not use Windows, but wants to create software for those who do.

http2https proxy

2010-09-19 Thread Seb
I'd like to open a ssl connection to a https server, done Create a socket and bind it to a local port, done Connect the two in such a way that everything read or written to the local port is actually read or written to the https server. In other words I want a http2https proxy. ideas? best

Re: develop for Windows on GNU/Linux, using Python

2010-09-19 Thread Kev Dwyer
On Sun, 19 Sep 2010 12:55:43 -0500, Default User wrote: Consider: Can someone do development of programs for use on Windows systems, but developed totally on a GNU/Linux system, using standard, contemporary 32 and / or 64-bit PC hardware? This would be for someone who can not or will not

Re: [DB-SIG] dbf files and compact indices

2010-09-19 Thread Ethan Furman
M.-A. Lemburg wrote: If you are working on Windows, you can install the MS MDAC package to get a hold of the MS FoxPro ODBC drivers. They are usually already installed in Vista and 7, in XP they comes with MS SQL Server and MS Office as well. mxODBC can then provide Python access on Windows,

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-19, AK andrei@gmail.com wrote: On 09/19/2010 03:31 AM, Seebs wrote: Just like: if condition: foo else: bar The condition is the primary, the clauses are secondary to it. To me, the problem with C ternary is, why is true condition first and

Re: Making logging.getLogger() simpler

2010-09-19 Thread Vinay Sajip
On Sep 18, 5:35 pm, Lie Ryan lie.1...@gmail.com wrote: I was expecting this to work:   importlogging   logger =logging.getLogger(__name__)   logger.warn('this is a warning') instead it produced the error:   No handlers could be found for logger __main__ However, if instead I do:  

Re: Making logging.getLogger() simpler

2010-09-19 Thread Vinay Sajip
On Sep 19, 7:52 pm, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: If you are writing a library, you will typically: 2. If you want to force your users (application developers) to add handlers explicitly to their loggers, set your top-level logger's propagate flag to False. Sorry, in the above

Re: develop for Windows on GNU/Linux, using Python

2010-09-19 Thread J.O. Aho
Kev Dwyer wrote: On Sun, 19 Sep 2010 12:55:43 -0500, Default User wrote: Consider: Can someone do development of programs for use on Windows systems, but developed totally on a GNU/Linux system, using standard, contemporary 32 and / or 64-bit PC hardware? This would be for someone who

Python and unicode

2010-09-19 Thread Goran Novosel
Hi everybody. I've played for few hours with encoding in py, but it's still somewhat confusing to me. So I've written a test file (encoded as utf-8). I've put everything I think is true in comment at the beginning of script. Could you check if it's correct (on side note, script does what I

Re: Python and unicode

2010-09-19 Thread Martin v. Loewis
One more thing, is there some mechanism to avoid writing all the time 'something'.decode('utf-8')? Yes, use u'something' instead (i.e. put the letter u before the literal, to make it a unicode literal). Since Python 2.6, you can also put from __future__ import unicode_literals at the top of

Re: Too much code - slicing

2010-09-19 Thread AK
On 09/19/2010 02:21 PM, Seebs wrote: On 2010-09-19, AKandrei@gmail.com wrote: On 09/19/2010 03:31 AM, Seebs wrote: Just like: if condition: foo else: bar The condition is the primary, the clauses are secondary to it. To me, the problem with C

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-19, AK andrei@gmail.com wrote: Because that's what 'if' and 'else' mean. My point is, I don't want the order of the clauses in if/else to change. If it is sometimes if condition true-clause else false-clause, then it should *ALWAYS WITHOUT EXCEPTION* be condition first, then true

Re: Too much code - slicing

2010-09-19 Thread MRAB
On 19/09/2010 22:32, Seebs wrote: On 2010-09-19, AKandrei@gmail.com wrote: Because that's what 'if' and 'else' mean. My point is, I don't want the order of the clauses in if/else to change. If it is sometimes ifcondition true-clause elsefalse-clause, then it should *ALWAYS WITHOUT

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Ken Watford
On Sun, Sep 19, 2010 at 9:16 AM, Aahz a...@pythoncraft.com wrote: In article mailman.343.1283384585.29448.python-l...@python.org, geremy condra  debat...@gmail.com wrote: On Wed, Sep 1, 2010 at 4:35 PM, patrick mcnameeking pmcnameek...@gmail.com wrote: I've been working with Python now for

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Xavier Ho
On 20 September 2010 07:59, Ken Watford kwatford+pyt...@gmail.comkwatford%2bpyt...@gmail.com wrote: Not that I disagree with you, but you might find this helpful: http://tinyurl.com/preview.php -- http://mail.python.org/mailman/listinfo/python-list I don't think the OP wants a preview

Re: ctypes and buffers

2010-09-19 Thread Carl Banks
On Sep 19, 5:10 am, Thomas Jollans tho...@jollybox.de wrote: On Sunday 19 September 2010, it occurred to Carl Banks to exclaim: I am creating a ctypes buffer from an existing non-ctypes object that supports buffer protocol using the following code: from ctypes import *

Re: Python and unicode

2010-09-19 Thread Ben Finney
Goran Novosel goran.novo...@gmail.com writes: # vim: set encoding=utf-8 : This will help Vim, but won't help Python. Use the PEP 263 encoding declaration URL:http://www.python.org/dev/peps/pep-0263/ to let Python know the encoding of the program source file. # -*- coding: utf-8 -*- You

Re: Too much code - slicing

2010-09-19 Thread Gregory Ewing
AK wrote: Afaik the idea is that you can read a novel at the speed of half a page a second or so and understand it to the same extent as people who'd read at a normal rate. I've never understood why anyone would *want* to read a novel that fast, though. For me at least, reading a novel is

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-19, MRAB pyt...@mrabarnett.plus.com wrote: On 19/09/2010 22:32, Seebs wrote: On 2010-09-19, AKandrei@gmail.com wrote: Because that's what 'if' and 'else' mean. My point is, I don't want the order of the clauses in if/else to change. If it is sometimes ifcondition true-clause

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-19, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: AK wrote: Afaik the idea is that you can read a novel at the speed of half a page a second or so and understand it to the same extent as people who'd read at a normal rate. I've never understood why anyone would *want* to read a

Re: socket.error: [Errno 98] Address already in use

2010-09-19 Thread Lawrence D'Oliveiro
In message pan.2010.09.19.17.19.19.687...@nowhere.com, Nobody wrote: However, some clients choose their own source ports. E.g. rlogin/rsh use privileged (low-numbered) ports, and you can't get the kernel to choose a random privileged port for you. But nobody uses rlogin/rsh any more, and who

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Lawrence D'Oliveiro
In message i752g1$1r...@panix5.panix.com, Aahz wrote: Please don't use tinyurl -- it's opaque and provides zero help to anyone who might later want to look it up (and also no accessibility if tinyurl ever goes down). At the very least, include the original URL for reference. +1 from someone

Re: Too much code - slicing

2010-09-19 Thread alex23
AK andrei@gmail.com wrote: When I was reading The book of the new sun, though, I could stop and read a single sentence a few times over and reflect on it for a minute. Totally understandable, Wolfe is a far, far greater writer than Rowling :) --

Re: Too much code - slicing

2010-09-19 Thread AK
On 09/19/2010 07:18 PM, Gregory Ewing wrote: AK wrote: Afaik the idea is that you can read a novel at the speed of half a page a second or so and understand it to the same extent as people who'd read at a normal rate. I've never understood why anyone would *want* to read a novel that fast,

Re: newbie: class and __dict__ variable.

2010-09-19 Thread Terry Reedy
On 9/19/2010 1:37 PM, mafeu...@gmail.com wrote: Hallo Group Members. From time to time I see in python code following notation that (as I believe) extends namespace of MyClass. No, it does not affect MyClass, just the instance dict. class MyClass: def __init__(self):

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Philip Semanchuk
On Sep 19, 2010, at 6:05 PM, Xavier Ho wrote: On 20 September 2010 07:59, Ken Watford kwatford+pyt...@gmail.comkwatford%2bpyt...@gmail.com wrote: Not that I disagree with you, but you might find this helpful: http://tinyurl.com/preview.php --

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-20, alex23 wuwe...@gmail.com wrote: AK andrei@gmail.com wrote: When I was reading The book of the new sun, though, I could stop and read a single sentence a few times over and reflect on it for a minute. Totally understandable, Wolfe is a far, far greater writer than Rowling

Re: Too much code - slicing

2010-09-19 Thread John Bokma
AK andrei@gmail.com writes: On 09/19/2010 07:18 PM, Gregory Ewing wrote: AK wrote: Afaik the idea is that you can read a novel at the speed of half a page a second or so and understand it to the same extent as people who'd read at a normal rate. I've never understood why anyone would

Re: Python and unicode

2010-09-19 Thread Carl Banks
On Sep 19, 4:09 pm, Ben Finney ben+pyt...@benfinney.id.au wrote: Goran Novosel goran.novo...@gmail.com writes: # vim: set encoding=utf-8 : This will help Vim, but won't help Python. Use the PEP 263 encoding declaration URL:http://www.python.org/dev/peps/pep-0263/ to let Python know the

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-20, John Bokma j...@castleamber.com wrote: Heh, to me speed reading those 70 pages in a very short while, concluding that it's a good book, and start over again would be quite the spoiler. I rarely encounter substantive spoilers in the first 70 pages or so of a book. That said, I'm

Re: C++ - Python API

2010-09-19 Thread Aahz
In article mailman.882.1284906611.29448.python-l...@python.org, Thomas Jollans tho...@jollybox.de wrote: On Sunday 19 September 2010, it occurred to Aahz to exclaim: In article mailman.334.1283373081.29448.python-l...@python.org, Thomas Jollans tho...@jollybox.de wrote: On Wednesday 01

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Aahz
In article mailman.897.1284944085.29448.python-l...@python.org, Philip Semanchuk phi...@semanchuk.com wrote: Some email systems still insert hard line breaks around the 72 or 80 column mark and as a result long URLs get broken. I hope anyone on this list would be able to surgically repair a

Re: Too much code - slicing

2010-09-19 Thread Steven D'Aprano
On Mon, 20 Sep 2010 11:18:57 +1200, Gregory Ewing wrote: AK wrote: Afaik the idea is that you can read a novel at the speed of half a page a second or so and understand it to the same extent as people who'd read at a normal rate. I've never understood why anyone would *want* to read a

Re: SimpleHTTPServer, external CSS, and Google Chrome

2010-09-19 Thread Justin Ezequiel
On Sep 18, 2:54 am, MrJean1 mrje...@gmail.com wrote: FWIW, There is a blue text on a red background in all 4 browsers Google Chrome 6.0.472.59, Safari 5.0.1 (7533.17.8), FireFox 3.6.9 and IE 6.0.2900.5512 with Python 2.7 serving that page on my Windows XP SP 3 machine. /Jean Hmm.

Re: Python and unicode

2010-09-19 Thread Steven D'Aprano
On Mon, 20 Sep 2010 09:09:31 +1000, Ben Finney wrote: Goran Novosel goran.novo...@gmail.com writes: # vim: set encoding=utf-8 : This will help Vim, but won't help Python. It will actually -- the regex Python uses to detect encoding lines is documented, and Vim-style declarations are

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Steven D'Aprano
On Sun, 19 Sep 2010 06:16:49 -0700, Aahz wrote: Please don't use tinyurl -- it's opaque and provides zero help to anyone who might later want to look it up (and also no accessibility if tinyurl ever goes down). At the very least, include the original URL for reference. Do you have something

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Seebs
On 2010-09-20, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sun, 19 Sep 2010 06:16:49 -0700, Aahz wrote: Please don't use tinyurl -- it's opaque and provides zero help to anyone who might later want to look it up (and also no accessibility if tinyurl ever goes down). At the

Re: Too much code - slicing

2010-09-19 Thread AK
On 09/19/2010 10:32 PM, John Bokma wrote: AKandrei@gmail.com writes: On 09/19/2010 07:18 PM, Gregory Ewing wrote: AK wrote: Afaik the idea is that you can read a novel at the speed of half a page a second or so and understand it to the same extent as people who'd read at a normal rate.

www.127760.blogspot.com

2010-09-19 Thread roshini begum
www.127760.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Too much code - slicing

2010-09-19 Thread John Bokma
AK andrei@gmail.com writes: On 09/19/2010 10:32 PM, John Bokma wrote: AKandrei@gmail.com writes: On 09/19/2010 07:18 PM, Gregory Ewing wrote: AK wrote: Afaik the idea is that you can read a novel at the speed of half a page a second or so and understand it to the same extent as

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Tim Harig
On 2010-09-20, Seebs usenet-nos...@seebs.net wrote: On 2010-09-20, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sun, 19 Sep 2010 06:16:49 -0700, Aahz wrote: Please don't use tinyurl -- it's opaque and provides zero help to anyone who might later want to look it up (and also

Re: Too much code - slicing

2010-09-19 Thread Seebs
On 2010-09-20, John Bokma j...@castleamber.com wrote: I didn't mean that there are spoilers in the first 70 pages, just that to me the excercise would spoil the book, so, I wouldn't do it. I consider a book like a meal, I wouldn't gobble down food, regurgitate it, and eat it again at a slower

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Seebs
On 2010-09-20, Tim Harig user...@ilthio.net wrote: On 2010-09-20, Seebs usenet-nos...@seebs.net wrote: * No hint as to what site you'll be getting redirected to. Tinyurl, in particular, allows you to preview the url if you choose to do so. Other URL shortning services have a similar feature.

Re: compiling python 3.1.2 with local readline fails to get readline - help!

2010-09-19 Thread gavino
On Sep 15, 6:41 pm, James Mills prolo...@shortcircuit.net.au wrote: On Thu, Sep 16, 2010 at 11:10 AM, gavino gavcom...@gmail.com wrote: I am comiling 3.1.2. I am not root but a user. I compiled readline and it did not complain. gdb and zlib  and some other modules also were not found.

programming

2010-09-19 Thread Jordan Blanton
I am in a computer science class in which I am supposed to be creating a program involving a sine wave and some other functions. I understand the concept of the problem, but I don't understand any of the lingo being used. The directions might as well be written in a different language. Is there

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Tim Harig
On 2010-09-20, Seebs usenet-nos...@seebs.net wrote: On 2010-09-20, Tim Harig user...@ilthio.net wrote: On 2010-09-20, Seebs usenet-nos...@seebs.net wrote: * No hint as to what site you'll be getting redirected to. Tinyurl, in particular, allows you to preview the url if you choose to do so.

Re: programming

2010-09-19 Thread geremy condra
On Sun, Sep 19, 2010 at 10:46 PM, Jordan Blanton jeblan...@crimson.ua.edu wrote: I am in a computer science class in which I am supposed to be creating a program involving a sine wave and some other functions. I understand the concept of the problem, but I don't understand any of the lingo

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: This bug has turned into a bikeshed. Lets stop that please. I _DON'T_ care about performance when it comes to someone submitting an actual working implementation of a crypto library for inclusion with the standard library. The first priority

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-19 Thread Owen
Owen j2.n...@gmail.com added the comment: Note: This issue also occurs on other 64 bit windows OS(i.e. windows xp 64bit) Load testPy2.dll needs vc++ runtime library (http://download.microsoft.com/download/2/d/6/2d61c766-107b-409d-8fba-c39e61ca08e8/vcredist_x64.exe) Update testPy2.dll, use

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thanks. I've committed in r84902(py3k). -- resolution: - fixed status: open - closed versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue9896] Introspectable range objects

2010-09-19 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: What is the use case for this? The basic idea was, that in Python almost everything is introspectable, so why range objects aren't. It was pretty straightforward to implement it, so I've done it (actually when I was working on

[issue9897] multiprocessing problems

2010-09-19 Thread hume
New submission from hume hume...@gmail.com: when use multiprocessing managers, while use socket to communicate between server process and client process, if I used the global socket timeout feature(no matter how large the value is) the client will always say File

[issue2090] __import__ with fromlist=

2010-09-19 Thread Aaron Sterling
Aaron Sterling aaronasterl...@gmail.com added the comment: FWIW, I also get this behavior on 2.6.5 and there are claims that it occurs on 2.6.4 and 3.1.1. see http://stackoverflow.com/questions/3745221/import-calls-init-py-twice/3745273#3745273 -- nosy: +Aaron.Sterling versions:

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The license clearly states: All advertising materials mentioning features or use of this software. Do you somehow disagree that base64 is a feature of the OpenSSL library? http://www.openssl.org/docs/crypto/BIO_f_base64.html That's funny. Do

[issue2090] __import__ with fromlist=

2010-09-19 Thread Aaron Sterling
Changes by Aaron Sterling aaronasterl...@gmail.com: -- versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2090 ___

[issue1738] filecmp.dircmp does exact match only

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Patch worked fine with 2.7. I reworked it for SVN trunk but got this failure. FAILED (failures=1) Traceback (most recent call last): File test_filecmp.py, line 179, in module test_main() File test_filecmp.py, line 176, in

[issue1744] readline module - set/get quote delimiters

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can a committer review this please. Can't test it myself as I don't have a *NIX box, sorry. -- nosy: +BreamoreBoy stage: - patch review ___ Python tracker rep...@bugs.python.org

[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg110596. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1763 ___

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Just another data point for the discussion: The PSF is currently funding the effort to port pyOpenSSL to Python 3.x and the port is nearly finished. It may be worthwhile investigating adding the EVP interface from evpy (with the ctypes

[issue1778] SyntaxError.offset sometimes wrong

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This will go nowhere until someone supplies a patch. I'm assuming unit tests can be built using the attached test file. -- nosy: +BreamoreBoy stage: unit test needed - needs patch versions: +Python 2.7, Python 3.2 -Python 2.6

[issue1783] nonexistent data items declared as exports in sysmodule.h

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The 1st declaration still exists, the 2nd has been removed. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1783

[issue1785] inspect gets broken by some descriptors

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I can't apply the patch to any current SVN version. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1785 ___

[issue1794] Hot keys must work in any keyboard layout

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: From msg86386 Nevertheless, after reading your comments I came to the conclusion that doing what you want is very unlikely to happen. so closing. -- nosy: +BreamoreBoy ___ Python tracker

[issue1800] ctypes callback fails when called in Python with array argument

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Anybody? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1800 ___ ___ Python-bugs-list

[issue1827] svnversion_init() doesn't support svn urls in sandbox/trunk

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this ever likely to happen given the switch to Mercurial, or is that a different scenario to this? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue1838] Ctypes C-level infinite recursion

2010-09-19 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I'm not convinced that this needs doing, so I'll close in a couple of weeks unless anyone objects. -- nosy: +BreamoreBoy status: open - pending ___ Python tracker rep...@bugs.python.org

[issue9786] Native TLS support for pthreads

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9786 ___ ___

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It may be worthwhile investigating adding the EVP interface from evpy (with the ctypes bindings converted to real C wrappers) to pyOpenSSL and then adding the pyOpenSSL package to the stdlib. pyOpenSSL being LGPL'ed, I'm not sure this is

  1   2   >