[issue9749] tuple-to-list conversion

2010-09-03 Thread Pyry Säilä
Pyry Säilä added the comment: Ah, I see. What a stupid error. My apologies. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9750] sqlite3 iterdump fails on column with reserved name

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

[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-03 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4111] Add Systemtap/DTrace probes

2010-09-03 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: +techtonik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-03 Thread Marko Kohtala
Marko Kohtala added the comment: The second patch contains also fixes for some places where the rules described in http://www.sqlite.org/lang_keywords.html are not followed. -- Added file: http://bugs.python.org/file18722/sqlite3ident.patch ___ Pyth

[issue7077] SysLogHandler can't handle Unicode

2010-09-03 Thread Vinay Sajip
Vinay Sajip added the comment: Fix backported to release27-maint (r84445). Python 2.6 and earlier are in security-fix-only mode. -- ___ Python tracker ___ __

[issue9576] logging.addLevelName in file-based configurations

2010-09-03 Thread Vinay Sajip
Vinay Sajip added the comment: No feedback on this after two weeks, so closing. -- status: pending -> closed ___ Python tracker ___ __

[issue9751] _PyInstance_Lookup() defeats its purpose

2010-09-03 Thread Armin Rigo
New submission from Armin Rigo : _PyInstance_Lookup() is documented as follows: The point of this routine is that it never calls arbitrary Python code, so is always "safe": all it does is dict lookups. But of course dict lookups can call arbitrary Python code. This function has no pu

[issue9576] logging.addLevelName in file-based configurations

2010-09-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: You set it to "won't fix", that's why I didn't give you any feedback. In general, if you provides features programatically *and* via configuration, it makes sense to provide the whole set on both sides. IOW, if you don't want a feature to be used by third-party

[issue9752] MSVC Compiler warning in Python\import.c

2010-09-03 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : 7>..\Python\import.c(1158) : warning C4013: 'mkdir' undefined; assuming extern returning int -- assignee: stutzbach components: Interpreter Core, Windows keywords: easy messages: 115428 nosy: stutzbach priority: low severity: normal stage: needs pa

[issue9726] logging.handlers.RotatingFileHandler: implement "preserve log file name extension" feature

2010-09-03 Thread Vinay Sajip
Vinay Sajip added the comment: You can do this by subclassing RotatingFileHandler and overriding doRollover, as per this example: http://plumberjack.blogspot.com/2010/09/using-custom-file-naming-scheme-for.html -- resolution: -> wont fix status: open -> closed __

[issue8420] Objects/setobject.c contains unsafe code

2010-09-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r84447 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue9576] logging.addLevelName in file-based configurations

