Re: Fitting polynomial curve

2011-03-17 Thread Terry Reedy
On 3/17/2011 1:42 AM, Astan Chee wrote: Hi, I have 2 points in 3D space and a bunch of points in-between them. I'm trying to fit a polynomial curve on it. Currently I'm looking through numpy but I don't think the function exists to fit a function like this: y = ax**4 + bx**3 + cx**2 + dx + e

Re: Memory Usage of Strings

2011-03-17 Thread Amit Dev
Thanks Dan for the detailed reply. I suspect it is related to FreeBSD malloc/free as you suggested. Here is the output of running your script: [16-bsd01 ~/work]$ python strm.py --first USERPID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND amdev 6899 3.0 6.9 111944 107560 p0

Re: creating RAW sockets

2011-03-17 Thread Chris Rebert
On Wed, Mar 16, 2011 at 10:36 PM, moijes12 moije...@gmail.com wrote: Hi I am unable to create RAW sockets using python. Traceback (most recent call last):  File getsockopt_handler.py, line 6, in ?    send = socket(AF_INET,SOCK_RAW,IPPROTO_IP) socket.error: (94, 'Socket type not supported')

Re: creating RAW sockets

2011-03-17 Thread Nobody
On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote: Traceback (most recent call last): File getsockopt_handler.py, line 7, in ? send.bind((gethostbyname(gethostname()),5)) socket.error: (99, 'Cannot assign requested address') Specifying a port number isn't meaningful for a raw

Re: creating RAW sockets

2011-03-17 Thread moijes12
On Mar 17, 11:14 am, Nobody nob...@nowhere.com wrote: On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote: Traceback (most recent call last):   File getsockopt_handler.py, line 7, in ?     send.bind((gethostbyname(gethostname()),5)) socket.error: (99, 'Cannot assign requested address')

Re: creating RAW sockets

2011-03-17 Thread moijes12
On Mar 17, 11:28 am, moijes12 moije...@gmail.com wrote: On Mar 17, 11:14 am, Nobody nob...@nowhere.com wrote: On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote: Traceback (most recent call last):   File getsockopt_handler.py, line 7, in ?    

how to use variable to substitute class's variable?

2011-03-17 Thread Hans
I have things like: file1: class aaa: def __init__(self): self.variable1='a1' self.variable2='a2' self.varable3='a3' in main proc: import file1 b=file1.aaa() c={'variable1':'value1','variable2':'value2','variable3':'value3'} for key in c: b.key=c[key] Problem is

Re: how to use variable to substitute class's variable?

2011-03-17 Thread Benjamin Kaplan
On Thu, Mar 17, 2011 at 3:31 AM, Hans hans...@gmail.com wrote: I have things like: file1: class aaa:    def __init__(self):        self.variable1='a1'        self.variable2='a2'        self.varable3='a3' in main proc: import file1 b=file1.aaa()

newbie question (latex Error in plotting)

2011-03-17 Thread Sachin Kumar Sharma
Hi, After computation of few array, when I am using plot(x,y) command I get following error 'latex' is not recognized as an internal or external command, operable program or batch file. ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or

Re: os.path.walk() to get full path of all files

2011-03-17 Thread Laurent Claessens
file_list = [] for root, _, filenames in os.walk(root_path): for filename in filenames: file_list.append(os.path.join(root, filename)) What does the notation _ stands for ? Is it a sort of /dev/null ? I know that in the terminal it represents the last printed text. Laurent

Re: os.path.walk() to get full path of all files

2011-03-17 Thread Tim Golden
On 17/03/2011 08:58, Laurent Claessens wrote: file_list = [] for root, _, filenames in os.walk(root_path): for filename in filenames: file_list.append(os.path.join(root, filename)) What does the notation _ stands for ? Is it a sort of /dev/null ? I know that in the terminal it represents

Re: os.path.walk() to get full path of all files

2011-03-17 Thread Jussi Piitulainen
Laurent Claessens writes: file_list = [] for root, _, filenames in os.walk(root_path): for filename in filenames: file_list.append(os.path.join(root, filename)) What does the notation _ stands for ? Is it a sort of /dev/null ? x, _, y = 1, hukairs, 3 x, y

Re: organizing many python scripts, in a large corporate environment.

