[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2010-09-03 Thread Steve Thompson
Steve Thompson added the comment: Any idea if this will be fixed (at all) and/or back ported to 2.6.x or 2.7.x? On Fri, Sep 3, 2010 at 3:36 PM, Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > > This is still the case: on Windows, if foo.py is readonly, >python -

[issue9764] Tools/buildbot/external.bat should download and built tix

2010-09-03 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : external.bat and external-common.bat take care of downloading most external packages such as tcl, tk, and openssl. However, the tix package is missing, but needed to build the msi. -- components: Build, Windows messages: 115503 nosy: loewis, stut

[issue9765] tcl-8 vs tcl8

2010-09-03 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : Tools/buildbot/external-common.bat creates tcl-8.5.2.1, but Tools/msi/msi.py looks for tcl8*. Consequently, Tools/buildbot/buildmsi.py does not work on a fresh machine. tk has the same problem. I encountered this on the py3k branch but have not checked

[issue9766] warnings has "onceregistry" and "once_registry"

2010-09-03 Thread Antoine Pitrou
New submission from Antoine Pitrou : The warnings module has both "onceregistry" and "once_registry", while _warnings only has the latter. There's probably a typo. -- assignee: brett.cannon components: Library (Lib) messages: 115505 nosy: brett.cannon, pitrou priority: normal severity:

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: PATCH Specifically, in section 17.6. base64..., near bottom, example should be >>> import base64 >>> encoded = base64.b64encode(b'data to be encoded') #hang >>> encoded b'ZGF0YSB0byBiZSBlbmNvZGVk' >>> data = base64.b64decode(encoded) >>> data b'data to be encod

[issue1303434] Please include pdb with windows distribution

2010-09-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Attached is a slightly improved patch. It cleans up some whitespace issues with James's patch and filters out *_d.pdb files if they exist. I tested it on my system and it correctly produces a .zip file containing the .pdb files, next to the .msi file Mar

[issue9766] warnings has "onceregistry" and "once_registry"

2010-09-03 Thread Brett Cannon
Brett Cannon added the comment: "defaultaction" and "default_action" is in the same situation. I think there may have been a circular import/ref problem as _warnings pulls from warnings the objects to use for the variables in question. Or at least that's what makes sense. =) That means the _

[issue9761] stale .pyc files aren't cleaned out

2010-09-03 Thread Brett Cannon
Brett Cannon added the comment: This could still be an issue with the .pyc files being set with permissions that prevent them from being re-generated. Double-check the .pyc files are read-write and have the proper owners to allow them to be overwritten. -- ___

[issue9766] warnings has "onceregistry" and "once_registry"

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That means the _warnings versions should simply be renamed to > "_onceregistry" and "_defaultaction" instead of their current names. > Work for you? Certainly. -- ___ Python tracker

[issue9766] warnings has "onceregistry" and "once_registry"

2010-09-03 Thread Brett Cannon
Brett Cannon added the comment: OK, so I will fix this in 3.2 but not any other versions as someone might be foolishly relying on the name. Hopefully I can get to this over the weekend. -- keywords: +easy versions: -Python 2.7, Python 3.1 ___ Pytho

[issue9767] Failures in json doc examples

2010-09-03 Thread Terry J. Reedy
New submission from Terry J. Reedy : I ran doctest on LibRef 17.2 json saved as .txt. There are 4 failures: 2 are clearly doc issues, the other 2 I do not know. I hope someone reads this who is already familiar DOC PATCHES dumps(2 + 1j, cls=ComplexEncoder) should be json.dumps(2 + 1j,

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: As an experiment, I ran doctest on 17.2 json saved as .txt, See #9767 4 failures, 2 obvious doc faults, 2 unclear to me. Their were 2 similar doc faults in non-interactive code examples, so doctest is not enough to catch all bad code. We clearly need to do thi

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-03 Thread Craig de Stigter
Craig de Stigter added the comment: Yes, the bug still exists in Python 3.1.2. However, struct.pack() no longer silently ignores overflow, so I get this error instead: >>> z.write('foo.txt') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.1/zipfile.py", line

[issue8678] crashers in rgbimg

2010-09-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9756] Crash with custom __getattribute__

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: >>> class Spam(object): ... def __getattribute__(self, name): ... if name == '__class__': ... return str ... raise AttributeError ... >>> spam = Spam('spam') >>> isinstance(spam, str) True isinstance(spam, str) calls str.__insta

[issue9768] IDLE / Black frame in active window

2010-09-03 Thread Kristoffer F
New submission from Kristoffer F : Hi I am new to python and have installed python 3.1.2. I have began using IDLE and like it very good. But when an IDLE window is active. There is a "thick" black frame around the white text field. Is this a know issue? And is there some way I can get rid

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: Fixed encoding error in r84472 through r84474. This bug should be reassessed and retitled. If untabify fails because a file has an incorrect encoding, is it really a problem in untabify? This is a developer’s tool, so getting a traceback here seems okay to me. A

[issue9768] IDLE / Black frame in active window

2010-09-03 Thread Kristoffer F
Kristoffer F added the comment: Hi I am new to python and have installed python 3.1.2. I have began using IDLE and like it very good. But when an IDLE window is active. There is a "thick" black frame around the white text field. Is this a know issue? And is there some way I can get rid of

[issue9739] Output of help(...) is wider than 80 characters

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Although this is not a problem in IDLE where the window can easily be expanded beyond 80 chars, I am in favor of the idea for other uses. The command line interpreter on Windows defaults to 80 chars and is not so easy to change, and one must be admin to make

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: It seems there are three ways of testing the docs: 1) ./python -m doctest Doc/library/json.rst 2) make doctest (a.k.a. sphinx-build -b doctest) 3) http://sphinx.pocoo.org/ext/doctest.html Manually running 1) or 2) and fixing things seems okay for a first step, an

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: Note also that some docs (turtle) require running Tcl, which may be unwanted on headless machines like buildbots. -- ___ Python tracker ___ __