2010-09-03 Thread Vinay Sajip
Vinay Sajip added the comment: I set to "pending" and "wontfix" to indicate what my proposed resolution was, and to await feedback - sorry for the misunderstanding. The custom levels feature is not intended to be used casually (as it will cause unpredictable behaviour when used differently in

[issue9753] test_socket.testDup, testFromFd fail on Windows

2010-09-03 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : The errors below show up on my XP machine in Python 3.1 as well as a recent build from the py3k branch. I'm not sure why they *don't* show up on the XP buildbot. fromfd() ultimately calls dup(), so the underlying problem is likely the same for all the f

[issue9744] calling __getattribute__ with wrong instance causes hang up

2010-09-03 Thread Andreas Stührk
Andreas Stührk added the comment: Actually, Python behaves the way you expect it. The problem is that when that exception is created, Python tries to look up the involved class names. To do that, it tries to get the "__class__" attribute (hapens in `getinstclassname()`, which will call again

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Antoine Pitrou
New submission from Antoine Pitrou : Similar to assertRaises and assertRaisesRegexp, unittest should provide assertWarns and assertWarnsRegexp, to check that a given callable (or piece of code) triggers a particular warning. Currently, you have to do that manually using a mixture of warnings.

[issue8649] Py_UNICODE_* functions are undocumented

2010-09-03 Thread Nick Coghlan
Nick Coghlan added the comment: For this one, I suggest adding something to http://docs.python.org/dev/c-api/unicode.html#plain-py-unicode -- nosy: +ncoghlan ___ Python tracker

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Michael Foord
Michael Foord added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-09-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I just noticed that the previous "new" patch I uploaded was actually my original patch. Oops. Anyway... In a discussion on the capi list, a few people objected to compiling in Unicode-agnostic mode by default (e.g., it would be annoying for Cython). Att

[issue9753] test_socket.testDup, testFromFd fail on Windows

2010-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: test_socket.py passes here. I run: python_d.exe -m test.regrtest -v test_socket -- nosy: +amaury.forgeotdarc ___ Python tracker ___ __

[issue9753] test_socket.testDup, testFromFd fail on Windows

2010-09-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I run it the same way. I wonder what's different? :-( I will try to find some time to investigate further. -- ___ Python tracker ___ __

[issue9753] test_socket.testDup, testFromFd fail on Windows

2010-09-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Windows, socket.dup is implemented using DuplicateHandle. The documentation for DuplicateHandle reads: You should not use DuplicateHandle to duplicate handles to the following objects: * I/O completion ports. No error is returned, but the duplicate

[issue9744] calling __getattribute__ with wrong instance causes hang up

2010-09-03 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue9755] Fix refcounting details in Py3k C API documentation

2010-09-03 Thread Nick Coghlan
New submission from Nick Coghlan : As noted in [1] the refcount data for the C API documentation is contained in a separate file at Doc/data/refcounts.dat. This file is not mentioned in "Documenting Python" and hence has not been correctly updated for Py3k (e.g. none of the PyString methods ha

[issue9755] Fix refcounting details in Py3k C API documentation

2010-09-03 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> d...@python nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue9753] test_socket.testDup, testFromFd fail on Windows

2010-09-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Following the advice of DuplicateHandle's documentation, I reimplemented dup on Windows using WSADuplicateHandle. Attached is a patch. With the patch, the tests pass on my Windows machine. Would someone like to review the patch? -- assignee: ->

[issue9753] test_socket.testDup, testFromFd fail on Windows

2010-09-03 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Added file: http://bugs.python.org/file18724/issue9753.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9753] test_socket.testDup, testFromFd fail on Windows

2010-09-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The documentation of WSASocket(), and the code of PyBluez http://code.google.com/p/pybluez/source/browse/trunk/msbt/_msbt.c#374 both suggest to use the FROM_PROTOCOL_INFO constant. Otherwise, the patch looks good. -- _

[issue9751] _PyInstance_Lookup() defeats its purpose

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: I'm not sure anyone will be interested in this: it doesn't affect 3.x. -- nosy: +georg.brandl ___ Python tracker ___ _

[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-03 Thread Marko Kohtala
Marko Kohtala added the comment: It also fails if table or column names contain double quote. -- Added file: http://bugs.python.org/file18725/sqlite3bug2.py ___ Python tracker __

[issue9756] Crash with custom __getattribute__

2010-09-03 Thread Florent Xicluna
New submission from Florent Xicluna : I found this crash while playing with proxies (thanks haypo). http://code.activestate.com/recipes/496741-object-proxying/ class MyClass(object): def __init__(self): self.pwn = None def __getattribute__(self, name): print('MyClass._

[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-03 Thread Marko Kohtala
Changes by Marko Kohtala : Added file: http://bugs.python.org/file18726/sqlite3dump.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9756] Crash with custom __getattribute__

2010-09-03 Thread Andreas Stührk
Andreas Stührk added the comment: It's because you can fool `PyObject_IsInstance()` that way: >>> class Spam(object): ... def __getattribute__(self, name): ... if name == '__class__': ... return str ... raise AttributeError ... >>> isinstance(Spam(), str) True

[issue9753] test_socket.testDup, testFromFd fail on Windows

2010-09-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thanks! Updated as you suggested and committed as r84450 and r84451. -- keywords: -needs review stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: The __warningregistry__ stuff looks horrible. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Florent Xicluna
Florent Xicluna added the comment: > unittest should provide assertWarns and assertWarnsRegexp +1 (the internal helpers in test.support could be refactored) > The __warningregistry__ stuff looks horrible. +1 (and it does not behave exactly the same in all Python versions) -- nosy: +f

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: +1 from me as well. -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailin

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

2010-09-03 Thread Nick Dowell
Nick Dowell added the comment: We've just noticed this same problem with Python 3.1.2 on Mac OS X. The problem is that the program source in the configure script has extraneous '[' and ']' characters in it, causing compilation to fail. Excerpt of configure from line 17357: cat >>conftest.$ac

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. The approach is different from support.check_warnings(), and tries to mimic assertRaises* instead. -- keywords: +patch Added file: http://bugs.python.org/file18727/assertwarns.patch ___ Python track

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

2010-09-03 Thread Douglas Leeder
Changes by Douglas Leeder : -- nosy: +Douglas.Leeder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7231] Windows installer does not add \Scripts folder to the path

2010-09-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: The big problem with adding the %python%\scripts directory to the path is it makes a lot of assumptions about how Python is deployed. And it raises some questions. What should the precedence be? What should happen if multiple versions of Python are installed

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: There was some dead code in the patch. -- Added file: http://bugs.python.org/file18728/assertwarns.patch ___ Python tracker ___

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file18727/assertwarns.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7231] Windows installer does not add \Scripts folder to the path

2010-09-03 Thread sorin
sorin added the comment: Important tools (like ease_install, pypm) from `Script` directory are already including version prefixes in their names (tool-2.7.exe). This means that it should not be a big problem having several Scripts directories on your path. Most python users are not installin

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-09-03 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7231] Windows installer does not add \Scripts folder to the path