2011-03-17 Thread eryksun ()
On Wednesday, March 16, 2011 9:03:19 PM UTC-4, bukzor wrote: I finally understand. You mean something along the lines of `kde- config`: an executable to help figure out the configuration at runtime. This requires either installation or control of the $PATH environment variable to work well,

PDF To Postscript

2011-03-17 Thread Adam Tauno Williams
PyPDF (and others) provide a very nice mechanism for creating and manipulating PDF documents. Is there any *Python* module or technique to turn a PDF document into Postscript [to print, for example]? -- http://mail.python.org/mailman/listinfo/python-list

Coding and Decoding in Python

2011-03-17 Thread Wanderer
I have a dll that to communicate with I need to send numeric codes. So I created a dictionary. It works in one direction in that I can address the key and get the value. But when the program returns the value I can't get the key. This code is very simple and I could use a list and the index except

Re: Coding and Decoding in Python

2011-03-17 Thread Mel
Wanderer wrote: I have a dll that to communicate with I need to send numeric codes. So I created a dictionary. It works in one direction in that I can address the key and get the value. But when the program returns the value I can't get the key. This code is very simple and I could use a

Re: PEP for module naming conventions

2011-03-17 Thread Mel
Tim Johnson wrote: I need to be better informed on naming conventions for modules. For instance, I need to create a new module and I want to make sure that the module name will not conflict with any future or current python system module names. COBOL in its golden years had a practice that

Re: enhanced map function

2011-03-17 Thread Patrick
Steven, Thanks for the info of itertools. It is a great start for me. Overall, I agree with you that it is really the user data needs to be sorted out. However, novice users may need help on certain patterns such as a=[1,[2,3],4], b=[5,[6,7,8],9,10]. We could just draw our line saying that

Re: Coding and Decoding in Python

2011-03-17 Thread John Gordon
In 2f4a08df-55ea-4a4e-9cc0-24e6b9f81...@f15g2000pro.googlegroups.com Wanderer wande...@dialup4less.com writes: But when the program returns the value I can't get the key. What happens when two keys have the same value? How would you know which key to return? In your sample code all the

Re: PDF To Postscript

2011-03-17 Thread Chris Rebert
On Thu, Mar 17, 2011 at 6:55 AM, Adam Tauno Williams awill...@whitemice.org wrote: PyPDF (and others) provide a very nice mechanism for creating and manipulating PDF documents.  Is there any *Python* module or technique to turn a PDF document into Postscript [to print, for example]?

Re: Coding and Decoding in Python

2011-03-17 Thread Wanderer
On Mar 17, 11:44 am, John Gordon gor...@panix.com wrote: In 2f4a08df-55ea-4a4e-9cc0-24e6b9f81...@f15g2000pro.googlegroups.com Wanderer wande...@dialup4less.com writes: But when the program returns the value I can't get the key. What happens when two keys have the same value?  How would you

Re: Coding and Decoding in Python

2011-03-17 Thread John Gordon
In 7546e476-d10f-46e5-8b20-5d9b42345...@r6g2000vbo.googlegroups.com Wanderer wande...@dialup4less.com writes: I guess two keys having the same value is why dictionaries don't return keys for values, but this is a code. Each value has a unique meaning to both sender and receiver. The text part

Re: PEP for module naming conventions

2011-03-17 Thread eryksun ()
On Friday, March 11, 2011 4:52:57 PM UTC-5, Tim Johnson wrote: I need to be better informed on naming conventions for modules. For instance, I need to create a new module and I want to make sure that the module name will not conflict with any future or current python system module names. Do

value of pi and 22/7

2011-03-17 Thread kracekumar ramaraju
I tried the following 22/7.0 3.1428571428571428 import math math.pi 3.1415926535897931 Why is the difference is so much ?is pi =22/7 or something ? -- winning regards kracekumar -- http://mail.python.org/mailman/listinfo/python-list

Re: value of pi and 22/7

2011-03-17 Thread Wolfgang Rohdewald
On Donnerstag 17 März 2011, kracekumar ramaraju wrote: 22/7.0 3.1428571428571428 import math math.pi 3.1415926535897931 Why is the difference is so much ?is pi =22/7 or something ? https://secure.wikimedia.org/wikipedia/en/wiki/Pi -- Wolfgang --

Re: value of pi and 22/7

