[issue4289] Python 2.6 installer crashes when selecting 'advanced' and cancelling it
New submission from Fabio Zadrozny [EMAIL PROTECTED]: When installing python-2.6.msi it crashes when doing the following steps on a windows XP (32 bit). I'm not sure if all those steps are needed, but that's how it crashed here: - start python-2.6.msi - check 'install just for me' - change the destination directory (d:\bin\Python26) - click on 'advanced' - click on cancel - confirm cancel At this point windows presents a message: to help protect your computer, Windows has closed this program. -- components: Installation messages: 75653 nosy: fabioz severity: normal status: open title: Python 2.6 installer crashes when selecting 'advanced' and cancelling it type: crash versions: Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4289 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4288] parsermodule and grammar variable
New submission from Roumen Petrov [EMAIL PROTECTED]: After synchronization of my mingw32 cross-compilation environment with trunk some of tests fail. The reason is that parsermodule fail to link. Please check build on officially supported platform: MSVC and cygwin. The attached patch (parser-grammar.patch) solve issue in my environment. -- components: Build, Tests files: parser-grammar.patch keywords: patch messages: 75652 nosy: rpetrov severity: normal status: open title: parsermodule and grammar variable versions: Python 2.6 Added file: http://bugs.python.org/file11969/parser-grammar.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4289] Python 2.6 installer crashes when selecting 'advanced' and cancelling it
Changes by Christian Heimes [EMAIL PROTECTED]: -- assignee: - loewis components: +Windows nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4289 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3741] DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception
Bryon Roche [EMAIL PROTECTED] added the comment: This patch works in the build system I'm using as well. Can we get this in py2.6.epsilon? -- nosy: +broche type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3741 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4282] (Python3) The profile module deesn't understand the character set definition
Changes by Christian Heimes [EMAIL PROTECTED]: -- components: +Library (Lib) nosy: +christian.heimes priority: - normal stage: - test needed type: crash - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4282 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4288] parsermodule and grammar variable
Christian Heimes [EMAIL PROTECTED] added the comment: As far as I know neither cygwin nor MinGW32 are falling under the categoy of first class citizens. MinGW32 is only officially supported to build extension modules. The compilers aren't used by our build bots, too. In order to make both cygwin builds and MinGW32 compiler major platforms somebody has to step up and constantly provides testing and patches. -- components: +Windows nosy: +christian.heimes, loewis priority: - normal stage: - patch review type: - compile error versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4189] Tilde compression isn't applied in TOC
Georg Brandl [EMAIL PROTECTED] added the comment: FYI: This is now fixed in tip. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4189 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4279] Module 'parser' fails to build
Martin v. Löwis [EMAIL PROTECTED] added the comment: As Christian said in #4288: this links in a separate of metagrammar.c, which is undesirable. However, I think you can fix this by exporting Py_meta_grammar from pythonxy.dll. -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4279] Module 'parser' fails to build
Andy [EMAIL PROTECTED] added the comment: bah I *am* a idiot, #4288 and Christian's comments point out that I can't use 'find' 'xargs' properly :-( Will modify patch to use the correct grammar file c. (and maybe one day I might actually say something sensible to do with Python development :-) ) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4279] Module 'parser' fails to build
Changes by Andy [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11960/parsermodule_fix.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4279] Module 'parser' fails to build
Andy [EMAIL PROTECTED] added the comment: a new patch that will use the grammar definition from Python/graminit.c - it is as of yet untested for Cygwin (can't get to that machine right now). It follows the same pattern as the previous, i.e. it makes us of an accessor function to get the grammar definition. This has expanded the patch somewhat to include changes to: - setup.py for Cygwin environment. - Parser/pgenmain.c to write out the function body - Python/pythonrun.c to use the new function - Include/grammar.h to declare the new function - Modules/parsermodule.c to use the new function All of which makes me think that the change to make the symbol public and use it directly without hiding it is a better way to go. Will look at this under my Cygwin environment tomorrow. (I have run a configre - make - test cycle on Ubuntu (hardy heron) and it is OK [but then its not broken there anyway :-) ] ) Added file: http://bugs.python.org/file11970/nu_diff.txt ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4290] 2to3 fails with sympy
Changes by Christian Heimes [EMAIL PROTECTED]: -- assignee: - benjamin.peterson components: +2to3 (2.x to 3.0 conversion tool) nosy: +benjamin.peterson priority: - normal stage: - test needed type: - behavior versions: +Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4279] Module 'parser' fails to build
Martin v. Löwis [EMAIL PROTECTED] added the comment: That patch is too complicated. We already have meta_grammar and Py_meta_grammar, and now you also add a third function (get_PyParserGrammar) that does the same thing again. I don't see why you can't call one of the existing functions, and I fail to see the need to change pythonrun.c at all. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3741] DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception
Christian Heimes [EMAIL PROTECTED] added the comment: I'll take it from here. -- assignee: - christian.heimes components: +Windows nosy: +christian.heimes priority: - deferred blocker stage: - patch review type: behavior - compile error versions: +Python 2.7, Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3741 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4291] Allow Division of datetime.timedelta Objects
STINNER Victor [EMAIL PROTECTED] added the comment: I don't understand what do you expect with the divison. Can you give an use case and/or examples? -- nosy: +haypo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4291] Allow Division of datetime.timedelta Objects
Jeremy Banks [EMAIL PROTECTED] added the comment: Sorry, allowing for conversion to int/float is probably a more sensible solution. This idea was brought to my mind when I was making a very very simple script for a friend to display how far through a time range we currently are. For example: elapsed = datetime.timedelta(hours=4, days=3) duration = datetime.timedelta(days=30) percentage = (100 * elapsed / duration) In my case, precision wasn't important so I just divided elapsed.days by duration.days, but it would be continent to have an accurate result by just writing what I did above. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4171] SSL handshake fails after TCP connection in getpeername()
STINNER Victor [EMAIL PROTECTED] added the comment: (I tried your code on Linux and no exception is raised) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4282] (Python3) The profile module deesn't understand the character set definition
STINNER Victor [EMAIL PROTECTED] added the comment: exec() doesn't work if the argument is an unicode string. Here is a workaround for the profile module (open the file in binary mode), but it doesn't fix the exec() problem. -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file11971/profile_encoding.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4282 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4291] Allow Division of datetime.timedelta Objects
New submission from Jeremy Banks [EMAIL PROTECTED]: It would be convenient if it were possible to divide one datetime.timedelta object by another to determine their relative durations. Were the datetime module pure Python a crude solution would just be to add two methods like this: def toMicroseconds(self): return ((self.days * 24 * 60) + self.seconds * 100) + self.microseconds def __truediv__(self, other): return self.toMicroseconds() / other.toMicroseconds() However, I don't understand know the Python C API well enough to know how to patch the C module. -- components: Library (Lib) messages: 75670 nosy: Jeremy Banks severity: normal status: open title: Allow Division of datetime.timedelta Objects type: feature request ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4291] Allow Division of datetime.timedelta Objects
STINNER Victor [EMAIL PROTECTED] added the comment: The issue #1673409 may help: delta1.toseconds() / delta2.toseconds(). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4291] Allow Division of datetime.timedelta Objects
Jeremy Banks [EMAIL PROTECTED] added the comment: Thanks, I should have paid more attention to the results when I searched for duplicates. I think that Christian's suggestion of enabling float() and int() for timedeltas is worth having here, though. -- nosy: -christian.heimes ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4290] 2to3 fails with sympy
New submission from Ondrej Certik [EMAIL PROTECTED]: Download my branch of sympy from here: http://github.com/certik/sympy/tree/division3 and run the 2to3 tool with python2.5: $ python2.5 ../2to3/2to3 sympy/ [...] Traceback (most recent call last): File ../2to3/2to3, line 6, in module sys.exit(main(lib2to3.fixes)) File /home/ondra/repos/2to3/lib2to3/main.py, line 126, in main rt.refactor(args, options.write, options.doctests_only) File /home/ondra/repos/2to3/lib2to3/refactor.py, line 194, in refactor self.refactor_dir(dir_or_file, write, doctests_only) File /home/ondra/repos/2to3/lib2to3/refactor.py, line 212, in refactor_dir self.refactor_file(fullname, write, doctests_only) File /home/ondra/repos/2to3/lib2to3/refactor.py, line 235, in refactor_file tree = self.refactor_string(input, filename) File /home/ondra/repos/2to3/lib2to3/refactor.py, line 260, in refactor_string self.refactor_tree(tree, name) File /home/ondra/repos/2to3/lib2to3/refactor.py, line 299, in refactor_tree self.traverse_by(self.post_order, tree.post_order()) File /home/ondra/repos/2to3/lib2to3/refactor.py, line 323, in traverse_by new = fixer.transform(node, results) File /home/ondra/repos/2to3/lib2to3/fixes/fix_metaclass.py, line 148, in transform if not has_metaclass(node): File /home/ondra/repos/2to3/lib2to3/fixes/fix_metaclass.py, line 34, in has_metaclass return has_metaclass(node) File /home/ondra/repos/2to3/lib2to3/fixes/fix_metaclass.py, line 39, in has_metaclass if leaf_node.value == '__metaclass__': AttributeError: 'Node' object has no attribute 'value' -- messages: 75669 nosy: certik severity: normal status: open title: 2to3 fails with sympy ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4171] SSL handshake fails after TCP connection in getpeername()
Dmitry Dvoinikov [EMAIL PROTECTED] added the comment: 1.py == test.py obviously :) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4282] (Python3) The profile module deesn't understand the character set definition
STINNER Victor [EMAIL PROTECTED] added the comment: Exemple of the problem: exec('#header\n# encoding: ISO-8859-1\nprint(h\xe9 h\xe9)\n') exec(unicode) calls source_as_string() which converts unicode to bytes using _PyUnicode_AsDefaultEncodedString() (UTF-8 charset). Then PyRun_StringFlags() is called with the UTF-8 byte string with PyCF_SOURCE_IS_UTF8 flag. But in the parser, get_coding_spec() recognize the #coding: header and convert bytes to unicode using the specified charset (which may be different than UTF-8). The problem is in the function PyAST_FromNode(): the flag in not used in the tokenizer but only in the AST parser. I also see: if (flags flags-cf_flags PyCF_SOURCE_IS_UTF8) { c.c_encoding = utf-8; if (TYPE(n) == encoding_decl) { #if 0 ast_error(n, encoding declaration in Unicode string); goto error; #endif n = CHILD(n, 0); } } else if (TYPE(n) == encoding_decl) { c.c_encoding = STR(n); n = CHILD(n, 0); } else { /* PEP 3120 */ c.c_encoding = utf-8; } The ast_error() may be uncommented. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4282 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4288] parsermodule and grammar variable
Andy [EMAIL PROTECTED] added the comment: looks like it might be a similar root issue to the one I raised in #4279. Looks like this patch breaks the data hiding that I think has been attempted :-( though it doesn't mess with setup.py in the way mine does :-) Don't know how Christian's comment affects either of our patches though (still an uber newbie to the whole contributing to Python thing ;-) ) -- nosy: +kirkshorts ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4290] 2to3 fails with sympy
Benjamin Peterson [EMAIL PROTECTED] added the comment: I've fixed the first problem in r67177, but I found another one in thirdparty/pyglet. Try running with -x metaclass. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4292] 2to3 fails to convert from something import (a, b, c)
New submission from Ondrej Certik [EMAIL PROTECTED]: While converting the SymPy repo: the 2to3 failed to convert stuff like: from something import (a, b, c, ) Attached find the patch that I had to do by hand -- I think 2to3 should be able to fix this as well. -- files: import.patch keywords: patch messages: 75683 nosy: certik severity: normal status: open title: 2to3 fails to convert from something import (a, b, c) Added file: http://bugs.python.org/file11972/import.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4291] Allow Division of datetime.timedelta Objects
Christian Heimes [EMAIL PROTECTED] added the comment: That's just too weird. A long time ago I suggested to implement __int__ and __float__ on timedelta objects: int(timedelta) - seconds, float(timedelta) - seconds.micros. Then your use case could be written as float(td1) / float(td2) which is far more obvious than td1 / td2. Unfortunately I wasn't a core developer back in those days. -- nosy: +christian.heimes priority: - low ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4288] parsermodule and grammar variable
Andy [EMAIL PROTECTED] added the comment: Christian: sorry my 'find' kung fu is weak :-( :-$ I see why. Will work on a better patch. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4171] SSL handshake fails after TCP connection in getpeername()
STINNER Victor [EMAIL PROTECTED] added the comment: I'm unable to reproduce the bug on Python 3.0 svn trunk. Can you retry with Python 3.0rc2 please? -- nosy: +haypo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4171] SSL handshake fails after TCP connection in getpeername()
Dmitry Dvoinikov [EMAIL PROTECTED] added the comment: Same thing on Python 3.0rc2: C:\TEMPpython test.py worked so far Traceback (most recent call last): File 1.py, line 23, in module test_handshake(address, False) File 1.py, line 17, in test_handshake ssl.do_handshake() File C:\Python30\lib\ssl.py, line 327, in do_handshake self._sslobj.do_handshake() AttributeError: 'NoneType' object has no attribute 'do_handshake' ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4290] 2to3 fails with sympy
Ondrej Certik [EMAIL PROTECTED] added the comment: Thanks, that was quick! You can delete the thirdparty/pyglet, it's not imported by default. Then the 2to3 passes. But I found another bug: issue 4292 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4288] parsermodule and grammar variable
Christian Heimes [EMAIL PROTECTED] added the comment: Andy: Of course we like to support Cygwin and MinGW32. I wanted to make clear that the platforms aren't top priority. They aren't regularly tested by any of the core developers and build bots. Regarding data hiding, you are correct. I'm more fond of your solution #4279 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4285] Use a named tuple for sys.version_info
Christian Heimes [EMAIL PROTECTED] added the comment: I concur that bootstrapping may be a problem. Using a NamedTuple also increases the number of loaded modules by 4 (_collections.so, keyword.py and operator.so). But we could reimplement it with a PyStructSequence like I did for sys.float_info. It's straight forward and easy to implement with the example code in Object/floatobject.c:PyFloat_GetInfo(). -- nosy: +christian.heimes ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4171] SSL handshake fails after TCP connection in getpeername()
Changes by Todd Whiteman [EMAIL PROTECTED]: -- nosy: +twhitema ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4171 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4279] Module 'parser' fails to build
Martin v. Löwis [EMAIL PROTECTED] added the comment: As a style guide remark: drop the parentheses around the expression in the return statement (return is a statement, not a function), and prefix all global symbols with Py or _Py. See PEP 7 for further instructions. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4288] parsermodule and grammar variable
Andy [EMAIL PROTECTED] added the comment: Christian: Cool, thanks for the feedback d00d - it took longer than i though to get what I predicted :-) No worries on the whole core target platform thing - I understand it perfectly, had the same issue for work related things: too many platform and too few test resources :-( And sadly I am in not a position to gift any to the cause - sorry. Can I ask how it would mean that parser would get a different grammar? In the interests of a newbie learning if you don't mind (maybe post the reply to #4279 as I guess it is more relevant there than here) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com