[RELEASED] Python 3.1.3 release candidate 1

2010-11-13 Thread Benjamin Peterson
On behalf of the Python development team, I'm gladsome to announce a release candidate of the third bugfix release for the Python 3.1 series, Python 3.1.3. This bug fix release fixes numerous issues found in 3.1.2. Please try it with your packages and report any bugs you find. The final of

[RELEASED] Python 2.7.1 release candidate 1

2010-11-13 Thread Benjamin Peterson
On behalf of the Python development team, I'm chuffed to announce the a release candidate of Python 2.7.1. Please test the release candidate with your packages and report any bugs you find. 2.7.1 final is scheduled in two weeks. 2.7 includes many features that were first released in Python 3.1.

hello

2010-11-13 Thread sms
http://infoukhotels.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE debugger questions

2010-11-13 Thread Ned Deily
In article f710b476-ca92-414b-865b-feac70120...@r31g2000prg.googlegroups.com, Roger Davis r...@hawaii.edu wrote: Thanks for that info, Ned, I can now get the sys.argv[] list I need, that's a big help! However, is there any other way to set a breakpoint in idle that will work on Mac OS X,

NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...

2010-11-13 Thread naughty girl
NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON... FREE GOLD MEMBER FOR FEMALE PROFILE http://goo.gl/1bour http://goo.gl/1bour http://goo.gl/1bour http://goo.gl/1bour http://goo.gl/1bour http://goo.gl/1bour http://goo.gl/1bour -- http://mail.python.org/mailman/listinfo/python-list

Re: drawing with the mouse with turtle

2010-11-13 Thread Brian Blais
On Nov 13, 2010, at 1:31 AM, Dennis Lee Bieber wrote: On Fri, 12 Nov 2010 20:48:34 -0500, Brian Blais bbl...@bryant.edu declaimed the following in gmane.comp.python.general: turtle.ondrag(turtle.goto) turtle.pendown() I'm not familiar with the turtle module but... would it make

Re: Is a 32-bit build faster than a 64-bit build

2010-11-13 Thread Antoine Pitrou
On Fri, 12 Nov 2010 13:24:09 -0800 (PST) Raymond Hettinger pyt...@rcn.com wrote: Has anyone here benchmarked a 32-bit Python versus a 64-bit Python for Django or some other webserver? My hypotheses is that for apps not needing the 64-bit address space, the 32-bit version has better memory

strange behavor....

2010-11-13 Thread Tracubik
hi all, i've this on python 2.6.6: def change_integer(int_value): ... int_value = 10 ... ... def change_list(list): ... list[0] = 10 ... ... a = 1 ... l = [1,1,1] ... ... change_integer(a) ... change_list(l) ... ... print a ... print l 1 [10, 1, 1] why the integer value

Re: strange behavor....

2010-11-13 Thread alex23
Tracubik affdfsdfds...@b.com wrote: why the integer value doesn't change while the list value do? http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm -- http://mail.python.org/mailman/listinfo/python-list

scipy code runs in empty directory, not another

2010-11-13 Thread Beliavsky
After installing numpy, scipy, and matplotlib for python 2.6 and running the code from http://www.scipy.org/Cookbook/OptimizationDemo1 (stored as xoptimize.py) in a directory with other python codes, I got the error messages C:\python\code\mycodepython xoptimize.py Traceback (most recent call

Re: [Python] scipy code runs in empty directory, not another

2010-11-13 Thread Chris Gonnerman
On 11/13/2010 07:52 AM, Beliavsky wrote: After installing numpy, scipy, and matplotlib for python 2.6 and running the code from http://www.scipy.org/Cookbook/OptimizationDemo1 (stored as xoptimize.py) in a directory with other python codes, I got the error messages C:\python\code\mycodepython

Re: strange behavor....

2010-11-13 Thread Diez B. Roggisch
alex23 wuwe...@gmail.com writes: Tracubik affdfsdfds...@b.com wrote: why the integer value doesn't change while the list value do? http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm Not the issue here. The reason the OP sees a difference that there is only one way to

Re: scipy code runs in empty directory, not another

2010-11-13 Thread Diez B. Roggisch
Beliavsky beliav...@aol.com writes: After installing numpy, scipy, and matplotlib for python 2.6 and running the code from http://www.scipy.org/Cookbook/OptimizationDemo1 (stored as xoptimize.py) in a directory with other python codes, I got the error messages C:\python\code\mycodepython

