[issue10243] Packaged Pythons

2010-10-29 Thread Max Skaller
New submission from Max Skaller : Not sure if this is a bug or not. I am unable to find libpython.so for Python3 on either my Mac or Ubuntu. Perhaps this is a packaging fault, however some documentation in the Wiki suggests otherwise. It appears the builders have reverted to an archaic linkage

[issue10240] dict.update.__doc__ is misleading

2010-10-29 Thread ivank
ivank added the comment: CPython's dict(obj) ignores `keys` and `__iter__` if obj is a subclass of dict. I thought this was an important language detail, not just an implementation quirk. But, I just tested pypy 1.3, and it is calling .keys() on dicts. Oh well. I think the __doc__ can sti

[issue10240] dict.update.__doc__ is misleading

2010-10-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not sure that we should mention the fast path for dicts. That is an implementation detail and may not be present in IronPython, PyPy, Jython, etc. The current version includes: D.updated(E, **F) --> None. Updated D for dict/iterable E and F. ISTM

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-10-29 Thread Raymond Hettinger
New submission from Raymond Hettinger : class T(unittest.TestCase): def test_items_equal(self): # this test fails, but should succeed a = [{2,4}, {1,2}] b = a[::-1] self.assertItemsEqual(a, b) This method has a fast-path using sorted() and a slow-path that doe

[issue10237] failure in Barrier tests

2010-10-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This is a timeout issue, probably encountered on a slow machine. Checked in revision 85964 increasing the default timeout to cater to slower machines. However, I also see that the timeout mechanism used by barrier isn't very robust. I'll submit a pat

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-10-29 Thread Jacques Grove
Jacques Grove added the comment: And another (with issue2636-20101030.zip): $ cat test.py import re, regex text = "XYABCYPPQ\nQ DEF" regexp = 'X(Y[^Y]+?){1,2}(\ |Q)+DEF' print re.findall(regexp, text) print regex.findall(regexp, text) $ python test.py [('YPPQ\n', ' ')] [] -- __

[issue10241] gc fixes for module m_copy attribute

2010-10-29 Thread Neil Schemenauer
New submission from Neil Schemenauer : I'm trying implement some saner module shutdown procedure (similar to issue 812369). One of the many problems I've run into is that the GC doesn't know about the m_copy attribute of modules. I think the attached patch is correct. tp_tranverse exposes m

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-10-29 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101030.zip is a new version of the regex module. I've also added yet more to the unit tests. -- Added file: http://bugs.python.org/file19422/issue2636-20101030.zip ___ Python tracker

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-29 Thread Dev Player
Dev Player added the comment: Another thing I've noticed that makes the issue more complicated (or perhaps less complicated depending on your view). When running the python.exe at the DOS prompt (in a window on WinXP), then issuing the help() then modules commands, python.exe seems to hang at

[issue10240] dict.update.__doc__ is misleading

2010-10-29 Thread ivank
New submission from ivank : It would be nice if dict.update.__doc__ conveyed some of the subtleties of the update algorithm. See the patch. I changed __doc__ to mention the fast path for dicts, and changed one instance of E: -> E.keys(): -- components: Interpreter Core files: dict.up

[issue10239] multiprocessing signal defect

2010-10-29 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7911] unittest.TestCase.longMessage should default to True in Python 3.2

2010-10-29 Thread Michael Foord
Michael Foord added the comment: I intend to. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran testcase.py with stock 3.1.2 on winxp (under IDLE). Changes needed (one place each) were Tkinter -> tkinter print x -> print(x) <> -> !=# <> is long since deprecated! I get 3 line box windowing 10 lines. If I enlarge window, there are still only

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-10-29 Thread Jacques Grove
Jacques Grove added the comment: Here's another inconsistency (same setup as before, running issue2636-20101029.zip code): $ cat test.py import re, regex text = "\n S" regexp = '[^a]{2}[A-Z]' print re.findall(regexp, text) print regex.findall(regexp, text) $ pyth

[issue9702] Python violates most users expectations via the modification differences of immutable and mutable objects in methods

2010-10-29 Thread Rafe Kettler
Changes by Rafe Kettler : -- nosy: +rafe.kettler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6105] json.dumps doesn't respect OrderedDict's iteration order

2010-10-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10233] fix test_tarfile ResourceWarnings

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the review. I've committed a modified patch in r85955. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue10233] fix test_tarfile ResourceWarnings

2010-10-29 Thread Brett Cannon
Brett Cannon added the comment: Reviewed at http://codereview.appspot.com/2759042/ -- assignee: -> pitrou ___ Python tracker ___ ___

[issue10239] multiprocessing signal defect