2011-03-17 Thread Ian Kelly
On Thu, Mar 17, 2011 at 10:46 AM, kracekumar ramaraju kracethekingma...@gmail.com wrote: I tried the following 22/7.0 3.1428571428571428 import math math.pi 3.1415926535897931 Why is the difference is so much ?is pi =22/7 or something ? Pi is not 22/7. That is just a commonly-used

Re: value of pi and 22/7

2011-03-17 Thread Ian Kelly
On Thu, Mar 17, 2011 at 10:57 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Mar 17, 2011 at 10:46 AM, kracekumar ramaraju kracethekingma...@gmail.com wrote: I tried the following 22/7.0 3.1428571428571428 import math math.pi 3.1415926535897931 Why is the difference is so much ?is

Re: PDF To Postscript

2011-03-17 Thread Adam Tauno Williams
On Thu, 2011-03-17 at 08:53 -0700, Chris Rebert wrote: On Thu, Mar 17, 2011 at 6:55 AM, Adam Tauno Williams awill...@whitemice.org wrote: PyPDF (and others) provide a very nice mechanism for creating and manipulating PDF documents. Is there any *Python* module or technique to turn a PDF

Re: value of pi and 22/7

2011-03-17 Thread Kee Nethery
My favorite approximation is: 355/113 (visualize 113355 split into two 113 355 and then do the division). The first 6 decimal places are the same. 3.141592920353982 = 355/113 vs 3.1415926535897931 Kee Nethery -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP for module naming conventions

2011-03-17 Thread Jonathan Gossage
I have found this approach problematic if you have packages separately developed and maintained in different directory trees, resulting in more than one PYTHONPATH entry with the same root metapackage name. What happens is that only the first entry in the PYTHONPATH containing the metapackage name

Re: value of pi and 22/7