[issue9767] Failures in json doc examples

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: r84481 should fix all except the whitespace one. I don't think this is worth fixing; I will not add a trailing whitespace to the docs, and adding a "doctest: NORMALIZE_WHITESPACE" directive does not help readability, especially since nobody actually runs these

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Better specifying requirements is good. A few comments: - The second argument is an error message; it is converted to a string object. + The second argument is an error message; it is decoded to a string object + with ``'utf-8'`` encoding. I would write

[issue9760] Suggestion for improving with documentation

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: Actually, the with_item contains the context expression *and* the optional "as target" clause, so they are not equivalent I committed a clarification in r84482. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-03 Thread Łukasz Langa
Łukasz Langa added the comment: On IRC Fred asked: > Why are delimiters and comment_prefixes in the constructor signatures? Like most configurable options, they were added to the initializer one by one (after `allow_no_value`). Only later did I notice that actually things like optionxform, _b

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: Generally: +1 on making sure examples in the docs are up to date. If someone wants to do the tedious work of making sure that a "make doctest" succeeds, I'm all for it, it may involve adding a few (in HTML output invisible) testsetup blocks. Eric: I'm not sur

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > If untabify fails because a file has an incorrect encoding, is it really > a problem in untabify? This is a developer’s tool, so getting a > traceback here seems okay to me. I disagree. I think we should use this opportunity to clarify preferred encod

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: I agree with msg115525. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Generally: +1 on making sure examples in the docs are up to date. If > someone wants to do the tedious work of making sure that a "make > doctest" succeeds, I'm all for it, it may involve adding a few (in > HTML output invisible) testsetup blocks. I'm not su

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: 2) works without changing anything, 3) requires using specific directives IIUC. -- ___ Python tracker ___ _

[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: See #9293, where there's a patch. -- resolution: -> duplicate status: open -> closed superseder: -> Unsupported IO operations should raise UnsupportedOperation ___ Python tracker

[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +skrah, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: >> Generally: +1 on making sure examples in the docs are up to date. If >> someone wants to do the tedious work of making sure that a "make >> doctest" succeeds, I'm all for it, it may involve adding a few (in >> HTML output invisible) testsetup blocks. > > I'm

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: > 2) works without changing anything, 3) requires using specific directives > IIUC. No. The doctest extension is what "make doctest" calls. -- ___ Python tracker _

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: I agree about the need to define the encoding for comments. My vote goes to #2, since I wouldn’t want to see names of authors/contributors mangled in the source. I would reconsider if a specification explicitly forbade that. I repeat that the title of this bug i

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks for clearing this misunderstanding of mine. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue8678] crashers in rgbimg

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: I am able to reproduce the crash with z > 4: # (magic, type (rle, bpp), dim, x, y, z) open('image', 'wb').write(struct.pack('>hh', 0732, 1, 1, 1, 1, 10)) rgbimg.longimagedata('image') -- But not the "xsize = ysize = 0x8000" integer overflow. longimagedata

