[issue12337] Need real TextIOWrapper for stdin/stdout

2011-06-14 Thread Fan Decheng
New submission from Fan Decheng : Since "-u" is made default and binary stdio implemented in 3.2, many of my scripts cannot run directly in Python 3.2, because they expect "\n" from stdin, but on Windows "\r\n" is got. Since that binary stdio being default is necessary for features like CGI, w

[issue1669539] Fix bug in os.path.join

2011-06-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -jongfoster ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11113] html.entities mapping dicts need updating?

2011-06-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-06-14 Thread sbt
sbt added the comment: > Also, what is the rationale for the following change: > > -elif timeout == 0.0: > +elif timeout == 0.0 and nleft != 0: > return False If PeekNamedPipe() returns (navail, nleft) there are 3 cases: 1) navail > 0: just return True

[issue762963] timemodule.c: Python loses current timezone

2011-06-14 Thread Paul Boddie
Paul Boddie added the comment: I don't understand how this bug and its patches are still active. It's difficult for me to remember what I was doing in early 2007 when I started working on issue #1667546, but I can well imagine that it was in response to this and a number of related bugs. Look

[issue12336] tkinter.test.test_ttk.test_widgets.test_select() failure on FreeBSD 6.4 3.x

2011-06-14 Thread STINNER Victor
New submission from STINNER Victor : test test_ttk_guionly failed -- Traceback (most recent call last): File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/tkinter/test/test_ttk/test_widgets.py", line 674, in test_select self.assertTrue(success) AssertionError: [] is not true http

[issue12313] make install misses packaging module

2011-06-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nice to see my search didn't find this bug. ;) I already committed a change to install packaging, but you may want to revert that and commit the patch in this issue. I'll leave that for you to decide! -- nosy: +barry ___

[issue11113] html.entities mapping dicts need updating?

2011-06-14 Thread Hans Peter de Koning
Hans Peter de Koning added the comment: BTW, the HTMLParser module (as well as html.parser in 3.x) does claim to parse both HTML and XHTML, see http://docs.python.org/library/htmlparser.html#module-HTMLParser . -- ___ Python tracker

[issue11797] 2to3 does not correct "reload"

2011-06-14 Thread Torsten Landschoff
Torsten Landschoff added the comment: The other use case I see is to reload a module during debugging after changing the code. This is especially useful for big GUI applications. -- nosy: +torsten ___ Python tracker

[issue12313] make install misses packaging module

2011-06-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12335] pysetup create will clobber an existing setup.cfg

2011-06-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11113] html.entities mapping dicts need updating?

2011-06-14 Thread Hans Peter de Koning
Hans Peter de Koning added the comment: The reason I raised #12329 was that the v2.7.1 documentation in http://docs.python.org/library/htmllib.html#module-htmlentitydefs says: "... The definition provided here contains all the entities defined by XHTML 1.0 ..." The only diff between the 252 HTM

[issue12335] pysetup create will clobber an existing setup.cfg

2011-06-14 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : I have both a setup.py and a setup.cfg in my package. I wanted to use `pysetup create` to add the new packaging stanzas to my setup.cfg, but instead, pysetup clobbered everything. I think it should instead append (or prepend) the new stuff to the existin

[issue6717] Some problem with recursion handling

2011-06-14 Thread Dino Viehland
Dino Viehland added the comment: I ran into a similar issue and believe I have a simpler repro. I think the issue here might be that when you take a stack overflow inside of a sys.settrace handler that you can then later violate the stack depth. The attached test.py has no dependencies and

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-14 Thread Dave Malcolm
Dave Malcolm added the comment: Also, I see that Modules/selectmodule.c has some painful-looking workarounds involving "HAVE_BROKEN_POLL", which presumably would also be applicable here. -- ___ Python tracker ___

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-14 Thread Dave Malcolm
Dave Malcolm added the comment: The analogous code within Modules/selectmodule.c uses #ifdef HAVE_POLL to guard the poll-using code, to support non-Windows platforms that don't have "poll". Presumably a patch for this should do the same. -- ___ P

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-14 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12332] Float division

