[issue5753] CVE-2008-5983 python: untrusted python modules search path
Martin v. Löwis mar...@v.loewis.de added the comment: I wonder why all these applications call PySys_SetArgv at all if they don't have any arguments to set. In the gedit case, I just removed the call from gedit, and it seems to work fine (sys.argv will be an empty list). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: Ok, it looks like following gcc 4.4.0 release, there is an installer for the whole toolchain: http://www.equation.com/servlet/equation.cmd?call=fortran This installs gcc (C+Fortran+C++ compilers, the download is ~ 40 Mb), and it can be used from the command line as conventional mingw32. Hopefully, this should make the patch much easier to test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5799] Change ntpath functions to implicitly support UNC paths
Larry Hastings la...@hastings.org added the comment: I tested your patch and it looks good to me. I didn't get the deprecation warning on ntpath.splitunc unless I disabled all warnings. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5940] Wrong type check in check_library_list
Tarek Ziadé ziade.ta...@gmail.com added the comment: fixed in r72379 Thanks David ! Notice that this bug exists in Python 3.0 too unfortunately. So I have applied the fix in the 3.0 release branch as well (r72380) -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5940 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5941] customize_compiler broken
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5941 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5941] customize_compiler broken
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: The bug is also present in python 2.7a -- versions: +Python 2.7, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5941 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
Martin v. Löwis mar...@v.loewis.de added the comment: The toolchain is difficult to build, but the patch is easy to review, it just moves the MS_WIN64 outside the MS compiler specific part. If it does not break the MS toolchain (the one used to build the official python), I don't see the problem. As a principle, I always try to reproduce a problem when reviewing a patch. In many cases, doing so reveals insights into the actual problem, and leads to a different patch. That the patch is harmless is not a convincing reason to apply it. I can make the toolchain available to you as a tarball, though, so that you can easily test from a windows command shell without having to install anything. That would be nice. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1443504] locale.getpreferredencoding() dies when setlocale fails
Martin v. Löwis mar...@v.loewis.de added the comment: It looks like a bug fix to me - so it would apply to all four active branches. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1443504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5947] Deprecate CObject
Larry Hastings la...@hastings.org added the comment: It's 12:45am, and I've already learned my New Thing for the day. I didn't know about PendingDeprecationWarning. That's just exactly what CObject should throw. Attached is a new patch. The two CObject constructors now throw a PendingDeprecationWarning every time they are called. Tested manually: I create CObjects and nothing happens. I then run warnings.resetwarnings() and create CObjects and see a PendingDeprecationWarning. Perfect! -- Added file: http://bugs.python.org/file13903/lch.deprecatecobject.r72374.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5947 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5799] Change ntpath functions to implicitly support UNC paths
Mark Hammond mhamm...@users.sourceforge.net added the comment: Checked into the trunk as r72387 (after normalizing whitespace in ntpath.py after the precommit-hook failed). Thanks Larry and Eric! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)
STINNER Victor victor.stin...@haypocalc.com added the comment: For the second, I don't understand why you want to compare the return result with RLIM_INFINITY: PyInt_AsLong returns -1 to signal failure; is there some guarantee that RLIM_INFINITY == -1 if it's defined? rlim_t is an unsigned type. The idea of sign_warning_resource.patch was to make gcc quiet about signed/unsigned comparaisons. RLIM_INFINITY is defined as (rlim_t)-1. But it looks that it's not clear, so I wrote another patch to fix the warnings. -- Added file: http://bugs.python.org/file13904/sign_warning_resource-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file13884/sign_warning_resource.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file13883/sign_warning.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5941] customize_compiler broken
Tarek Ziadé ziade.ta...@gmail.com added the comment: what is your traceback ? I want to make sure I have the same in the test I built. Also, just before the traceback, can you tell me the exact command that is spawned in ccompiler.py line 1036. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5941 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5941] customize_compiler broken
Cournapeau David da...@ar.media.kyoto-u.ac.jp added the comment: You can see the traceback in this recent email: http://mail.python.org/pipermail/python-list/2009-May/712106.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5941 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1443504] locale.getpreferredencoding() dies when setlocale fails
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: Committed in r72381 and r72395. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1443504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5946] Fix spelling error in Capsule docs
Georg Brandl ge...@python.org added the comment: Committed in r72396. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5946 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5941] customize_compiler broken
Tarek Ziadé ziade.ta...@gmail.com added the comment: Ok I am able to reproduce it. We can't change AR in the makefile, so I think the best way is to add like you said the -cr option in Python Makefile under a new variable, then use it in customize_compiler I'll ask on python-dev because I am new to the Makefile. A turnaround until then is to set AR with the correct option in os.environ['AR'] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5941 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5947] Deprecate CObject
Georg Brandl ge...@python.org added the comment: Applied in r72397. -- nosy: +georg.brandl resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5947 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5799] Change ntpath functions to implicitly support UNC paths
Eric Smith e...@trueblade.com added the comment: Thanks for looking at this, Mark. If we could only assign issues to Python 3.2 and 3.3 to change the pending deprecation warning to a real one, and to remove the function entirely, we'd be all set! I'm always worried we'll forget these things. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1194378] sendmsg() and recvmsg() for C socket module
Changes by Guillaume Desmottes gdesm...@gnome.org: -- nosy: +gdesmott ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1194378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty
Changes by Stefan Ring stefan...@gmail.com: -- nosy: +Ringding ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5322 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5941] customize_compiler broken
Changes by Floris Bruynooghe floris.bruynoo...@gmail.com: -- nosy: +flub ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5941 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1209447] os.path.join() fails if 2nd arg is a UNC path
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Seems to be fixed in python3.1. See #5799. This is not backported for 2.x yet. (Or it won't happen) -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1209447 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5887] mmap.write_byte out of bounds - no error, position gets screwed up
Brian Mearns bmea...@ieee.org added the comment: Confirmed fixed in python 2.6.2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5887] mmap.write_byte out of bounds - no error, position gets screwed up
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank you for response. I'll close this entry. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5887] mmap.write_byte out of bounds - no error, position gets screwed up
Brian Mearns bmea...@ieee.org added the comment: On Wed, May 6, 2009 at 8:51 AM, Hirokazu Yamamoto rep...@bugs.python.org wrote: Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank you for response. I'll close this entry. -- resolution: - out of date status: open - closed Ok, thanks. I wasn't sure if I should close it or not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3382] Make '%F' and float.__format__('F') convert results to upper case.
Eric Smith e...@trueblade.com added the comment: Checked in to py3k in 72398. I'm reconsidering whether to make this change in 2.7. I might make the change there, I'll have to check on the impacts. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3382 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5948] setlocale regression
New submission from Kerfred fgil...@index-education.fr: There is a regression bug between Python 2.5 and Python 2.6. With Python 2.5, the following code works: import locale locale.setlocale(locale.LC_ALL, 'fr') Whereas with Python 2.6, I get this message: Traceback (most recent call last): File interactive input, line 1, in module File C:\Python26\Lib\locale.py, line 513, in setlocale return _setlocale(category, locale) Error: unsupported locale setting I am using Python 2.6.2 on Windows XP 32 bits. Regards, Fred -- -- components: Library (Lib) messages: 87331 nosy: Kerfred severity: normal status: open title: setlocale regression type: crash versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5752] xml.dom.minidom does not handle newline characters in attribute values
Tomalak m8r-t1tu...@mailinator.com added the comment: @Francesco Sechi: Would it not just require a minimal change to the _write_data() method? Something along the lines of (sorry, no Python expert, maybe I am way off): def _write_data(writer, data, is_attrib=False): Writes datachars to writer. if is_attrib: data = data.replace(\r, #13;).replace(\n, #10;) data = data.replace(, amp;).replace(, lt;) data = data.replace(\, quot;).replace(, gt;) writer.write(data) and in Element.writexml(): #[...] for a_name in a_names: writer.write( %s=\ % a_name) _write_data(writer, attrs[a_name].value, True) #[...] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5752] xml.dom.minidom does not handle newline characters in attribute values
Tomalak m8r-t1tu...@mailinator.com added the comment: Of course it should be: def _write_data(writer, data, is_attrib=False): Writes datachars to writer. data = data.replace(, amp;).replace(, lt;) data = data.replace(\, quot;).replace(, gt;) if is_attrib: data = data.replace(\r, #13;).replace(\n, #10;) writer.write(data) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5948] setlocale regression
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: I can verify this on Vista. 2.5 gives: from locale import setlocale, LC_ALL setlocale(LC_ALL, fr) 'French_France.1252' Whereas 2.6 fails. There is no difference between 2.5's and 2.6's PyLocale_setlocale() from what I can see in Modules/_localemodule.c. Also Lib/locale.py's setlocale() in both versions is identical from what I can see. -- nosy: +asmodai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3739] unicode-internal encoder reports wrong length
Walter Dörwald wal...@livinglogic.de added the comment: Checked in: r72404,72406 (trunk) r72408 (py3k) As IMHO this is somewhat between a feature and a bugfix, I didn't check it into release26-maint and release30-maint. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3739] unicode-internal encoder reports wrong length
STINNER Victor victor.stin...@haypocalc.com added the comment: I didn't check it into release26-maint and release30-maint. I agree and anyway this encoder is not really important (it looks to be unused...). Thanks for the commit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs
New submission from Kevin Watters kevinwatt...@gmail.com: I cannot reproduce this locally yet, but I have several bug reports from users showing that IMAP4_SSL connections can get stuck in an infinite loop during logout() File imaplib.pyo, line 529, in logout File imaplib.pyo, line 1059, in _simple_command File imaplib.pyo, line 889, in _command_complete File imaplib.pyo, line 990, in _get_tagged_response File imaplib.pyo, line 907, in _get_response File imaplib.pyo, line 1000, in _get_line File imaplib.pyo, line 1170, in readline File ssl.pyo, line 136, in read IMAP4_SSL uses ssl.wrap_socket and should probably be passing suppress_ragged_eofs=False. Without this, self.sslobj.read() may return '' forever, and both IMAP4_SSL.read() and IMAP4_SSL.readline() will spin. With suppress_ragged_eofs=False, calling logout() may raise an SSLError instead. Thoughts? -- components: Library (Lib) messages: 87337 nosy: kevinwatters severity: normal status: open title: IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs type: behavior versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5948] setlocale regression
Changes by Georg Brandl ge...@python.org: -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)
Georg Brandl ge...@python.org added the comment: Yes, that looks better. PS: Do not remove applied patches. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5933] fix gcc -Wextra warnings (compare signed/unsigned)
STINNER Victor victor.stin...@haypocalc.com added the comment: PS: Do not remove applied patches. Oh ok, sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5950] zimport doesn't work with zipfile containing comments
New submission from Dmitry d...@samersoff.net: Synopsys: zimport not able to import a module from zipfile if zipfile contains comment. Versions: This is Zip 2.32 (June 19th 2006), by Info-ZIP Python 2.5.2 or 2.6.2 Steps to reproduce: create a module, create an app that imports this module. zip the module, make sure it works. Run: echo Some comments | zip -z module.zip the app stop working. -- components: Interpreter Core files: testcase.zip messages: 87340 nosy: dsamersoff severity: normal status: open title: zimport doesn't work with zipfile containing comments versions: Python 2.5, Python 2.6 Added file: http://bugs.python.org/file13905/testcase.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5950 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5948] setlocale regression
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Did you build python from source? Or did you download official binary distribution? If latter, Python2.5 was built with VC7, and Python2.6 is built with VC9. Probably difference of behavior comes from difference of version of msvcrt. I ran following codes from my python2.6 built from source with VC6, and I succeeded to set locale. Python 2.6.2c1 (release26-maint, Apr 11 2009, 07:01:50) [MSC v.1200 32 bit (Inte l)] on win32 Type help, copyright, credits or license for more information. import locale locale.setlocale(4, ja) 'Japanese_Japan.932' locale.setlocale(4, fr) 'French_France.1252' -- assignee: loewis - nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5948] setlocale regression
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- assignee: - loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5948] setlocale regression
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: My tests were with official distributions. Yamamoto-san, thank you for your testing. I was thinking it might have been something to do with changed semantics, but I am happy you saved me the time from having to compile. Looking at the documentation for setlocale() in VS6 (http://msdn.microsoft.com/en-us/library/aa272906(VS.60).aspx) and 7 (http://msdn.microsoft.com/en-us/library/x99tb11d(VS.71).aspx) it seems that the behaviour in VS6 (and thus Python 2.5) was flawed. The supported language options are listed at http://msdn.microsoft.com/en-us/library/aa246450(VS.60).aspx and they do not list a fr combination. It seems the possibility of fr working might have been a remnant or a bug. The appropriate language designation should have been fra for the default French locale. From my 2.6 interpreter: setlocale(LC_ALL, fra) 'French_France.1252' So this is all intended behaviour and not a bug with Python. As such I propose to close it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5753] CVE-2008-5983 python: untrusted python modules search path
Glyph Lefkowitz gl...@divmod.com added the comment: It suggests to me that somewhere there's some documentation, or an example, that says this is the right way to embed python, call this function. If the right thing to do is to just not call the function at all, we need to get that knowledge out there into the embedding community and publicize this issue. Perhaps a doc bug? PySys_SetArgvEx seems like it might be a good idea for applications which do still want to set the argument list without the sys.path implications, but a quick perusal of the sources of plugins for the affected applications suggests that none of them need it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3992] removed custom log from distutils
Antonio Cavallo a.cava...@cavallinux.eu added the comment: This patch changes the log.py in order to make use of the logging infrastructure. There are few point tough worth of mention. There're two separate stages when log.py is used: a) during the python interpreter build (let's call it bootstrap) b) for every python setup.py cycle During the bootstrap log.py doesn't seem have access to the logging module (at least on the CentOS/Redhat/Suse build systems, but I assume is true for other platforms): in this case a fallback minimal logging is in place. Once the python is in place (eg. installed) it can make use of the true logging: this happen when python setup.py cmd is used to create a python module. A python intepreter built with the patch (from the latest python build) is hosted in: http://download.opensuse.org/repositories/home:/cavallo71:/python-opt -- nosy: +cavallo71 type: - feature request versions: -Python 3.1 Added file: http://bugs.python.org/file13906/issue3992.remove-custom-log.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5847] IDLE/Win Installer: drop -n switch for 2.7/3.1; install 3.1 as idle3
Benjamin Peterson benja...@python.org added the comment: Closing since this problem seems to be fixed. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5847 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3992] removed custom log from distutils
Tarek Ziadé ziade.ta...@gmail.com added the comment: After more thinking, I think we can use a better strategy: - adding a deprecate warning inside the log module and keep the code as it is - set in the __init__ module the regular logger - change every call in distutils from the old log system to the new now for the access problem, can you explain me when+how it happens exactly ? btw, in your patch: - you have a raise - except: should be except ImportError: - in _log, Logger.level should be self.level, same for Logger.stream - I don't see why LOG, DEBUG etc is defined only in the try: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5948] setlocale regression
Changes by Martin v. Löwis mar...@v.loewis.de: -- assignee: loewis - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5753] CVE-2008-5983 python: untrusted python modules search path
Martin v. Löwis mar...@v.loewis.de added the comment: It suggests to me that somewhere there's some documentation, or an example, that says this is the right way to embed python, call this function. That may be an explanation. However, it would be immensely useful to know for sure, from the original authors of one or two such applications. Perhaps there is some issue that I'm missing (e.g. too much stuff crashes if sys.argv is empty - but what stuff could that be?) IOW, I *really* want to understand what's happening before fixing it. This is a security issue, after all. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5753] CVE-2008-5983 python: untrusted python modules search path
Glyph Lefkowitz gl...@divmod.com added the comment: IOW, I *really* want to understand what's happening before fixing it. This is a security issue, after all. Agreed. Does anyone currently subscribed to this ticket know the author of such an application? It would be very helpful to have them involved in the discussion. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5948] setlocale regression
Georg Brandl ge...@python.org added the comment: Closing as won't fix, then. -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5753] CVE-2008-5983 python: untrusted python modules search path
Gregory P. Smith g...@krypto.org added the comment: gedit does it here: http://git.gnome.org/cgit/gedit/tree/plugin-loaders/python/gedit-plugin- loader-python.c#n542 I've emailed the file's author (Jesse) out of the blue to see if he knows why PySys_SetArgv() was called. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5752] xml.dom.minidom does not handle newline characters in attribute values
Francesco Sechi francesco.se...@iet.unipi.it added the comment: Don't worry, I'm a newer too. No, your solution does not work, because the method you refer (_write_data) is called by the toxml() function, but the newline is replaced with a whitespace by the parsestring() function. The parsestring function, as I already said, refers to the 'expat' module, that is very complex (for me). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'
Changes by Francesco Sechi francesco.se...@iet.unipi.it: -- nosy: +sechi_francesco ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'
Francesco Sechi francesco.se...@iet.unipi.it added the comment: I'm not able to reproduce the issue. Why don't you submit the unit test that generates the problem? Thanks -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5951] email.message : get_payload args's documentation is confusing
New submission from jal loic.jaquemet+pyt...@gmail.com: From documentation : http://docs.python.org/library/email.message.html?highlight=email#email.message.Message.get_payload get_payload([i[, decode]]) With optional argument i,[..] If the payload is a string (i.e. is_multipart() is False) and i is given, a TypeError is raised. and Optional decode is a flag [..] When True and the message is not a multipart, the payload will be decoded if this header’s value is quoted-printable or base64. [..] Now the bug : On a non-multipart b64 email, how can the second-level-option decode be used, when using first-level-optional 'i' throws an exception... Two fixes possible : a) code fix b) documentation fix -- assignee: georg.brandl components: Documentation messages: 87353 nosy: georg.brandl, trolldbois severity: normal status: open title: email.message : get_payload args's documentation is confusing type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5951 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5951] email.message : get_payload args's documentation is confusing
Changes by jal loic.jaquemet+pyt...@gmail.com: -- versions: +Python 2.4, Python 2.5, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5951 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3992] removed custom log from distutils
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi Tarek, I agree that a change in that module is risky but a warning won't solve the main problem in the long run: anyway I'm not able to comment about the best strategy. Now the access problem: If an import logging is put into the log.py the (python) build fails complaining the missing time module (upon which logging depends): this happens during the bootstrap phase (the lib-dynload is not in the path unless changes to the build system). This is shown in the suse build server where python gets compiled from scratch without a previously installed python (contrary to what usually happen on a normal system). Attached there's the build error using a minimal log.py (susebuild.log). About my patch: - removed the raise - now it catches only the ImportError - The Logger.stream (as the _log) is a static and it should really belong to all the classes not a particular instance: anyway this is used just during the bootstrap so it needs to provide a bare minimum support;) - INFO/DEBUG/etc are defined there because they're not used during the bootstrap (correctly, IMHO). If I had no fear to break the other modules I'd removed them from there as well: I haven't seen them used elsewhere. PS. I'm waiting for the build to complete in order to confirm if everything works fine. -- Added file: http://bugs.python.org/file13907/susebuild.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3992] removed custom log from distutils
Changes by Antonio Cavallo a.cava...@cavallinux.eu: Added file: http://bugs.python.org/file13908/issue3992.remove-custom-log.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3992] removed custom log from distutils
Changes by Antonio Cavallo a.cava...@cavallinux.eu: Removed file: http://bugs.python.org/file13906/issue3992.remove-custom-log.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5951] email.message : get_payload args's documentation is confusing
R. David Murray rdmur...@bitdance.com added the comment: The answer is that you do msg.get_payload(decode=True). The doc needs to be changed over to use keyword argument specification syntax, which I think would make that obvious. -- nosy: +r.david.murray versions: -Python 2.4, Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5951 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5952] AttributeError exception in urllib.urlopen
New submission from Sergey Prigogin sprigo...@google.com: File /usr/grte/v1/piii-linux/lib/python2.4/urllib.py, line 82, in urlopen return opener.open(url) File /usr/grte/v1/piii-linux/lib/python2.4/urllib.py, line 190, in open return getattr(self, name)(url) File /usr/grte/v1/piii-linux/lib/python2.4/urllib.py, line 322, in open_http return self.http_error(url, fp, errcode, errmsg, headers) File /usr/grte/v1/piii-linux/lib/python2.4/urllib.py, line 339, in http_error return self.http_error_default(url, fp, errcode, errmsg, headers) File /usr/grte/v1/piii-linux/lib/python2.4/urllib.py, line 579, in http_error_default return addinfourl(fp, headers, http: + url) File /usr/grte/v1/piii-linux/lib/python2.4/urllib.py, line 871, in __init__ addbase.__init__(self, fp) File /usr/grte/v1/piii-linux/lib/python2.4/urllib.py, line 818, in __init__ self.read = self.fp.read AttributeError: 'NoneType' object has no attribute 'read' -- components: Library (Lib) messages: 87356 nosy: sprigogin severity: normal status: open title: AttributeError exception in urllib.urlopen type: crash versions: Python 2.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5952 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5953] Add to whats new: range(n) != range(n)
New submission from Mitchell Model m...@acm.org: I just discovered to my (deep) surprise that range(n) != range(n) I think that's worth including in the what's new document. I realize that the document essentially says that in python 3 range behaves the way xrange did in python 2 and that ranges have very little behavior, but surely the lack of equality of two ranges whose string representations are equal is enough of a surprise and difference from python 2 to be worth an explicit comment. (Or maybe no-one ever compares ranges? They are just for iteration? Even that should be said explicitly. This is one of those things that I'm sure expert developers look at and think is obvious but might trip up ordinary users.) -- assignee: georg.brandl components: Documentation messages: 87357 nosy: MLModel, georg.brandl severity: normal status: open title: Add to whats new: range(n) != range(n) versions: Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5884] pydoc to return error status code
Mike Miller python@mgmiller.net added the comment: Ahh, I see ... I didn't explain my issue with much depth in haste. I don't usually run the test suite when I am in the process of updating code or docs, only when I'm done, then I check it in. So I was updating the docs and running pydoc with a local batch file and proofreading the html output. If there was an error, the file seem to update. You are right it won't happen in the build process after all, but rather when I am making repetitive changes locally and using the command line. I might look into doing it myself, although not sure when I'll have time to get to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5884 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs
Rod Morehead rm...@rmore.net added the comment: Isn't the call to read(1) blocking in this case? If so the only reason it should spin would be if it returned an empty string representing EOF. Couldn't we just add a check for an empty string and, if found, raise an EOF exception? -- nosy: +rmore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com