[issue10947] imaplib: Internaldate2tuple and ParseFlags require (and latter returns) bytes arrays; should allow/return str

2011-01-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue10947> ___ ___ Python-bugs-list mailing list Un

[issue10952] Don't normalize module names to NFKC?

2011-01-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue10952> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10952] Don't normalize module names to NFKC?

2011-01-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This proposal makes sense because it would make import µTorrent behave the same as µTorrent = __import__('µTorrent') However, I think this is a feature request and a language change because the current grammar is import_stmt ::= "

[issue10952] Don't normalize module names to NFKC?

2011-01-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Jan 19, 2011 at 9:21 PM, STINNER Victor wrote: .. > New problem: if the parser doesn't normalize module names on import, it does > still > normalize module names on other instructions. > > Example: "import \xB5Torrent; d

[issue10952] Don't normalize module names to NFKC?

2011-01-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor> Ok, I think that it is possible. While it is possible, I am not sure it is a good idea. For example, if a filesystem uses encoding that is capable of distinguishing between "\xB5Torrent.py" and "\u03BCTorrent.py", sho

[issue3080] Full unicode import system

2011-01-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue3080> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10953] safely eval serialized dict/list data from arbitrary string over web with no side effects

2011-01-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > rather than serialize python dicts & list to json ... > its more efficient to just serialize w/ repr() & then use eval() Do you have benchmarks that support this claim? -- nosy: +belopolsky versions

[issue10952] Don't normalize module names to NFKC?

2011-01-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jan 20, 2011 at 1:19 AM, Martin v. Löwis wrote: .. > I'd like to request that PEP 3131 is followed as it stands: identifier lookup > uses NFKC, > period. This gives two issues: a) how can users make sure that they name the >

[issue10952] Don't normalize module names to NFKC?

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jan 20, 2011 at 8:06 AM, STINNER Victor wrote: .. >> There is also issue c) what if the filesystem encoding can only >> represent a compatibility character, say U+00B5, but not its NFKC >> equivalent, U+03BC? > > It is t

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Misc/cheatsheet has been removed in r88127. Should this be closed? -- ___ Python tracker <http://bugs.python.org/issue4

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: FWIW, I updated the first couple of pages. If anyone finds my changes useful, here they are in issue4819.diff. -- keywords: +patch Added file: http://bugs.python.org/file20476/issue4819.diff ___ Python

[issue10968] Timer class inheritance issue

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Works for me: >>> from timeit import Timer >>> class A(Timer): pass ... (Tested with Python 3.1 and 3.2 on OSX.) -- nosy: +belopolsky ___ Python tracker <http://bugs.

[issue10947] imaplib: Internaldate2tuple and ParseFlags require (and latter returns) bytes arrays; should allow/return str

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jan 20, 2011 at 10:08 PM, R. David Murray wrote: .. > (*) The asymetry in the names of these two functions is already a wart. Not to mention the use of CamelCase. -- ___ Python tracker &l

[issue10572] Move test sub-packages to Lib/test