[issue8273] move generally useful test_support functions into the unittest package

2010-09-03 Thread Florent Xicluna
Florent Xicluna added the comment: Issue #9754 proposes to implement assertWarns / assertWarnsRegexp -- dependencies: +assertWarns and assertWarnsRegexp ___ Python tracker ___ __

[issue8273] move generally useful test.support functions into the unittest package

2010-09-03 Thread Florent Xicluna
Changes by Florent Xicluna : -- title: move generally useful test_support functions into the unittest package -> move generally useful test.support functions into the unittest package ___ Python tracker ___

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-09-03 Thread Florent Xicluna
Florent Xicluna added the comment: I propose to close this, since 2.7 is released and the situation is better in Python 3. -- resolution: -> wont fix status: open -> pending ___ Python tracker ___

[issue9763] Crashes upon run after syntax error encountered in OSX 10.5.8

2010-09-03 Thread Ned Deily
Ned Deily added the comment: Following your test case, I am able to produce a deadlocked IDLE when using the python.org 3.1.2 OS X installer on 10.5.8 when using just the Apple-supplied Tk 8.4 framework. After installing a recent ActiveState Tcl/Tk 8.4 framework (the python.org installers ar

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I wouldn’t want to see names of authors/contributors mangled > in the source. This is a reason to write names in ASCII. While Latin-1 is a grey area because most of it's characters look familiar to English-speaking developers, I don't think you will

[issue9767] Failures in json doc examples

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Well, anyone who does try that example will see the correct output and not notice the trailing whitespace difference. It will only be an issue if and when automated doc doctests are run repeatedly. Worry about it then. Thanks for the quick response.

[issue2122] mmap.flush does not check for errors on windows

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, tim.golden versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list maili

[issue9535] Pending signals are inherited by child processes

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Interpreter Core -Extension Modules nosy: +gregory.p.smith stage: -> patch review versions: +Python 3.1, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker ___

[issue2122] mmap.flush does not check for errors on windows

2010-09-03 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-09-03 Thread STINNER Victor
New submission from STINNER Victor : I'm trying to document the encoding of all bytes argument of the C API: see #9738. I tried to understand which encoding is used by PyUnicode_FromFormat*() (and PyErr_Format() which calls PyUnicode_FromFormatV()). It looks like ISO-8859-1, see unicodeobject.

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: About PyErr_Format() and PyUnicode_FromFormat*() encoding: it's not exactly ISO-8859-1... there is a bug => issue #9769. -- ___ Python tracker

[issue9770] curses.isblank function doesn't match ctype.h

2010-09-03 Thread Kevin Thibedeau
New submission from Kevin Thibedeau : The isblank() function defined in curses.ascii is incorrect and doesn't match the output from C's isblank() from ctype.h Incorrect definition: def isblank(c): return _ctoi(c) in (8,32) Should be: def isblank(c): return _ctoi(c) in (9,32) This most lik

[issue8734] msvcrt get_osfhandle crash on bad FD

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should this be checked in? -- nosy: +pitrou versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue6916] Remove deprecated items from asynchat

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: josiahcarlson -> giampaolo.rodola stage: -> patch review versions: -Python 3.0, Python 3.1 ___ Python tracker ___ __

[issue8594] Add a "source_address" option to ftplib

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue8597] build out-of-line asm on Windows

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9630] Reencode filenames when setting the filesystem encoding

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: Another possibility is to use _Py_char2wchar() + PyUnicode_FromWideChar() / _Py_wchar2char() + PyUnicode_AsWideChar() to decode / encode filenames. These functions use the locale encoding. This solution was possible in Python 3.1, but no more in Python 3.2 be

[issue8401] Strange behavior of bytearray slice assignment

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: unit test needed -> patch review versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-li