2011-06-14 Thread Carmine Paolino
Carmine Paolino added the comment: Thank you for your help. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1612012] builtin compile() doc needs PyCF_DONT_IMPLY_DEDENT

2011-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this something that would actually be useful to someone using compile()? See #12207 also -- nosy: +terry.reedy versions: +Python 3.3 -Python 3.1 ___ Python tracker _

[issue10530] distutils2 should allow the installing of python files with invalid syntax

2011-06-14 Thread Michael Foord
Michael Foord added the comment: Yes, allowing it by default. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10530] distutils2 should allow the installing of python files with invalid syntax

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: > Config options are for when developers can't make decisions. I don’t understand. In packaging, a config file is central, as it contains the whole metadata, manifest and command options. > Given that there are valid use cases please just allow it. If this was n

[issue7594] shlex refactoring

2011-06-14 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2011-06-14 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue762963] timemodule.c: Python loses current timezone

2011-06-14 Thread Stephen White
Stephen White added the comment: The patch, issue762963.diff, is broken. It is calling mktime on a struct tm that is initialized to zeros. This means that it should be filling in the missing fields based on their correct values for the date 1st Jan 1900, which is incorrect behaviour as the

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2011-06-14 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10530] distutils2 should allow the installing of python files with invalid syntax

2011-06-14 Thread Michael Foord
Michael Foord added the comment: Config options are for when developers can't make decisions. Given that there are valid use cases please just allow it. A --strict option is fine... (but no-one will use it I suspect) -- ___ Python tracker

[issue11493] Add python.exe-gdb.py to .hgignore

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: What is python.exe-gdb.py? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8534] multiprocessing not working from egg

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure this belongs on the Python tracker. -- nosy: +eric.araujo ___ Python tracker ___ ___ Pytho

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch. Can you write a test? -- nosy: +eric.araujo stage: patch review -> test needed versions: +Python 3.3 -Python 3.1 ___ Python tracker _

[issue8255] Packaging step-by-step tutorial

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: I think the official documentation is less opinionated than the Hitchhiker’s Guide. -- title: step-by-step tutorial -> Packaging step-by-step tutorial versions: +Python 3.3 -3rd party ___ Python tracker

[issue10457] "Related help topics" shown outside pager

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your message. There was already a report for this bug, so I’m closing this one. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> pydoc.Helper.help() ignores input/output init paramete

[issue10514] configure does not create accurate Makefile on AIX

2011-06-14 Thread Éric Araujo
Changes by Éric Araujo : -- title: configure does not create accurate Makefile -> configure does not create accurate Makefile on AIX ___ Python tracker ___ _

[issue10530] distutils2 should allow the installing of python files with invalid syntax

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: > A --strict option could be provided to allow these to remain an error. Or a config option could let you list the files that should not be byte-compiled. -- stage: -> needs patch versions: +Python 3.3 ___ Python tra

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2011-06-14 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: docs@python -> components: -Documentation nosy: +eric.araujo, ezio.melotti, michael.foord -docs@python stage: -> test needed type: feature request -> behavior versions: +Python 3.2, Python 3.3 ___ Python tracke

[issue1222585] C++ compilation support for distutils

2011-06-14 Thread Éric Araujo
Changes by Éric Araujo : -- type: compile error -> feature request versions: +Python 3.3 -3rd party ___ Python tracker ___ ___ Pytho

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-14 Thread Brian Curtin
Brian Curtin added the comment: Just had a successful XP buildbot run: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.2/builds/304 -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python t

[issue8933] Invalid detection of metadata version

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: I’ll look into this shortly. -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mail

[issue12207] Document ast.PyCF_ONLY_AST

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: Another bug requesting documentation for a compiler flag exposed by a module: #1612012. > If possible, I would have the index point to the first current > sentence, which also mentions .parse() as an alternative. This should be possible: http://sphinx.pocoo.org/

[issue12334] Strange sort error