2010-10-29 Thread Neal Becker
New submission from Neal Becker : multiprocessing signal defect From: Neal Becker Date: Friday 29 October 2010 8:12:19 am To: python-l...@python.org Groups: gmane.comp.python.general Tested on: python-2.6.4-27.fc13.x86_64 linux fedora 13 x86_64 Seems multiprocessing doesn't behave well w

[issue10233] fix test_tarfile ResourceWarnings

2010-10-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10237] failure in Barrier tests

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : A buildbot has shows occasional failures in the Barrier tests: [299/349] test_threading [39130 refs] [39501 refs] [39501 refs] [39491 refs] [39499 refs] Unhandled exception in thread started by Traceback (most recent call last): File "/home/buildslave/pyt

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-10-29 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101029.zip is a new version of the regex module. I've also added to the unit tests. -- Added file: http://bugs.python.org/file19419/issue2636-20101029.zip ___ Python tracker <http://bugs.py

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The code in socketmodule.c currently compile with suspect warnings: socketmodule.c(3108) : warning C4047: 'function' : 'LPSTR' differs in levels of indirection from 'int' socketmodule.c(3108) : warning C4024: 'GetComputerNameA' : different types for for

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2010-10-29 Thread Brett Cannon
New submission from Brett Cannon : I get the following output related to the build failure: /var/folders/MN/MN-E3HgoFXSKDXb9le7FQTI/-Tmp-/cc-MxvLE7.s:153:2: error: unrecognized instruction cmovnz %rax, %rdx ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQTI/-Tmp-/cc-MxvLE7.s:154:2: error: un

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-10-29 Thread Robert Lerche
Robert Lerche added the comment: Hi and thanks for the quick response. I'm happy to follow up with the Tk folks if it turns out that's where the problem lies -- it has been a long time since I wrote a Tcl script so before trying to reproduce the behavior that way I thought I'd try posting what

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Wouldn't it be better to also attempt to decode the name using IDNA > in case the name starts with the IDNA prefix ? Perhaps better - but incompatible. I don't see a way to have the resolver functions automatically decode IDNA, without potentially breaking e

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: > The DNS name of the Windows machine is the combination of the DNS host > name and the DNS domain that you setup on the machine. I think the > misunderstanding is that you assume this combination will > somehow appear as known DNS name of the machine via some

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have not tried your testcase yet, but agree that issue 4 sounds pretty bad. I guess what you are looking for is either a patch to tkinter that solves at least one of the listed problems (even if only a workaround for a TK bug) or a determination that nothin

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the absence of doc references in this and #10211 that would *clearly* settle the bug vs. feature issue, it strikes me as a bit murky. So I am inclined to agree with MAL that failure to achieve the stated, documented purpose is a bug. I strongly suspect tha

[issue6105] json.dumps doesn't respect OrderedDict's iteration order

2010-10-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Upon further consideration, I think this could be backported. -- assignee: benjamin.peterson -> rhettinger resolution: wont fix -> status: closed -> open ___ Python tracker ___

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Shutdown has been a 'forever' problem ;-). It would seem sensible to me to have a fixed end-of-shutdown sequence for essential modules. -- nosy: +terry.reedy ___ Python tracker _

[issue10177] PyUnicode_AsWideCharString and PyMem_Free

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think questions like this are better answered on python-list or even pydev. In the absence of an observed problem, I would presume it is ok. This question should be answered in the C-API doc. If it is not, you could reopen this as a doc issue. -- n

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > The Solaris case then is already supported, with no change required: if > Solaris bans non-ASCII in the network configuration (or, rather, recommends > to use IDNA), then this will work f

[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: As noted in issue10235, this is responsible for buildbot failures: http://www.python.org/dev/buildbot/all/builders/PPC%20Leopard%203.x/builds/685/steps/test/logs/stdio -- nosy: +janssen, pitrou ___ Python tracker

[issue10235] test_argparse depends on the COLUMNS environment variable

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Already reported actually. -- resolution: -> duplicate status: open -> closed superseder: -> test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80 ___ Python tracker

[issue10236] Sporadic failures of test_ssl

2010-10-29 Thread Stephen Hansen
Changes by Stephen Hansen : -- components: +Library (Lib), Tests type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10236] Sporadic failures of test_ssl

2010-10-29 Thread Stephen Hansen
New submission from Stephen Hansen : Another sporadic failure I've noticed since setting up my buildbot; test_ssl keeps going down. This one I have a hard time analyzing with the tests output, but the latest is: http://www.python.org/dev/buildbot/all/builders/x86%20Snow%20Leopard%203.x/builds/

