[issue12628] urllib.request.urlopen gives empty response bodies for some sites

2011-07-23 Thread Ezio Melotti
Ezio Melotti added the comment: Duplicate of #12576. -- nosy: +ezio.melotti resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> urlib.request fails to open some sites ___ Python tracker

[issue12628] urllib.request.urlopen gives empty response bodies for some sites

2011-07-23 Thread Roy Liu
New submission from Roy Liu : When testing urllib.request.urlopen in Python 3, I found that it gave empty responses for some sites. In other words, reading from the file-like object gives zero bytes. Python 2.x's urllib2.urlopen did not give this behavior. I isolated the problem down to the fo

[issue2091] file accepts 'rU+' as a mode

2011-07-23 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12043] Update shutil documentation

2011-07-23 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1397474] timeit execution enviroment

2011-07-23 Thread Eli Bendersky
Eli Bendersky added the comment: Terry, I'd like to move this forward. New interfaces or not, making the documentation more comprehensible is an important goal in itself. Could you please comment on rurpy2's latest notes - I will adapt the patch for latest 2.7/3.2/3.3 heads and commit it. --

[issue5441] Convenience API for timeit.main

2011-07-23 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky added the comment: Terry, What still bugs me is that it isn't clear what change from 3.2 to 3.2.1 caused this problem to manifest. Also, I'm not sure why you mention the sockets vs. pipes issue. -- ___ Python tracker

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-07-23 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-07-23 Thread Kerrick Staley
Kerrick Staley added the comment: This updates the links created by "make install" or "make bininstall" in Python 3 so that they're in agreement with the recommendations of PEP 394; it's the equivalent of version27_links.patch but is for Python 3. -- Added file: http://bugs.python.org

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-07-23 Thread Kerrick Staley
Kerrick Staley added the comment: Here is a patch that will update the Makefile.pre.in file for 2.7, causing it to install python2 and python2-config when run with "make install" (or just "make bininstall"). This does not update any documentation. Also, it appears that Idle and PyDoc are not

[issue12627] Implement PEP 394: The "python" Command on Unix-Like Systems

2011-07-23 Thread Kerrick Staley
New submission from Kerrick Staley : This issue was opened to track the implementation of PEP 394, which governs the way the python command and commands like python2 and python3 work on Unix-like systems. -- components: Installation messages: 141034 nosy: Kerrick.Staley priority: norma

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-07-23 Thread Ezio Melotti
Ezio Melotti added the comment: > When an integer out of range(0, 256) is passed as the first argument, > should we raise a ValueError or a TypeError? ValueError = Inappropriate argument value (of correct type). TypeError = Inappropriate argument type. > Currently, a ValueError raised, but thi

[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-07-23 Thread Ezio Melotti
Ezio Melotti added the comment: See also #12626 for a similar suggestion. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12626] run test cases based on a glob filter

2011-07-23 Thread Ezio Melotti
Ezio Melotti added the comment: See also #12231 for a similar suggestion. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10044] small int optimization

2011-07-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1813] Codec lookup failing under turkish locale

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Finally fixed in 2.7, 3.2, 3.3! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker _

[issue1813] Codec lookup failing under turkish locale

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 739958134fe5 by Antoine Pitrou in branch '2.7': Issue #1813: Fix codec lookup and setting/getting locales under Turkish locales. http://hg.python.org/cpython/rev/739958134fe5 -- ___ Python tracker

[issue1813] Codec lookup failing under turkish locale

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 92d02de91cc9 by Antoine Pitrou in branch '3.2': Issue #1813: Fix codec lookup under Turkish locales. http://hg.python.org/cpython/rev/92d02de91cc9 New changeset a77a4df54b95 by Antoine Pitrou in branch '3.2': Add a test for issue #1813: getlocale()

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: These are not on head revision in cpython and 3.2. Where did you find this bug? Please provide further details along with snippet and/or file. -- nosy: +orsenthil stage: needs patch -> ___ Python tracker

[issue12625] sporadic test_unittest failure

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Note that this kind of test assumes that the Python signal handler is > called right after the signal is delivered, i.e. every time from the > main eval loop (I think that's true with recent Python versions, is > that true with 2.7?). No, it's a feature of th

[issue12625] sporadic test_unittest failure

2011-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: > So I'd say the easier solution is to skip this test on OpenSolaris, > like it's done on FreeBSD6 since issue #8263. Another option could be to add a dummy syscall, like os.getpid(), before checking that the handler got called - this might be enough t

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: Well, the function is part of pydoc's public API, but the inner working of the cache mechanism is completely private: this won't have any impact, other than fixing the bug :-) -- ___ Python tracker