[issue9632] Remove sys.setfilesystemencoding()

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: > In such environments you cannot expect the user to configure the > system properly (i.e. set an environment variable). Why would it be different for embeded python? > Instead, the application has to provide an educated guess > to the Python interpreter in s

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: >> I wouldn’t want to see names of authors/contributors mangled >> in the source. > > This is a reason to write names in ASCII. Oh, sorry, by “mangled” I meant “forced into ASCII”. I was not speaking about mojibake. > While Latin-1 is a grey area because most o

[issue6394] getppid support in os module on Windows

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, tim.golden stage: -> patch review versions: +Python 3.2 -Python 2.7 ___ Python tracker ___ ___

[issue8597] build out-of-line asm on Windows

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: I have a hard time reading old-style diffs, so a unified diff would be a win. Alternatively, a Mercurial clone URI would do. Can someone confirm this is a duplicate of #7546 as hinted by Stefan or explain the difference? I’m a bit too sleepy to do that and anywa

[issue7546] msvc9compiler.py: add .asm extension

2010-09-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +josip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue9756] Crash with custom __getattribute__

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: PyUnicode_Check(op) checks op->ob_type->tp_flags & Py_TPFLAGS_UNICODE_SUBCLASS. -- ___ Python tracker ___ __

[issue4905] Use INVALID_FILE_ATTRIBUTES instead of magic numbers

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Extension Modules, Windows -Interpreter Core nosy: +brian.curtin, tim.golden stage: -> patch review versions: +Python 3.2 -Python 2.7 ___ Python tracker _

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue3899] test_ssl.py doesn't properly test ssl integration with asyncore

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: This has been integrated long ago. -- nosy: +pitrou resolution: -> out of date status: open -> closed ___ Python tracker ___ __

[issue9756] Crash with custom __getattribute__

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: I have different questions: - Should we trust PyObject_IsInstance() or PyUnicode_Check() (because they give different results)? - Should PyObject_IsInstance() and PyUnicode_Check() give the same result? - Should we fix the segfault? To fix the segfault, I s

[issue1552880] [Python2] Use utf-8 in the import machinery on Windows to support unicode paths

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: Oh, I didn't see that the issue was specific to Python2. I updated the issue's title. If I understood correctly, the issue is also specific to Windows. Do you know if your patch changes the public API? (break the compatibility) -- FYI about Python3: > That'

[issue9768] IDLE / Black frame in active window

2010-09-03 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg115516 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9768] IDLE / Black frame in active window

2010-09-03 Thread Ned Deily
Ned Deily added the comment: I am not sure what problem you are seeing. How did you install Python 3.1.2? Using the python.org 3.1.2 installer for OS X? MacPorts? From source? If so, which version of Tcl/Tk is IDLE using? Perhaps you can take a screen shot (/Applications/Utilities/Grab.a

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: My question in IRC wasn't intended to mean "why are we passing settings to the constructor" so my much as "why are these configuration settings"; sorry I wasn't clear. Have we encountered actual use cases that are not covered by the existing code? I don

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Regardless, my concerns about including delimiters and comment_prefixes as settings is irrelevant to this issue. The changes to them probably shouldn't have been part of this issue to begin with, but I'll try not to lose sleep over it at this point. ---

[issue9770] curses.isblank function doesn't match ctype.h

2010-09-03 Thread Ned Deily
Changes by Ned Deily : -- nosy: +akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue9770] curses.isblank function doesn't match ctype.h

2010-09-03 Thread Ned Deily
Changes by Ned Deily : -- versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8597] build out-of-line asm on Windows

2010-09-03 Thread Samuel Neves
Samuel Neves added the comment: I was unaware of patch #7456 when this was submitted. As far as I can tell, there is no difference and no reason to maintain both. -- nosy: +sneves ___ Python tracker __

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: The patch has been commited largely as-is (r84486). I'm not happy with the documentation yet: - Markup like this: .. method:: ConfigParser.getint(section, option, raw=False, [vars, default]) doesn't sit well with me. I'm going to d

[issue8734] msvcrt get_osfhandle crash on bad FD

2010-09-03 Thread Pascal Chambon
Pascal Chambon added the comment: I guess it should, shouldn't it ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

<    1   2