2010-09-03 Thread Brian Curtin
Brian Curtin added the comment: > Important tools (like ease_install, pypm) from `Script` directory are > already including version prefixes in their names (tool-2.7.exe). > > This means that it should not be a big problem having several Scripts > directories on your path. Just adding all Scri

[issue7231] Windows installer does not add \Scripts folder to the path

2010-09-03 Thread Brian Curtin
Brian Curtin added the comment: s/append existing paths/append new paths/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9757] Add context manager protocol to memoryviews

2010-09-03 Thread Antoine Pitrou
New submission from Antoine Pitrou : This adds the context manager protocol to memoryview objects, as proposed on python-dev. Once the `with` block has finished, the underlying buffer is released and any operation on the memoryview raises a ValueError. -- components: Interpreter Core f

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Michael Foord
Michael Foord added the comment: (Note that in general I am against extending the TestCase API with more asserts given how wide it is and how much it has expanded in recent versions. I've written warning checking code enough times for third party projects that I think this is worth it though.

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: +#undef HAVE_USABLE_CHAR_T Isn't it HAVE_USABLE_WCHAR_T? +struct PY_UNICODE_STRUCT; +typedef struct PY_UNICODE_STRUCT Py_UNICODE_STRUCT; +#define Py_UNICODE Py_UNICODE_STRUCT Why not simply `typedef struct PY_UNICODE_STRUCT Py_UNICODE`? The _testunicodeagnos

[issue9727] Add callbacks to be invoked when locale changes

2010-09-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +lemburg, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Would you like to work on a patch, or translate your examples into unit tests? The docs do not mention “&” at all, and platform discrepancies have to be taken into account too, so I really don’t know if this is a bug fix for the normal mo

[issue9723] pipes.quote() needs to be documented

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: Eric referred to this thread: http://mail.python.org/pipermail/stdlib-sig/2010-May/thread.html -- nosy: +eric.araujo versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker

[issue9721] urlparse.urljoin() cuts off last base character with semicolon at url start

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: The versions getting bug fixes are 2.7, 3.1 (stable versions) and 3.2 (active). 2.6 is in security mode now. Can someone write a test (as a standalone script or a diff against Lib/test/test_urlparse.py) and tell if 3.1 and 3.2 have the bug too? More importantly

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Florent Xicluna
Florent Xicluna added the comment: Patch looks good. However tests do not pass with -Werror (while test_warnings and others pass). Is there a way to catch multiple warnings on a single logical line? (With assertRaises we don't have such use case) -- stage: needs patch -> patch review

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

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: A tip about versions: Development happens on the current active branch, py3k (future 3.2 version), and bug or doc fixes are backported to the stable versions 2.7 and 3.1. Security fixes go into 2.6 too. Can you reproduce your bug in 2.7, 3.1 and 3.2? Adding Ala

[issue9758] ioctl mutable buffer copying problem

2010-09-03 Thread Grzegorz Kulewski
New submission from Grzegorz Kulewski : Hello, It looks like something is broken in ioctl in 3.2 when the supplied (mutable) bytearray is exactly 1024 bytes long - the result is not copied into the buffer after the ioctl succedes: def open_tuntap(type, name): TUN_TYPE = {

[issue9710] 2to3 could remove "-*- coding: utf-8 -*-"

2010-09-03 Thread Florent Xicluna
Florent Xicluna added the comment: PEP8 fixed with r84354 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue9708] cElementTree iterparse does not support "parser" argument

2010-09-03 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +effbot stage: -> unit test needed type: -> behavior versions: +Python 3.2 ___ Python tracker ___ _

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Patch looks good. However tests do not pass with -Werror (while test_warnings > and others pass). > > > Is there a way to catch multiple warnings on a single logical line? I thought we could beef up the API with additional arguments. That would be at the e

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Michael Foord
Michael Foord added the comment: Why not accepting a tuple of warnings? That doesn't make sense for assertWarnsRegexp of course. -- ___ Python tracker ___ __

[issue9754] assertWarns and assertWarnsRegexp

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Why not accepting a tuple of warnings? It already does (and there's a test!). > That doesn't make sense for assertWarnsRegexp of course. True. -- ___ Python tracker __

[issue9756] Crash with custom __getattribute__

2010-09-03 Thread Andreas Stührk
Andreas Stührk added the comment: At least two tests in `test.test_descr` consider that behaviour as a feature: "test_isinst_isclass" and "test_proxy_super". -- ___ Python tracker _

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

2010-09-03 Thread Alain Kalker
New submission from Alain Kalker : >>> f = open("test2.gz") >>> d = f.read() >>> f.close() >>> e = f.read() Traceback (most recent call last): File "", line 1, in ValueError: I/O operation on closed file import gzip >>> f = gzip.open("test2.gz") >>> d = f.read() >>> f.close() >>> e = f.read()

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-09-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thanks, Antoine. Those are all good suggestions. Attached is an updated patch. Marc-Andre, Martin: would you like to look this over as well? -- Added file: http://bugs.python.org/file18730/unicode-3.patch ___ Py

[issue9755] Fix refcounting details in Py3k C API documentation

2010-09-03 Thread Skip Montanaro
Skip Montanaro added the comment: I thought Fred Drake wrote the code that generated that file, but that was a long time ago in a galaxy far, far away. Perhaps Georg has subsumed it into his Sphinx/Python doc workflow? (making Fred "nosy" so he sees this thread...) S -- nosy: +fdrake

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch implementing getbuffer(), together with tests. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file18731/bytesiobuf2.patch ___ Python tracker

[issue9757] Add context manager protocol to memoryviews

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Guido expressed skepticism at the idea: http://mail.python.org/pipermail/python-dev/2010-September/103442.html -- ___ Python tracker ___ ___

[issue9760] Suggestion for improving with documentation

2010-09-03 Thread Jason Baker
New submission from Jason Baker : http://docs.python.org/reference/compound_stmts.html#with This documentation refers to "context expressions" in two places. However, it never really defines what a context expression is. The formal syntax that's presented is this: with_stmt ::= "with" with

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: There was an unused "weakreflist" member. -- Added file: http://bugs.python.org/file18732/bytesiobuf2.patch ___ Python tracker ___ _

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file18731/bytesiobuf2.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5506] io.BytesIO doesn't support the buffer protocol

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +IO nosy: +amaury.forgeotdarc, benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list

[issue7231] Windows installer does not add \Scripts folder to the path

2010-09-03 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: FWIW, since last year ActivePython 2.6/2.7 puts C:\PythonXY\Scripts and %APPDATA%\Python\Scripts in %PATH% and we haven't had any complaints so far. In addition, we also create a versioned interpreter executable - C:\PythonXY\pythonxy.exe - that is someth

[issue9193] PEP 3149 (versioned .so files) reference implementation

2010-09-03 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue3805] sslobj.read py3k takes odd arguments

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Cleanup done in r84464 (py3k), r84465 (3.1). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker

[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

[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

[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

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

[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

[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

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

[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

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

[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

[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

[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

[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

[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

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

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

[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

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

[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

[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 : Added file: http://bugs.python.org/file18738/8746-2.6.6.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[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

  1   2   >