[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?
Senthil Kumaran orsent...@gmail.com added the comment: Interesting issue. RFC 2617 supports the claim. In RFC 2617, section 3.2.2 The Authorization Request Header, we see that nonce-count is maintained for each particular nonce value and it can used by the server to verify the replays. The nc-value is the hexadecimal count of the number of requests (including the current request) that the client has sent with the nonce value in this request. For example, in the first request sent in response to a given nonce value, the client sends nc=0001. The purpose of this directive is to allow the server to detect request replays by maintaining its own copy of this count - if the same nc-value is seen twice, then the request is a replay. resetting the nonce_count for each new nonce is the correct thing to do. Patch seems okay and I going ahead with that. We don't have test for HTTPDigestAuth yet, the nonce tests should be a part of that. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4683 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7309] crasher in str(Exception())
Ezio Melotti ezio.melo...@gmail.com added the comment: I'm not sure what the functions should do when start and end are out of range. I think the best approach would be to prevent these values to be out of range in the first place. All the args should be checked when the instance is created (to avoid things like UnicodeTranslateError(None, 2**30, 2**30+1, 'bah')) and then, if possible, the attributes should be set as read-only. I don't see any valid reason to change them anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7309 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r76288 (trunk), r76289 (release26-maint), r76290 (py3k) and r76291(release31-maint). The issue is fixed. I am keeping it open to remind of the pending tests (HTTPAuthDigest and nonce value check testcase). -- resolution: accepted - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4683 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Nick Coghlan ncogh...@gmail.com added the comment: 2.7: r76286 3.2 merge is still a work in progress -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Removed file: http://bugs.python.org/file12774/mimetypes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4969 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: A new patch taking into account M. Pitrou comments: - name changed to read_windows_registry() - read_windows_registry() does nothing on non-Windows platforms; same as read_mime_types(filename) when the file does not exist. - I hope the coding style is acceptable now - the test is skipped on non-Windows platforms - documentation updated - documentation for MimeTypes.guess_all_extensions was missing; I added it although it isn't directly related to this issue. -- Added file: http://bugs.python.org/file15338/mimetypes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4969 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7291] urllib2 cannot handle https with proxy requiring auth
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil nosy: +orsenthil resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: An updated version of the make_msgid patch. Includes a random part plus a sequential part. Testing takes at most 3 seconds now (we're interested in those msgids generated in a whole second) -- Added file: http://bugs.python.org/file15339/make_msgid.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Removed file: http://bugs.python.org/file14644/test_email.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Removed file: http://bugs.python.org/file14676/utils.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7298] reversed(range(x, -1, -1)) is empty when x 1
Mark Dickinson dicki...@gmail.com added the comment: The fix was applied to py3k in r76292, but I bodged the commit and committed some extra (non-working) code by mistake. That was removed in r76293, so all should be well now. Merged to release31-maint in r76294. trunk and the 2.6 maintenance branch also need some (but not all) of these fixes backporting. -- versions: +Python 2.6, Python 2.7 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7327] format: minimum width: UTF-8 separators and decimal points
New submission from Stefan Krah stefan-use...@bytereef.org: This issue affects the format functions of float and decimal. When calculating the padding necessary to reach the minimum width, UTF-8 separators and decimal points are calculated by their byte lengths. This can lead to printed representations that are too short. Real world example (separator): import locale from decimal import * locale.setlocale(locale.LC_NUMERIC, cs_CZ.UTF-8) 'cs_CZ.UTF-8' s = format(Decimal(-1.5), ' 019.18n') len(s) 19 len(s.decode('utf-8')) 16 s '-0\xc2\xa\xc2\xa\xc2\xa0001,5' s = format(-1.5, ' 019.18n') s '-0\xc2\xa\xc2\xa\xc2\xa0001,5' len(s.decode('utf-8')) 16 Constructed example (separator and decimal point): u = {'decimal_point' : \xc2\xbf, 'grouping' : [3, 3, 0], 'thousands_sep': \xc2\xb4} def get_fmt(x, locale, fmt='n'): ... return Decimal.__format__(Decimal(x), fmt, _localeconv=locale) ... s = get_fmt(Decimal(1.5), u, 020n) s '00\xc2\xb4000\xc2\xb4000\xc2\xb4001\xc2\xbf5' len(s.decode('utf-8')) 16 -- messages: 95283 nosy: eric.smith, mark.dickinson, skrah severity: normal status: open title: format: minimum width: UTF-8 separators and decimal points ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7327 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2304] subprocess under windows fails to quote properly when shell=True
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: An up-to-date patch; same contents, but this one can be cleanly applied to trunk (as of r76294) -- versions: +Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15340/subprocess.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6647] warnings.catch_warnings is not thread-safe
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Document that warnings.catch_warnings is not thread safe. -- keywords: +patch Added file: http://bugs.python.org/file15341/warnings.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6031] BaseServer.shutdown documentation is incomplete
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Documentation patch for BaseServer.server_forever() and shutdown() -- keywords: +patch Added file: http://bugs.python.org/file15342/socketserver.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7298] reversed(range(x, -1, -1)) is empty when x 1
Mark Dickinson dicki...@gmail.com added the comment: Backported the tests and some of the fixes to 2.x in r76295 (trunk) and r76296 (release26-maint). 2.x seems to have been producing correct results in all cases on my machine. The only problem on 2.x was that the code depended on signed arithmetic wrapping modulo 2**width (undefined behaviour! very bad!); now it only depends on unsigned - signed conversions wrapping modulo 2**width, which still isn't guaranteed by the C standards, but it's merely implementation-defined behaviour rather than undefined behaviour, and all implementations that I'm aware of do this. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Thomas Courbon hart...@yahoo.fr added the comment: *bump* Hi there Pythoners ! As Timothy Farrell I'm currently working (or rather, toying since it just for fun) on a Python3 web framework. I just started but when it come to file upload I experience issues which I believe are connected to that issue. Just want if their was any progress since last messages or I should jump in and try writing my own multipart parser (as I doubt I have the required skill to contribute to the email parser). -- nosy: +tcourbon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5792] Enable short float repr() on Solaris/x86
Mark Dickinson dicki...@gmail.com added the comment: Committed in r76300 (trunk) and r76301 (py3k). Thanks for all your help, Stefan. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7261] Document 2.x - 3.x round changes in What's New documents.
Changes by Mark Dickinson dicki...@gmail.com: -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7261 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6970] Redundant calls made to comparison methods.
Mark Dickinson dicki...@gmail.com added the comment: Committed to py3k in r76304. Leaving trunk alone, as Brett suggested. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6970 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)
Changes by Mark Dickinson dicki...@gmail.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7228 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)
Antoine Pitrou pit...@free.fr added the comment: Thank you, the patch looks ok to me. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4969 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Timothy Farrell tfarr...@swgen.com added the comment: Perhaps this update should go in the linked email bug. The email team has a goal of fixing the email module in time for the 3.2 release. I also, feel as though I lack the skill to fix the email module, but it goes beyond that since they're potentially having to change some interfaces. See this document: http://wiki.python.org/moin/Email%20SIG/DesignThoughts Once the email module is fixed, the cgi module will be trivial to fix. I'm confident enough to handle it. I don't think anyone can give you a date so you'll have to make the custom solution decision based on your timeframe and patience. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4661] email.parser: impossible to read messages encoded in a different encoding
Timothy Farrell tfarr...@swgen.com added the comment: Just an update for people interested: The email team has a goal of fixing the email module in time for the 3.2 release. There is the possibility of having to change some interfaces. See this document: http://wiki.python.org/moin/Email%20SIG/DesignThoughts -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4661 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)
Antoine Pitrou pit...@free.fr added the comment: Committed in r76306 and r76307, closing. -- resolution: accepted - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4969 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Antoine Pitrou pit...@free.fr added the comment: Giampaolo, do you plan to add something or is the patch ok to commit? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7326] SOLUTION pls? /usr/lib/python2.6/dist-packages/visual/__init__.py, line 59, in module import cvisual AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-onl
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: This issue is a duplicate of issue 7183. -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7326] SOLUTION pls? /usr/lib/python2.6/dist-packages/visual/__init__.py, line 59, in module import cvisual AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-onl
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7326] SOLUTION pls? /usr/lib/python2.6/dist-packages/visual/__init__.py, line 59, in module import cvisual AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-onl
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: -Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7183] did 2.6.3 regress for some uses of the __doc__ property?
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +pveloz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7183 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7328] pydoc doesn't work from the command line
New submission from Antoine Pitrou pit...@free.fr: This works under 2.x but not 3.x: $ ./python -m pydoc str No module named subprocess -- components: Library (Lib) messages: 95297 nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: pydoc doesn't work from the command line type: crash versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7328] pydoc doesn't work from the command line
Antoine Pitrou pit...@free.fr added the comment: Same with an installed Python by the way: $ usr/bin/python3 -m pydoc str No module named subprocess However, it works when not using -m but invoking the file directly: $ ./python Lib/pydoc.py str [displays the str doc page] -- assignee: - ncoghlan nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7329] global statements outside functions/methods should raise SyntaxError
New submission from Ezio Melotti ezio.melo...@gmail.com: Python currently accepts global statements at the top level: global foo Beside being a meaningless operation, this might lead unexperienced user to make mistakes like: foo = 5 global foo # make foo global def func(): ... print foo # access the global foo ... func() 5 # it works! global foo should raise a SyntaxError, similarly to what already happens with return: return foo File stdin, line 1 SyntaxError: 'return' outside function -- components: Interpreter Core messages: 95299 nosy: benjamin.peterson, ezio.melotti priority: normal severity: normal status: open title: global statements outside functions/methods should raise SyntaxError type: feature request versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7329 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3944] faster long multiplication
Changes by Mark Dickinson dicki...@gmail.com: -- priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7251] Mark expected failures of test_math, test_cmath and test_round as such.
Mark Dickinson dicki...@gmail.com added the comment: The tanh-related failures are no longer happening, since the FreeBSD buildbot was upgraded from FreeBSD 6.2 to FreeBSD 6.4. I'm still worried by Skip's report, but that's a separate issue. Closing. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7251 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: If we want to add SSL support then the patch in attachment modifies the last one as I described in my previous comment. I re-run the tests and they are ok so I guess you can go on with the commit. -- Added file: http://bugs.python.org/file15343/ftplib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)
Mark Dickinson dicki...@gmail.com added the comment: Added extra #ifdef HAVE_LONG_LONG as suggested. Committed to trunk in r76308. I'm working on the merge to py3k, which isn't entirely straightforward. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7228 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7329] global statements outside functions/methods should raise SyntaxError
Benjamin Peterson benja...@python.org added the comment: Please bring this up on Python-dev if you'd like to change it. The fact that there's a test verifying that this can happen suggests there is some reason. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7329 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Antoine Pitrou pit...@free.fr added the comment: The tests don't work under py3k, for some reason I can't figure out. There's the following error and then the tests hang: test_acct (test.test_ftplib.TestTLS_FTPClassMixin) ... Exception in thread Thread-31: Traceback (most recent call last): File /home/antoine/py3k/__svn__/Lib/threading.py, line 521, in _bootstrap_inner self.run() File /home/antoine/py3k/__svn__/Lib/test/test_ftplib.py, line 214, in run asyncore.loop(timeout=0.1, count=1) File /home/antoine/py3k/__svn__/Lib/asyncore.py, line 210, in loop poll_fun(timeout, map) File /home/antoine/py3k/__svn__/Lib/asyncore.py, line 136, in poll r, w, e = select.select(r, w, e, timeout) select.error: (9, 'Bad file descriptor') -- assignee: pitrou - versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)
Mark Dickinson dicki...@gmail.com added the comment: Just so I don't lose it, here's the current version of the forward merge of r76308 to py3k. In testing this, I found some other possible bugs in the py3k implementation of PyUnicode_FromFormat; I need to investigate and possibly fix those before this can be applied. -- Added file: http://bugs.python.org/file15344/add_lld_format_py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7228 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7330] PyUnicode_FromFormat segfault when using widths.
New submission from Mark Dickinson dicki...@gmail.com: There seems to be something wrong with the width handling code in PyUnicode_FromFormat; or perhaps I'm misusing it. To reproduce: replace the line return PyUnicode_FromFormat(range(%R, %R), r-start, r-stop); in range_repr in Objects/rangeobject.c with return PyUnicode_FromFormat(range(%20R, %20R), r-start, r-stop); On my machine (OS X 10.6), this results in a segfault when invoking range_repr: Python 3.2a0 (py3k:76311M, Nov 15 2009, 19:16:40) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright, credits or license for more information. range(0, 10) Segmentation fault Perhaps these modifiers aren't supposed to be used with a width? -- messages: 95306 nosy: mark.dickinson severity: normal status: open title: PyUnicode_FromFormat segfault when using widths. type: crash versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7330 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7325] tempfile.mkdtemp() does not return absolute pathname when dir is specified
Brett Cannon br...@python.org added the comment: It's a border case for backporting. The docs do say it should be returning an absolute path, so that is a bug. And chances are anyone who has discovered this and is working around it simply called os.path.abspath() on the value instead of some manual calculation (if at all; bigger chance no one simply noticed). My vote is to backport. Otherwise the docs should be updated for 2.6/3.1 to mention the bug. -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7325] tempfile.mkdtemp() does not return absolute pathname when dir is specified
Antoine Pitrou pit...@free.fr added the comment: I think we should be conservative. People may be relying on it *not* returning an absolute path; besides, the bug itself wasn't a problem in practice, so backporting the fix doesn't bring any added value. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7309] crasher in str(Exception())
Eric Smith e...@trueblade.com added the comment: I agree there's not much value in making the attributes read/write, but it looks like all of the exceptions allow it, so I don't really want to make these exceptions the only ones that are different. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7309 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7330] PyUnicode_FromFormat segfault when using widths.
Eric Smith e...@trueblade.com added the comment: It looks like PyUnicode_FromFormatV is computing callcount incorrectly. It's looking for 'S', 'R', or 'A' immediately following '%', before the width. It seems to me it should be treating them the same as 's', although I'll admit to not having looked at it close enough to know exactly what's going on. The whole routine could use some attention, I think. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7330 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
R. David Murray rdmur...@bitdance.com added the comment: The windows buildbots are reporting an odd error in test_runpy. I can't see by visual inspection why the test is failing: http://www.python.org/dev/buildbot/stable/builders/x86%20XP-4%20trunk/builds/2615/steps/test/logs/stdio -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Antoine Pitrou pit...@free.fr added the comment: The test is probably failing because the pattern is interpreted as a regex: re.match(r'\t', r'\t') is None True There is another problem, which is that test_runpy (or runpy itself) is now leaking references: test_runpy beginning 6 repetitions 123456 .. test_runpy leaked [56, 56, 56] references, sum=168 -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7328] pydoc doesn't work from the command line
Nick Coghlan ncogh...@gmail.com added the comment: pydoc removes the scriptdir from sys.path. When run under -m, that means it removes the standard library directory! It works in 2.x because os.popen doesn't rely on subprocess there - instead it comes direct from the builtin posix module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7328] pydoc doesn't work from the command line
Nick Coghlan ncogh...@gmail.com added the comment: Fixed in r76312 and subsequent checkins (pydoc was corrupting sys.path when run under -m and getting away with it in 2.x, but breaking os.popen in 3.x) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7328] pydoc doesn't work from the command line
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Nick Coghlan ncogh...@gmail.com added the comment: The windows errors are most likely due to the fact that I'm not doubling the backslashes in the file paths before passing them to assertRaisesRegex() as the regular expression pattern. The reference leak is also interesting, since there isn't any new C code here. Although I do add quite a few new entries to the path importer cache as part of the run_path tests - that might be enough to explain it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Nick Coghlan ncogh...@gmail.com added the comment: Hmm, definitely not the path importer cache - regrtest already takes that into account by reverting it to its original state before checking the reference counts. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7293] test_msvc9compiler test_reg_class failure on new Windows box
David Bolen db3l@gmail.com added the comment: Our last comments may have crossed, but as I mentioned in my last one, yes, as best I can tell from my slaves (XP+VS-Express, XP+VS-Standard, Win7+VS-Standard), the Visual Studio key is present in a brand new install. Note that it is not present in a brand new XP or Windows7 install, but only after Visual Studio (Express or Standard) is installed. So it comes along with Visual Studio regardless of platform, although the key does change according to VS version. I think that should be fine, since the test is only running in a Visual Studio environment to start with, so having a VS-based key should be just as good as a Windows-based key. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7298] reversed(range(x, -1, -1)) is empty when x 1
Antoine Pitrou pit...@free.fr added the comment: Not sure whether it's related, but there is now a sizeable refleak: test_range beginning 6 repetitions 123456 .. test_range leaked [150, 150, 150] references, sum=450 -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior
R. David Murray rdmur...@bitdance.com added the comment: It seems to me that all that patch does is re-enable the bug (in the extension class context) that the patch for this issue was a workaround for. I think perhaps the correct fix is to look at how the __doc__ attribute is found in the general case and see if it can be fixed there, allowing the removal of the workaround in property. See for example this sub-thread on python-dev: http://www.mail-archive.com/python-...@python.org/msg42786.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1160] Medium size regexp crashes python
Michael K Johnson a1237+pyb...@danlj.org added the comment: The test case at the top of this issue reproduces just fine; if you are looking for a different test case you'll have to specify what you don't like about it so that it's clear what you are looking for. I don't think there's any mystery about this issue; it seems perfectly well understood. I commented merely to encourage others who run into this issue to consider one way of using sets if they are running into the same case I was, in which I was trying to use a regular expression to match a candidate string against a large set of exact matches. I was doing this because the initial purpose of the interface I was working with was to allow small, hand-specified regular expressions; this interface was later additionally wrapped in code that automatically created regular expressions for this interface originally (and still also) intended for use with hand-crafted regular expressions. That's why the interface was not originally crafted to use sets, and why it was not appropriate to simply change the interface to use sets. However, my interface also allows passing a callable which resolves the object at the time of use, and so I merely passed a reference to a method which returned an object derived from set but which implemented the match and search methods. If you REALLY want a simpler reproducer, this does it for me in the restricted case (i.e., not using UCS4 encoding): import re r = re.compile('|'.join(('%d'%x for x in range(7000 But I really don't think that additional test cases are a barrier here. Again, my goal was merely to suggest an easy way to use sets as a replacement for regexps, for machine-generated regexps intended to match against exact strings; subclass set and add necessary methods such as search and/or match. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1160 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Nick Coghlan ncogh...@gmail.com added the comment: There's another cache in zipimport that wasn't being cleared when hunting refleaks. I've updated that on the trunk and will include it in the forward port to 3k (along with a fix for the Windows path separator problem). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7331] Command line testing consistency between 2.x and 3.x
New submission from Nick Coghlan ncogh...@gmail.com: I ran into a few gratuitous conflicts forward porting the command line testing cleanup. This should be eliminated by making script_helper sufficiently flexible to cover both the 2.x and 3.x use cases. -- assignee: ncoghlan components: Tests keywords: easy messages: 95322 nosy: ncoghlan priority: normal severity: normal status: open title: Command line testing consistency between 2.x and 3.x type: behavior versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6816] Provide CPython command line functionality via runpy module
Nick Coghlan ncogh...@gmail.com added the comment: Added to Py3k in r76324 (including the fixes made on 2.x after the original checkin) -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7331] Command line testing consistency between 2.x and 3.x
Changes by Nick Coghlan ncogh...@gmail.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__
Nick Coghlan ncogh...@gmail.com added the comment: Lowering priority due to implementation of explicit syntax for multiple context managers in a single with statement -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5251 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule
New submission from liang xfanli...@hotmail.com: In our testbed,we have seem serveral sgement fault in our python scrit. The enviroment is: linux=2.6.29.6-0.6.smp.gcc4.1.x86_64 python=2.4.4-41.4-1 GCC = GCC 4.1.2 20070626 (rPath Inc.)] on linux2 Below are the detail call stack: (gdb) bt #0 PyMarshal_ReadLastObjectFromFile (fp=0x73a550) at Python/marshal.c:748 #1 0x0047bbf9 in read_compiled_module (cpathname=0x7fff184ba600 /usr/lib64/python2.4/sre_constants.pyc, fp=0x73a550) at Python/import.c:728 #2 0x0047da2c in load_source_module (name=0x7fff184bc740 sre_constants, pathname=0x7fff184bb680 /usr/lib64/python2.4/sre_constants.py, fp=0x737df0) at Python/import.c:896 #3 0x0047e7bd in import_submodule (mod=0x6ea570, subname=0x7fff184bc740 sre_constants, fullname=0x7fff184bc740 sre_constants) at Python/import.c:2276 #4 0x0047ec3c in load_next (mod=0x6ea570, altmod=0x6ea570, p_name=value optimized out, buf=0x7fff184bc740 sre_constants, p_buflen=0x7fff184bc73c) at Python/import.c:2096 #5 0x0047ee47 in PyImport_ImportModuleEx (name=0x7fff18bac298 \001, globals=0x7fff18bac2bc, locals=value optimized out, fromlist=0x7fff18c90990) at Python/import.c:1931 #6 0x0045f963 in builtin___import__ (self=value optimized out, args=value optimized out) at Python/bltinmodule.c:45 #7 0x004148e0 in PyObject_Call (func=0x73a550, arg=0x73a550, kw=0x46e829e3) at Objects/abstract.c:1795 #8 0x004628fd in PyEval_CallObjectWithKeywords (func=0x7fff18ca5440, arg=0x7fff18c944c8, kw=0x0) at Python/ceval.c:3435 #9 0x0046461a in PyEval_EvalFrame (f=0x744650) at Python/ceval.c:2020 #10 0x00468ce0 in PyEval_EvalCodeEx (co=0x7fff18c95ab0, globals=value optimized out, locals=value optimized out, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2741 #11 0x00468d92 in PyEval_EvalCode (co=0x73a550, globals=0x73a550, locals=0x46e829e3) at Python/ceval.c:484 #12 0x0047d29a in PyImport_ExecCodeModuleEx (name=0x7fff184bfce0 sre_compile, co=0x7fff18c95ab0, pathname=0x7fff184bdba0 /usr/lib64/python2.4/sre_compile.pyc) at Python/import.c:636 #13 0x0047d7d0 in load_source_module (name=0x7fff184bfce0 sre_compile, pathname=0x7fff184bdba0 /usr/lib64/python2.4/sre_compile.pyc, fp=value optimized out) at Python/import.c:915 #14 0x0047e7bd in import_submodule (mod=0x6ea570, subname=0x7fff184bfce0 sre_compile, fullname=0x7fff184bfce0 sre_compile) at Python/import.c:2276 #15 0x0047ec3c in load_next (mod=0x6ea570, altmod=0x6ea570, p_name=value optimized out, buf=0x7fff184bfce0 sre_compile, p_buflen=0x7fff184bfcdc) at Python/import.c:2096 #16 0x0047ee47 in PyImport_ImportModuleEx (name=0x7fff18c8fbd0 \001, globals=0x7fff18c8fbf4, locals=value optimized out, fromlist=0x6ea570) at Python/import.c:1931 #17 0x0045f963 in builtin___import__ (self=value optimized out, args=value optimized out) at Python/bltinmodule.c:45 #18 0x004148e0 in PyObject_Call (func=0x73a550, arg=0x73a550, kw=0x46e829e3) at Objects/abstract.c:1795 #19 0x004628fd in PyEval_CallObjectWithKeywords (func=0x7fff18ca5440, arg=0x7fff18c94208, kw=0x0) at Python/ceval.c:3435 #20 0x0046461a in PyEval_EvalFrame (f=0x7b6680) at Python/ceval.c:2020 #21 0x00468ce0 in PyEval_EvalCodeEx (co=0x7fff18c95500, globals=value optimized out, locals=value optimized out, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2741 #22 0x00468d92 in PyEval_EvalCode (co=0x73a550, globals=0x73a550, locals=0x46e829e3) at Python/ceval.c:484 #23 0x0047d29a in PyImport_ExecCodeModuleEx (name=0x7fff184c3280 sre, co=0x7fff18c95500, pathname=0x7fff184c1140 /usr/lib64/python2.4/sre.pyc) at Python/import.c:636 #24 0x0047d7d0 in load_source_module (name=0x7fff184c3280 sre, pathname=0x7fff184c1140 /usr/lib64/python2.4/sre.pyc, fp=value optimized out) at Python/import.c:915 #25 0x0047e7bd in import_submodule (mod=0x6ea570, subname=0x7fff184c3280 sre, fullname=0x7fff184c3280 sre) at Python/import.c:2276 #26 0x0047ec3c in load_next (mod=0x6ea570, altmod=0x6ea570, p_name=value optimized out, buf=0x7fff184c3280 sre, p_buflen=0x7fff184c327c) at Python/import.c:2096 #27 0x0047ee47 in PyImport_ImportModuleEx (name=0x7fff18c8cc90 \001, globals=0x7fff18c8ccb4, locals=value optimized out, fromlist=0x7fff18c90450) at Python/import.c:1931 #28 0x0045f963 in builtin___import__ (self=value optimized out, args=value optimized out) at Python/bltinmodule.c:45 #29 0x004148e0 in PyObject_Call (func=0x73a550, arg=0x73a550, kw=0x46e829e3) at Objects/abstract.c:1795 #30 0x004628fd in PyEval_CallObjectWithKeywords (func=0x7fff18ca5440, arg=0x7fff18c83788, kw=0x0) at Python/ceval.c:3435 #31 0x0046461a in PyEval_EvalFrame (f=0x753bb0) at