[issue12625] sporadic test_unittest failure

2011-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: Looks similar to issue #8263, which is in turn similar to #12469 (see http://bugs.python.org/issue12469#msg139620 and http://bugs.python.org/issue12469#msg139626 for original explanations): normally, pending signals are checked when the process returns

[issue12626] run test cases based on a glob filter

2011-07-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch allows to only run tests which satisfy a glob filter, using the --match (-m) option to regrtest. For example: ./python -m test -m "*Signal*" -v test_io will execute all the signal-related tests in test_io. -- components: Tests files: r

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-23 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good. Does this require a doc update, or is it entirely an internal function? -- ___ Python tracker ___

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

2011-07-23 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2011-07-23 Thread python272
python272 added the comment: problem exists in python 2.7.2 (should this be reported as a separate issue?) [Python-2.7.2]$ python -m test.regrtest -v test_lib2to3 ... ERROR: test_bom (lib2to3.tests.test_refactor.TestRefactoringTool) ... ERROR: test_crlf_newlines ERROR: test_file_encoding ERRO

[issue10883] urllib: socket is not closed explicitly

2011-07-23 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue12624] failfast support for regrtest

2011-07-23 Thread Sandro Tosi
Changes by Sandro Tosi : -- resolution: invalid -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue12625] sporadic test_unittest failure

2011-07-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : Seen on an OpenIndiana buildbot: == FAIL: testInstallHandler (unittest.test.test_break.TestBreak) -- Traceback (most recent

[issue12624] failfast support for regrtest

2011-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> invalid stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue12624] failfast support for regrtest

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f847dfba217 by Antoine Pitrou in branch '3.2': Issue #12624: It is now possible to fail after the first failure when http://hg.python.org/cpython/rev/9f847dfba217 New changeset 01d18277c40b by Antoine Pitrou in branch 'default': Issue #12624: It i

[issue12624] failfast support for regrtest

2011-07-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch adds a new --failfast (-G) argument to regrtest which stops running the tests as soon as a test fails (when using unittest-based test cases). Useful with long test suites such as test_io and test_subprocess. -- components: Tests files: fa

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-07-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attached a patch with the following changes: Allow an integer argument in range(0, 256) for the following bytes and bytearray methods: count, find, index, rfind, rindex. Initially, only count and index were targeted, but as index is implemented in a helper func

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, this should be fixed now. universal newlines support is still broken with communicate(), I've opened issue12623 for that. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed

[issue12623] "universal newlines" subprocess support broken with select- and poll-based communicate()

2011-07-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : The select() and poll() loop implementations of Popen.communicate() call os.write() instead of the write() method on the stdin pipe, meaning any newline translation *and* unicode-to-bytes encoding step is skipped. To use the write() method on the stdin pipe

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5cc536fbd7c1 by Antoine Pitrou in branch '3.2': Issue #12591: Improve support of "universal newlines" in the subprocess http://hg.python.org/cpython/rev/5cc536fbd7c1 New changeset b616396fa170 by Antoine Pitrou in branch 'default': Issue #12591: Im

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2011-07-23 Thread Stefan Krah
Stefan Krah added the comment: I forgot: readline support is enabled, and there are known problems: http://marc.info/?t=12832732933&r=1&w=2 -- ___ Python tracker ___ ___

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9144014028f3 by Antoine Pitrou in branch '3.2': Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (without http://hg.python.org/cpython/rev/9144014028f3 New changeset c3b47cdea0d1 by Antoine Pitrou in branch 'default': Issue #12591:

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eli, nice detective work. What I understand is that there was a latent platform-dependent buglet that presumably got exposed by a recent change in process handling, as Ned suggested. idlelib/PyShell.py, class ModifiedInterpreter(InteractiveInterpreter) has

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: This additional patch improves universal_newlines support in subprocess (still broken with the select- and poll-based loops in communicate()). -- Added file: http://bugs.python.org/file22732/spnewlines.patch ___ Pyt

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Looks good, then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2011-07-23 Thread Stefan Krah
Stefan Krah added the comment: I know, the OpenBSD libpthread has problems. I listed some possible candidates in #8712. For instance: http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/lang/python/2.6/patches/Attic/patch-Lib_test_test_signal_py?rev=1.3;content-type=text%2Fplain The comme

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > "write_through" is not used in _pyio.py, is it expected? Yup, because it is actually always write-through (writes are not cached). The argument is only there so that the signature is the same as the C version. --

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: "write_through" is not used in _pyio.py, is it expected? -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue12622] failfast argument to TextTestRunner not documented

