[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-02-12 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: kbk - ned.deily nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1028 ___ ___

[issue4709] Mingw-w64 and python on windows x64

2011-02-12 Thread Christoph Gohlke
Changes by Christoph Gohlke cgoh...@uci.edu: -- nosy: +cgohlke ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing

[issue11180] More efficient nlargest()/nsmallest()

2011-02-12 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Updated the benchmarking code to include a 4th variant that accumulates sorted sublists during the partitioning phase. Results from one run: n: 10 k: 100 [105856, 105917, 105951, 105977, 106366] nsmallest [166465,

[issue11180] More efficient nlargest()/nsmallest()

2011-02-12 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file20748/heapq_benchmark.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11180 ___

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is a potential crasher. It would also be nice if you listed those cases where Python assumes signed overflow behaviour. Can you open a separate issue for that? -- nosy: +mark.dickinson, pitrou priority: normal - high versions:

[issue11199] urllib hangs when closing connection

2011-02-12 Thread rg3
New submission from rg3 sarbalap+freshm...@gmail.com: If you run the attached program, you can see the program hangs in the connection close stage. Uncommenting the sleep line makes the program work, so I suspect some kind of race condition. The URL used belongs to a Slackware Linux mirror. I

[issue11198] re sub subn backreferrence too few replacements

2011-02-12 Thread muxum
muxum mxgn...@gmx.de added the comment: aww ic -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11198 ___ ___ Python-bugs-list mailing list

[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-02-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Looks good to me. I wonder if the existing example should be moved up above the description of the chmod flags, though. This update puts it even farther away from the functions it is an example of. --

[issue3119] pickle.py is limited by python's call stack

2011-02-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- superseder: eliminate recursion in pickling - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3119 ___

[issue9523] Improve dbm modules

2011-02-12 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: 1. Make keys(), values(), items() methods return view object for ndbm, gdbm and dumb objects. I following the codes in dictobject.c. Did you have to copy the code? Isn’t it possible to somehow reuse it? I feel not so easy to reuse the code,

[issue9523] Improve dbm modules

2011-02-12 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: Added file: http://bugs.python.org/file20751/issue_9523.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9523 ___

[issue11200] Addition of abiflags breaks distutils

2011-02-12 Thread Toshio Kuratomi
New submission from Toshio Kuratomi a.bad...@gmail.com: When trying to build distribute on the latest python-3.2rc I get the following traceback in the unittests (two others that are similar as well): == ERROR: test_develop

[issue11200] Addition of abiflags breaks distutils

2011-02-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11200 ___ ___ Python-bugs-list

[issue11200] Addition of abiflags breaks distutils

2011-02-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11200 ___

[issue11200] Addition of abiflags breaks distutils

2011-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, looks like distribute should be updated to include abiflags in self.config_vars in setuptools/command/easy_install.py. There seems to be a whole bunch of code pasted directly from distutils and it isn't up-to-date anymore. Compare:

[issue11201] Python installation error 2203

2011-02-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11201 ___ ___ Python-bugs-list mailing

[issue11201] Python installation error 2203

2011-02-12 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Can you confirm that the checksum and size of the file you downloaded matches what's on the site: http://www.python.org/download/releases/2.7.1/ -- components: +Windows nosy: +brian.curtin ___ Python

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Anders Østhus
New submission from Anders Østhus grapz...@gmail.com: Hi I'm running Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 (Server 2008 R2). I've discovered that when moving files with shutil.move, the file won't inherit the security settings as it should.

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) -IO nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11202 ___

[issue11201] Python installation error 2203

2011-02-12 Thread Ana Koren
New submission from Ana Koren ana.ko...@gmail.com: I'm running Windows 7 (32-bit) and I downloaded Python 2.7.1 Windows Installer but I can't install it. I get this message: The installer has encountered an unexpected error installing this package. This may indicate a problem with this

[issue11201] Python installation error 2203

2011-02-12 Thread Ana Koren
Ana Koren ana.ko...@gmail.com added the comment: Yes, I downloaded it from there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11201 ___ ___

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Intuitively, this seems rather normal to me. If I move a file under Unix, I don't expect its access rights or ownership to change. Move really means what it means: you have to update its permission explicitly if that's what you need

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: shutil.move is implemented using copy2, which as the documentation states at the top, On Windows, file owners, ACLs and alternate data streams are not copied. See http://docs.python.org/library/shutil -- nosy: +brian.curtin resolution:

[issue11201] Python installation error 2203

2011-02-12 Thread corenova
corenova ana.ko...@gmail.com added the comment: I get the same message when trying to install older versions (2.x) as well as new 3.1.3 I also tried ActivePython and same thing happens. -- ___ Python tracker rep...@bugs.python.org

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11202 ___ ___ Python-bugs-list

[issue11201] Python installation error 2203

2011-02-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Are you perhaps trying to run the installer from a network folder, or some other location that needs your personal credentials for access? Please run msiexec /i python-2.7.1.msi /l*v python.log and attach the resulting python.log to

[issue9298] binary email attachment issue with base64 encoding

2011-02-12 Thread Yves Dorfsman
Yves Dorfsman y...@zioup.com added the comment: I will. Please don't use my patch yet, it breaks something else in the test_email: ./python Lib/test/regrtest.py test_email [1/1] test_email test test_email failed -- Traceback (most recent call last): File

[issue11204] re module: strange behaviour of space inside {m, n}

2011-02-12 Thread John Machin
New submission from John Machin sjmac...@lexicon.net: A pattern like rb{1,3}\Z matches b, bb, and bbb, as expected. There is no documentation of the behaviour of rb{1, 3}\Z -- it matches the LITERAL TEXT b{1, 3} in normal mode and b{1,3} in verbose mode. # paste the following at the

[issue10084] SSL support for asyncore

2011-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: First comments: - secure_connection() should be named ssl_something() like other methods. ssl_start() perhaps? - in ssl_shutdown(): +elif err.args[0] == ssl.SSL_ERROR_SSL: +pass SSL_ERROR_SSL doesn't exist.

[issue11126] Wave.py does not always write proper length in header

2011-02-12 Thread jtidman
jtidman jtid...@siliconcoral.com added the comment: Yep, your solution is better. I can provide some text files (lists of numbers) and two programs, wave2text.py and text2wav.py. These are the programs I wrote that found this issue in the first place. Add a few checks and you could run

[issue3860] GzipFile and BZ2File should support context manager protocol

2011-02-12 Thread K Richard Pixley
K Richard Pixley r...@noir.com added the comment: Documentation needs to be updated to state that these are now context managers. This is important since they aren't in python-2.x. I'm not sure whether this should be added to the new in python blurbs. -- nosy: +teamnoir

[issue10084] SSL support for asyncore

2011-02-12 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Initial draft of a patch including tests and a new ssl_dispatcher subclass. asynchat needs to be changed as well, probably by using a mixin class. -- keywords: +patch Added file:

[issue11203] gzip doc is behind

2011-02-12 Thread K Richard Pixley
New submission from K Richard Pixley r...@noir.com: The documentation for gzip should include the close method. It's use in the 2.7 documentation implies it's existence but it should also be stated explicitly that it exists. In the 3.x documentation, the use of close not in the examples since

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Anders Østhus
Anders Østhus grapz...@gmail.com added the comment: Ok, but the whole page you linked to (http://docs.python.org/library/shutil) confuses me then. It states at the top: Warning Even the higher-level file copying functions (copy(), copy2()) can’t copy all file metadata. On POSIX platforms,

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: According to the shutil doc page, neither copy or copy2 should do this. And since they do, and you say shutil.move is implemented using shutil.copy2, shouldn't files moved with shutil.move also then inherit the permissions? There's a

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Anders Østhus
Anders Østhus grapz...@gmail.com added the comment: Ok. But that makes the whole method inconsistent. Basically, if it's on the same filesystem, rename the file, and thus not inheriting ACL. If it's on another use copy2, and inherit ACL. That makes no sense, atleast not to me :) --

[issue9523] Improve dbm modules

2011-02-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Add rich compare functions and disjoint() method to dbm view objects to make them as MappingView objects, and add abc registration for them. I’d prefer you not to register them, but test isinstance(keys(), KeysView), so that we’re sure no

[issue5736] Add the iterator protocol to dbm modules

2011-02-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: #9523 has a more comprehensive patch in progress, adding __iter__ and other mapping methods, so I’m closing this one. -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Improve dbm modules

[issue9523] Improve dbm modules

2011-02-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Closed #5736 as superseded. Please make sure the comments there about the peculiar API of gdbm don’t come up or are addressed in your patch. -- ___ Python tracker rep...@bugs.python.org

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok. But that makes the whole method inconsistent. Basically, if it's on the same filesystem, rename the file, and thus not inheriting ACL. If it's on another use copy2, and inherit ACL. I think you're misunderstanding copy2. It will copy

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Anders Østhus
Anders Østhus grapz...@gmail.com added the comment: On my system (Win Server 2008 R2 64-Bit, Python 2.7.1), when I use copy, copy2 or move(to another filesystem), the file _will_ get the ACL of the DST folder, and remove any ACL in SRC file that the DST folder does not have. Thus, it doesn't

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: On my system (Win Server 2008 R2 64-Bit, Python 2.7.1), when I use copy, copy2 or move(to another filesystem), the file _will_ get the ACL of the DST folder, and remove any ACL in SRC file that the DST folder does not have. Thus, it doesn't

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Anders Østhus
Anders Østhus grapz...@gmail.com added the comment: Thank you for taking the time to explain it to me, but it still seems inconsistent to me. I did a test with the functions copy, copy2, move, os.rename, copyfile, both on the same filesystem and another filesystem, and the result is: Same

[issue11202] Win32: shutil.move does not inherit permissions

2011-02-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11202 ___ ___ Python-bugs-list

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-02-12 Thread Pauli Virtanen
Pauli Virtanen p...@iki.fi added the comment: I spent today some time to rewrite `memoryobject.c`, and cleaning up the Py_buffer handling in it. (I wrote also the Numpy PEP 3118 implementation, so this was straightforward to do.) The end result is here:

[issue11160] ZipFile.comment expects bytes

2011-02-12 Thread yeswanth
yeswanth swamiyeswa...@yahoo.com added the comment: IMO the Zipfile.comment should accept strings too instead of just accepting bytes , so patching should help i guess -- nosy: +swamiyeswanth ___ Python tracker rep...@bugs.python.org

[issue11181] TLS end connection not detected properly in retrbinary

2011-02-12 Thread Adi Roiban
Adi Roiban a...@roiban.ro added the comment: Hi, I apologies for raising this issues. It looks like FTP_TLS is not available in Python 3.1 ... and retrbinary is working in Python 2.7. What I actually done, was backporting ftplib.py from 2.7 to 2.5 and using pyOpenSSL instead of the standard

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hello, I spent today some time to rewrite `memoryobject.c`, and cleaning up the Py_buffer handling in it. (I wrote also the Numpy PEP 3118 implementation, so this was straightforward to do.) Thanks for trying this. - Rewritten memoryobject:

[issue11160] ZipFile.comment expects bytes

2011-02-12 Thread yeswanth
yeswanth swamiyeswa...@yahoo.com added the comment: can we use str.encode() function to convert string into bytes ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11160 ___

[issue11197] information leakage with SimpleHTTPServer

2011-02-12 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Agreed, fixing this is going to be too complex for 3.2.0, it'll be done for 3.2.1. Reading over the http.server Simple and CGI HTTPRequestHandler code I see there many problems with the way this code does things today. General: * I'm not

[issue9298] binary email attachment issue with base64 encoding

2011-02-12 Thread Yves Dorfsman
Yves Dorfsman y...@zioup.com added the comment: I've got two issues with this code (Lib/email/test/test_email.py): 1128 def test_body(self): 1129 eq = self.assertEqual 1130 bytes = b'\xfa\xfb\xfc\xfd\xfe\xff' 1131 msg = MIMEApplication(bytes) 1132