2011-06-14 Thread Mark Dickinson
Mark Dickinson added the comment: ... and you probably want sorted(lst0, key=len, reverse=True) anyway. :-) -- nosy: +mark.dickinson ___ Python tracker ___ ___

[issue9363] data_files are not installed relative to sys.prefix

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Do you have a script or test to reproduce the bug? Otherwise I’ll try to write one. -- assignee: tarek -> eric.araujo nosy: +eric.araujo stage: -> test needed versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___

[issue9273] 2to3 to simultaneously do code and doctests

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: For the 2to3 support in the new packaging module (successor of distutils), we even do three passes: code, docstrings and doctest files. -- nosy: +eric.araujo stage: -> needs patch title: 2to3 to simultaneously do code AND doctests -> 2to3 to simultaneous

[issue12334] Strange sort error

2011-06-14 Thread Reinhard Engel
Reinhard Engel added the comment: Sorry, oversaw silly error in comparison! -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue7969] shutil.copytree error handling non-standard and partially broken

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: I think it would be good. -- assignee: tarek -> eric.araujo versions: -Python 3.1 ___ Python tracker ___ _

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-14 Thread Brian Curtin
Brian Curtin added the comment: I think quick3 is the way to go - checked in, we'll see how the buildbots react. 1524a60016d0 is the changeset for the 3.2 checkin (forgot to mention the issue# there) -- ___ Python tracker

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 23e14af406df by Brian Curtin in branch 'default': Merge 3.2 - update to the fix for #12084 http://hg.python.org/cpython/rev/23e14af406df -- ___ Python tracker ___

[issue12334] Strange sort error

2011-06-14 Thread Reinhard Engel
New submission from Reinhard Engel : # Strange sort error # lst1 and lst 2 produce different results, but should be same # lst1 should sort by length of items, but doesn't, lst2 does! lst0 = ['ab-get-ratings-max', 'ab-get-ratings-min', 'ab-rate-position', 'accum', 'add-cops', 'add-new-dice', 'a

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: This should not be too hard to fix: I’ll move the directory with the mock projects to a temp dir, add that to sys.path, and then we’ll be able to read and write. -- assignee: tarek -> eric.araujo ___ Python tracker <

[issue12333] test_packaging failures under Solaris

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: I’m going to change directory before removing the temp dir. -- ___ Python tracker ___ ___ Python-bugs-

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: Path LGTM. Also +1 on keeping distutils and packaging wholly separate, including in tests infrastructure. It’s just one file. -- ___ Python tracker ___

[issue11113] html.entities mapping dicts need updating?

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: I just closed #12329 as a duplicate of this bug. It requested the addition of the apos named entity reference. TTBOMK, the html module (or htmlentitydefs in 2.x) doesn’t claim to support XHTML TTBOMK; an XML parser should be used for XHTML. In HTML 4.01, apos

[issue12329] XHTML entity apos missing in htmlentitydefs

2011-06-14 Thread Éric Araujo
Éric Araujo added the comment: Please join the discussion on the already-opened report #3. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> html.entities mapping dicts need updating? type: -> feature request versions: +Python 3.3 -Py

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, using $(prefix)/include to fetch development headers sounds like the wrong strategy anyway. Just because you e.g. install into /usr/local doesn't mean your zlib is inside /usr/local too. And if that makes people use our own zlib headers by mistake, then

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-06-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek components: +Distutils2 nosy: +alexis, tarek stage: -> needs patch ___ Python tracker ___

[issue12333] test_packaging failures under Solaris

2011-06-14 Thread Antoine Pitrou
New submission from Antoine Pitrou : The problem is that tearDown() tries to rmdir() the current directory, which is forbidden under Solaris and returns EINVAL: >>> os.getcwd() '/home/antoine/t/t' >>> os.rmdir("/home/antoine/t/t") Traceback (most recent call last): File "", line 1, in OSErro

[issue11102] configure doesn't find "major()" on HP-UX v11.31

2011-06-14 Thread Oren Held
Oren Held added the comment: Any tip on how to make this patch get committed? :) -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue12332] Float division

