[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

[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

[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 __

[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

[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

[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. ---

[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

[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

[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

[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'

[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

[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 ___ __

[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

[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 _

[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 ___ __

[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/

[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

[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 ___ ___

[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

[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

[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

[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

[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

[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

[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 ___ __

[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 ___ ___

[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

[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

[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.

[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

[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 Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, tim.golden versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list maili

[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.

[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

[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

[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 ___

[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 ___

[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 ___ __

[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

[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

[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 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 _

[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

[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

[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

[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 ___ _

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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 ___ __

[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

[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

[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

[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
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

[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

[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

[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

[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

[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,

[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

[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

[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 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 _

[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

[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

[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:

[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

[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

[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 -

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

2010-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is still the case: on Windows, if foo.py is readonly, python -c "import foo" generates foo.pyc with the readonly attribute. Tested with 3.1 and current py3k (where the file is named __pycache__\foo.cpython-32.pyc) -- nosy: +amaury.forge

[issue8746] *chflags detection broken on FreeBSD 9-CURRENT

2010-09-03 Thread Nick Dowell
Changes by Nick Dowell : Added file: http://bugs.python.org/file18738/8746-2.6.6.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8746] *chflags detection broken on FreeBSD 9-CURRENT

2010-09-03 Thread Nick Dowell
Changes by Nick Dowell : Added file: http://bugs.python.org/file18737/8746-2.7.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8746] *chflags detection broken on FreeBSD 9-CURRENT

2010-09-03 Thread Nick Dowell
Changes by Nick Dowell : -- keywords: +patch Added file: http://bugs.python.org/file18736/8746-3.1.2.patch ___ Python tracker ___ ___ P

[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: So what's the current status of this on Windows Platforms? -- nosy: +Steve.Thompson ___ Python tracker ___ _

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

2010-09-03 Thread Steve Thompson
Steve Thompson added the comment: Hmmm... this definitely sounds like the issue for version controlled files, but does not explain the issue when installing packages from source. On Sep 3, 2010 3:16 PM, "Amaury Forgeot d'Arc" wrote: Amaury Forgeot d'Arc added the comment: Does your version

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

2010-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Does your version control system let the files read-only by default? In this case, see issue6074. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue9731] Add ABCMeta.has_methods and tests that use it

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: I wanted to propose the name check_methods, but then I thought that some people could read too much in that name, for example that arguments and return value are checked for correct type and value (see how Web people misunderstand “HTML validation”). That said,

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

2010-09-03 Thread Steve Thompson
Steve Thompson added the comment: "Setup.py install". We've also seen this happen when checking our python files out of our version control system. Also seen a .pyc get used when the .py no longer exists, but I could see that being intentional behavior. On Sep 3, 2010 2:57 PM, "Brett Cannon"

[issue9762] build failures

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: The normal build lines for the crypt and nis modules contain additional library linkage ("normal", that is before your commit :-)): gcc -pthread -shared build/temp.linux-x86_64-3.2/home/antoine/py3k/__svn__/Modules/cryptmodule.o -L/home/antoine/py3k/__svn__/

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

2010-09-03 Thread Brett Cannon
Brett Cannon added the comment: So are you installing new versions of a package you already have installed using ``python setup.py install``? Exactly what command are you using to do the install? -- nosy: +brett.cannon ___ Python tracker

[issue9728] Docs point to FAQ Section 3, but FAQs are not numbered

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I remember, the FAQ was once that, *the* (giant) FAQ, with numbered sections. When broken into pieces, the order may have been re-arranged. Given that the broken reference is in extending/windows, I would look in both the Extending and Windows FAQs. Howeve

[issue9731] Add ABCMeta.has_methods and tests that use it

2010-09-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I agree that my original name proposal is terrible. :-) method_check and verify_full_api both look fine to me. > If all collection registrations were bundled together in > collections.py, I think I would expect the tests to be in > test_collections. But I

[issue9759] GzipFile object should raise ValueError on .read() after .close()

2010-09-03 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2010-09-03 Thread William Barr
New submission from William Barr : Steps for reproduction: 1. Open a new code window 2. Enter python code which contains a syntax error 3. F5 and attempt to run the file (This was done without saving first) 4. Close the syntax error dialog. 5. Fix the syntax error and try to F5 again witho

[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file18733/unsupported.patch ___ Python tracker ___ _

[issue9762] build failures

2010-09-03 Thread Antoine Pitrou
New submission from Antoine Pitrou : After a `make distclean` and a whole recompile I still get these: building 'crypt' extension gcc -pthread -fPIC -g -O0 -Wall -Wstrict-prototypes -I. -I./Include -I/usr/local/include -IInclude -I/home/antoine/py3k/debug -c /home/antoine/py3k/debug/Modules/cr

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

2010-09-03 Thread Steve Thompson
New submission from Steve Thompson : I'm running pythong 2.6.1 on Windows XP SP3. On many occasions I have ran into cases where I've installed a new package via the package's setup.py (pylint, logilab-common, etc) and new .pyc files don't get generated when I attempt to run the tools/packages.

[issue9731] Add ABCMeta.has_methods and tests that use it

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Good idea! I see Raymond's point about the name. How about .method_check? To me Sequence.method_check(range) means "Abstract Seqeunce class, please method-check the concrete range class." If Sequence.register(range) is in the range source file, I would expect

[issue9717] operator module - "in place" operators documentation

2010-09-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: d...@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9717] operator module - "in place" operators documentation

2010-09-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Consider breaking the operator module documents into sections, grouping all of the in-place ops into the last section. Start that section with a full description of how in-place works in python and show some examples of successful way to use the in-place

[issue9756] Crash with custom __getattribute__

2010-09-03 Thread STINNER Victor
STINNER Victor added the comment: << I found this crash while playing with proxies (thanks haypo). http://code.activestate.com/recipes/496741-object-proxying/ >> My question was: why does isinstance(Proxy('abc'), str) works (give True), whereas re.match('abc', Proxy('abc')) fail. It looks lik

[issue9717] operator module - "in place" operators documentation

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the docs for augmented assignments and the corresponding method and funciton can and should be improved. But I do not like this as is. In particular, Python does not have in-place operators; it has methods that optionally do an operation in-place

[issue8746] *chflags detection broken on FreeBSD 9-CURRENT

2010-09-03 Thread Ned Deily
Ned Deily added the comment: Nick, can you provide a unit test and a patch file for the issue against the currently maintained versions? Adding Alexandre to comment on why the configure change was made. -- components: +Build nosy: +alexandre.vassalotti, ned.deily stage: -> unit test

[issue1521950] shlex.split() does not tokenize like the shell

2010-09-03 Thread Dan Christian
Dan Christian added the comment: It's been a while since I looked at this.  I'm not really in a position to contribute code/tests right now; but I can comment. I don't think POSIX mode existed when I first reported this, but that's where it makes sense.  I think all POSIX shells (borne, C, korn

  1   2   >