[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread Stefan Krah
New submission from Stefan Krah : 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 when compiling --without-t

[issue11504] test_subprocess failure

2011-06-03 Thread Ross Lagerwall
Ross Lagerwall added the comment: All stable buildbots appear to be green, so closing... -- nosy: +rosslagerwall resolution: -> fixed status: open -> closed ___ Python tracker

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread STINNER Victor
STINNER Victor 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. Ah? Which test is too lo

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

2011-06-03 Thread Марк Коренберг
New submission from Марк Коренберг : 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'], stdout=sys.stderr) ---

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

2011-06-03 Thread Alexey Smirnov
Changes by Alexey Smirnov : -- nosy: +alexey-smirnov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2011-06-03 Thread Hanöfner Harald
New submission from Hanöfner Harald : The follow code: s = ur"c:\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. -- components: In

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

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

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

2011-06-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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. Python 2 versions can'

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

2011-06-03 Thread Evgeny Tarasov
Changes by Evgeny Tarasov : -- nosy: +Evgeny.Tarasov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor 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? Which test is too long for the default timeo

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

2011-06-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12250] regrtest: make --timeout explicit

2011-06-03 Thread Roundup Robot
Roundup Robot 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 status: open ->

[issue12196] add pipe2() to the os module

2011-06-03 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

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

2011-06-03 Thread Charles-François Natali
Charles-François Natali 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 are closed ___

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

2011-06-03 Thread Марк Коренберг
Марк Коренберг added the comment: Why not to backport to python 2.6 ? this is the bug, not a feature. -- ___ Python tracker ___ ___ P

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

2011-06-03 Thread R. David Murray
R. David Murray added the comment: Because 2.6 is in security-fix-only mode. -- nosy: +r.david.murray ___ Python tracker ___ ___ Pyth

[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é 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 ___ Python t

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

2011-06-03 Thread Adam Woodbeck
Adam Woodbeck 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 at all in my opinion.

[issue12253] Document packaging.manifest and packaging.errors

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo : 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 severity: normal status:

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray 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 it is "done" wit

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray 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

[issue11197] information leakage with SimpleHTTPServer

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1669349] make install fails if no previous Python installation

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11357] Add support for PEP 381 Mirror Authenticity

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo : -- title: Add support for PEP 381 -- Mirror Authenticity -> Add support for PEP 381 Mirror Authenticity versions: +Python 3.3 -3rd party ___ Python tracker

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

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: How about reusing unittest discovery in regrtest? -- nosy: +eric.araujo ___ Python tracker ___ ___ Pyt

[issue12234] unittest2 could enable regex debugging for more information

2011-06-03 Thread Éric Araujo
Éric Araujo 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 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 question to a bug report

[issue12240] Allow multiple setup_hooks

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: I can’t see why not. Would you like to work on a patch? -- versions: +Python 3.3 ___ Python tracker ___ _

[issue12238] Readline module loading in interactive mode

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: +1 to what David said. See also #5753. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-l

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: Yes, it’s unclear whether Unix in the docs included Mac OS X or not. -- nosy: +eric.araujo ___ Python tracker ___

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

2011-06-03 Thread Éric Araujo
Éric Araujo 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 : 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 severity: normal status:

[issue12249] add missing command

2011-06-03 Thread Éric Araujo
Éric Araujo 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 be run from the :

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

2011-06-03 Thread Raymond Hettinger
Raymond Hettinger 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 ___ Python tracker

[issue12200] bdist_wininst install_script not run on uninstall

2011-06-03 Thread Éric Araujo
Éric Araujo 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é 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 : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: Hm, in my dev environment (checkout of 3.3), site-packages exists. -- ___ Python tracker ___ ___ Pytho

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

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé 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é added the comment: s/should get/should not get/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread Georg Brandl
Georg Brandl 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 ___ Python tracker <

[issue12249] add missing command

2011-06-03 Thread Georg Brandl
Georg Brandl added the comment: I actually like the "cd Doc" inclusion; it makes it very clear what is going on. -- ___ Python tracker ___ __

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread R. David Murray
R. David Murray 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 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 about we add a

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

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file22231/packaging-manifest.diff ___ Python tracker ___ ___ Python-bugs-list mail

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

2011-06-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12243] getpass.getuser works on OSX

2011-06-03 Thread R. David Murray
R. David Murray 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 ___ _

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

2011-06-03 Thread Éric Araujo
Éric Araujo 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 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 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 added the comment: Patch needs to update the default server in packaging too. -- ___ Python tracker ___ ___ Python-bugs-l