2011-03-17 Thread Jeffrey Gaynor
(pulls out doctorate in Math.) Take a circle and measure its diameter, then circumference (coffee cans and string are helpful). Then pi = Circumference/diameter approximating that is hard. It turns out that even though it *looks* like a nice fraction, the value that results is not (fractions

Re: value of pi and 22/7

2011-03-17 Thread Ian Kelly
On Thu, Mar 17, 2011 at 11:36 AM, Jeffrey Gaynor jgay...@ncsa.uiuc.edu wrote: There are fun math questions, for instance, is there a run of a million 1's someplace in the decimal expansion of pi? Maybe so, but we just don't know, since we've only computed the first trillion or so digits.

Re: value of pi and 22/7

2011-03-17 Thread Jeffrey Gaynor
There are a few long strings, but have fun yourself with the pi digit searcher: http://www.angio.net/pi/bigpi.cgi Longest string I heard of was nine 6's in a row, so search for 6 and see what you get. - Original Message - From: Ian Kelly ian.g.ke...@gmail.com To: Jeffrey Gaynor

Re: value of pi and 22/7

2011-03-17 Thread Rotwang
On 17/03/2011 18:49, Ian Kelly wrote: On Thu, Mar 17, 2011 at 11:36 AM, Jeffrey Gaynorjgay...@ncsa.uiuc.edu wrote: There are fun math questions, for instance, is there a run of a million 1's someplace in the decimal expansion of pi? Maybe so, but we just don't know, since we've only computed

Re: value of pi and 22/7

2011-03-17 Thread Erik Max Francis
Jeffrey Gaynor wrote: It is the simple fractional look about pi vs. how hard it is to compute that drives most of the confusion about pi. The digits of pi are in effectively random order (each digit occur roughly 10% of the time), ... This is equivalent to stating that pi is normal, something

Re: value of pi and 22/7

2011-03-17 Thread Jabba Laci
My favorite approximation is: 355/113  (visualize 113355 split into two 113 355 and then do the division). The first 6 decimal places are the same. 3.141592920353982 = 355/113 vs 3.1415926535897931 Another, rather funny, approximation of the first 15 digits of pi is to take the length of

Re: ttk styles

2011-03-17 Thread Peter
No responses? Nobody with knowledge of modifying styles etc? On Mar 14, 2:08 pm, Peter peter.milli...@gmail.com wrote: Hi I'm struggling to get a good understanding of styles as used in ttk. I have read the tutorial section on using styles but haven't been able to solve this problem. I

Re: ttk styles

2011-03-17 Thread python
Peter, Sorry I can't be of much help, but I share the same interest as you. There may be some teaser info here although I can't claim to understand the technique. http://www.java2s.com/Open-Source/Python/3.1.2-Python/Demo/Demo/tkinter/ttk/notebook_closebtn.py.htm If you have any

Re: reimport module every n seconds

2011-03-17 Thread Aahz
In article 753e9884-60eb-43cf-a647-12b29ed28...@y31g2000prd.googlegroups.com, Santiago Caracol santiago.cara...@gmail.com wrote: Don't do that. =A0;-) =A0I suggest using exec instead. =A0However, I wo= uld be surprised if import worked faster than, say, JSON (more precisely, I doubt that it's

Re: ttk styles

2011-03-17 Thread Peter
Thanks for the link Malcolm, I'll have a look at it. What is particularly interesting (at first glance), is that the author has mixed Tkinter with ttk as it suited i.e. look at this line: f1 = tkinter.Frame(nb, background=red) If ttk was being used purely (from tkinter import *; from ttk import

Re: ttk styles

2011-03-17 Thread Ethan Furman
Peter wrote: Thanks for the link Malcolm, I'll have a look at it. What is particularly interesting (at first glance), is that the author has mixed Tkinter with ttk as it suited i.e. look at this line: f1 = tkinter.Frame(nb, background=red) If ttk was being used purely (from tkinter import *;

Python 3.2 Debug build

2011-03-17 Thread Willis Cheung
Hi all, I'm trying to build the debug version of Python 3.2. I downloaded the py3k folder from the python SVN. Then I opened the pcbuild.sln and tried to build the python project. However the build failed when I got an error from the project pythoncore which I think python depends on? The error

Re: Python 3.2 Debug build

2011-03-17 Thread Terry Reedy
On 3/17/2011 6:54 PM, Willis Cheung wrote: Hi all, I'm trying to build the debug version of Python 3.2. I downloaded the py3k folder from the python SVN. Just so you know, Python SVN is now a read-only historical arifact. Development now happens in the hg repository. If you build x.y docs,

Re: Coding and Decoding in Python

2011-03-17 Thread Steven D'Aprano
On Thu, 17 Mar 2011 08:07:28 -0700, Wanderer wrote: I have a dll that to communicate with I need to send numeric codes. So I created a dictionary. It works in one direction in that I can address the key and get the value. But when the program returns the value I can't get the key. If you

Re: ttk styles

2011-03-17 Thread Ned Deily
In article e0ad8fb5-3147-4ec5-ae9c-def507a75...@i35g2000prd.googlegroups.com, Peter peter.milli...@gmail.com wrote: No responses? Nobody with knowledge of modifying styles etc? You might also want to ask on the tkinter mailing list: http://mail.python.org/pipermail/tkinter-discuss/

Announce: WHIFF 1.1 Release

2011-03-17 Thread Aaron Watters
WHIFF 1.1 RELEASED WHIFF [WSGI HTTP Integrated Filesystem Frames] is a collection of support services for Python/WSGI Web applications which allows applications to be composed by dropping dynamic pages into container directories. This mode of development will be familiar to developers who have

Abend with cls.__repr__ = cls.__str__ on Windows.

2011-03-17 Thread J Peyret
This gives a particularly nasty abend in Windows - Python.exe has stopped working, rather than a regular exception stack error. I've fixed it, after I figured out the cause, which took a while, but maybe someone will benefit from this. Python 2.6.5 on Windows 7. class Foo(object): pass

Re: enhanced map function

2011-03-17 Thread Steven D'Aprano
On Thu, 17 Mar 2011 08:31:28 -0700, Patrick wrote: Steven, Thanks for the info of itertools. It is a great start for me. Overall, I agree with you that it is really the user data needs to be sorted out. However, novice users may need help on certain patterns such as a=[1,[2,3],4],

Re: how to use variable to substitute class's variable?

2011-03-17 Thread Hans
On Mar 17, 12:47 am, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Thu, Mar 17, 2011 at 3:31 AM, Hans hans...@gmail.com wrote: I have things like: file1: class aaa:    def __init__(self):        self.variable1='a1'        self.variable2='a2'        self.varable3='a3' in main

Re: Fitting polynomial curve

2011-03-17 Thread Astan Chee
On Thu, Mar 17, 2011 at 5:09 PM, Terry Reedy tjre...@udel.edu wrote: Look at scipy. -- Thanks for the info. I realized I made some mistakes. Anyway, what I'm trying to do is in maya (python), fit selected vertices on a curve. Here is what I have so far: import maya.cmds as cmds import numpy

Re: Python 3.2 Debug build

2011-03-17 Thread Santoso Wijaya
Looks like something tripped over whitespaces in path names for svn tools. Try checking out a working copy from the hg repository? ~/santa On Thu, Mar 17, 2011 at 3:54 PM, Willis Cheung wche...@pdftron.com wrote: Hi all, I'm trying to build the debug version of Python 3.2. I downloaded the

Re: PostgreSQL vs MySQL

2011-03-17 Thread Aahz
In article 87bp1a3g59@benfinney.id.au, Ben Finney ben+pyt...@benfinney.id.au wrote: a...@pythoncraft.com (Aahz) writes: (I always recommend people to use PostgreSQL, though; which is superior in almost every way, especially the C client library and the wire protocol.) Can you point at a

Re: Fitting polynomial curve

2011-03-17 Thread Dan Stromberg
On Thu, Mar 17, 2011 at 5:44 PM, Astan Chee astan.c...@gmail.com wrote: On Thu, Mar 17, 2011 at 5:09 PM, Terry Reedy tjre...@udel.edu wrote: Look at scipy. Thanks for the info. I realized I made some mistakes. Anyway, what I'm trying to do is in maya (python), fit selected vertices on a

Re: creating RAW sockets

2011-03-17 Thread Nobody
On Wed, 16 Mar 2011 23:50:03 -0700, moijes12 wrote: Now,please can someone guide(as in what should I read and NOT as in give me the code) me in decoding the IP header of packets using python 3.0.1. The struct module is the usual approach for decoding binary data structures. Fields which

Re: Abend with cls.__repr__ = cls.__str__ on Windows.

2011-03-17 Thread Terry Reedy
On 3/17/2011 8:24 PM, J Peyret wrote: This gives a particularly nasty abend in Windows - Python.exe has stopped working, rather than a regular exception stack error. I've fixed it, after I figured out the cause, which took a while, but maybe someone will benefit from this. Python 2.6.5 on

Re: Abend with cls.__repr__ = cls.__str__ on Windows.

2011-03-17 Thread Steven D'Aprano
On Thu, 17 Mar 2011 17:24:36 -0700, J Peyret wrote: This gives a particularly nasty abend in Windows - Python.exe has stopped working, rather than a regular exception stack error. I've fixed it, after I figured out the cause, which took a while, but maybe someone will benefit from this.

Re: Abend with cls.__repr__ = cls.__str__ on Windows.

2011-03-17 Thread Terry Reedy
On 3/17/2011 10:00 PM, Terry Reedy wrote: On 3/17/2011 8:24 PM, J Peyret wrote: This gives a particularly nasty abend in Windows - Python.exe has stopped working, rather than a regular exception stack error. I've fixed it, after I figured out the cause, which took a while, but maybe someone

Re: Abend with cls.__repr__ = cls.__str__ on Windows.

2011-03-17 Thread J Peyret
On Mar 17, 9:37 pm, Terry Reedy tjre...@udel.edu wrote: On 3/17/2011 10:00 PM, Terry Reedy wrote: On 3/17/2011 8:24 PM, J Peyret wrote: This gives a particularly nasty abend in Windows - Python.exe has stopped working, rather than a regular exception stack error. I've fixed it, after I

Re: creating RAW sockets

2011-03-17 Thread moijes12
On Mar 18, 6:20 am, Nobody nob...@nowhere.com wrote: On Wed, 16 Mar 2011 23:50:03 -0700, moijes12 wrote: Now,please can someone guide(as in what should I read and NOT as in give me the code) me in decoding the IP header of packets using python 3.0.1. The struct module is the usual

Re: PostgreSQL vs MySQL (was Re: How to handle sockets - easily?)

2011-03-17 Thread J Peyret
On Mar 16, 10:19 am, a...@pythoncraft.com (Aahz) wrote: In article fdjt28-flo@wilbur.25thandclement.com, always recommend people to use PostgreSQL, though; which is superior in almost every way, especially the C client library and the wire protocol.) Can you point at a reference for the

