[issue12186] readline.replace_history_item still leaks memory

2011-06-03 Thread stefanholek
stefanholek ste...@epy.co.at added the comment: These undo lists come into existence when history entries are edited interactively (Arrow-Up, edit line, Arrow-Up, edit line, Enter - undo list of first history entry leaks). -- components: +Extension Modules versions: +Python 2.6,

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: The implicit timeout in regrtest.py makes it harder to write automated test scripts for 3rd party modules. First, you have to remember to set --timeout=0 for long running tests. Then, you have to remember not to use the --timeout option

[issue11504] test_subprocess failure

2011-06-03 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: All stable buildbots appear to be green, so closing... -- nosy: +rosslagerwall resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le vendredi 03 juin 2011 10:02:12, vous avez écrit : The implicit timeout in regrtest.py makes it harder to write automated test scripts for 3rd party modules. First, you have to remember to set --timeout=0 for long running tests.

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread Марк Коренберг
New submission from Марк Коренберг socketp...@gmail.com: How to test: #! /usr/bin/python import subprocess, sys # will print err to sys.stderr subprocess.call(['rmdir', '/no_such_dir']) # will NOT print err to sys.stderr subprocess.call(['rmdir', '/no_such_dir'],

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread Alexey Smirnov
Changes by Alexey Smirnov alexey.smir...@gmx.com: -- nosy: +alexey-smirnov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12251 ___ ___

[issue12252] '\u' in unicode raw string raise an syntax error

2011-06-03 Thread Hanöfner Harald
New submission from Hanöfner Harald ha.ha...@yahoo.de: The follow code: s = urc:\that\is\a\new\unicode\path raise the follow error: SyntaxError: (unicode error) 'rawunicodeescape' codec can't decode bytes in position 10-11: truncated \u That is already corrected in Py 3 builds.

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: patch (was not tested) attached -- keywords: +patch Added file: http://bugs.python.org/file7/z.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12251

[issue12252] '\u' in unicode raw string raise an syntax error

2011-06-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Even in raw unicode strings, \u is processed as an escape sequence; see the very last paragraph of http://docs.python.org/reference/lexical_analysis.html#string-literals Yes, this can be surprising, and was changed with Python 3.

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread Evgeny Tarasov
Changes by Evgeny Tarasov etarasov@gmail.com: -- nosy: +Evgeny.Tarasov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12251 ___ ___

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: STINNER Victor rep...@bugs.python.org wrote: The implicit timeout in regrtest.py makes it harder to write automated test scripts for 3rd party modules. First, you have to remember to set --timeout=0 for long running tests. Ah?

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12251 ___ ___

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset f69a2716d433 by Victor Stinner in branch 'default': Close #12250: Disable the regrtest timeout by default http://hg.python.org/cpython/rev/f69a2716d433 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected

[issue12196] add pipe2() to the os module

2011-06-03 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 277bbe6cae53 by Charles-François Natali in branch 'default': Issue #12196: Make test.support's requires_linux_version a decorator. http://hg.python.org/cpython/rev/277bbe6cae53 -- ___

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It's a duplicate of issue #10806, fixed in 2.7, 3.1 and 3.2. Closing. -- nosy: +charles-francois.natali resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Subprocess error if fds 0,1,2

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: Why not to backport to python 2.6 ? this is the bug, not a feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12251 ___

[issue12251] subprocess(..., stdout=sys.stderr) closes stderr for child

2011-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Because 2.6 is in security-fix-only mode. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12251 ___

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-06-03 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Hi all, that is my first contribution. Please let me know if all it's OK. Thanks in advance ! -- keywords: +patch nosy: +francismb Added file: http://bugs.python.org/file8/issue_12185.patch

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-06-03 Thread Adam Woodbeck
Adam Woodbeck adam.woodb...@gmail.com added the comment: Hi Francisco, I finally found time to create a patch for this issue. I was just saving the patch I wrote as your update arrived in my inbox. I've included my patch for good measure. It's better to have two proposed patches than none