2011-01-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Changing the title to reflect broader scope of this issue. Json tests were moved to Lib/test/json_tests in r86875. -- title: Move unittest test package to Lib/test -> Move test sub-packages to Lib/t

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Two nitpicks: 1. To avoid repetition, I would now define Mon2num as Mon2num = dict(zip(_month_names, range(1, 13))) 2. Please keep lines under 79 characters long. This does not seem important enough to push to RC2, but if you think otherwise please

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Also, isn't day supposed to be space- rather than 0- padded? -- ___ Python tracker <http://bugs.python.org/is

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jan 28, 2011 at 2:44 PM, Alexander Belopolsky wrote: .. > Also, isn't day supposed to be space- rather than 0- padded? To the best of my understanding, rfc 2060 requires space-padded day (strftime code %e): """ date_day_

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would write the formatting code as follows: ('"%2d-%s-%04d %02d:%02d:%02d %+03d%02d"' % ((tt[2], _month_names[tt[1]], tt[0]) + tt[3:6] + divmod(zone//60, 60))) The above also assumes that month names are stored in a 1-based

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: belopolsky -> georg.brandl ___ Python tracker <http://bugs.python.org/issue10939> ___ ___ Python-bugs-list mai

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch fixes the test (hopefully we don't have to support systems with non-POSIX epoch) and cleans up whitespace. -- resolution: -> accepted stage: patch review -> commit review Added file: http://bugs.python.org/file20604

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file20604/issue10939.diff ___ Python tracker <http://bugs.python.org/issue10939> ___ ___ Python-bug

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file20605/issue10939.diff ___ Python tracker <http://bugs.python.org/issue10939> ___ ___ Python-bug

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 88231. -- ___ Python tracker <http://bugs.python.org/issue10939> ___ ___ Python-bugs-list mailin

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Merged to 3.1 in r88233. -- nosy: +benjamin.peterson resolution: accepted -> fixed stage: commit review -> committed/rejected versions: +Python 3.1 ___ Python tracker <http://bugs.python.org/i

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like my test is not robust enough: http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.1/builds/298 -- ___ Python tracker <http://bugs.python.org/issue10

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Some systems don't like times too close to epoch. Fixed in revision 88239. -- ___ Python tracker <http://bugs.python.org/is

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue10939> ___ ___ Python-bugs-list mailing list Un

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Jan 29, 2011 at 5:48 PM, Joe Peterson wrote: .. > Note that this also exposes another problem with Time2Internaldate(), since > it uses > time.timezone/time.altzone, which are only valid for the current rules, not > old rules as i

[issue9527] Add aware local time support to datetime module

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Time zone-capable variant of time.localtime ___ Python tracker <http://bugs.python.org/issue9527> ___ ___ Pytho

[issue9527] Add aware local time support to datetime module

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +No obvious and correct way to get the time zone offset ___ Python tracker <http://bugs.python.org/issue9

[issue1667546] Time zone-capable variant of time.localtime

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue1667546> ___ ___ Python-bugs-list mailing list Un

[issue1647654] No obvious and correct way to get the time zone offset

2011-01-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue1647654> ___ ___ Python-bugs-list mailing list Un

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Jan 29, 2011 at 4:45 PM, Joe Peterson wrote: .. > I have added code that sets the TZ to one that works, and then reverts the > temporary > TZ change after the test. > Your test will not restore TZ if it fails. This is not nice.

[issue9527] Add aware local time support to datetime module

2011-01-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Jan 29, 2011 at 11:56 PM, Raymond Hettinger wrote: .. > Also, I question whether the proposed API is correct.  ISTM that any code > that sets the *dst* > parameter is guaranteed to be wrong (hardwiring-in a value that will change &g

[issue11048] "import ctypes" causes segfault on read-only filesystem

2011-01-30 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It would be nice to add a unit test to this patch. I don't think messing with read-only filesystems is feasible in regrtest, but it seems from reading _ctypes_alloc_callback() source that similar behavior can be triggered by passing a fa

[issue11071] What's New review comments

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Please consider mentioning that several modules can now be called with -m: pickle, pickletools and tkinter. -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue11

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The proposed patch looks fine to me, but it is attached to the wrong issue. It belongs to #8973 or better yet to follow RC2 rules pedantically, it should be posted in a separate issue. This is important, because this issue is limited to docstrings and

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Wait, #8973 *is* this issue. But r81947 is clearly not about docstrings. We definitely need a saparate issue. This is too confusing. -- ___ Python tracker <http://bugs.python.org/issue8

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- Removed message: http://bugs.python.org/msg127607 ___ Python tracker <http://bugs.python.org/issue8973> ___ ___ Python-bug

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Wait, #8973 *is* this issue. But r81947 is clearly not only about docstrings. We definitely need a separate issue. This is too confusing. -- ___ Python tracker <http://bugs.python.org/issue8

[issue1252236] Simplying Tkinter's event loop

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +PythonInTheGrass -BreamoreBoy resolution: wont fix -> status: closed -> open ___ Python tracker <http://bugs.python.org/iss

[issue11077] Tkinter is not thread safe

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: One possible solution was presented in issue1252236: move tkinter event loop into Python main loop. However, to consider this report a bug, we need an example code that shows the behavior that you consider incorrect. Even then, it is likely that

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +1. This is a fairly common mistake. Usually benign, but as issue 8973 shows, may highlight a visible error. -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue11

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Jan 31, 2011 at 12:09 PM, R. David Murray wrote: .. > On linux, the dups are putenv and unsetenv.  And yes, deeper investigation of > why > os.py is adding them is required to fix this :) Too bad __all__ cannot be specified

[issue11081] from struct import * misses pack_into

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would say if anything can go in after rc2 at all, this should be accepted. George? I ran a few sanity checks with the patch applied: >>> set(struct.__all__) - set(dir(struct)) set() >>> set(dir(struct)) - set(struct.__all__) {'

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +from struct import * misses pack_into ___ Python tracker <http://bugs.python.org/issue11078> ___ ___ Python-bug

[issue11081] from struct import * misses pack_into

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: -> commit review ___ Python tracker <http://bugs.python.org/issue11081> ___ ___ Python-bugs-list mailing list Un

[issue8176] Interpreter crash with "double free or corruption" message

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file16584/unnamed ___ Python tracker <http://bugs.python.org/issue8176> ___ ___ Python-bugs-list m

[issue8176] Interpreter crash with "double free or corruption" message

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file16615/unnamed ___ Python tracker <http://bugs.python.org/issue8176> ___ ___ Python-bugs-list m

[issue8176] Interpreter crash with "double free or corruption" message

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like the bug cannot be reproduced anymore. Since it was discovered using a python instance with third-party extension modules, it may not even be a python bug to begin with. -- assignee: -> belopolsky nosy: +belopol

[issue7358] cPickle crash on failed assertion

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Ryan, Do you still have the setup that can reproduce this error? If so, can you try running it with pickle rather than cPickle? If it works with pickle, please see if you can reproduce the error by unpickling the result of pickle and repickling it

[issue9197] Crash when importer an extension after Py_Initialize, Py_Finalize and Py_Initialize

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17899/unnamed ___ Python tracker <http://bugs.python.org/issue9197> ___ ___ Python-bugs-list m

[issue9197] Crash when importing an extension after Py_Initialize, Py_Finalize and Py_Initialize

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Amaury, Can you post your Linux code reproducing the issue? I would like to take a look, but don't want to dig through an XCode project. -- assignee: -> belopolsky nosy: +belopolsky title: Crash when importer an extension after Py_In

[issue8176] Interpreter crash with "double free or corruption" message

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor, I was thinking about pointing the OP to your faulthandler module, but decided not to because in the failing thread python has already finished execution and most of finalization. It is very unlikely that faulthandler will be helpful in this

[issue11077] Tkinter is not thread safe

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Hmm, either my hand is too slow or my laptop is too fast, but I cannot reproduce the crash. Can you create a non-interactive script? Maybe start a separate thread generating "launch" events? What do you mean by "crash"? Do you ge

[issue11077] Tkinter is not thread safe

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I converted TkinterCrash2.py to 3.x using 2to3 (result attached as TkinterCrash3.py) and it works with 3.2rc2 just fine. -- Added file: http://bugs.python.org/file20632/TkinterCrash3.py ___ Python tracker

[issue11081] from struct import * misses pack_into

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 88280. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It is unfortunate that the cute name for the tool is not valid as a module name. How about renaming "lib2to3" to "to3". The offending leading digit is strictly redundant (there is no 1to3 after all).

[issue1215] Python hang when catching a segfault

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The consensus is that this is not a crash (and not even a bug). I am not sure what is the proper type for doc enhancement, but is certainly should not show up in a search for crashers. -- components: -Interpreter Core nosy: +belopolsky type

[issue886488] popen2 on Windows does not check _fdopen return value

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: unit test needed -> needs patch title: WinPython 2.3.3 crashes using popen2 to spawn lots of child -> popen2 on Windows does not check _fdopen return value ___ Python tracker <http://bugs.p

[issue7074] Turtle module crashes python

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I can reproduce the crash on OSX. After ~ 100 keystrokes, I get the following diagnostics: Exception in Tkinter callback Traceback (most recent call last): File "/Users/sasha/Work/python-svn/py3k-commit/Lib/tkinter/__init__.py", line

[issue7074] Turtle module crashes python

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This looks like a duplicate of issue11029. It is not safe to call graphic primitives in event callbacks. A workaround is described at <http://effbot.org/zone/tkinter-threads.htm>. -- resolution: -> duplicate stage: -> commit

[issue7330] PyUnicode_FromFormat segfault

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Unicode nosy: +haypo ___ Python tracker <http://bugs.python.org/issue7330> ___ ___ Python-bugs-list mailin

[issue7574] PyUnicode_FromFormat broken and not documented for 2.x

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Documentation part of this issue will be addressed in #10435. -- nosy: +belopolsky resolution: -> duplicate stage: needs patch -> committed/rejected superseder: -> PyUnicode_FromFormat segfault _

[issue11033] ElementTree.fromstring doesn't work with Unicode

2011-02-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This works in 3.x: Python 3.2rc2+ (py3k:88279:88280, Feb 1 2011, 00:01:52) .. >>> from xml.etree import ElementTree >>> ElementTree.fromstring('诗') In 2.x you need to encode unicode strings before passing them to El

[issue11033] ElementTree.fromstring doesn't work with Unicode

2011-02-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Feb 2, 2011 at 11:10 AM, STINNER Victor wrote: .. > We can explain in ElementTree documentation how to pass non-ASCII unicode > strings: using > explicit encoding to UTF-8. ElementTree.fromstring() ultimately calls ElementTree.XMLPa

[issue2733] mmap resize fails on anonymous memory

2011-02-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't see an actual crash reported. An unexpected exception is not a crash. Changing the type to "behavior". -- nosy: +belopolsky type: crash -> behavior ___ Python tracker <h

[issue10762] strftime('%f') segfault

2011-02-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Extension Modules, Windows -Library (Lib) ___ Python tracker <http://bugs.python.org/issue10762> ___ ___ Pytho

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2011-02-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Unexpected exception is not a crash. Changing the type to "behavior." -- nosy: +belopolsky type: crash -> behavior ___ Python tracker <http://bugs.pytho

[issue4724] setting f_exc_traceback aborts in debug builds

2011-02-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Not applicable to 3.x because the frame object does not have f_exc_traceback attribute anymore: >>> import sys;sys._getframe(0).f_exc_traceback = 23 Traceback (most recent call last): File "", line 1, in AttributeError: &#

[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2011-02-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The issue is not Windows specific, so I am changing the title to reflect that. On OSX, for example, I get $ PYTHONIOENCODING=xyz ./python.exe Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding

[issue7111] abort when stderr is moved

2011-02-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > If we want to allow for closed {stdin, stdout, stderr}, I'm not sure > what the semantics should be. Should sys.std{in, out, err} be None? Or a > file object which always throws an error? I would say it should be a *pseudo*-file objec

[issue7111] abort when stderr is closed

2011-02-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On the second thought, as long as python used fd 2 as the "message stream of last resort", we should probably not allow it to run with fd 2 closed. The problem is that in this case fd 2 may become associated with a very important file content

[issue9592] Limitations in objects returned by multiprocessing Pool

2011-02-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue9592> ___ ___ Python-bugs-list mailing list Un

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Looks like a stack overflow caused by an infinite recursion. I am not sure if it is possible to add cycle detection code without sacrificing performance or setting some arbitrary limits. I wonder: Why ast nodes need to be mutable? -- nosy

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Feb 3, 2011 at 12:08 PM, Benjamin Peterson wrote: .. >> I wonder: Why ast nodes need to be mutable? > > So people can change them. Well, they are hashable, so this needs to be done carefully. Is this necessary for AST-based optimiza

[issue11107] Cache constant "slice" instances

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Similar idea has been rejected in issue2268 because the win was too small to justify the number of changes that had to be made. -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue11

[issue7111] abort when stderr is closed

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Feb 3, 2011 at 2:44 PM, Antoine Pitrou wrote: .. >> Do you know of places where we use fd 2 instead of sys.stderr? > > We normally don't. One reason is that buffering inside sys.stderr can > make ordering of output incor

[issue7111] abort when stderr is closed

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > On Thu, Feb 3, 2011 at 2:44 PM, Antoine Pitrou wrote: > .. >> Do you know of places where we use fd 2 instead of sys.stderr? > > We normally don't. Hmm, grep "fprintf(stderr," returned 122 hits in the py3k branch.

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Build type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue9045> ___ ___ Python-bugs-lis

[issue8637] pydoc should respect MANPAGER over PAGER.

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Feb 3, 2011 at 7:09 PM, Éric Araujo wrote: > > Éric Araujo added the comment: > > Is there a standard documenting MANPAGER somewhere? > Not really a standard, but man page for man on my OSX laptop says: "

[issue3367] Uninitialized value read in parsetok.c

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't have a working valgrind or purify, but I was able to reproduce the problem using a poor man's solution of adding assert(0xcbcbcbcbcbcbcbcb != tok->line_start); before if (a >= tok->line_start) With th

[issue3367] Uninitialized value read in parsetok.c

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: George, This is not really important enough to get into the 3.2 release, but uninitialized variable bugs tend to be nasty when they bite you, so I'll ask your opinion before bumping the version. -- assignee: -> georg.bra

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Feb 3, 2011 at 7:39 PM, Éric Araujo wrote: .. > Justin: what exactly is a pager that does not support man pages? I may know the answer to this one. A common PAGER setting is "less -rs" which makes less skip whitespace lines and p

[issue11111] See "Gmail" on your Google homepage

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Spam. -- nosy: +belopolsky -renben status: open -> closed ___ Python tracker <http://bugs.python.org/issue1> ___ _

[issue11110] Py_DECREF->Py_XDECREF in Module/_sqlite/module.c

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It may be clearer and match Python coding style better to fix it as follows: Index: Modules/_sqlite/module.c === --- Modules/_sqlite/module.c(revision 88320) +++ Modules/_sqlite

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue10419> ___ ___ Python-bugs-list mailing list Un

[issue2437] Distutils runtime_library_dirs broken on Windows

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue2437> ___ ___ Python-bugs-list mailing list Un

[issue7100] test_xmlrpc: global name 'stop_serving' is not defined

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue7100> ___ ___ Python-bugs-list mailing list Un

[issue9756] Crash with custom __getattribute__

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is a somewhat more straightforward way to reproduce the problem: >>> class X: ...__class__ = int ... [55910 refs] >>> isinstance(X(), int) True [55914 refs] >>> int.bit_length(X()) Assertion failed: (PyLong_Check(v)

[issue10042] total_ordering stack overflow

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/issue10042> ___ ___ Python-

[issue3367] Uninitialized value read in parsetok.c

2011-02-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Feb 4, 2011 at 11:35 AM, Georg Brandl wrote: >.. But seeing the history of this case, I don't want to play around here >before 3.2 final. Here is my understanding of the history of this case: tmp1.patch was applied in r65539 and

[issue3367] Uninitialized value read in parsetok.c

2011-02-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: georg.brandl -> belopolsky ___ Python tracker <http://bugs.python.org/issue3367> ___ ___ Python-bugs-list mai

[issue11188] test_time error on AIX

2011-02-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue11188> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11188] test_time error on AIX

2011-02-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have come across the following post: http://code.google.com/p/y2038/wiki/AmazingDiscoveries I think some of the findings there may be relevant as we push the boundaries of supported time values

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sébastien, Can you tell us what time.localtime(t) produces for t in (-2, -1, 0, 1)? Apparently time.mktime() fails on values produced by time.localtime() and this sounds like a platform bug. It is OK to restrict time_t to positive values, but in

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like different standards have different requirements for localtime() error handling compare: http://pubs.opengroup.org/onlinepubs/009695399/functions/localtime.html and http://pubs.opengroup.org/onlinepubs/7990989775/xsh/localtime.html The

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 2011/2/15 Sébastien Sablé : .. >>>> for t in (-2, -1, 0, 1): > ...     print(time.localtime(t)) > ... > time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=59, > tm_sec=58, tm_wday=3, tm_yday=1, tm_isdst=0) ..

[issue1726687] Bug found in datetime for Epoch time = -1

2011-02-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Backported in r88425 (3.1) and r88427 (2.7). -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue1

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2011-02-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor, I don't see your patch. Did you remove it? -- type: -> behavior ___ Python tracker <http://bugs.python.or

<    5   6   7   8   9   10   11   12   13   14   >