[issue12249] Document working dir for “make html”

2011-06-03 Thread Georg Brandl
Georg Brandl added the comment: It's fine, yes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12214] platform module can't detect archlinux distribution

2011-06-03 Thread Éric Araujo
Éric Araujo 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 platform.linux_distributions()

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

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: For the resolution problem, see #11457. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[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 added the comment: Can you test this patch? -- keywords: +patch Added file: http://bugs.python.org/file22233/fix-newer-mtime.diff ___ Python tracker ___

[issue12255] Make VCSes ignore shared libpython

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo : 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. -- assignee:

[issue12204] str.upper converts to title

2011-06-03 Thread Éric Araujo
Éric Araujo 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 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 : 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, patch messages: 1

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

2011-06-03 Thread Éric Araujo
Éric Araujo 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 __

[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 : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread R. David Murray
R. David Murray added the comment: The mailbox module would benefit from having this precision available. -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue12257] Use PYPACKAGING_USE_SDK envvar instead of DISTUTILS_USE_SDK

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo : 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 don’t know if MSS

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson 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 variance with both

[issue12258] Clean up bytes I/O in get_compiler_versions

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo : 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 (and fix two regex

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

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo : 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 platform. This should be

[issue12260] Make install default to user site-packages

2011-06-03 Thread Éric Araujo
New submission from Éric Araujo : 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 avoid the dreadful

[issue12249] Document working dir for “make html”

2011-06-03 Thread Roundup Robot
Roundup Robot 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': Merge #12249 fi

[issue12249] Document working dir for “make html”

2011-06-03 Thread Roundup Robot
Roundup Robot 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 tracker

[issue12249] Document working dir for “make html”

2011-06-03 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the report and patch! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread R. David Murray
R. David Murray 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. -- ___ Python track

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Petri Lehtinen
Petri Lehtinen 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 followed by '[': eleme

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread Stefan Krah
Stefan Krah 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 the pypi server certificate

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

2011-06-03 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: On Fri, 2011-06-03 at 16:18 +, Éric Araujo wrote: > Éric Araujo 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 > addin

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

2011-06-03 Thread Brian Curtin
Brian Curtin 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 the recursion and

[issue12249] add missing command

2011-06-03 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: On Fri, 2011-06-03 at 15:47 +, Éric Araujo wrote: > Éric Araujo 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 s

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

2011-06-03 Thread Ross Lagerwall
Ross Lagerwall 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: http://bugs.python.org/file22237/issue1

[issue12261] urllib.parse docs still refer to urlparse

2011-06-03 Thread Tim Lesher
New submission from Tim Lesher : 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: Documentation message

[issue12261] urllib.parse docs still refer to urlparse

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

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread Martin v . Löwis
Martin v. Löwis 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 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 "{0[a}b]}" the pa

[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 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 configure.in: AC_CHECK_MEMBERS([str

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Martin v . Löwis
Martin v. Löwis 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 approaches that preserve

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

2011-06-03 Thread Brian Curtin
Brian Curtin added the comment: Looks like I didn't test this enough - many other test failures are occurring. Disregard this patch for now. -- ___ Python tracker ___ _

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis 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: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/utime.h.html)

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

2011-06-03 Thread Tim Golden
Tim Golden 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 : -- nosy: +tlesher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[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 pyt

[issue12262] Not Inheriting File Descriptors on Windows?

2011-06-03 Thread Brian Curtin
Brian Curtin added the comment: Can you provide a simple test script? -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-l

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread anatoly techtonik
anatoly techtonik 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 guarantee there won

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

2011-06-03 Thread Brian Curtin
Brian Curtin 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 file cannot be o

[issue12262] Not Inheriting File Descriptors on Windows?

2011-06-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 descriptors are emulated;

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

2011-06-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +alanmcintyre versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list maili

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

2011-06-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Benjamin Peterson
Benjamin Peterson 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" for more in

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson 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 "{0[a}b]}" the

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

2011-06-03 Thread STINNER Victor
STINNER Victor 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 _

[issue12207] Document ast.PyCF_ONLY_AST

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy 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 syntax tree can be ge

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-06-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3610841f7357 by Victor Stinner in branch '3.2': Issue #12016: Reindent decoders of HK and JP codecs http://hg.python.org/cpython/rev/3610841f7357 New changeset aa07c1237f4e by Victor Stinner in branch 'default': (Merge 3.2) Issue #12016: Reindent d

  1   2   >