Re: [Python] scipy code runs in empty directory, not another

2010-11-13 Thread Benjamin Kaplan
On Saturday, November 13, 2010, Chris Gonnerman chris.gonner...@newcenturycomputers.net wrote: On 11/13/2010 07:52 AM, Beliavsky wrote: After installing numpy, scipy, and matplotlib for python 2.6 and running the code from http://www.scipy.org/Cookbook/OptimizationDemo1 (stored as

Some Machine Learning related questions

2010-11-13 Thread joy99
Dear Group, Hope every one is fine. I am trying to put some questions. I am developing some tool boxes for support vector machine (SVM) and hidden markov model (HMM). For HMM I was following the tutorial by Leeds University Computer Science Department, available online in HTML format, and for

Re: drawing with the mouse with turtle...solved?

2010-11-13 Thread Brian Blais
On Nov 12, 2010, at 8:48 PM, Brian Blais wrote: On Nov 12, 2010, at 8:05 PM, Steven D'Aprano wrote: On Fri, 12 Nov 2010 19:24:50 -0500, Brian Blais wrote: I'd like to draw on a turtle canvas, but use the mouse to direct the turtle. I don't see a good way of getting the mouse

Re: strange behavor....

2010-11-13 Thread Mark Wooding
Tracubik affdfsdfds...@b.com writes: def change_integer(int_value): ... int_value = 10 ... ... def change_list(list): ... list[0] = 10 [...] why the integer value doesn't change while the list value do? Because in the first case you changed a variable local to the function,

Re: scipy code runs in empty directory, not another

2010-11-13 Thread Dave Angel
On 2:59 PM, Beliavsky wrote: After installing numpy, scipy, and matplotlib for python 2.6 and running the code from http://www.scipy.org/Cookbook/OptimizationDemo1 (stored as xoptimize.py) in a directory with other python codes, I got the error messages C:\python\code\mycodepython xoptimize.py

sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
try this: import sqlite3 con = sqlite3.connect(any string here) and there is no error reported. You will get an error you do some operations on the database which is confusing. I think sqlite3 should change this behavior. -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread MRAB
On 13/11/2010 16:54, Ravi wrote: try this: import sqlite3 con = sqlite3.connect(any string here) and there is no error reported. You will get an error you do some operations on the database which is confusing. I think sqlite3 should change this behavior. That will open an existing database

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Tim Harig
On 2010-11-13, Ravi ra.ravi@gmail.com wrote: import sqlite3 con = sqlite3.connect(any string here) That is a property of the sqlite database itself. It always opens the database requested; even if it has to create a new database to do so. and there is no error reported. You will get an

regenerating unicodedata for py2.7 using py3 makeunicodedata.py?

