[issue7753] newgil backport

2011-06-09 Thread Julian Mehnle
Changes by Julian Mehnle jul...@mehnle.net: -- nosy: +jmehnle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7753 ___ ___ Python-bugs-list mailing

[issue9284] inspect.findsource() cannot find source for doctest code

2011-06-09 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Would it still be possible to get this into 2.7.2? It's a 2.6-2.7 regression, would be nice to fix, and it seems fairly low-impact. -- nosy: +benjamin.peterson ___ Python tracker

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2011-06-09 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Antoine is right: we don't have to be portable. We don't have to, but writing one POSIX-conformant solution is better than writing N OS-specific solutions, no? That's what POSIX is about. Should we block the signal? Yes. What

[issue1195571] simple callback system for Py_FatalError

2011-06-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Sorry, the documentation in the patch is wrong. It should be: Cause :cfunc:`Py_FatalError` to invoke the given function before printing to standard error and aborting out of the process. I don't think it's worth making it more

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Vinay Sajip
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: The attached file 'data.bin' was written using Python 3.2. It can be read by Python 2.7, but in 3.2 and 3.3, after the first object is read, the file pointer is positioned at EOF, causing an error on subsequent reads. A simple test

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Sadly, marshal.load() looks broken: - The function starts with the comment /* XXX Quick hack -- need to do this differently */ - It starts by calling f.read() which consumes the whole file (and explains the issue reported here) -

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-06-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, sigwait() doesn't accept a timeout! I would be nice to have also sigwaitinfo().. and maybe also its friend, sigwaitinfo() Oops, I mean sigtimedwait() and sigwaitinfo(). -- ___

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2011-06-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: (I should not answer in this issue, but in #8407) See also issue #8407 for sigtimedwait() and signalfd() in Python. You didn't commit the signalfd part? Not yet because I would like to provide something to decode the data

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 2951641faed1 by Éric Araujo in branch '2.7': Add examples that work on Windows to distutils docs (#1626300) http://hg.python.org/cpython/rev/2951641faed1 -- nosy: +python-dev ___ Python

[issue12197] non-blocking SSL write in Windows sends large data but raises exception

2011-06-09 Thread David Siroky
David Siroky sir...@dasir.cz added the comment: I didn't meant blocking as setblocking(True). I use select/poll but I can't use returned value from send() immediately since in Windows there are often needed more send rounds to actually know how much data was sent. E.g. in Linux I know it

[issue12243] getpass.getuser works on OSX

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: That would be Doc/tools/sphinxext/pyspecific.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12243 ___

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t like the idea of built-in functions being displayed as “builtins.int”: normal use of builtins is without explicit use of the module name. -- ___ Python tracker rep...@bugs.python.org

[issue12246] Warn when trying to install third-party module from an uninstalled checkout

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great! I will edit a bit the message and commit this. -- stage: - commit review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12246

[issue11203] gzip doc is behind

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Just one thing: I think the close call needs equal treatment to the open call. The open call is a module-level functions; the close method of GzipFile cannot be equally treated, as it is in the doc of the class, where no methods are given

[issue8927] Handle version incompatibilities in dependencies

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [Sridhar] No, it’s register that uploads metadata. (was not sent before?) To me, not to the tracker. Ok, that's interesting. Does p7g.install support packages that do not register their new releases? Setuptools/PIP does by scraping the

[issue12242] distutils2 environment marker for current compiler

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: One issue is that multiple compiler patterns may match, Right, we can’t say “first matches” win if it’s unordered, and we won’t have OrderedDict in all versions supported by distutils2. Make it a list of tuples. First match wins, so people

[issue12278] Core mentorship mention in the devguide

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You can just take the descriptions from the mail.python.org page. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12278 ___

[issue10645] Remove egg-info files in stdlib

2011-06-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Removing wsgiref.egg-info ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645 ___ ___

[issue12292] bpython

2011-06-09 Thread Ravish
New submission from Ravish ravish_nayak2...@yahoo.co.in: I was trying to install bpython v0.9.7.1(latest version) on python 2.6.5, it works fine. But If i try to install on python v3.2 it's behaviour is quite abnormal. i.e if I run(bpython) from command prompt, I could able to see the fancy

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 072dbebaa83b by Éric Araujo in branch '3.2': Add examples that work on Windows to distutils docs (#1626300) http://hg.python.org/cpython/rev/072dbebaa83b -- ___ Python tracker

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 59d785ea0039 by Éric Araujo in branch '3.2': Fix a few misuses of :option: I missed in r86521. http://hg.python.org/cpython/rev/59d785ea0039 -- nosy: +python-dev ___ Python tracker

[issue10645] Remove egg-info files in stdlib

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e3f6c10eb590 by Éric Araujo in branch 'default': Stop creating a Python-X.Y.Z-pyX.Y.egg-info file on install (#10645) http://hg.python.org/cpython/rev/e3f6c10eb590 New changeset af7bc95e5b1e by Éric Araujo in branch 'default': The

[issue10645] Remove egg-info files in stdlib

2011-06-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645 ___

[issue12293] wrong arguments passed to SMTP.sendmail in example

2011-06-09 Thread Fredrik Wendt
New submission from Fredrik Wendt fred...@wendt.se: On http://docs.python.org/library/email-examples.html#email-examples the current example (v2.7.1) at the bottom incorrectly calls SMTP.sendmail() with a single recipient e-mail address. It should be a list of addresses. -- assignee:

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7164bdfa0b0b by Éric Araujo in branch '2.7': Fix a few misuses of :option: I missed in r86521. http://hg.python.org/cpython/rev/7164bdfa0b0b -- ___ Python tracker rep...@bugs.python.org

[issue12292] bpython

2011-06-09 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: This issue tracker is for reporting issues about Python itself. Issues concerning third-party projects should go to the respective issue tracker of the project first (in this case https://bitbucket.org/bobf/bpython/issues). This

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is now fixed in the distutils Installing and Distributing guides. Does the same problem apply to the new docs using packaging and the pysetup script? Please check http://docs.python.org/dev/packaging and

[issue12292] bpython

2011-06-09 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12292 ___

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-06-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: @ Ronald Oussoren wrote: if major = 10: # We're on OSX 10.6 or earlier enableWorkaround() (You sound as if you participate in an interesting audiophonic event. 27 imac's are indeed great recording studio

[issue12282] build process adds CWD (null entry) to PYTHONPATH if PYTHONPATH is set in the build environment

2011-06-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12282 ___ ___

[issue12284] argparse.ArgumentParser: usage example option

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Is http://docs.python.org/dev/library/argparse#usage what you want? -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284

[issue12293] wrong arguments passed to SMTP.sendmail in example

2011-06-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: docs@python - r.david.murray nosy: +r.david.murray versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12293

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I've added a patch which I think fixes marshal.load(), and would be grateful for a review - it's my first C patch for Python. The test_marshal test passes, though I haven't yet added a test for the failing scenario. -- keywords:

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-06-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: steffen: I have no idea what you are trying to say in your last message. Could you please try to stay on topic. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277

[issue12279] Add build_distinfo command to packaging

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: packaging.command.cmd already has this method: it was renamed to get_reinitialized_function, to better match other method names. the workaround of my code is just setting the 'distinfo-dir' option with os.curdir value Yes, that’s a workaround

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: - Please replace tabs characters by space - // comments are not accepted by some picky C89 compilers Also, calling f.read(1) for each character may have a large performance impact. I don't know how this can be solved though.

[issue12294] multiprocessing.Pool: Need a way to find out if work are finished.

2011-06-09 Thread Bugs Fly
New submission from Bugs Fly mozbug...@yahoo.com.au: The join() method of Pool blocks. So it is not good for finding out if there are still running workers once the pool is closed. There should be a method like is_alive() which don't block, similar to what in Process. Or task_left() which

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

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: In either case, there's a high likelihood the PYTHON default will resolve to 3.3a0 for any Python developer. Ah, I understand the reason for the phrasing in your patch: UNIX systems typically install 3.x as python3, not python, so the high

[issue12255] A few changes to .*ignore

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I would also propose to remove *.rej and *.orig from the ignore files. It’s helpful to see them in hg status in case you had a difficult merge and did not fix all files. My usage is that I remove *.rej and *.orig after I’m done merging (or

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It should probably be buffered at 512 bytes or some other reasonable number. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291

[issue828450] sdist generates bad MANIFEST on Windows

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I wanted to review the patch but it cannot be applied. It looks like your third patch applies on top of the second. Can you generate a full patch? -- status: pending - open versions: -Python 3.1

[issue10191] scripts files are not RECORDed.

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I wrote a test but it did not fail. Can you test it too? -- keywords: +patch versions: +Python 3.3 -3rd party Added file: http://bugs.python.org/file22291/test-record-scripts-10191.diff ___ Python

[issue1083299] Distutils doesn't pick up all the files it should.

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: There are tests for data_files, they are indeed included. Please reopen if you can reproduce the bug. -- resolution: - out of date stage: test needed - committed/rejected status: open - closed ___

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Python 3.3 works with unicode ;), so we’ll try reproducing this later, when we have the 2.x backport. -- assignee: tarek - eric.araujo resolution: - remind stage: - needs patch type: - behavior ___

[issue11028] Implement the setup.py - setup.cfg in mkcfg

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is now implemented in packaging.create.MainProgram.convert_py_to_cfg. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker

[issue3992] remove custom log module from distutils2

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m leaving this open to remind us we want to remove the warn and announce methods. Logging all the way! Now done. -- assignee: tarek - eric.araujo resolution: - fixed stage: - committed/rejected status: open - closed versions:

[issue9284] inspect.findsource() cannot find source for doctest code

2011-06-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: - First line should be directly after the docstring - One import per line - Shouldn't this test be in test_inspect, since that's what you're changing? -- ___ Python tracker

[issue9395] clean does not remove all temp files

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t remember exactly what I had in mind when I reported this; maybe I didn’t understand the purpose of the clean command, which does not delete all build artifacts but only temporary by-products, unless --all is given. Jean-Paul, I think I

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___

[issue11583] os.path.isdir() is slow on windows

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d40609dd01e0 by Brian Curtin in branch '3.2': Correction to 88e318166eaf - Issue #11583 http://hg.python.org/cpython/rev/d40609dd01e0 New changeset fe813f5711a5 by Brian Curtin in branch '2.7': Correction to f1509fc75435 - Issue

[issue11594] 2to3 does not preserve line endings

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I was surprised to see that the crlf.py file was not using CRLF in the new Mercurial repo. It is also not in the .hgeol file. I changed it locally, but it doesn’t change anything, the tests pass before and after the change. --

[issue10510] distutils upload/register should use CRLF in HTTP requests

2011-06-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy versions: +Python 3.3 -3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10510 ___

[issue2057] difflib: add patch capability

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: For this to move forward, a patch or link to Mercurial repo would be required. -- nosy: +eric.araujo stage: test needed - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Same here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list

[issue10086] test_sysconfig failure when prefix matches /site

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: 1) sysconfig was originally distutils.sysconfig, and some duplication remains. Can’t this bug happen with distutils.sysconfig too? Should we duplicate tests from test_sysconfig to distutils.test_sysconfig? I’ve looked into it and converting

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Sounds blocker-ish enough to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___

[issue11591] python -S should be robust against e.g. from site import addsitedir

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Now that site can be imported without side effects under -S, I think the tests could be updated: they don’t have to be all skipped under -S. See attached patch. -- Added file: http://bugs.python.org/file22293/test_site-11591.diff

[issue8617] Better document user site-packages in site module doc

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have started to work on this; I’ll have one or two patches ready in a few weeks. -- assignee: docs@python - eric.araujo versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue12293] wrong arguments passed to SMTP.sendmail in example

2011-06-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The required arguments are an RFC 822 from-address string, a list of RFC 822 to-address strings (a bare string will be treated as a list with 1 address)... -- resolution: - invalid stage: - committed/rejected status: open -

[issue9284] inspect.findsource() cannot find source for doctest code

2011-06-09 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: I'm fine with moving the test; I put it in doctest because the inspect behavior we're relying upon here seems somewhat doctest-specific, and the test itself is a doctest. Do you want me to move it? I'll fix up the other things as well.

[issue9284] inspect.findsource() cannot find source for doctest code

2011-06-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/6/9 Dirkjan Ochtman rep...@bugs.python.org: Dirkjan Ochtman dirk...@ochtman.nl added the comment: I'm fine with moving the test; I put it in doctest because the inspect behavior we're relying upon here seems somewhat

[issue12295] Fix ResourceWarning in turtledemo help window

2011-06-09 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I found a ResourceWarning while using turtledemo and made this patch to fix it. It touches idlelib. -- assignee: eric.araujo components: IDLE, Library (Lib) files: fix-turtledemo-help-resourcewarning.diff keywords: needs review, patch

[issue12296] Minor clarification in devguide

2011-06-09 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I found the wording of one line of the devguide strange and changed it IMO for the better. Please review. -- assignee: eric.araujo components: Devguide files: clarify-bwcompat-devguide.diff keywords: needs review, patch messages:

[issue12297] Clarifications to atexit.register and unregister doc

2011-06-09 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I wanted to know the behavior of atexit.register with the same function added more than once and found out it is not explicitly documented. I experimented and made a patch to the doc. -- assignee: eric.araujo components:

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 260b84851d1f by Vinay Sajip in branch '3.2': Issue #12168: SysLogHandler now allows NUL termination to be controlled using a new 'append_nul' attribute on the handler. http://hg.python.org/cpython/rev/260b84851d1f New changeset

[issue12298] Sphinx glitch in library/functions

2011-06-09 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: In the summary table at the top of library/functions, the links for frozenset and memoryview do not jump to the definition down in the same file, but link to stdtypes. -- assignee: docs@python components: Documentation messages:

[issue2057] difflib: add patch capability

2011-06-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: For this to move forward, PSF should accelerate work on new sane Contributor's Agreements or join Harmony (http://www.harmonyagreements.org/) -- ___ Python tracker rep...@bugs.python.org

[issue7015] Getting call trace while executing modules spam at help prompt

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks like this is an external bug. -- nosy: +eric.araujo resolution: - invalid stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8488] Docstrings of non-data descriptors ignored

2011-06-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8488 ___

[issue10446] pydoc3 links to 2.x library reference

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can I help moving this forward? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10446 ___ ___

[issue12299] Stop documenting functions added by site as builtins

2011-06-09 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I find it harmful that exit, quit and help are documented in library/functions instead of library/constants (under the section “constants added by the site module”). It leads people to use unqualified help or exit instead of pydoc.help or

[issue12300] Document pydoc.help

2011-06-09 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: The only public function in pydoc is help, and it’s not listed in the module docs. The existing doc in library/functions could be moved to library/pydoc. See also #12299. -- assignee: docs@python components: Documentation messages:

[issue7283] test_site failure when .local/lib/pythonX.Y/site-packages hasn't been created yet

2011-06-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Related: I found that test_site tries to create the user site-packages dir if it does not exist, but it does not remove it after the test run. -- ___ Python tracker rep...@bugs.python.org

[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-06-09 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: In a great number of files, the ``code`` markup is used instead of the :data: role, which would create a link to the appropriate definition. Unless someone objects, I would like to change all of them. -- assignee: eric.araujo

[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-06-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12301 ___ ___

[issue12298] Sphinx glitch in library/functions

2011-06-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- dependencies: +Fix referencing of built-in types (list, int, ...) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12298 ___

[issue12298] Sphinx glitch in library/functions

2011-06-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This is not a Sphinx glitch: that's where these classes are defined. (Plus, dependencies work the other way round.) -- dependencies: -Fix referencing of built-in types (list, int, ...) nosy: +georg.brandl

[issue12298] Sphinx glitch in library/functions

2011-06-09 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12298 ___ ___ Python-bugs-list

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-09 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: It won't (because there's the ~ in :func/class:`~__builtin__.int`). Specifying the module would just be a workaround used to distinguish the 'int' in functions.rst from the one in stdtypes.rst. --

[issue12284] argparse.ArgumentParser: usage example option

2011-06-09 Thread Jonas H.
Jonas H. jo...@lophus.org added the comment: Nope. I want an examples section, for example from `man git log`: EXAMPLES git log --no-merges Show the whole commit history, but skip any merges git log v2.6.12.. include/scsi drivers/scsi Show all commits since

[issue12284] argparse.ArgumentParser: usage example option

2011-06-09 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12284 ___ ___ Python-bugs-list

[issue9284] inspect.findsource() cannot find source for doctest code

2011-06-09 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Here's a fresh patch. -- Added file: http://bugs.python.org/file22297/issue9284.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284

[issue9284] inspect.findsource() cannot find source for doctest code

2011-06-09 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: Removed file: http://bugs.python.org/file22270/issue9284.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9284 ___

[issue10424] better error message from argparse when positionals missing

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset cab204a79e09 by R David Murray in branch 'default': #10424: argument names are now included in the missing argument message http://hg.python.org/cpython/rev/cab204a79e09 -- nosy: +python-dev

[issue2057] difflib: add patch capability

2011-06-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Anatoly, Even if I remove all sarcasm from your previous answer, I don't see what it brings to the current issue. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: @Amaury: Re formatting and comment style - I will address this. The diff I posted is to the default branch rather than 3.2, though it won't change the main substance of the patch. Re. performance and buffering: I agree this could have an

[issue11595] Miscellaneous bugs in cfg_to_args() utility function

2011-06-09 Thread Erik Bray
Erik Bray erik.m.b...@gmail.com added the comment: Thanks Eric for your review. Obviously the last patch was rushed, and I didn't even run the tests. It also got my changes for issue12240 mixed into it. So I've gone ahead and attached an updated patch which incorporates your review

[issue10424] better error message from argparse when positionals missing

2011-06-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: With input from Michele on IRC I updated the tests to be more generic (not depend on the order of the reported argument names) and moved the test I talked about in my last message into a third unit test. -- resolution: -

[issue12240] Allow multiple setup_hooks

2011-06-09 Thread Erik Bray
Erik Bray erik.m.b...@gmail.com added the comment: Here's an update with tests. It should be applied after my patch for issue11595. -- Added file: http://bugs.python.org/file22299/python_issue12240-2.patch ___ Python tracker rep...@bugs.python.org

[issue10897] UNIX mmap unnecessarily dup() file descriptor

2011-06-09 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Trying to revive this issue. I'm +1 on this change: duping the file descriptor is definitely unexpected and has some side effects. I think we should remove the call to dup and close, it's really the user's responsibility to avoid

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-06-09 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I just noticed something funny: signal_sigwait doesn't release the GIL, which means that it's pretty much useless :-) Patch attached. Also, test_sigwait doesn't block the signal before calling sigwait: it happens to work because

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-06-09 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: This whole thread is becoming quite confusing. It would be better to open a separate issue for any bug or feature request which is not related to exposing signalfd(2) and pthread_sigmask. --

[issue12168] SysLogHandler incorrectly appends \000 to messages

2011-06-09 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12168 ___

[issue2057] difflib: add patch capability

2011-06-09 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: It is not sarcasm, but prerequisite. I do not sign papers I don't understand or papers that doesn't make any sense (and thus are free to any interpretation). I could sign current CLA right away, but I prefer not to do this until

[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE

2011-06-09 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: You don't check that 0 = fd (e.g. oss.close()). Actually, none of ossaudiodev's method does... This makes it even easier to trigger a segfault (at least on RHEL4): import ossaudiodev o = ossaudiodev.open('/dev/dsp', 'w')

[issue12283] python3.2 smtplib _quote_periods

2011-06-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 077b016e4a6d by R David Murray in branch '3.2': #12283: Fixed regression in smtplib quoting of leading dots in DATA. http://hg.python.org/cpython/rev/077b016e4a6d New changeset cedceeb45030 by R David Murray in branch 'default':

[issue12283] python3.2 smtplib _quote_periods

2011-06-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the report. I broke that when I refactored the code, and unfortunately there was no existing test that tested dot quoting. There is now. -- resolution: - fixed stage: patch review - committed/rejected status: open -

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-09 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Raymond, I like your patch and I think it addresses the issue nicely. I made one small change, which is to add a test for non-list-sequenceness instead of changing the existing __dir__is_list test. I think both tests are useful to keep.

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Another thought about buffering, which might be a bit of a show-stopper: if in a particular load() call we read ahead for buffering purposes, we've altered the underlying stream (which might not be seekable to allow position restoring).

  1   2   >