[issue12211] math.copysign must keep object type.

2011-06-03 Thread umedoblock
umedoblock added the comment: abs() behavior show below. >>> type(abs(-1)) >>> type(abs(-1.0)) we should fix this problem if write "Return abs(x) with the sign of y" I'd like to try this problem if need fix. I'm going to attach the patch. -- ___

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: or something like: result = obj.__dir__() if not isinstance(result, list): result = list(result) result.sort() return result -- ___ Python tracker _

[issue12226] use secured channel for uploading packages to pypi

2011-06-03 Thread anatoly techtonik
anatoly techtonik added the comment: I believe that's a very personal judgement. For me exposing core Python development accounts is a fundamental flaw. The more accounts are collected, the more real are attacks through PyPI package injection. -- _

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can sorted() be used instead? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2011-06-03 Thread Brian Curtin
Brian Curtin added the comment: This code has changed a lot since originally being committed, so I'll handle backporting in #12084 which has the latest changes. -- status: open -> closed ___ Python tracker __

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/6/3 Raymond Hettinger : > > Raymond Hettinger added the comment: > > I believe the type check was gratuitous to begin with and should be removed.   > There's no reason the result has to be a list. The reason for it is that the sort() method is called o

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I believe the type check was gratuitous to begin with and should be removed. There's no reason the result has to be a list. -- ___ Python tracker

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Nick Coghlan
Nick Coghlan added the comment: It would be broken in the same way that it was broken in 2.7.1 though. That can be a plus when it comes to maintenance releases. OTOH, this does turn a silent failure (__dir__() ignored on old-style classes) into a noisy failure (must return a list). If you ma

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread R. David Murray
R. David Murray added the comment: I would guess that if you instead skipped __dir__ completely for old style classes it would expose a different bug in this or some other package. -- ___ Python tracker _

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/6/3 Nick Coghlan : > > Nick Coghlan added the comment: > > Ah, I wondered about that when I saw Barry was using old-style classes in his > example. Perhaps the answer then is to add a PyInstance_Check() to skip > invocation of __dir__() completely for

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-03 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I wondered about that when I saw Barry was using old-style classes in his example. Perhaps the answer then is to add a PyInstance_Check() to skip invocation of __dir__() completely for old-style classes? -- ___ P

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Eric V. Smith
Eric V. Smith added the comment: We're going to have to agree to disagree. I believe that "{0[}]}" is the markup "{0[}" followed by the character data "]}". -- ___ Python tracker _

[issue12215] TextIOWrapper: issues with interlaced read-write

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Perhaps the stdio requirement was based on an underlying OS (*nix?) requirement, which io has to fulfill even if it does not use stdio. Stdio was, I presume, optimized for speed. In the relatively rare case of mixed read/write, it *should* put the burden on

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson added the comment: """ >From the PEP: "Format strings consist of intermingled character data and >markup." """ I know. Here is an example of a format string: "hello, {0}" Here is the character data from that format string: "hello, " Here is the markup: "{0}" This follows *dir

[issue6490] os.popen documentation is probably wrong

2011-06-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: os.popen documentation in 2.6 is probably wrong -> os.popen documentation is probably wrong ___ Python tracker ___

[issue10799] Improve webbrowser (.open) doc and behavior

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upon further experimentation, I realize that I can only open in Firefox because I have it set as my default browser. It would otherwise be inaccessible because it is not in the _browser registry. It also appears that I cannot intentionally use Internet Explor

[issue12237] Document how to open non-default webbrowser

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The intended method of using a non-default browser is well documented and the OP did exactly the right thing. However, even if Opera is present, the 'right thing' does not work because nothing but iexplorer gets registered (and that not completely usefully),

[issue12232] embedded python import cmath

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hanging is different from crashing. 2.6 and 3.1 (soon) are only open for security issues. Perhaps your system is missing something needed for the import. If you want this to stay open, retest with 2.7 or 3.2 and give much more information: your system/OS, C/C+