[issue11459] Python select.select does not correctly report read readyness

2011-03-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: yeah i figured importing io from os at the top level might be a problem. it is not important for the default to be that exact value, even something safely on the small side like 512 will work. but we could just have the default be set in

[issue11567] http.server error message format

2011-03-17 Thread Gennadiy Zlobin
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment: Hi guys, this is my first patch for the Python interpreter. Hope it is ok, but if it is not, be sure to comment and I'll fix it ASAP -- keywords: +patch Added file: http://bugs.python.org/file21262/11567.patch

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e9724d7abbc2 by Senthil Kumaran in branch '2.5': Fix issue11442 - Add a charset parameter to the Content-type to avoid XSS attacks. http://hg.python.org/cpython/rev/e9724d7abbc2 -- nosy: +python-dev

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-17 Thread Senthil Kumaran
New submission from Senthil Kumaran orsent...@gmail.com: When pushed a change to 2.5 branch, I got an error, which I think has to do with buildbot not available for 2.5 codeline. It asked me to notify the tracker and here it is. remote: state = method(*args, **kw) remote: File

[issue11582] Boilerplate code replaced in Python/ceval.c

2011-03-17 Thread knickerkicker
New submission from knickerkicker knicker.kic...@gmail.com: Replaced boilerplate implementations of several BINARY_* and INPLACE_* opcodes with two macros. The result shaves off 154 lines from Python/ceval.c. -- components: Interpreter Core files: 20110317_ceval.patch keywords: patch

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in all the relevant code lines. -- assignee: - orsenthil priority: release blocker - resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I don't have any better suggestions at the moment so let's go with it. Perhaps we'll get more insight to the root cause later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11088

