[issue5395] array.fromfile not checking I/O errors

2009-10-06 Thread Jan Hosang
Jan Hosang jan.hos...@gmail.com added the comment: Maybe you could create a file without read permission (000) and try to read from it. I just checked. If I don't have read permissions, I am not able to open the file. When I open a file and change permissions afterwards, I can read the

[issue7069] inspect.isabstract to return boolean values only

2009-10-06 Thread Jan Hosang
Jan Hosang jan.hos...@gmail.com added the comment: The patch works, as this is what is implicitly happening anyway if you use the function. There seem to be no tests for this function, so there is nothing to break. I guess this is the right time to get some tests. Gabriel, would you like to

[issue7068] 2.6.3 does not use specified compiler

2009-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Thanks for reporting this. It appears that Benjamin tried to undo the .compiler attribute renaming Tarek had applied and r72586, but forgot to change back line 303 to the original version: {{{ # Setup the CCompiler object that we'll

[issue7070] round(x) gives wrong result for large odd integers

2009-10-06 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: The single-argument form of the builtin round function can give incorrect results for large integers. x = 5e15+1 x == int(x) True x == round(x) # expect True here False x 5001.0 round(x) 5002.0 int(x)

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: So the discussion is now on 2 points: 1. Is the change backwards compatible? (at the code level, after recompilation). My answer is yes, because all known case transformations stay in the same plane: if you pass a char in the BMP, they

[issue7068] 2.6.3 does not use specified compiler

2009-10-06 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Thanks for noticing, I'll rename it in the maintenance branch, but I need to wait for Barry to give me the green light since the 2.6 branch is frozen right now. -- nosy: +barry ___ Python tracker

[issue6516] reset owner/group to root for distutils tarballs

2009-10-06 Thread Bheemesh
Bheemesh bheem...@gmail.com added the comment: Hello Tarek, done in r75192 and r75194. Thanks Till ! Can you please tell me how to get this correction into use? -- nosy: +bheemesh ___ Python tracker rep...@bugs.python.org

[issue1282647] socket.getaddrinfo() bug for IPv6 enabled platforms

2009-10-06 Thread Bert Vermeulen
Bert Vermeulen b...@biot.com added the comment: This is not a python bug, but a bug in the underlying libc. A simple getaddrinfo() call in C exhibits the exact same behavior. It has been fixed at some point; I see this bug on Centos 3.3 but not on Centos 4.4, for example. I've attached a small

[issue7071] distutils and IronPython compatibility

2009-10-06 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: distutils package installation isn't compatible with IronPython. To reproduce first install IronPython 2.6 (RC1 is currently latest version) from the msi installer. This installs by default on Windows into C:\Program Files\IronPython

[issue7071] distutils and IronPython compatibility

2009-10-06 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- keywords: +26backport ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7071 ___ ___

[issue7071] distutils and IronPython compatibility

2009-10-06 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Hmmm... ok, so I was running on Vista where a normal user can't create files in the Program Files directory anyway. If I run with elevated permissions then I get the same error as reported on the IronPython issue on codeplex (which is

[issue6516] reset owner/group to root for distutils tarballs

2009-10-06 Thread Bheemesh
Bheemesh bheem...@gmail.com added the comment: I just took download of the latest python 2.6.3 which was updated on 2nd OCT 09, and found that while tarball creation everything looks OK, but when we un-tar the archive the permissions goes back to the current user logged in. Can this be set to

[issue7068] 2.6.3 does not use specified compiler

2009-10-06 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Tarek, please commit this fix before 2.6.4rc1 (i.e. asap :) -- priority: - release blocker resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7068

[issue6516] reset owner/group to root for distutils tarballs

2009-10-06 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Hi Bheemesh, This is a new feature, so it was added in the current trunk that will become 2.7 and 3.2. So unfortunately, you can't have it in any 2.6 release. A workaround is to create your own sdist command, that includes the changes made

[issue7068] 2.6.3 does not use specified compiler

2009-10-06 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Done in r75269. Thanks Shun-ichi and Marc-André -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7068 ___

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-06 Thread Ralf Schmitt
Changes by Ralf Schmitt sch...@gmail.com: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7064 ___ ___ Python-bugs-list mailing

[issue6516] reset owner/group to root for distutils tarballs

2009-10-06 Thread Bheemesh
Bheemesh bheem...@gmail.com added the comment: HI Tarek, Thanks very much for a quick reply here. since i am new to this , can you help me with sdist command to have the latest changes? Best Regards, Bheemesh On Tue, Oct 6, 2009 at 5:59 PM, Tarek Ziadé rep...@bugs.python.org wrote: Tarek

[issue6992] PEP 314 inconsistency (authors/author/maintainer)

2009-10-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Tarek Ziadé ziade.ta...@gmail.com added the comment: Yes but fixing this inconsitency can be done on either side: A - remove the maintainer and maintainer_email B - add the Maintainer and Maintainer-email in the metadata If we don't

[issue6992] PEP 314 inconsistency (authors/author/maintainer)

2009-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: anatoly techtonik wrote: anatoly techtonik techto...@gmail.com added the comment: Tarek Ziadé ziade.ta...@gmail.com added the comment: Yes but fixing this inconsitency can be done on either side: A - remove the maintainer and

[issue5395] array.fromfile not checking I/O errors

2009-10-06 Thread Eduardo Aguiar
Eduardo Aguiar agu...@users.sourceforge.net added the comment: Another try. I have opened a file for writing, and have tried to read from it: fp = open ('xxx', 'w') fp.read () Traceback (most recent call last): File stdin, line 1, in module IOError: [Errno 9] Bad file descriptor --

[issue7072] isspace(0xa0) is true on Mac OS X

2009-10-06 Thread Naoki INADA
New submission from Naoki INADA songofaca...@gmail.com: Old FreeBSD's libc has a bug relate to utf-8 locale and Python have patch for it: http://svn.python.org/view/python/trunk/Include/pyport.h? view=diffpathrev=43219r1=36792r2=36793 This bug appears in Mac OS X again. This test fails: s =

[issue6992] PEP 314 inconsistency (authors/author/maintainer)

2009-10-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Tue, Oct 6, 2009 at 4:04 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: Please, be specific. PyPi maintainer or trac-plugin package maintainer or debian package maintainer? Which should be mentioned in debian package for a

[issue5395] array.fromfile not checking I/O errors

2009-10-06 Thread Jan Hosang
Jan Hosang jan.hos...@gmail.com added the comment: Thanks Aduardo! (I could have sworn I tried that.) I changed the test to reading from a file in 'wb' mode, which raised a EOFError before and now raises IOErrors. -- Added file: http://bugs.python.org/file15055/array_ioerror.patch

[issue6670] Printing the 'The Python Tutorial'

2009-10-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: To fix this problem is enough to add an !important to the margin: 0; rule in the @media print {} at the end of basic.css (line 408). I'll try to explain why the !important is necessary. In default.css @import url(basic.css); (correctly)

[issue6992] PEP 314 inconsistency (authors/author/maintainer)

2009-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: anatoly techtonik wrote: anatoly techtonik techto...@gmail.com added the comment: On Tue, Oct 6, 2009 at 4:04 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: Please, be specific. PyPi maintainer or trac-plugin package maintainer

[issue7029] Improve pybench

2009-10-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is an updated patch with the superfluous timing function removed. Please advise me on how you don't like the implementation I'm also considering adding a '--quiet' flag that causes it to only emit the 'total' line. This is

[issue7029] Improve pybench

2009-10-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: And here is the actual patch. -- Added file: http://bugs.python.org/file15056/pybench.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7029

[issue3244] multipart/form-data encoding

2009-10-06 Thread Andrey Petrov
Andrey Petrov andrey.pet...@shazow.net added the comment: Once upon a time I wrote a library that did some of this among other things: http://code.google.com/p/urllib3/ Or specifically: http://code.google.com/p/urllib3/source/browse/trunk/urllib3/filepost.py The code was borrowed from some of

[issue918368] urllib doesn't correct server returned urls

2009-10-06 Thread Adam Nelson
Adam Nelson a...@varud.com added the comment: This seems a bit serious for inclusion in 2.7 IMHO. urllib is used in all sorts of hackish ways in the wild and I really wonder if this is going to cause more problems for people than it's worth. The 3.x series alone seems like the best place

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: It's not as easy as that. The functions for case conversion are used in a way that assumes they never fail (and indeed, the existing functions cannot fail). What we can do is change the input parameter to Py_UCS4, but not the Py_UNICODE

[issue7069] inspect.isabstract to return boolean values only

2009-10-06 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Tests added. -- Added file: http://bugs.python.org/file15057/inspect.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7069 ___

[issue7069] inspect.isabstract to return boolean values only

2009-10-06 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Removed file: http://bugs.python.org/file15052/inspect.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7069 ___

[issue7029] Improve pybench

2009-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Kristján Valur Jónsson wrote: Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is an updated patch with the superfluous timing function removed. Please advise me on how you don't like the implementation The

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: that would cause lots of compiler warnings and implicit truncation on UCS2 builds Unfortunately, there is no such warning, or the initial problem we are trying to solve would have been spotted by such a warning (unicode_repr() calls

[issue1571184] Generate numeric/space/linebreak from Unicode database.

2009-10-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Patch applied with r75272. Merged to py3k, adapted and regenerated files with r75274. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6670] Printing the 'The Python Tutorial'

2009-10-06 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: This request really does need a patch+tests+doc changes - I don't know if anyone with +commit has the time to distill the various implementations and generate something. -- nosy: +jnoller ___ Python

[issue6670] Printing the 'The Python Tutorial'

2009-10-06 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6670 ___ ___ Python-bugs-list mailing list

[issue6670] Printing the 'The Python Tutorial'

2009-10-06 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: I posted to the wrong bug, apologies -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6670 ___

[issue3244] multipart/form-data encoding

2009-10-06 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: This request really does need a patch+tests+doc changes - I don't know if anyone with +commit has the time to distill the various implementations and generate something. -- nosy: +jnoller ___ Python

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-06 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: Added file: http://bugs.python.org/file15058/unicodectype_ucs4_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5127 ___

[issue7073] Python 2.6.3 final windows installer installs a release candidate

2009-10-06 Thread Jose Antonio Martin H
New submission from Jose Antonio Martin H jamart...@fdi.ucm.es: Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)] on win32 That is the python that is installed with the python 2.6.3 installer. -- components: Installation messages: 93667 nosy: jamartinh

[issue7073] Python 2.6.3 final windows installer installs a release candidate

2009-10-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is a known issue, 2.6.4 will be out soon. See http://mail.python.org/pipermail/python-committers/2009-October/000648.html -- nosy: +ezio.melotti resolution: - later stage: - committed/rejected status: open - closed

[issue7074] Turtle module crashes python

2009-10-06 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: Attached file run from IDLE edit window with 3.1, winxp works fine-- turtle moves in response to cursor keys-- if quit soon enough. But after about 1000 key repeats, pythonw crashes with standard MSVC++ runtime error window, pythonw error

[issue7074] Turtle module crashes python

2009-10-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: Removed file: http://bugs.python.org/file15059/turtlecrash.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7074 ___

[issue7074] Turtle module crashes python

2009-10-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: resubmitting file -- Added file: http://bugs.python.org/file15060/turtlecrash.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7074 ___

[issue918368] urllib doesn't correct server returned urls

2009-10-06 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: AdamN, did you specifically come across a scenario which broke due to this change? I can understand your concern, in general. The 'non-breaking' existing tests is the one of confidence factor we have in introducing the changes. --

[issue6845] Restart support in binary upload for ftplib

2009-10-06 Thread Pablo Mouzo
Changes by Pablo Mouzo pablomo...@gmail.com: Removed file: http://bugs.python.org/file14876/issue6845.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6845 ___

[issue3563] fix_idioms.py generates bad code

2009-10-06 Thread Joe Amenta
Joe Amenta ament...@msu.edu added the comment: Attached a patch that implements more thoroughly what appears to be the intended behavior. -- nosy: +joe.amenta Added file: http://bugs.python.org/file15061/fix_idioms.patch ___ Python tracker

[issue3563] fix_idioms.py generates bad code

2009-10-06 Thread Joe Amenta
Changes by Joe Amenta ament...@msu.edu: Removed file: http://bugs.python.org/file15061/fix_idioms.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3563 ___

[issue3563] fix_idioms.py generates bad code

2009-10-06 Thread Joe Amenta
Joe Amenta ament...@msu.edu added the comment: Missed a paren in the last one... re-uploading it. -- Added file: http://bugs.python.org/file15062/fix_idioms.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3563

[issue3563] fix_idioms.py generates bad code

2009-10-06 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: collinwinter - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3563 ___

[issue7075] Bug while put a set on a dict

2009-10-06 Thread Chu-Cheng
New submission from Chu-Cheng chuch...@gmail.com: x={1:{1}} x[1] = (x.get(1).add(2)) x {1: None} But... x={1:{1}} o = x.get(1) o.add(2) o {1, 2} x[1] = o x {1: {1, 2}} -- components: None messages: 93674 nosy: chucheng severity: normal status: open title: Bug while put a set

[issue7075] Bug while put a set on a dict

2009-10-06 Thread Chu-Cheng
Chu-Cheng chuch...@gmail.com added the comment: my fault, I know what is the difference now :) sorry for bugging -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7075

[issue6717] Some problem with recursion handling

2009-10-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: For anyone trying this on another system: you must specifically click on and drag the mouse/turtle graphic. Running from IDLE edit, I get no traceback in the Shell Window, unlike with the script I attached to #7074 and now here. While I am

[issue7069] inspect.isabstract to return boolean values only

2009-10-06 Thread Jan Hosang
Jan Hosang jan.hos...@gmail.com added the comment: I changed the patch so it does not introduce new dependencies and fails before the patch of isabstract(). -- Added file: http://bugs.python.org/file15064/inspect.diff ___ Python tracker

[issue7076] Documentation add note about SystemRandom

2009-10-06 Thread Shawn Ligocki
New submission from Shawn Ligocki sligo...@gmail.com: I did not notice the existence of random.SystemRandom until after I had implemented my own version. I thought it would be nice to mention it in the opening section. I've added a tiny note about random.SystemRandom. What do you guys think,