2011-06-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yep. See http://docs.python.org/tutorial/floatingpoint.html -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker __

[issue12332] Float division

2011-06-14 Thread Carmine Paolino
Carmine Paolino added the comment: When I try to run 3*0.2 in Python shell or using an IDLE document, the result given is 0.6001. -- ___ Python tracker ___

[issue12332] Float division

2011-06-14 Thread Carmine Paolino
New submission from Carmine Paolino : Trying to run this simple script: for i in range(10): print(i*0.2) when i is 3, the result given is 0.6001. What could the problem be? -- components: Interpreter Core messages: 138311 nosy: cancelliere priority: normal severity: norma

[issue10897] UNIX mmap unnecessarily dup() file descriptor

2011-06-14 Thread Facundo Batista
Changes by Facundo Batista : -- nosy: -facundobatista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2011-06-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11838] IDLE: make interactive code savable as a runnable script

2011-06-14 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: This code has changed a lot in Python 3.3 (it is now located in Lib/multiprocessing/connection.py). Can you post a patch against the development tip ("default" branch)? See http://docs.python.org/devguide/setup.html if you need more information. -- v

[issue12331] lib2to3 and packaging tests fail because they write into protected directory

2011-06-14 Thread Vinay Sajip
Vinay Sajip added the comment: Some packaging tests also fail, for similar reasons: == ERROR: test_get_distinfo_file (packaging.tests.test_database.TestDistribution) -

[issue762963] timemodule.c: Python loses current timezone

2011-06-14 Thread Jon Siddle
Changes by Jon Siddle : -- nosy: +jonsiddle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > The change to sys.platform=='linux' would break code even on current > > platforms. > > Correct. Compared to introducing 'linux3', I consider this the better > change - it likely breaks earlier (i.e. when porting to Python 3.3). FWIW, I also agree that sy

[issue762963] timemodule.c: Python loses current timezone

2011-06-14 Thread Stephen White
Stephen White added the comment: Debian appear to have applied this patch, and it seems to be causing problems: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593461 -- nosy: +Stephen.White ___ Python tracker _

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > >> The change to sys.platform=='linux' would break code even on current >> platforms. > > Correct. Compared to introducing 'linux3', I consider this the better > change - it likely breaks e

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-14 Thread Erez Sh
Erez Sh added the comment: I support this change. Putting an arbitrary limitation on the amount of supported subprocesses is disastrous for complex software. Gergely's patch seems good. I would only like to suggest a small cosmetic refinement to it, which removes some dead code. -- n

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-14 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file22363/quick3.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-14 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file22362/quick2.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I created several patches. quick1.patch: os.stat() traverses junction on Vista/7, and raises error on XP. quick2.patch: os.stat() never traverse junction on all windows. quick3.patch: os.stat() should traverse junction os Vista/7, but doesn't on XP. There ar

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I tried issue12084_XP.diff, but os.stat()/os.lstat() always failed with following message because it raises exception on top of it when running on XP. Python 3.2.1rc1+ (default, Jun 14 2011, 16:26:11) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copy

[issue12331] lib2to3 tests write into protected directory

2011-06-14 Thread Vinay Sajip
Changes by Vinay Sajip : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12331] lib2to3 tests write into protected directory

2011-06-14 Thread Vinay Sajip
New submission from Vinay Sajip : Some of the tests for lib2to3 write into folders which are protected in an installed Python. This means that regression tests fail when run on an installed Python, even though they run wihtout these errors on a source build. I think writes should be done into

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-14 Thread Dan Kenigsberg
Dan Kenigsberg added the comment: I would rate this issue as a performance bug, not a mere feature request. If the python process has more than 1023 open file descriptors, multiprocessing.Pipe.poll() becomes unusable. This is a serious barrier to using multiprocessing in a complex server. --

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-14 Thread Charles-François Natali
Charles-François Natali added the comment: > I'm sure Linus Torvalds is fully aware of the possible > consequences of the version change, and just accepted the breakage > that this would cause. Any application relying on sys.platform == 'linux2' is already broken. It's exactly the same if an ap