[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The actual unwanted event is being generated as a result of the menu add command accelerator. You can see that by playing with Wish. set w .menu catch {destroy $w} toplevel $w wm title $w Menu Shift menu $w.menu -tearoff 0 set m $w.menu.basic $w.menu

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I don't think this needs to be documented beyond the limitations of floating-point that are already documented in the tutorial. It's the obvious behaviour: double to float (when packing) converts to the nearest float; the float to double

[issue4114] struct returns incorrect 4 byte float

2011-03-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Robert] I have to disagree. It seems entirely reasonable to expect that unpack should return the same value passed to pack. Robert: notice that a *Python* float (a *64-bit* C double internally) is here being stored as a *32-bit* float,

[issue11567] http.server error message format

2011-03-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset db4967095f10 by Senthil Kumaran in branch '3.2': Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy Zlobin. http://hg.python.org/cpython/rev/db4967095f10 -- nosy: +python-dev

[issue11567] http.server error message format

2011-03-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in 3.3 and 3.2. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11567 ___

[issue11583] os.path.isdir() is slow on windows

2011-03-17 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: Report here: http://stackoverflow.com/questions/5316928/python-os-path-isdir-is-slow-on-windows It could be a problem with Windows itself, but I'm opening this to keep track of the issue, just to be on the safe side. -- components:

[issue11557] Increase coverage in logging module

2011-03-17 Thread Gennadiy Zlobin
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com: -- nosy: +gennad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___ Python-bugs-list

[issue4492] httplib code thinks it closes connection, but does not

2011-03-17 Thread Gennadiy Zlobin
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com: -- nosy: +gennad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4492 ___ ___ Python-bugs-list

[issue11583] os.path.isdir() is slow on windows

2011-03-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: How do you expect this to be resolved? Or will it stay open until Microsoft improves the NTFS performance? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue11568] docstring of select.epoll.register() is wrong

2011-03-17 Thread Gennadiy Zlobin
Changes by Gennadiy Zlobin gennad.zlo...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11568

[issue11568] docstring of select.epoll.register() is wrong

2011-03-17 Thread Gennadiy Zlobin
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment: The patch fixes the docstring -- keywords: +patch nosy: +gennad Added file: http://bugs.python.org/file21265/11568.patch ___ Python tracker rep...@bugs.python.org

[issue11583] os.path.isdir() is slow on windows

2011-03-17 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: On Thu, Mar 17, 2011 at 12:46, Martin v. Löwis rep...@bugs.python.orgwrote: I opened this in order not to forget to look at the implementation of isdir on windows, making sure it's the most optimal thing we can do. If you know it is, the issue

[issue11583] os.path.isdir() is slow on windows