2010-11-13 Thread Vlastimil Brom
Hi all, I'd like to ask about a surprising possibility I found while investigating the new unicode 6.0 standard for use in python. As python 2 series won't be updated in this regard ( http://bugs.python.org/issue10400 ), I tried my poor man's approach of compiling the needed pyd file with the

Is it possible to break a string literal into multiple lines?

2010-11-13 Thread Zeynel
I have string formatting line in Google App Engine webframe webapp: self.response.out.write(b%s/b: br / mWEIGHT: %s br / mDATE0_integer: %s br / mCOUNT: %s br / % (result.mUNIQUE, result.mWEIGHT, mDATE0_integer, result.mCOUNT,)) I would like to be able to write it as

Re: scipy code runs in empty directory, not another

2010-11-13 Thread Terry Reedy
On 11/13/2010 11:41 AM, Dave Angel wrote: On 2:59 PM, Beliavsky wrote: After installing numpy, scipy, and matplotlib for python 2.6 and running the code from http://www.scipy.org/Cookbook/OptimizationDemo1 (stored as xoptimize.py) in a directory with other python codes, I got the error messages

Re: Is it possible to break a string literal into multiple lines?

2010-11-13 Thread MRAB
On 13/11/2010 18:53, Zeynel wrote: I have string formatting line in Google App Engine webframe webapp: self.response.out.write(b%s/b:br / mWEIGHT: %sbr / mDATE0_integer: %sbr / mCOUNT: %sbr / % (result.mUNIQUE, result.mWEIGHT, mDATE0_integer, result.mCOUNT,)) I would like to be able to write

Re: Is it possible to break a string literal into multiple lines?

2010-11-13 Thread Tim Chase
On 11/13/2010 12:53 PM, Zeynel wrote: I have string formatting line in Google App Engine webframe webapp: self.response.out.write(b%s/b:br / mWEIGHT: %sbr / mDATE0_integer: %sbr / mCOUNT: %sbr / % (result.mUNIQUE, result.mWEIGHT, mDATE0_integer, result.mCOUNT,)) I would like to be able to

Re: IDLE debugger questions

2010-11-13 Thread cbr...@cbrownsystems.com
On Oct 23, 7:29 am, Roger Davis r...@hawaii.edu wrote: snip Are there any Python debuggers with a decent GUI out there at all that will work on a Mac with the following features: (i) ability to pass in a sys.srgv[] list that the program would otherwise see without the debugger, (ii) display

Re: strange behavor....

2010-11-13 Thread Terry Reedy
On 11/13/2010 11:29 AM, Mark Wooding wrote: Alas, Python is actually slightly confusing here, since the same notation `=' sometimes means assignment and sometimes means mutation. I disagree somewhat. An object is mutated by an internal assignment. ll[0] = 1 assigns 1 to the 0 slot of ll. o.a

Question on Django and Django Book

2010-11-13 Thread John Posner
I've started working, as a tech writer, for a Spanish software configuration management company. And I'm investigating the idea of releasing a user manual in the form of a wiki that supports paragraph-by-paragraph commenting. I looked at Django Book [1][2], but it's not clear to me how much

Re: Is it possible to break a string literal into multiple lines?

2010-11-13 Thread Zeynel
Tim Chase and MRAB: Thanks!! On Nov 13, 2:14 pm, Tim Chase python.l...@tim.thechases.com wrote: On 11/13/2010 12:53 PM, Zeynel wrote: I have string formatting line in Google App Engine webframe webapp: self.response.out.write(b%s/b:br /  mWEIGHT: %sbr / mDATE0_integer: %sbr /  

namespace issue, Python vs numpy min/max problem

2010-11-13 Thread dmitrey
hi all, I have the following problem: I have overloaded max function in my module (FuncDesigner); it works like following: if some data in arguments is of type oofun then my function works, elseware numpy.max() is used. Now the problem: suppose someone writes from FuncDesigner import * ... a =

Re: namespace issue, Python vs numpy min/max problem

2010-11-13 Thread dmitrey
Well, I think I have found an appropriate solution. Regards, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: namespace issue, Python vs numpy min/max problem

2010-11-13 Thread Ben James
On 13/11/2010 19:55, dmitrey wrote: Well, I think I have found an appropriate solution. Regards, D. Hi Dmitrey, Would you mind briefly describing your solution? Thanks, Ben -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite3 doesn't raise exception if database is not present/inaccessible

2010-11-13 Thread Ravi
I understand it now. Thanks for the responses. -- http://mail.python.org/mailman/listinfo/python-list

Re: strange behavor....

2010-11-13 Thread Mark Wooding
Terry Reedy tjre...@udel.edu writes: On 11/13/2010 11:29 AM, Mark Wooding wrote: Alas, Python is actually slightly confusing here, since the same notation `=' sometimes means assignment and sometimes means mutation. I disagree somewhat. An object is mutated by an internal assignment.

Re: strange behavor....

2010-11-13 Thread Chris Rebert
On Sat, Nov 13, 2010 at 5:46 AM, Tracubik affdfsdfds...@b.com wrote: hi all, i've this on python 2.6.6: def change_integer(int_value): ...     int_value = 10 ... ... def change_list(list): ...     list[0] = 10 ... ... a = 1 ... l = [1,1,1] ... ... change_integer(a) ... change_list(l)

Re: namespace issue, Python vs numpy min/max problem

2010-11-13 Thread Terry Reedy
On 11/13/2010 2:41 PM, dmitrey wrote: hi all, I have the following problem: I have overloaded max function in my module (FuncDesigner); it works like following: if some data in arguments is of type oofun then my function works, elseware numpy.max() is used. Now the problem: suppose someone

Re: strange behavor....

2010-11-13 Thread Dave Angel
On 2:59 PM, Mark Wooding wrote: Tracubikaffdfsdfds...@b.com writes: def change_integer(int_value): ... int_value = 10 ... snip Alas, Python is actually slightly confusing here, since the same notation `=' sometimes means assignment and sometimes means mutation. You can tell which is

Re: strange behavor....

2010-11-13 Thread Dan Stromberg
On Sat, Nov 13, 2010 at 5:46 AM, Tracubik affdfsdfds...@b.com wrote: hi all, i've this on python 2.6.6: def change_integer(int_value): ... int_value = 10 ... ... def change_list(list): ... list[0] = 10 ... ... a = 1 ... l = [1,1,1] ... ... change_integer(a) ...

Re: strange behavor....

2010-11-13 Thread Arnaud Delobelle
m...@distorted.org.uk (Mark Wooding) writes: Assignment /never/ binds. There is syntactic confusion here too, since Python interprets a simple assignment in a function body -- in the absence of a declaration such as `global' to the contrary -- as indicating that the variable in question

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
On Sat, 13 Nov 2010 05:50:40 -0800, alex23 wrote: Tracubik affdfsdfds...@b.com wrote: why the integer value doesn't change while the list value do? http://effbot.org/pyfaq/why-are-default-values-shared-between- objects.htm Right website, wrong page :)

Re: strange behavor....

2010-11-13 Thread Mark Wooding
Dave Angel da...@ieee.org writes: No, an (=) assignment is always an assignment. No. In `foo[0] = bar' it's a method call in disguise. It changes the item on the left hand side to refer to a new object. Not necessarily. It could do anything at all depending on the type of the recipient

want to start your own revenue generation site?

2010-11-13 Thread Vanesa Singh
If you are willing to convert your groups into websites and want to earn huge revenue through your group network- do contact us- we have great service for group owners who has high number of members and messages. Start your own sms, joke, stories, news, jobs website and earn huge from your group

Re: strange behavor....

2010-11-13 Thread Mark Wooding
Arnaud Delobelle arno...@gmail.com writes: m...@distorted.org.uk (Mark Wooding) writes: Assignment /never/ binds. There is syntactic confusion here too, since Python interprets a simple assignment in a function body -- in the absence of a declaration such as `global' to the contrary --

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
On Sat, 13 Nov 2010 20:01:42 +, Mark Wooding wrote: Terry Reedy tjre...@udel.edu writes: On 11/13/2010 11:29 AM, Mark Wooding wrote: Alas, Python is actually slightly confusing here, since the same notation `=' sometimes means assignment and sometimes means mutation. I disagree

Re: namespace issue, Python vs numpy min/max problem

2010-11-13 Thread Steven D'Aprano
On Sat, 13 Nov 2010 11:41:09 -0800, dmitrey wrote: hi all, I have the following problem: I have overloaded max function in my module (FuncDesigner); it works like following: if some data in arguments is of type oofun then my function works, elseware numpy.max() is used. Now the problem:

Re: regenerating unicodedata for py2.7 using py3 makeunicodedata.py?

2010-11-13 Thread Martin v. Loewis
Is this intended or even guaranteed for these generated files to be compatible across py2.7 and py3, or am I going to be bitten by some less obvious issues later? It works because the generated files are just arrays of structures, and these structures are the same in 2.7 and 3.2. However,

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
On Sat, 13 Nov 2010 21:42:03 +, Mark Wooding wrote: Dave Angel da...@ieee.org writes: No, an (=) assignment is always an assignment. No. In `foo[0] = bar' it's a method call in disguise. How does that imply that can't also be an assignment? Of course, you're correct that it's not

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
On Sat, 13 Nov 2010 14:37:44 -0800, Dennis Lee Bieber wrote: On Sat, 13 Nov 2010 16:29:19 +, m...@distorted.org.uk (Mark Wooding) declaimed the following in gmane.comp.python.general: to a function argument /never/ affects the caller in Python. It's simply not possible to write a

Re: drawing with the mouse with turtle

2010-11-13 Thread Steven D'Aprano
On Sat, 13 Nov 2010 06:22:59 -0500, Brian Blais wrote: there is no change by changing the order, but I didn't expect one. since ondrag is binding a callback, which is only called when the event happens, I figure that the pen has to be down when the callback happens, not when the binding

[RELEASED] Python 3.1.3 release candidate 1

2010-11-13 Thread Benjamin Peterson
On behalf of the Python development team, I'm gladsome to announce a release candidate of the third bugfix release for the Python 3.1 series, Python 3.1.3. This bug fix release fixes numerous issues found in 3.1.2. Please try it with your packages and report any bugs you find. The final of

Re: drawing with the mouse with turtle...solved?

2010-11-13 Thread Steven D'Aprano
On Sat, 13 Nov 2010 09:10:41 -0500, Brian Blais wrote: Here is code that works, with at least one small oddity: import turtle def gothere(event): turtle.penup() turtle.goto(event.x-360,340-event.y) turtle.pendown() def movearound(event):

[RELEASED] Python 2.7.1 release candidate 1

2010-11-13 Thread Benjamin Peterson
On behalf of the Python development team, I'm chuffed to announce the a release candidate of Python 2.7.1. Please test the release candidate with your packages and report any bugs you find. 2.7.1 final is scheduled in two weeks. 2.7 includes many features that were first released in Python 3.1.

Re: strange behavor....

2010-11-13 Thread Arnaud Delobelle
m...@distorted.org.uk (Mark Wooding) writes: Arnaud Delobelle arno...@gmail.com writes: I think I understand Python programs correctly using only the notions of name and value (or object). Challenge: explain the following code using only those concepts. def foo(): l =

Re: strange behavor....

2010-11-13 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 13 Nov 2010 20:01:42 +, Mark Wooding wrote: Some object types are primitive, provided by the runtime system; there are no `internal' variables to be assigned in these cases. You seem to be making up your own

Re: strange behavor....

2010-11-13 Thread Mark Wooding
Dennis Lee Bieber wlfr...@ix.netcom.com writes: def swapFunc(a, b): return b, a That's not what a `swap' function should do. Alas, Python is actually slightly confusing here, since the same notation `=' sometimes means assignment and sometimes means mutation. = means just

Re: strange behavor....

2010-11-13 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 13 Nov 2010 21:42:03 +, Mark Wooding wrote: Dave Angel da...@ieee.org writes: No, an (=) assignment is always an assignment. No. In `foo[0] = bar' it's a method call in disguise. How does that imply that

I am away

2010-11-13 Thread chris . p . clark
I will be out of the office starting 12/11/2010 and will not return until 16/11/2010. contact Narinder Kumar 0208 738 8871 (narinder.ku...@ba.com) Ian Sherrington (88149) matthew page 0208 738 3519 (matthew.p...@ba.com) Greg Lakin 0208 738 3469 (greg.t.la...@ba.com) Christopher Bristow 208 738

Re: regenerating unicodedata for py2.7 using py3 makeunicodedata.py?

2010-11-13 Thread Vlastimil Brom
2010/11/13 Martin v. Loewis mar...@v.loewis.de: Is this intended or even guaranteed for these generated files to be compatible across py2.7 and py3, or am I going to be bitten by some less obvious issues later? It works because the generated files are just arrays of structures, and these

Re: Some Machine Learning related questions

2010-11-13 Thread Robert Kern
On 2010-11-13 08:39 , joy99 wrote: I am looking for a forum, especially an active forum, like this one (I searched for few in Google, but all seem to be very lazy), where I can post these questions. http://stats.stackexchange.com/ -- Robert Kern I have come to believe that the whole world

Re: strange behavor....

2010-11-13 Thread Steven D'Aprano
On Sat, 13 Nov 2010 22:22:00 +, Mark Wooding wrote: Challenge: explain the following code using only those concepts. (those concepts being name and value/object) def foo(): l = [] for i in xrange(10): (lambda j: l.append((lambda: i, lambda:

Re: Some Machine Learning related questions

2010-11-13 Thread joy99
On Nov 13, 7:39 pm, joy99 subhakolkata1...@gmail.com wrote: Dear Group, Hope every one is fine. I am trying to put some questions. I am developing some tool boxes for support vector machine (SVM) and hidden markov model (HMM). For HMM I was following the tutorial by Leeds University

Re: strange behavor....

2010-11-13 Thread alex23
Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Right website, wrong page :) http://effbot.org/zone/call-by-object.htm D'oh. Thanks for the catch :) -- http://mail.python.org/mailman/listinfo/python-list

Looking For Tutorial Comparison Of sh - perl - python

2010-11-13 Thread Tim Daneliuk
I am putting together a comparison intro to each of sh, perl, python with a view towards addressing: - What is each language naturally good for - What are their respective strengths and weaknesses - How do they differ paradigmatically Audience is non-programming sysadmins, many of whom are

hi

2010-11-13 Thread sms
http://infohivaids.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

ANN: stats0.1.1a calculator statistics for Python

2010-11-13 Thread Steven D'Aprano
I am pleased to announce the second public release of stats for Python, and the first targeted at Python 3.x. http://pypi.python.org/pypi/stats stats is a pure-Python module providing basic statistics functions similar to those found on scientific calculators. It has over 40 statistics

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-11-13 Thread Ned Deily
New submission from Ned Deily n...@acm.org: In several contexts, IDLE binds clicking of the right mouse button to context popup menus, most importantly, to provide the Set Breakpoint and Clear Breakpoint actions in edit windows. On OS X systems, however, one cannot assume there will be more

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-11-13 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The attached patch modifies IDLE on OS X to bind popup menus to Control-Click (of the main or left button), as is commonly done elsewhere in OS X. -- Added file: http://bugs.python.org/file19592/issue10404-idle_no_context_menus.txt

[issue10392] GZipFile crash when fileobj.mode is None

2010-11-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes. However, if None were a valid value for mode, then the would would instead do something like: SENTINEL = object() class GZipFile... def __init__(self, filename=None, mode=SENTINEL, ... and then where None currently appears

[issue10405] IDLE breakpoint facility undocumented

2010-11-13 Thread Ned Deily
New submission from Ned Deily n...@acm.org: In neither the IDLE section of the Library Reference nor in IDLE's own help file is there any documentation on how to use its breakpoint capability. Since the menu options only appear if the user knows to Right-click (or Control-click on OS X - see

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-11-13 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +Bruce.Sherwood, kbk, taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10404 ___ ___

[issue10356] decimal.py: hash of -1

2010-11-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Okay; go ahead and apply (preferably in two separate commits, since you're fixing two only marginally related issues here). -- assignee: - skrah ___ Python tracker rep...@bugs.python.org

[issue10406] IDLE 2.7 on OS X does not enable Rstrip extension by default

2010-11-13 Thread Ned Deily
New submission from Ned Deily n...@acm.org: r73001 for Issue5150 added the Rstrip extension to IDLE and modified the extensions configuration file, config-extensions.def, to enable it by default. For Python 2 OS X installs, however, the config-extensions.def file from Lib/idlelib is replaced

[issue10406] IDLE 2.7 on OS X does not enable Rstrip extension by default

2010-11-13 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file19593/issue10406-idle27-rstrip-27.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10406 ___

[issue10205] Can't have two tags with the same QName

2010-11-13 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Thanks for the explanation, Éric. That helps. - Backported QName tests in r86447 to release31-maint. As for the logic of the fix, it follows like this: If True and False: #Doesn't go here elif True: # Goes here vs if True: # Goes

[issue10141] SocketCan support

2010-11-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The patch looks good at first glance, but is there a way to test the feature? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10141

[issue10260] Add a threading.Condition.wait_for() method

2010-11-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ok, here is a new patch which slightly expands the documentation and improves the timeout unittest. If there are no objections I'll then commit this shortly. -- Added file: http://bugs.python.org/file19594/wait_for2.patch

[issue10356] decimal.py: hash of -1

2010-11-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The Fraction type has the same behaviour, so I've fixed it to match the proposed new Decimal behaviour in r86448. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10356

[issue10387] ConfigParser's getboolean method is broken

2010-11-13 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Sat, Nov 13, 2010 at 01:20:45AM +, Łukasz Langa wrote: You think wrong. Try it. Okay, I get it. Coercing would be a bad idea in RawConfigParser because there are cases where get method can have raw=True and coercing would break

[issue10260] Add a threading.Condition.wait_for() method

2010-11-13 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Good, but please wait until after the a4 freeze. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10260 ___

[issue10260] Add a threading.Condition.wait_for() method

2010-11-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, here is a new patch which slightly expands the documentation and improves the timeout unittest. If there are no objections I'll then commit this shortly. Again, I think you should use a larger timeout value than 0.1, to avoid intermittent

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-13 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: This is an invalid bug report at the moment. In fact, aged. The redirection depends upon max_redirections and max_repeats together. Setting it to 0 explicitly (inside the code) is not a good use case under any condition. -- nosy:

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2010-11-13 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r86450 (py3k). Will be back porting shortly. -- resolution: - fixed stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5111

[issue10116] Sporadic failures in test_urllibnet

2010-11-13 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10116 ___ ___

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-13 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton l...@lkcl.net added the comment: I am not sure how we should do this, but here's my proposal for distutils2 at least: - make this new feature a standalone package that patches distutils - release it for 2.x - let's add your work in distutils2 as well, so it's

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-13 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton l...@lkcl.net added the comment: The current patch makes too many changes in core distutils functions; it cannot be accepted in this form. I'm sure that most of the needed changes can be made in a subclass of the present Mingw32CCompiler. that's what i did when

[issue10116] Sporadic failures in test_urllibnet

2010-11-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There are still sporadic failures such as: == ERROR: testURLread (test.test_urllibnet.URLTimeoutTest) --

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-13 Thread Vlastimil Brom
Vlastimil Brom vlastimil.b...@gmail.com added the comment: I'd have liked to suggest updating the underlying unicode data to the latest standard 6.0, but it turns out, it might be problematic with the cross-version compatibility; according to the clarification in

[issue10407] missing errno import in distutils/dir_util.py

2010-11-13 Thread Zbyszek Szmek
New submission from Zbyszek Szmek zbys...@in.waw.pl: Fix is trivial: diff -r 8daacdacf720 -r 1a821081b470 Lib/distutils/dir_util.py --- a/Lib/distutils/dir_util.py Sat Nov 13 13:27:49 2010 +0100 +++ b/Lib/distutils/dir_util.py Sat Nov 13 14:37:49 2010 +0100 @@ -5,6 +5,7 @@ __revision__ = $Id:

[issue10407] missing errno import in distutils/dir_util.py

2010-11-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. I’ve run pyflakes over the distutils directory and found another error in test_sysconfig. Will fix shortly. -- assignee: tarek - eric.araujo status: open - pending type: crash - behavior versions: +Python 2.7,

[issue10408] Denser dicts and linear probing

2010-11-13 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This is a patch experiment which does two things: - make dicts denser by making the resize factor 2 instead of 4 for small dicts - improve cache locality on collisions by using linear probing It should be noted that these two changes are not

[issue10408] Denser dicts and linear probing

2010-11-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a benchmark adapted from another bug entry (I merely adapted the dict sizes in order to better exhibit the performance degradation when the CPU cache becomes too small to hold the whole dict). Results without the patch: 1 words

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-13 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Why not? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1520831 ___ ___

[issue10409] mkcfg crashes with ValueError

2010-11-13 Thread Stein Magnus Jodal
New submission from Stein Magnus Jodal stein.mag...@jodal.no: I'm using Distutils2 1.0a3 with Python 2.6.6. To reproduce: 1. Run ``python -m distutils2.mkcfg`` 2. When you get to the Trove classifier step enter e.g. Apache 2 as license 3. When asked to select a matching license, enter

[issue10409] mkcfg crashes with ValueError

2010-11-13 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Thanks for the feedback, I can reproduce this. Fixing it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10409 ___

[issue3871] cross and native build of python for mingw32 with distutils

2010-11-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: this is, after all, a new platform! it starts off with sys.platform == 'mingw32' I disagree; programs compiled with mingw32 run on Windows, and use the MSVC runtime. It's the same platform as the current win32 build. It's even

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-13 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20101113.zip is a new version of the regex module. It now supports Unicode 6.0.0. -- Added file: http://bugs.python.org/file19597/issue2636-20101113.zip ___ Python tracker rep

[issue10409] mkcfg crashes with ValueError

2010-11-13 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Commited in a99e29d63071 (hg.python.org) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10409

[issue10401] Globals / builtins cache

2010-11-13 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Unladen actually has something like this in place for performance optimizations. Not sure how Antoine's approach differs, though. -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2010-11-13 Thread Michael Hoffman
Changes by Michael Hoffman qq9jsuv...@snkmail.com: -- nosy: +hoffman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2571 ___ ___ Python-bugs-list

  1   2   >