[issue10235] test_argparse depends on the COLUMNS environment variable

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : Changing it can produce failures, e.g.: $ COLUMNS=178 ./python -m test.regrtest -v test_argparse This can be seen on one of the buildbots: http://www.python.org/dev/buildbot/all/builders/PPC%20Leopard%203.x/builds/685/steps/test/logs/stdio -- assign

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-10-29 Thread Matthew Barnett
Matthew Barnett added the comment: That's a bug. I'll fix it as soon has I've reinstalled the SDK. -- ___ Python tracker ___ ___ Pyth

[issue10230] test_tarfile failure (test_extractall) on AMD64 debian parallel 3.x: os.utime(float) issue

2010-10-29 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> duplicate status: open -> closed superseder: -> tarfile touches directories twice ___ Python tracker ___ ___

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: The Solaris case then is already supported, with no change required: if Solaris bans non-ASCII in the network configuration (or, rather, recommends to use IDNA), then this will work fine with the current code. The Josefsson AI_IDN flag is irrelevant to Pytho

[issue8678] crashers in rgbimg

2010-10-29 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > r85934 now uses GetComputerNameExW on Windows. Thanks, Martin. Here's a similar discussion of the Windows approach (used in bzr): https://bugs.launchpad.net/bzr/+bug/256550/comments/6 T

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > I just did an experiment on Windows 7. I used SetComputerNameEx to set the > NetBIOS name (4) to "e2718", and the DNS name (5) to "π3141"; then I > rebooted. This is on a system with wind

[issue7061] Improve 24.5. turtle doc

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As I suspected, the turtle.shapetransform() stems from sphinx' failure to reinitialize the turtle variable as testsetup dictates. I can work around this by adding >>> turtle = Turtle() above >>> turtle.shape("square") >>> turtle.sh

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: r85934 now uses GetComputerNameExW on Windows. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue7547] test_timeout should skip, not fail, when the remote host is not available

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85931 (3.2), r85932 (3.1) and r85933 (2.7). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue7061] Improve 24.5. turtle doc

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Gregor, I suspect that there are doctest mistakes in the turtle.py docstrings, but I cannot figure out how to run it through doctest. Can you help? -- ___ Python tracker _

[issue7061] Improve 24.5. turtle doc

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: While working on issue 10225, I have found several mistakes in turtle.rst examples. It probably makes sense to review these separately and commit as part of this issue rather than bunching with the other issue 10225 changes. There are still two remaini

[issue7061] Improve 24.5. turtle doc

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed issue7061a.diff r85930. This is probably a backport candidate. -- ___ Python tracker ___ __

[issue8678] crashers in rgbimg

2010-10-29 Thread Tomas Hoger
Tomas Hoger added the comment: You seem to be right that r65878 should block the "xsize = ysize = 0x8000" integer overflow. I was testing on the python version with r60793, but not with r65878. Note that the check added in r65878 should still cause crash on divide-by-zero for some files. A

[issue7547] test_timeout should skip, not fail, when the remote host is not available

2010-10-29 Thread Sandro Tosi
Sandro Tosi added the comment: Hello, as discussed on irc, I'm proposing a patch that: - wraps the test with support.transient_internet - limits the assert to only socket.timeout (what we want to test) test_smptnet.py is already fixed, since it already uses support.transient_internet Regards

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: I just did an experiment on Windows 7. I used SetComputerNameEx to set the NetBIOS name (4) to "e2718", and the DNS name (5) to "π3141"; then I rebooted. This is on a system with windows-1252 as its ANSI code page (i.e. u"π"==u"\N{GREEK SMALL LETTER PI}" is

[issue9340] argparse parse_known_args does not work with subparsers

2010-10-29 Thread Guandalino
Changes by Guandalino : -- nosy: +guandalino ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10224] Build 3.x documentation using python3.x

2010-10-29 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10225] Fix doctest runable examples in python manual

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I started porting the patch to 3.x and it looks like I've uncovered another bug in sphinx: $ sphinx-build -b doctest -d build/doctrees . build/doctest library/traceback.rst .. ** File

[issue10234] ResourceWarnings in test_subprocess

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : Since r85920, test_subprocess has been showing a bunch of ResourceWarnings. It seems that the pipe objects don't get explicitly closed in wait() or __del__, while they do in communicate(). -- components: Library (Lib), Tests messages: 119916 nosy: gr

[issue10229] Refleak run of test_gettext fails

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thanks for catching this. Attached patch fixes the error with -R and > works without -R too, please review. It looks good to me. -- ___ Python tracker

[issue10226] urlparse example is wrong