[issue12253] Document packaging.manifest and packaging.errors

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I am working on a patch to document manifest.Manifest methods and list all exceptions defined in errors. -- assignee: eric.araujo components: Distutils2, Documentation messages: 137522 nosy: alexis, eric.araujo priority: normal

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The documentation is, in principle, wrong. The actual authority for the correct implementation is PEP3101, which says the following: The str.format() function will have a minimalist parser which only attempts to figure out when

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that the PEP also explicitly addresses your concern about getattr, as well (validation of the name is delegated to the object's __getattr__). -- ___ Python tracker rep...@bugs.python.org

[issue11197] information leakage with SimpleHTTPServer

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11197 ___ ___ Python-bugs-list

[issue1669349] make install fails if no previous Python installation

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1669349 ___ ___ Python-bugs-list

[issue11357] Add support for PEP 381 Mirror Authenticity

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: Add support for PEP 381 -- Mirror Authenticity - Add support for PEP 381 Mirror Authenticity versions: +Python 3.3 -3rd party ___ Python tracker rep...@bugs.python.org

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

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: How about reusing unittest discovery in regrtest? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12231 ___

[issue12234] unittest2 could enable regex debugging for more information

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This sounds non-trivial to implement. Do you have any concrete ideas or a proof of concept? -- nosy: +eric.araujo, ezio.melotti, michael.foord versions: +Python 3.3 -Python 2.7 ___ Python tracker

[issue12237] Document how to open non-default webbrowser

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello. This tracker is used to report bugs and file feature requests for Python itself, not request help (mailing list such as http://mail.python.org/pipermail/python-list/ are appropriate venues to ask for for help). I’m changing your

[issue12240] Allow multiple setup_hooks

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I can’t see why not. Would you like to work on a patch? -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12240 ___

[issue12238] Readline module loading in interactive mode

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 to what David said. See also #5753. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12238 ___

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes, it’s unclear whether Unix in the docs included Mac OS X or not. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12243

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This looks like an invalid bug to me; Python itself creates the site-packages directory, with a README file if I remember correctly. If the sysadmin removes the directory, it’s their problem, not a Python bug. Do you agree? --

[issue12254] PEP-3107 has a wrong attribute name for function annotations

2011-06-03 Thread Roman Alexeev
New submission from Roman Alexeev letit@gmail.com: The name of the attribute holding annotations is `__annotations__`, not `func_annotations` as PEP-3107 says. -- assignee: docs@python components: Documentation messages: 137532 nosy: Roman.Alexeev, docs@python priority: normal

[issue12249] add missing command

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Your patch adds the cd before running make, but other examples and filenames (for example :file:`tools/sphinx`) are also relative to Doc. How about adding something like this after the very first paragraph: All commands in this document should

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-06-03 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I'm not sure this improves the docs. Will give it more thought and thorough review at a later date. Also, I will compare it to the docstrings in the spec itself. -- priority: normal - low

[issue12200] bdist_wininst install_script not run on uninstall

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If it’s not too much hassle for you and if it doesn’t improve maintenance costs, we’d feel safer with a test. Martin, could you review this patch? -- nosy: +loewis ___ Python tracker

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: This is probably because Tshepang works in a dev environment. I think we should have a nice message like The installation path xxx seems not to exist, aborting installation -- ___ Python tracker

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12248 ___ ___ Python-bugs-list

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hm, in my dev environment (checkout of 3.3), site-packages exists. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12246 ___

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Strange, you should get a /usr/[local]/lib/python3.3/site-packages when you just run ./configure; make It looks like you have a dev environment that has installed some stuff -- ___ Python tracker

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: s/should get/should not get/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12246 ___ ___

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, let's make it clear then. What about replacing the text-only Availability with a directive that renders into a link that displays what the individual values mean? -- nosy: +georg.brandl ___

[issue12249] add missing command

2011-06-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I actually like the cd Doc inclusion; it makes it very clear what is going on. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12249 ___

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Only because we had Macintosh in there. We don't mention OS/X explicitly anywhere else in the docs that I could find (except one prose mention in the logging docs). -- ___ Python tracker

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi! I cleaned up your patch and fixed a bug: you have to call sort before calling remove_duplicates (the result in your patch had two 'a' entries). One line was marked as excluded because it was a this cannot happen error, and I agreed. How

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file22231/packaging-manifest.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11751 ___

[issue3974] collections.namedtuple uses exec to create new classes

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3974 ___ ___ Python-bugs-list

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Georg: our post seem to have crossed despite Roundup's attempts at locking. +1 to your idea about the directive. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12243

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I ported the patch to packaging. Please test. -- components: +Distutils2 nosy: +alexis status: closed - open versions: -Python 2.7, Python 3.2 Added file: http://bugs.python.org/file22232/darwin-target-sysconfig-p7g.diff

[issue12249] Document working dir for “make html”

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Fair enough. If you think it’s enough to let people know that all paths in :file: roles are relative to Doc, then I can commit it. -- title: add missing command - Document working dir for “make html” versions: +Python 2.7, Python 3.2

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Ah, I understand; I have a $srcdir/Lib/site-packages directory, but packaging wants to install into $prefix/site-packages, which does not exist. +1 to adding a nice message. Tshepang, would you like to update your patch? --

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch needs to update the default server in packaging too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12226 ___

[issue12249] Document working dir for “make html”

2011-06-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It's fine, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12249 ___ ___ Python-bugs-list

[issue12214] platform module can't detect archlinux distribution

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. Please join the discussion on the other bug report. -- nosy: +eric.araujo resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Add support for ArchLinux to

[issue11993] Use sub-second resolution to determine if a file is newer

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: For the resolution problem, see #11457. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11993 ___

[issue11933] newer() function in dep_util.py mixes up new vs. old files due stat.st_mtime vs stat[ST_MTIME]

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you test this patch? -- keywords: +patch Added file: http://bugs.python.org/file22233/fix-newer-mtime.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11933

[issue12255] Make VCSes ignore shared libpython

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: When compiling with --enable-shared, the libpython file is not ignored by Mercurial (or Bazaar, I guess). Any objection to the attached patch? I used a wildcard, but could also hard-code the full filename with a fixed shared lib number.

[issue12204] str.upper converts to title

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: A note sounds good. -- assignee: - docs@python components: +Documentation -Interpreter Core, Unicode nosy: +docs@python, eric.araujo versions: +Python 2.7 -Python 3.1 ___ Python tracker

[issue12254] PEP-3107 has a wrong attribute name for function annotations

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: All func_* attributes in 2.x have been given __*__ names in 3.x. -- nosy: +eric.araujo resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker

[issue12256] Link isinstance/issubclass doc to abc module

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: Doc/library/functions.rst does not talk about how ABC interact with isinstance or issubclass. This simple patch adds a link. -- assignee: eric.araujo components: Documentation files: link-isinstance-to-abc.diff keywords: needs review,

[issue12223] Datamodel documentation page: 'operator' where 'operand' should be

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for catching this. Is this the only instance of the typo, or are there any others in reference/datamodel or library/operator? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue11941] Support st_atim, st_mtim and st_ctim attributes in os.stat_result

2011-06-03 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11941 ___ ___

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The mailbox module would benefit from having this precision available. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11457

[issue12257] Use PYPACKAGING_USE_SDK envvar instead of DISTUTILS_USE_SDK

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: packaging still uses the DISTUTILS_USE_SDK environment variable to tweak compilation on Windows. Do we want to change the name? Pro: separates distutils and packaging, con: requires users to set one more var during the transition period. I

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson wolf...@gmail.com added the comment: Hm. As I interpret this: The str.format() function will have a minimalist parser which only attempts to figure out when it is done with an identifier (by finding a '.' or a ']', or '}', etc.). The present implementation is at

[issue12258] Clean up bytes I/O in get_compiler_versions

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: get_compiler_versions uses string regexes to match bytes streams returned by subprocess. The test did not catch this because they mock subprocess output with strings in self._exes. We have to decide whether we propagate the bytes object up

[issue12259] Test and document which compilers can be created on which platform

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: When working on the docs for new_compiler, I read that it was possible to get an msvc compiler on Unix. I tried it, even wrote a unit test to make sure it worked, and found out that not all compiler classes can be instantiated on my

[issue12260] Make install default to user site-packages

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: Now that we can break compat in distutils2/packaging, we can change the default install dir to use PEP 370 user site-packages. For users without root, copy-pasting “pysetup run install_dist” from the docs would Just Work™. This would also

[issue12249] Document working dir for “make html”

2011-06-03 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4efc9ded0a03 by Éric Araujo in branch '3.2': Document working dir for “make html” (#12249). Patch by Tshepang Lekhonkhobe. http://hg.python.org/cpython/rev/4efc9ded0a03 New changeset 41c918897286 by Éric Araujo in branch 'default':

[issue12249] Document working dir for “make html”

2011-06-03 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 39c29bc8bc35 by Éric Araujo in branch '2.7': Document working dir for “make html” (#12249). Patch by Tshepang Lekhonkhobe. http://hg.python.org/cpython/rev/39c29bc8bc35 -- ___ Python

[issue12249] Document working dir for “make html”

2011-06-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thank you for the report and patch! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12249

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I agree that the current situation is a bit murky and ought to be clarified, but I'm going to leave it to Eric to point they way forward, as he is far more knowledgeable about this area than I. --

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12248 ___ ___ Python-bugs-list mailing list

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: I've played around with the str.format() code for a few weeks now, to investigate its poor performance compared to the % operator. Having written a few parsers before, I would change it to parse each part separately: 1. field_name 2a. if

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think there should be a warning that the connection is unauthenticated (i.e. not secure). Users tend to be upset if they see 'https' and later find out that no certificates were verified. A reasonably secure alternative is to publish

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: On Fri, 2011-06-03 at 16:18 +, Éric Araujo wrote: Éric Araujo mer...@netwok.org added the comment: Ah, I understand; I have a $srcdir/Lib/site-packages directory, but packaging wants to install into $prefix/site-packages, which

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

2011-06-03 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Attached is a patch that makes this about twice as fast for regular files and about 15 times faster for symbolic links and directories. Not that this would be anyone's performance bottleneck, but it does make the time more of a constant due to

[issue12249] add missing command

2011-06-03 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: On Fri, 2011-06-03 at 15:47 +, Éric Araujo wrote: Éric Araujo mer...@netwok.org added the comment: Your patch adds the cd before running make, but other examples and filenames (for example :file:`tools/sphinx`) are also

[issue11941] Support st_atim, st_mtim and st_ctim attributes in os.stat_result

2011-06-03 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is a patch for review. It adds st_atim, st_ctim and st_mtim. They are defined even when the underlying system does not have nanosecond precision. -- keywords: +patch stage: - patch review Added file:

[issue12261] urllib.parse docs still refer to urlparse

2011-06-03 Thread Tim Lesher
New submission from Tim Lesher tles...@gmail.com: While most of the occurrences of urlparse were corrected to urllib.parse when the module was renamed, two were missed: one in the second example, and one in the See also note for RFC 3986. -- assignee: docs@python components:

[issue12261] urllib.parse docs still refer to urlparse

2011-06-03 Thread Tim Lesher
Changes by Tim Lesher tles...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file22238/remove-urlparse.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12261 ___

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If users use a browser to do secure uploading, there is no need to publish the certificate. It is signed by a trusted CA (cacert), so you just need to make sure your browser knows about the cacert certificate. --

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: PEP 3101 defines format strings as intermingled character data and markup. Markup defines replacement fields and is delimited by braces. Only after markup is extracted does the PEP talk about interpreting the contents of the markup. So,

[issue11941] Support st_atim, st_mtim and st_ctim attributes in os.stat_result

2011-06-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: st_atim, st_mtim and st_ctim were introduced in 2008 version of POSIX (and were earlier provided by glibc as an extension). To avoid compilation failure with some exotic versions of libc, I suggest: - In

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I suggest that rather than using composite time stamps, decimal.Decimal is used to represent high-precision time in Python. On input to os.utime, the function could just polymorphically accept Decimal, and try its best. I see three

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

2011-06-03 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Looks like I didn't test this enough - many other test failures are occurring. Disregard this patch for now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11583

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: os.utimensat() and os.futimens() already exist since Python 3.3 and require 2-tuples (or None) as second and third argument. (utime() is deprecated since POSIX 2008:

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

2011-06-03 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: One (presumably unintended) side-effect is that you can now do os.path.isdir on a wildcard and the first returned entry will be tested for directoryness: import os os.path.isdir (c:/tem*) # = True where c:/temp exists --

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2011-06-03 Thread Tim Lesher
Changes by Tim Lesher tles...@gmail.com: -- nosy: +tlesher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11620 ___ ___ Python-bugs-list mailing

[issue12262] Not Inheriting File Descriptors on Windows?

2011-06-03 Thread Jesse Litton
New submission from Jesse Litton 3vi...@gmail.com: On Windows, I've been trying to call a test script that gets its I/O handled via file descriptors 3 4 socat EXEC:python test.py userid,pty,fdin=3,fdout=4 TCP4:server:23,crlf But I'm getting [Errno 9] Bad file descriptor when the python

[issue12262] Not Inheriting File Descriptors on Windows?

2011-06-03 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Can you provide a simple test script? -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12262 ___

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Sorry for the delay. I've just uploaded http://pypi.python.org/pypi/ctypesgen/0.r125 from Ubuntu using python2.6 with patched distutils module to https://pypi.python.org/pypi and can confirm it works without problems on Linux. So I can

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

2011-06-03 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Here's a patch that works. All tests are passing. I changed from using FindFirstFile to GetFileAttributes, which provides basically the same performance characteristics. One change in this implementation is to not raise a WindowsError when the

[issue12262] Not Inheriting File Descriptors on Windows?

2011-06-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Is socat a cygwin utility? In this case, you should use the python interpreter built for the cygwin platform. I'm quite certain that the standard win32 python cannot work the way you want. Keep in mind that on Windows, file

[issue12198] zipfile.py:1047: DeprecationWarning: 'H' format requires 0 = number = 65535

2011-06-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +alanmcintyre versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12198 ___

[issue12201] Returning FILETIME is unsupported in msilib.SummaryInformation.GetProperty()

2011-06-03 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- type: - feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12201 ___

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: No additional type-checking was added. The problem is that __dir__ didn't work on old-style classes at all in 2.7.1: $ python Python 2.7.1 (r271:86832, Mar 24 2011, 22:44:47) [GCC 4.4.5] on linux2 Type help, copyright, credits or license

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson wolf...@gmail.com added the comment: PEP 3101 defines format strings as intermingled character data and markup. Markup defines replacement fields and is delimited by braces. Only after markup is extracted does the PEP talk about interpreting the contents of the markup. So, given

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

2011-06-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: How about reusing unittest discovery in regrtest? Does this feature support filtering by keyword for file names and function names? -- ___ Python tracker rep...@bugs.python.org

[issue12207] Document ast.PyCF_ONLY_AST

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This is a bit tricky. It may be superseded, but it is still there, is possible used in older code, has not been deprecated as far as I know, and appears in dir(ast). The two current mentions of PyCF_ONLY_AST in ast doc are: An abstract

  1   2   >