2011-03-17 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file21266/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11583 ___

[issue11584] email/header.py: missing str()ification, and bogus encode()s

2011-03-17 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: My minimal failing test case dragged yet another EMAIL error to the light!!! Man, man, man - it's really great that QNX fund money so that you have the time to fix this broken thing! It's got washed away, but

[issue11580] Add width and precision formatters to PyBytes_FromFormatV()

2011-03-17 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- assignee: - haypo nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11580 ___ ___

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1628484 ___ ___ Python-bugs-list mailing

[issue1676121] Problem linking to readline lib on x86(64) Solaris

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1676121 ___ ___ Python-bugs-list mailing

[issue1733484] Solaris 64 bit LD_LIBRARY_PATH_64 needs to be set

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1733484 ___ ___ Python-bugs-list mailing

[issue847812] 64 bit solaris versus /usr/local/lib

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue847812 ___ ___ Python-bugs-list mailing list

[issue1294959] Problems with /usr/lib64 builds.

2011-03-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing

[issue1681333] email.header unicode fix

2011-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, I can well understand that feeling. I've only relatively recently taken over maintaining the email package. I'm working my way through the old bug queue, and I can only deal with them in the context in which I find them.

[issue11584] email/header.py: missing str()ification, and bogus encode()s

2011-03-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't see a test case here, did you forget to attatch something? Also, in this: elf._msg[n] = email.header.make_header(email.header.decode_header(b)) unless 'b' is an ASCII-only string, it isn't going to work. --

[issue11584] email/header.py: missing str()ification, and bogus encode()s

2011-03-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray stage: - test needed type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11584

[issue11383] compilation seg faults on insanely large expressions

2011-03-17 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: 100k is, apparently, not enough on my system (linux2). test_crashers now fails. Are any system-specific details needed? -- nosy: +SilentGhost ___ Python tracker rep...@bugs.python.org

[issue11585] Documentation 1.8 shows Python 2 example

2011-03-17 Thread Clive Darke
New submission from Clive Darke clive.da...@qa.com: Python 3.2 version attached -- assignee: docs@python components: Documentation files: parrot.c messages: 131246 nosy: cdarke, docs@python priority: normal severity: normal status: open title: Documentation 1.8 shows Python 2 example

[issue11585] Documentation 1.8 shows Python 2 example

2011-03-17 Thread Clive Darke
Clive Darke clive.da...@qa.com added the comment: 1.8. Keyword Parameters for Extension Functions Here is an example module which uses keywords, based on an example by Geoff Philbrick (philbr...@hks.com): The example which follows will not compile on Python 3. --

[issue11383] compilation seg faults on insanely large expressions

2011-03-17 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: 10**6 on the other hand seem to do the job -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11383 ___

[issue11582] Boilerplate code replaced in Python/ceval.c

2011-03-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Hmm, this kind of macros make it difficult to step line by line in a debugger. From this point of view, an inlined function would be better, I'm not sure if this can have a performance impact though. -- nosy:

[issue10535] Enable warnings by default in unittest

2011-03-17 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I'm not seeing those warnings anymore, so I think the patch can be ignored. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10535 ___

[issue11582] Boilerplate code replaced in Python/ceval.c

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11582 ___ ___ Python-bugs-list mailing

[issue11586] Python/pythonrun.c: get_codec_name() typo

2011-03-17 Thread Ray.Allen
New submission from Ray.Allen ysj@gmail.com: I guess there is a typo in the source of this function: Python/pythonrun.c: get_codec_name() diff -r 48970d754841 Python/pythonrun.c --- a/Python/pythonrun.cThu Mar 17 17:06:27 2011 +0800 +++ b/Python/pythonrun.cThu Mar 17

[issue11587] METH_KEYWORDS alone gives METH_OLDARGS is no longer supported!

2011-03-17 Thread Clive Darke
New submission from Clive Darke clive.da...@qa.com: In the PyMethodDef struct, METH_VARARGS | METH_KEYWORDS works fine. METH_KEYWORDS on its own gives: SystemError: Bad call flags in PyCFunction_Call. METH_OLDARGS is no longer supported! METH_KEYWORDS on its own tested OK on 2.6 and 2.7,

[issue11586] Python/pythonrun.c: get_codec_name() typo

2011-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - haypo nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11586 ___ ___

  1   2   >