2011-07-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : http://docs.python.org/dev/library/unittest.html#unittest.TextTestRunner doesn't mention the "failfast" argument, even though it's used by unittest.main(). -- assignee: michael.foord components: Documentation messages: 141004 nosy: michael.foord, pi

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a first patch allowing TextIOWrapper to work with raw IO objects, and adding a "write_through" flag. -- keywords: +patch Added file: http://bugs.python.org/file22731/textio_rawio.patch ___ Python tracker

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Another possibility is to provide read1() on RawIO, as a synonym of read(). -- ___ Python tracker ___ _

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-23 Thread Petri Lehtinen
New submission from Petri Lehtinen : bytes.{find,rfind} reads s[start:end]; should be B[start:end] bytearray.{find,rfind} reads s[start,end]; should be B[start:end] {str,unicode}.{find,rfind} reads s{start:end]; should be S[start:end] -- assignee: docs@python components: Documentation,

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, one problem is that the C TextIOWrapper buffers writes. We would need an additional constructor parameter to prevent that :/ -- ___ Python tracker __

[issue12600] Support parameterized TestCases in unittest

2011-07-23 Thread Michael Foord
Michael Foord added the comment: Having a "TestCase factory" would be pretty easy, and solve the scaling problems. For example: def make_testcase_classes(): for backend in backends: yield type( '{}Test'.format(backend.name), (TheBaseClass, unittest.TestCase

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: So, as the title indicates, I think we should make TextIOWrapper work with raw IO objects. The reason is so that write() can behave in a totally unbuffered way, which is necessary for Popen to behave appropriately. --

[issue12591] TextIOWrapper should fall back on read() if read1() doesn't exist

2011-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: text files returned by subprocess.Popen with universal_newlines=True are not iterable -> TextIOWrapper should fall back on read() if read1() doesn't exist ___ Python tracker

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: Demo: """ cf@neobox:~/cpython$ ./python -c "import pydoc; print(pydoc.synopsis('Lib/os.py'))" OS routines for Mac, NT, or Posix depending on what system we're on. [51835 refs] cf@neobox:~/cpython$ touch -t 19700101 Lib/os.py cf@neobox:~/cpython$

[issue11553] Docs for: import, packages, site.py, .pth files

2011-07-23 Thread aaugustin
aaugustin added the comment: I noticed an inconsistency in the docs, and I think it falls in the "Language Reference" section of this ticket. In the definition of the import statement, after: | "from" module "import" "*" we should add: | "from" relative_module "import" "*"

[issue11610] Improved support for abstract base classes with descriptors

2011-07-23 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11610] Improved support for abstract base classes with descriptors

2011-07-23 Thread Darren Dale
Darren Dale added the comment: Here is a new version of the patch, addressing points raised in the review of the previous version. -- Added file: http://bugs.python.org/file22729/abc_descriptor.patch ___ Python tracker

[issue12620] pending calls: make `pendingbusy` flag static to Py_MakePendingCalls()

2011-07-23 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12620] pending calls: make `pendingbusy` flag static to Py_MakePendingCalls()

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset cda93720c06d by Charles-François Natali in branch 'default': Issue 12620: Make pendingbusy flag static to Py_MakePendingCalls(). http://hg.python.org/cpython/rev/cda93720c06d -- nosy: +python-dev ___ Pyt

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12605] Enhancements to gdb 7 debugging hooks

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: The improvements are welcome, but I'm not sure they're ok for 3.2 or 2.7, since they're technically a new feature. OTOH, one could argue that better debuggability trumps the no-feature rule. -- nosy: +pitrou stage: -> patch review ___

[issue12620] pending calls: make `pendingbusy` flag static to Py_MakePendingCalls()

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks obviously fine :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue12560] libpython.so not built on OpenBSD

2011-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo, neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12560] libpython.so not built on OpenBSD

2011-07-23 Thread Stefan Krah
Stefan Krah added the comment: Unassigning: I tested on OpenBSD 4.5 and get other (probably unrelated errors). -- assignee: skrah -> ___ Python tracker ___

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Sjoerd de Vries
Sjoerd de Vries added the comment: Good to hear that the patch is helpful. Again, I am just trying to be a helpful user, making a (very very little) contribution to make Python better. I am not a Python dev at all: Python is already awesome enough for me, no desire to change it :-) I just wa

[issue12528] Implement configurable bitfield allocation strategy

2011-07-23 Thread Vlad Riscutia
Vlad Riscutia added the comment: Updated patch to reflect review feedback. Allocation strategy is now specified as string in Python code. I kept asserts in CanContinueField/CanExpandField because, as I said, default case should never be hit. Input is validated in stgdict and this should make

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread R. David Murray
R. David Murray added the comment: Exhaustion of the iterator is easily solved by simply retaining a reference to it and iterating that (which is what I had in mind). However, I had not thought about the problem of an *in*exhaustable iterator, and to cover that case len is indeed better. --

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread higery
Changes by higery : Added file: http://bugs.python.org/file22727/c5692393c621.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10883] urllib: socket is not closed explicitly

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbf1e1a27427 by Nadeem Vawda in branch '2.7': Issue #10883: Fix socket leaks in urllib.request. http://hg.python.org/cpython/rev/dbf1e1a27427 -- ___ Python tracker __

[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)

2011-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: and Darwin). It would have been useful... """ interp 0x0, thread state 0x81855380: Program received signal SIGSEGV, Segmentation fault. """ Here, the interpreter state is NULL, and this shouldn't happen. It could be a bug linked to thread-local stora

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

2011-07-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > this does sound very ugly. > > so we get now another mostly unmaintained platform directory? > unfortunately the generated header files are almost never updated > during a releaes cycle. I would be +1 to deprecate this stuff, but that's quite separate from t

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file22723/python-regenerate_platdir.patch ___ Python tracker ___ ___

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The new patch creates platform-specific modules at build time and verifies their syntax. -- Added file: http://bugs.python.org/file22726/python-regenerate_platdir.patch ___ Python tracker

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread higery
higery added the comment: >>Your test should catch stdout (see other packaging tests for how to do that), >>so that people or buildbots running the tests don’t see “Hello world!”, and >>so that you can run asserts for the output. Thanks. Got it - captured_stdout --

[issue11877] Change os.fsync() to support physical backing store syncs

2011-07-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > > Even PEP 3151 won't help. > > I don't understand. If the syscall supposed to flush the disk's buffer > cache fails - be it fcntl() or sync_file_range() - I think the error > should be propagated, not silently ignored and replaced with another > sysc

[issue10883] urllib: socket is not closed explicitly

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset c741ba9e37ef by Nadeem Vawda in branch '3.2': Issue #10883: Fix socket leaks in urllib.request. http://hg.python.org/cpython/rev/c741ba9e37ef New changeset d68765bd6490 by Nadeem Vawda in branch 'default': Merge: #10883: Fix socket leaks in urllib.

[issue11049] add tests for test.support

2011-07-23 Thread Eli Bendersky
Eli Bendersky added the comment: OK, the bots are green again after the last push. Sorry about that, folks. I tested this on two different machines (Ubuntu & Win XP) before pushing the original commit. -- ___ Python tracker

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread higery
higery added the comment: >>The object with the name executable or options is bytes, which you should >>explicitly convert to a string with decode. I also don’t like using >>locals(), but that’s a personal style thing. Thanks for your test, I'll amend it. -- ___

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-23 Thread higery
higery added the comment: >>An octal literal in 3.x is 0o755. Decimal 755 means 0o1363, which is not >>good :) Thank you for your reminding. The reason I made this mistake is that I'm not familiar with the right way to set permission code in Python3+ . -- __

[issue12608] crash in PyAST_Compile when running Python code

2011-07-23 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- dependencies: +add a AST validator ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11049] add tests for test.support

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0018a28583f4 by Eli Bendersky in branch 'default': Issue #11049: skip a test that fails on some buildbots http://hg.python.org/cpython/rev/0018a28583f4 -- ___ Python tracker

[issue12620] pending calls: make `pendingbusy` flag static to Py_MakePendingCalls()

2011-07-23 Thread Charles-François Natali
New submission from Charles-François Natali : Trivial patch. In Python/ceval.c, when compiled with threads, make the `pendingbusy` flag used to guard against reentrant calls static to Py_MakePendingCalls(). Also, make it an int and rename it to `busy` to be consistent with the non-threaded code

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky added the comment: I don't think there's a problem with os.spawnv and os.kill - they do what their docs describe. IMHO, the solution should be to change IDLE so that it uses subprocess.Popen for both starting and killing the child process. -- __

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Georg Brandl
Georg Brandl added the comment: Hmm, on the other hand there may be valid use cases for using os.kill() with a PID. Argh. -- ___ Python tracker ___ ___

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky added the comment: According to http://msdn.microsoft.com/en-us/library/7zt1y878%28v=vs.80%29.aspx, on Windows _spawnv in async mode (P_NOWAIT) returns the process _handle_, not the process ID. win32_kill uses OpenProcess, passing it pid to obtain the handle, but this pid is a

[issue8714] Delayed signals in the REPL on OpenBSD (possibly libpthread related)

2011-07-23 Thread Charles-François Natali
Charles-François Natali added the comment: > This behavior was introduced (exposed by?) r68460. After a quick look, I don't see anything wrong with r68460, but it might very well have exposed this problem which was lurking before. > When Python is compiled without threads, the behavior is nor

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky added the comment: Georg, I'm now debugging into win32_kill, and it's an error in OpenProcess, so this *could* be a security issue. The process is started with _spawnv, so maybe this causes problems opening it with OpenProcess later. --

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Georg Brandl
Georg Brandl added the comment: The other question is if it is an access control problem. win32_kill tries to open the process with PROCESS_ALL_ACCESS, while IMO PROCESS_TERMINATE would suffice. -- ___ Python tracker

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Georg Brandl
Georg Brandl added the comment: Hmm, the docs say "Any other value for sig will cause the process to be unconditionally killed by the TerminateProcess API [...]" What happens if you try to use other signals (like signal.SIGKILL) instead of SIGTERM? -- ___

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks a lot for the patch, Petter Haggholm. I was initially hesitant to have separate tests for functions/methods which are helper functions and not necessarily have documented api. My thought was that those should be tested as part of the public api. But on

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-23 Thread Georg Brandl
Georg Brandl added the comment: Yes, this is a bug in bytearray and should be fixed. -- assignee: docs@python -> components: -Documentation nosy: +georg.brandl versions: +Python 2.7, Python 3.2 -Python 3.1 ___ Python tracker

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-23 Thread Eli Bendersky
Eli Bendersky added the comment: Here's a simple reproducer for the same problem, without the context of IDLE. As far as I understand, what IDLE's spawn and then kill process are doing is: import os from signal import SIGTERM pid = os.spawnv(os.P_NOWAIT, "notepad.exe", ['notepad.exe'])

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Georg Brandl
Georg Brandl added the comment: Well, we can work with this patch. Thanks. Yes, we can diff against 3.2, but for that you would have at least needed to specify * that you worked on a released version * and that that version is 3.2 Otherwise, we cannot know what to diff against. Note that e

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset e171db785c37 by Senthil Kumaran in branch '3.2': Fix closes issue12581 - Increase the urllib.parse test coverage. Patch by Petter Haggholm. http://hg.python.org/cpython/rev/e171db785c37 New changeset fcccda3c546f by Senthil Kumaran in branch 'defa

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Matthias Klose
Matthias Klose added the comment: is auto-generation wanted? are you sure that you can't end up with bad syntax? -- ___ Python tracker ___ __

[issue12581] Increased test coverage of test_urlparse

2011-07-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Jul 23, 2011 at 09:37:27AM +, Éric Araujo wrote: > I’ve had a look at the docstring and the reST docs, and they clearly > say that sequences are supported, not arbitrary iterables. Yeah. At the first cut, when I saw the suggestion of iter(), I thou

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-07-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Should the component really be extension modules? I don't believe _sre.c is a part of the API, and the problem is embedding Python as a whole. -- ___ Python tracker _

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-23 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12618] py_compile cannot create files in current directory

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: It's a context patch, not a unified patch, and it is reversed :) . -- ___ Python tracker ___ _

[issue12619] Automatically regenerate platform-specific modules

2011-07-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I don't care when they will be regenerated. -- ___ Python tracker ___ ___ Pyth

  1   2   >