[issue12224] problem with siginterrupt

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, I understand your response as saying that there is no bug, which would suggest closing this. Correct? If not, what is the requested action? -- nosy: +terry.reedy ___ 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: > I can fill separate bug for packaging, server certificate validation > and support for non-SSL builds of python (for which there is > workaround with upload -r option that I've just discovered), > but it is an additional delay and the only reason I invested

[issue12220] minidom xmlns not handling spaces in xmlns attribute value field

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: SyntaxErrors refer to Python syntax errors; they are raised during parsing of *Python* code. An error in the value given to a Python sensibly raises a ValueError unless a module does something more specific. >From the xml.dom doc "DOM Level 2 recommendation d

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: > One reason is the desire to avoid loading Python module from a > C-module. This desire is indeed no guidance for Python development; the opposite is the case. The only exception may be bootstrapping issues, which I claim are irrelevant in this case. ---

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Eric V. Smith
Eric V. Smith added the comment: """ >>> d = {"{0}": "spam"} >>> # a matched pair of braces. What's inside is considered markup. ... >>> "{0}".format(d) "{'{0}': 'spam'}" >>> # a matched pair of braces. Inside is a matched pair of braces, and what's >>> inside of that is not considered markup.

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jun 3, 2011 at 6:13 PM, Martin v. Löwis wrote: .. >> I support this idea in theory, but as long as decimal is implemented >> in Python, os module should probably expose a low level (tuple-based?) >> interface and a higher level module would provid

[issue12240] Allow multiple setup_hooks

2011-06-03 Thread Erik Bray
Erik Bray added the comment: Great! I'll add a patch shortly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue12219] tkinter.filedialog.askopenfilename XT dialog on Windows 7

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have no idea what 'XT' in the title means. The only possible relevant change I *know* of is that 3.2 on Windows comes with a later version tk/tcl 8.5 than 3.1. If you find the exact version numbers, you could query/report on the tk/tcl forums, also at Activ

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Eric V. Smith
Eric V. Smith added the comment: >From the PEP: "Format strings consist of intermingled character data and >markup." -- ___ Python tracker ___ _

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

2011-06-03 Thread STINNER Victor
STINNER Victor added the comment: cjk_decode.patch: - patch *all* CJK decoders to replace only the first byte of an invalid byte sequence (by U+FFFD). Example from the issue title: b'\xff\n'.decode('gb2312', 'replace') gives now '�\n' instead of just '�' - add at least one unit test for *eac

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Ben Wolfson
Ben Wolfson added the comment: str.format doesn't intermingle character data and markup. The PEP is quite clear about the terms in this case, at least: the *argument* to str.format consists of character data (passed through unchanged) and markup (processed). That's what it means to say that "

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I support this idea in theory, but as long as decimal is implemented > in Python, os module should probably expose a low level (tuple-based?) > interface and a higher level module would provide Decimal-based > high-precision time. Can you explain why you thi

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: Am 03.06.2011 22:11, schrieb 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

[issue12248] __dir__ semantics changed in Python 2.7.2

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

[issue12215] TextIOWrapper: issues with interlaced read-write

2011-06-03 Thread STINNER Victor
STINNER Victor added the comment: > If I understand, the essence of the patch is to do > the file positioning automatically internally when needed. My patch is just a proposition to fix the issue. I wrote "I suppose that we can do better": self.seek(self.tell()) is more a workaround than a rea

[issue12006] strptime should implement %V or %u directive from libc

2011-06-03 Thread Ashley Anderson
Ashley Anderson added the comment: Attaching a patch for the documentation just in time for the weekend! -- Added file: http://bugs.python.org/file22240/12006_doc.patch ___ Python tracker _

[issue12215] TextIOWrapper: issues with interlaced read-write

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: For c stdio files, intermixed reads and writes require a file positioning operation. This is a nuisance and source of program bugs. I do not see any such limitation documented for our io module. So for both reasons, it will be nice to not have the limitation

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

2011-06-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8572bf1b56ec by Victor Stinner in branch '3.2': Issue #12016: Add test_errorhandle() to TestBase_Mapping of http://hg.python.org/cpython/rev/8572bf1b56ec New changeset c3dc94d53ef8 by Victor Stinner in branch 'default': (Merge 3.2) Issue #12016: Ad

[issue12014] str.format parses replacement field incorrectly

2011-06-03 Thread Eric V. Smith
Eric V. Smith added the comment: The intermingling of character data and markup is far from irrelevant: that's exactly what str.format() does! I don't see how it can be irrelevant to a discussion of how the string is parsed. Note that there are no restrictions, in general, on what's in a form

[issue11457] Expose nanosecond precision from system calls

2011-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jun 3, 2011 at 3:57 PM, Martin v. Löwis wrote: .. > I suggest that rather than using composite time stamps, decimal.Decimal is > used to represent high-precision time in Python. I support this idea in theory, but as long as decimal is implemente

[issue12211] math.copysign must keep object type.

2011-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: As with all the math docs, 'x' refers to the value, not the object with the value. However, "Return abs(x) with the sign of y" is, to me, clearer and more accurate. Both doc string and doc chapter should get any modification. -- nosy: +terry.reedy __

[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

[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

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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

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

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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

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

[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 ___ _

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

[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

[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

[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

[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

[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

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

[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

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

[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

[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

[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

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

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

[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

[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()

[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

[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

[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? -- ___

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

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

[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 ___ _

[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

[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

[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

[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

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

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

  1   2   >