2010-10-29 Thread Éric Araujo
Éric Araujo added the comment: // is not part of the netloc in RFC terms, it’s a delimiter between components -- nosy: +eric.araujo ___ Python tracker ___ __

[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found

2010-10-29 Thread Jesse Noller
Jesse Noller added the comment: Closing per Sridhar -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10229] Refleak run of test_gettext fails

2010-10-29 Thread Éric Araujo
Éric Araujo added the comment: Thanks for catching this. Attached patch fixes the error with -R and works without -R too, please review. -- keywords: +needs review, patch nosy: +loewis, v_peter stage: needs patch -> patch review Added file: http://bugs.python.org/file19415/fix-10229.d

[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found

2010-10-29 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: No, this is not an issue for me on Python 3.2 and AIX 5.1. -- versions: -Python 2.7, Python 3.2 ___ Python tracker ___

[issue10224] Build 3.x documentation using python3.x

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The usual build process via Makefile still uses Python 2, > and that won't change for 3.2. Would you consider changing "doctest" make target to check out sphinx trunk (or 3.x compatible release) and run it with the py3k python? This should not affect

[issue10233] fix test_tarfile ResourceWarnings

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : This fixes all the warnings because of files not closed explicitly in test_tarfile. -- components: Library (Lib) files: tarfileclose.patch keywords: patch messages: 119909 nosy: lars.gustaebel, pitrou priority: normal severity: normal stage: patch re

[issue10225] Fix doctest runable examples in python manual

2010-10-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a new patch which fixes all but two doctest examples. I suspect that the remaining failures are due to a bug in sphinx. (The examples are executed even though marked up with ::). -- stage: needs patch -> patch review Added file: h

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-10-29 Thread Robert Lerche
New submission from Robert Lerche : I have run across several issues (one serious one, showing up only on Windows) when implementing a scroll bar with a list of custom widgets. I suspect these may really be Tk issues but I thought I'd try posting here first. I sent this to the tkinter-discuss

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-10-29 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : Removed file: http://bugs.python.org/file13126/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hi David, since both you and Pavel are building mysql-python and using setuptools (which applies a lot of hacks on stock distutils), could you please also try some other package from PyPI in that same configuration and preferably one which doesn't rely on s

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-10-29 Thread David Joy
David Joy added the comment: Hi All, I just built mysql-python against CPython2.7 MSVC2008 Express Edition and Server 2003 R2. All were freshly built on a clean Server 2003 install. This exact issue occurred building with pip 0.8.1 on top of distribute 0.6.14: C:\Program Files\Microsoft SD

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/10/29 Marc-Andre Lemburg : > > Marc-Andre Lemburg added the comment: > > Antoine Pitrou wrote: >> >> Antoine Pitrou added the comment: >> >>> The warning will trigger without any reason. >> >> Well, by now you should have understood the reason, so I co

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: The buildbots showed no major issue, so this issue is now resolved. The warnings expose a lot of issues in the stdlib that deserve addressing, though ;) -- status: open -> closed ___ Python tracker

[issue10214] Misc/python-mode.el is out of date.

2010-10-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: r85927 in py3k r85928 in release31-maint r85929 in release27-maint -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-10-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> The warning will trigger without any reason. > > Well, by now you should have understood the reason, so I conclude that > you are either 1) deaf 2) stupid 3) deliberately obnoxious. > > Th

[issue10206] python program starting with unmatched quote spews spaces to stdout

2010-10-29 Thread Eric Smith
Changes by Eric Smith : Removed file: http://bugs.python.org/file19396/issue10206.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10206] python program starting with unmatched quote spews spaces to stdout

2010-10-29 Thread Eric Smith
Eric Smith added the comment: I think Benjamin fixed this in r85904. I'm going to verify and add some tests. -- priority: critical -> normal stage: patch review -> unit test needed ___ Python tracker _

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-10-29 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth : SimpleHTTPRequestHandler directory bugs Running 3.2a3 http/server.py or 2.7 SimpleHTTPServer.py as a script: * Redirection appends "/" to the unparsed URL instead of to the pathname component of the parsed URL: "foo/dir?baz" => "foo/dir?baz/". * The

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The warning will trigger without any reason. Well, by now you should have understood the reason, so I conclude that you are either 1) deaf 2) stupid 3) deliberately obnoxious. This is my last answer to you on this topic. Goodbye. -- ___

[issue10208] add mazovia.py to encodings/

2010-10-29 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10208] add mazovia.py to encodings/

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Piotr Matuszewski wrote: > > Piotr Matuszewski added the comment: > > it's still used by some business in Poland, who have DOS based systems, but I > don't think any new deployments are using it Then I think it's better maintained outside the stdlib. -

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Reposted via the web interface: >> If you want to monitor resource usage in your application it >> would be a lot more useful to provide access to the number of >> currently open FDs > Agreed it would be useful as well, but please tell that to operating > s

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> Whether you write an application with automatic closing of >> the file/socket at garbage collection time in mind, or you explicitly >> close the file/socket, the timing is the same. > > No,

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-10-29 Thread Baptiste Carvello
Baptiste Carvello added the comment: A little bit more information: the error message comes from Python/pythonrun.c, line 736, in function initfsencoding. This part of the code is protected with a preprocessor #if: #if defined(HAVE_LANGINFO_H) && defined(CODESET) so I tried replacing that w

[issue10230] test_tarfile failure (test_extractall) on AMD64 debian parallel 3.x: os.utime(float) issue

2010-10-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is a duplicate of http://bugs.python.org/issue10184 -- ___ Python tracker ___ ___ Python-bugs

[issue10208] add mazovia.py to encodings/

2010-10-29 Thread Piotr Matuszewski
Piotr Matuszewski added the comment: it's still used by some business in Poland, who have DOS based systems, but I don't think any new deployments are using it -- ___ Python tracker __

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-10-29 Thread Baptiste Carvello
Baptiste Carvello added the comment: Hello, I can reproduce the exact same error as Éric. The end of the output is a little bit more informative here: Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Fatal Python error: Py_Initialize: Unable to get the locale e

[issue10230] test_tarfile failure (test_extractall) on AMD64 debian parallel 3.x: os.utime(float) issue

2010-10-29 Thread STINNER Victor
New submission from STINNER Victor : test_tarfile in only failing on one 3.x buildbot: AMD64 debian parallel 3.x. The problem is related to the mtime field and os.utime(): http://www.python.org/dev/buildbot/builders/AMD64 debian parallel 3.x/builds/508/steps/test/logs/stdio ===

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Whether you write an application with automatic closing of > the file/socket at garbage collection time in mind, or you explicitly > close the file/socket, the timing is the same. No, because objects can be kept alive through tracebacks (or reference cycles).

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> That's what I'm referring to: most Python applications are >> written with the fact in mind, that garbage collection will >> close the files or socket. >> >> That's a perfectly fine way of w

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-10-29 Thread Jacques Grove
Jacques Grove added the comment: Do we expect this to work on 64 bit Linux and python 2.6.5? I've compiled and run some of my code through this, and there seems to be issues with non-greedy quantifier matching (at least relative to the old re module): $ cat test.py import re, regex text = "

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Well then, its back to the profiler for 3.2. I did all of the profiling with 2.7 for practical reasons (it was the only version I had available at the time) and then ported the change to 3.2 today. But obviously there are different rules in 3.2 :)

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'd have to take another look with the profiler to figure out how > bytes slicing in 3.0 works, but I suspect that it is somehow > fasttracked passed the creation of slice objects, etc. I don't think it is fasttracked at all. Even plain indexing is not fastt

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: In 2.x, strings are sliced using PySequence_GetSlice(). ceval.c in 3.0 is different, there is no apply_slice there (despite comments to that effect). I'd have to take another look with the profiler to figure out how bytes slicing in 3.0 works, but I

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch in r85920; let's watch the buildbots. Also, you'll see many warnings in the test suite if compiled --with-pydebug. -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker

[issue10229] Refleak run of test_gettext fails

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is probably caused by r85223. $ ./python -m test.regrtest -R 3:2 test_gettext [1/1] test_gettext beginning 5 repetitions 12345 test test_gettext failed -- Traceback (most recent call last): File "/home/antoine/py3k/deallocwarn/Lib/test/test_gettext.py"

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As an additional point: the PyMemoryObject has a "base" member that I > think is redundant. the "view.obj" should be sufficient. Yes, that's what I think as well. -- ___ Python tracker

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: As an additional point: the PyMemoryObject has a "base" member that I think is redundant. the "view.obj" should be sufficient. -- ___ Python tracker ___

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch (also fixes a small refleak). -- Added file: http://bugs.python.org/file19411/deallocwarn4.patch ___ Python tracker __

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: The sequence protocol (if I'm not confused) only work with a PyObject ** array. -- ___ Python tracker ___ _

[issue10228] Refleak run of test_dbm fails when several dbm modules are available

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is only when several dbm modules are compiled in (e.g. "gnu" and "dumb"): $ ./python -m test.regrtest -R 3:2 test_dbm [1/1] test_dbm beginning 5 repetitions 12345 test test_dbm failed -- Traceback (most recent call last): File "/home/antoine/py3k/deall

  1   2   >