[issue12101] PEPs should have consecutive revision numbers
Georg Brandl ge...@python.org added the comment: The Last-Modified date should tell you just the same, without any arbitrary version numbers that don't have a meaning in hg. And behold, the Last-Modified date already links to the hg page for this PEP, from where you can select the file log to get to the list of changes. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12101 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12097] python.exe crashes if it is unable to find its .dll
anatoly techtonik techto...@gmail.com added the comment: Reopening as I believe the issue is hijacked. Virtualenv is just an example and the fix is discussed on its mailing list. This issue is about that Python interpreter is not self-contained, not portable, i.e. split into python.exe and pythonXX.dll The only reason for this split is to allow other programs use dynamic linking to load interpreter from .dll Such programs even though they are using pythonXX.dll from different .exe file do not crash. python.exe should not crash also. Moreover - as an open source project - it should serve as an example of proper linking to Python. It is not covered by PEP 397, because PEP is about launcher that chooses among multiple Python versions and this request about command line launcher for specific Python interpreter. But PEP 397 still can benefit from the research on this feature request - like explaining linking mechanism for developers. -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12097 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9811] strftime strips '%' from unknown format codes on OS X
Marc-Andre Lemburg m...@egenix.com added the comment: Santoso Wijaya wrote: Santoso Wijaya santoso.wij...@gmail.com added the comment: `strftime` does not, indeed, seem to define what behaviour it is supposed to do when given non-supported format characters. Under Windows, in fact, it will crash the runtime (see: issue #10762). According to POSIX, it is defined to be undefined: If a conversion specification does not correspond to any of the above, the behavior is undefined. Of course, crashing the runtime is not a good way to interpret this ;-) -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9811 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Georg Brandl ge...@python.org added the comment: Brian, do you think you'll be able to finish this for 3.2.1? If we do fix it, we'd need a second rc (not a problem for me). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12097] python.exe crashes if it is unable to find its .dll
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: You are right, the use case is broader than virtualenv. The only reason for this split is to allow other programs use dynamic linking For me the main reason is to support extension modules. On Windows, a DLL (or a .pyd) cannot resolve symbols in the main .exe program. Do you have more specifications about such a launcher? How would it find the .dll? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12097 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9811] strftime strips '%' from unknown format codes on OS X
Santoso Wijaya santoso.wij...@gmail.com added the comment: Yeah, I meant undefined. I looked that up when writing a patch for issue #10762. Correction: It *used to* crash on Windows, before the patch was applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9811 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8796] Deprecate codecs.open()
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Python 3.2 has been published. Can we start deprecating StreamWriter and StreamReader in Python 3.3 (to remove them from Python 3.4)? The doc should explain how to convert code using codecs into code using the io module (it should be simple), and using a StreamReader/StreamWriter should emit a warning. This ticket is about deprecating codecs.open(), not about StreamWriter and StreamReader. The arguments mentioned here against doing that anytime soon still stand. I'm -1 on deprecating StreamWriter and StreamReader as they provide different mechanisms than the io layer which has a specific focus on files and buffers. -- codecs.StreamWriter writes twice the BOM of UTF-8-SIG, UTF-16, UTF-32 encodings if the file is opened in append mode or after a seek(0). Bug fixed in io.TextIOWrapper (issue #5006). io.TextIOWrapper calls also encoder.setstate(0) on a seek different than seek(0), whereas codecs.StreamWriter doesn't (it is not an incremental encoder, it doesn't have the setstate method). codecs.StreamReader doesn't ignore the BOM of UTF-8-SIG, UTF-16 or UTF-32 encodings after seek(0). Bug fixed in io.TextIOWrapper (issue #4862). These bugs should maybe be mentioned in the codecs doc, with a pointer to the io module saying that the io module handles these encodings correctly. Those are not bugs of the generic codecs.StreamWriter/StreamReader implementations or their concept. They are bugs in those specific codecs. The codecs StreamWriter and StreamReader concept was explicitly designed to be able to have state. However, the generic implementation does not make use of such state for the purpose of writing special beginning-of-file markers - that's just way to specific for general purpose implementations. They do use state to implement buffered reads. It would certainly be possible to make the implementations of the codecs you mentioned smarter to handle writing BOMs correctly, e.g. by making use of the incremental encoder/decoders, if there's interest. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12097] python.exe crashes if it is unable to find its .dll
Georg Brandl ge...@python.org added the comment: And most importantly, what would it do if the .dll is not found? What can it do, other than present a message box Cannot find pythonXY.dll, exiting. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12097 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11877] Change os.fsync() to support physical backing store syncs
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Excusing myself seems to be the only probates Mittel. @Antoine Pitrou: It was a real shame to read your mail. (It's sometimes so loud that i don't even hear what i write.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10271] warnings.showwarning should allow any callable object
lekma lekma...@gmail.com added the comment: Is there anything else I should be doing? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8796] Deprecate codecs.open()
STINNER Victor victor.stin...@haypocalc.com added the comment: This ticket is about deprecating codecs.open(), not about StreamWriter and StreamReader. Right. I may open a different issue. Can we start by modifying codecs.open() to use the builtin open() (to reuse TextIOWrapper)? I'm -1 on deprecating StreamWriter and StreamReader as they provide different mechanisms than the io layer which has a specific focus on files and buffers. What are the usecases of StreamReader and StreamWriter, not covered by TextIOWrapper? TextIOWrapper are used in Python for: - files (e.g. open) - processes (e.g. open.popen) - emails (e.g. mailbox.Message) - sockets (e.g. socket.makefile) - and maybe other things StreamReader and StreamWriter are used for: - read/write files in Sphinx 1.0.7 (written for Python 2) - write the output in pygment 1.3.1 (written for Python 2) - but not in the Python interpreter or standard library *Quick* search of other usages of StreamReader and StreamWriter on the WWW: - twisted/mail/imap4.py - feeds2imap implements a 'mod-utf-7' codec, pyflag implements a 'ms-pst' codec, pygsm implements a 'gsm0338' codec, so they have StreamReader and StreamWriter classes (but I don't know if these classes are used) It would certainly be possible to make the implementations of the codecs you mentioned smarter to handle writing BOMs correctly, e.g. by making use of the incremental encoder/decoders, if there's interest. Yes, it is possible to fix StreamReader and StreamWriter classes of the mentionned codecs, but it's not possible to write a generic fix in codecs.py. This is exactly why I dislike StreamReader and StreamWriter: they are not incremental and so don't have reset() or setstate() methods. When you implement a StreamReader or StreamWriter class, you have to reimpelment a pseudo-incremental encoder. Compare for example IncrementalEncoder and StreamWriter classes of UTF-16: most code is duplicated. Because StreamReader and StreamWriter are not incremental, they are not efficient, and it's difficult to handle some issues like BOM which require to handle the codec state. TextIOWrapper simply reuses incremental encoders and decoders, and so use reset() and setstate() methods. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12102] mmap requires file to be synced
New submission from rion rion...@gmail.com: Not flushed file gives next results: rion@rionhost ~/temp $ python2 test.py Traceback (most recent call last): File test.py, line 10, in module m = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) mmap.error: [Errno 22] Invalid argument rion@rionhost ~/temp $ python3 test.py Traceback (most recent call last): File test.py, line 10, in module m = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) ValueError: mmap offset is greater than file size testcase: import mmap from tempfile import TemporaryFile f = TemporaryFile() f.write(bhello world) #f.flush() m = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) just uncomment f.flush() and try again. feel the difference. suggestion: force flush on file descriptor when passed to mmap. -- components: None messages: 136217 nosy: rion...@gmail.com priority: normal severity: normal status: open title: mmap requires file to be synced type: behavior versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12102] mmap requires file to be synced
Ralf Schmitt sch...@gmail.com added the comment: your suggestion doesn't work. there's no such thing like a flush on file descriptor. -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11877] Change os.fsync() to support physical backing store syncs
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #12102. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12102] mmap requires file to be synced
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #11877 and #11277. -- nosy: +haypo, sdaoden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12102] mmap requires file to be synced
rion rion...@gmail.com added the comment: okay guys I'm not going to read all this stuff. just document it or fix. thanks for quick reply -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12009] netrc module crashes if netrc file has comment lines
Ruslan Mstoi rms...@gmail.com added the comment: I agree, the test input was becoming unmaintainable. So, I updated the patch with the refactored unit tests. -- Added file: http://bugs.python.org/file22018/issue12009_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12103] Documentation of open() does not claim 'e' support in mode string
New submission from Марк Коренберг socketp...@gmail.com: open() and friends (like temporaryfile) does not document 'e' letter in second arguement. At least on Linux, it opens file with O_CLOEXEC. Not sure under Windows. Also, there are other interesting letters (man -a fopen), like: c (since glibc 2.3.3) Do not make the open operation, or subsequent read and write operations, thread cancellation points. e (since glibc 2.7) Open the file with the O_CLOEXEC flag. See open(2) for more information. m (since glibc 2.3) Attempt to access the file using mmap(2), rather than I/O system calls (read(2), write(2)). Currently, use of mmap(2) is only attempted for a file opened for reading. x Open the file exclusively (like the O_EXCL flag of open(2)). If the file already exists, fopen() fails, and sets errno to EEXIST. This flag is ignored for fdopen(). -- assignee: docs@python components: Documentation messages: 136223 nosy: docs@python, mmarkk priority: normal severity: normal status: open title: Documentation of open() does not claim 'e' support in mode string ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12103 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12103] Documentation of open() does not claim 'e' support in mode string
Changes by Марк Коренберг socketp...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12103 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4621] zipfile returns string but expects binary
Tor Arvid Lund torar...@gmail.com added the comment: I was wondering what has prevented Eddies patch from being included into python. Has nobody volunteered to verify that it works? I would be willing to do that, though I have never compiled python on any platform before. It just seems a bit silly to me that python cannot work with zip files with unicode file names... I just now had to do 'os.system(unzip.exe ...)' because zipfile did not work for me... -- nosy: +talund ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12103] Documentation of open() does not claim 'e' support in mode string
STINNER Victor victor.stin...@haypocalc.com added the comment: c, e, m and x flags are specific to the GNU libc. Python 2 does basically pass the mode to fopen() unmodified (there is one exception, the U flag). fopen() of Visual C++ 2005 has other flags: c Enable the commit flag for the associated filename so that the contents of the file buffer are written directly to disk if either fflush or _flushall is called. n Reset the commit flag for the associated filename to no-commit. This is the default. It also overrides the global commit flag if you link your program with COMMODE.OBJ. The global commit flag default is no-commit unless you explicitly link your program with COMMODE.OBJ (see Link Options). N Specifies that the file is not inherited by child processes. S Specifies that caching is optimized for, but not restricted to, sequential access from disk. R Specifies that caching is optimized for, but not restricted to, random access from disk. T Specifies a file as temporary. If possible, it is not flushed to disk. D Specifies a file as temporary. It is deleted when the last file pointer is closed. ccs=ENCODING Specifies the coded character set to use (UTF-8, UTF-16LE, or UNICODE) for this file. Leave unspecified if you want ANSI encoding. This option is available in Visual C++ 2005 and later. http://msdn.microsoft.com/en-us/library/yeby3zcb(v=vs.80).aspx I don't think that non standard modes should be documented in Python doc, but we may add links to specific documentations like the GNU libc and Microsoft fopen(). -- This issue is specific to Python 2, Python 3 doesn't use fopen() anymore. -- nosy: +haypo versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12103 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12048] Python 3, ZipFile Bug In Chinese
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #4621. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12048 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4621] zipfile returns string but expects binary
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue looks to be a duplicate of #10801 which was only fixed (33543b4e0e5d) in Python 3.2. See also #12048: similar issue in Python 3.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10801] zipfile.ZipFile().extractall() header mismatch for non-ASCII characters
Roundup Robot devnull@devnull added the comment: New changeset 1f0f0e317873 by Victor Stinner in branch '3.1': Backport commit 33543b4e0e5d from Python 3.2: #10801: In zipfile, support http://hg.python.org/cpython/rev/1f0f0e317873 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10801 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10271] warnings.showwarning should allow any callable object
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10801] zipfile.ZipFile().extractall() header mismatch for non-ASCII characters
Roundup Robot devnull@devnull added the comment: New changeset 243c78fbbb49 by Victor Stinner in branch '3.1': Ooops, add the missing file of the backport of commit 33543b4e0e5d from Python http://hg.python.org/cpython/rev/243c78fbbb49 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10801 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10271] warnings.showwarning should allow any callable object
R. David Murray rdmur...@bitdance.com added the comment: Brett's been very busy with real life. Maybe someone else can commit this. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4621] zipfile returns string but expects binary
STINNER Victor victor.stin...@haypocalc.com added the comment: The initial problem is clearly a duplicate of issue #10801 which is now fixed in Python 3.1+ (I just backported the fix to Python 3.1). I just discovered that attempting to open zip member test\file fails where attempting to open test/file works. (...) It seems pretty clear that zipfile should do that for me, though. @v+python: I don't think so, but others may agree with you. Please open a new issue, because it is unrelated to the initial bug report. I'm closing this issue because the initial is now fixed. For x.zip (UTF-8 encoded filenames with the Unicode flag) problem, there is already the issue #10614 which handles this case. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12048] Python 3, ZipFile Bug In Chinese
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is just another example of the issue #10614: I'm closing it as a duplicate. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12048 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10614] ZipFile: add a filename_encoding argument
STINNER Victor victor.stin...@haypocalc.com added the comment: I closed issue #12048 as a duplicate of this issue: yaoyu wants to uncompress a ZIP file having filenames encoded to GBK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12057] HZ codec has no test
R. David Murray rdmur...@bitdance.com added the comment: Haypo, since you've created a new directory there are makefile (and PC build file, I think) updates that will need to be made. (This should be documented in the dev guide if it isn't already.) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12009] netrc module crashes if netrc file has comment lines
Changes by Ruslan Mstoi rms...@gmail.com: Removed file: http://bugs.python.org/file22018/issue12009_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12009] netrc module crashes if netrc file has comment lines
Ruslan Mstoi rms...@gmail.com added the comment: removed leftover debug code from patch -- Added file: http://bugs.python.org/file22019/issue12009_patch2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12009 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12102] mmap requires file to be synced
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: @ rion wrote (2011-05-18 12:39+0200): just document it or fix. Hello, zion, Victor, i'm proposing a documentation patch. It applies to 2.7 and 3.3 (from yesterday). -- keywords: +patch Added file: http://bugs.python.org/file22020/12102.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12102 ___diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -21,6 +21,11 @@ :func:`os.open` function, which returns a file descriptor directly (the file still needs to be closed when done). +..note:: + If you want to create a memory-mapping for a writable, buffered file, you + should :func:`flush` the file first. This is necessary to ensure local + modifications to the buffers are actually available to the mapping. + For both the Unix and Windows versions of the constructor, *access* may be specified as an optional keyword parameter. *access* accepts one of three values: :const:`ACCESS_READ`, :const:`ACCESS_WRITE`, or :const:`ACCESS_COPY` ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12102] mmap requires file to be synced
STINNER Victor victor.stin...@haypocalc.com added the comment: Hello, zion, Victor, i'm proposing a documentation patch. I like it. I don't think that Python should guess what the user expects (i.e. Python should not sync the file *implicitly*). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue706263] print raises exception when no console available
Jesús Cea Avión j...@jcea.es added the comment: Does this affects Python 3? -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue706263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
STINNER Victor victor.stin...@haypocalc.com added the comment: I think that the problem is in Popen.get_command_line() of multiprocessing.forking. There are other options changing Python behaviour: -b, -B, -E, -u, etc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue706263] print raises exception when no console available
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Python 3 is not affected: pythonw.exe sets sys.stderr to None, and print() silently discards the output in this case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue706263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Antoine Pitrou pit...@free.fr added the comment: We already have some logic for that: http://hg.python.org/cpython/file/default/Lib/test/support.py#l1398 -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12102] mmap requires file to be synced
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: @ STINNER Victor wrote (2011-05-18 14:33+0200): I don't think that Python should guess what the user expects (i.e. Python should not sync the file *implicitly*). Before i've found F_FULLFSYNC i indeed have had a solution which tracked the open() of all files, so that mmap() could check wether a file had been opened in write mode or not. ;| Python does not do that by default (AFAIK). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12102] mmap requires file to be synced
Ross Lagerwall rosslagerw...@gmail.com added the comment: I don't think that Python should guess what the user expects (i.e. Python should not sync the file *implicitly*). Agreed. The documentation patch looks good. -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Brian Curtin br...@python.org added the comment: I'm hoping to. I have time to work on it tonight and tomorrow night US/Chicago time and will keep you posted. -- assignee: - brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Sergey Mezentsev theb...@yandex.ru added the comment: I create patch for Popen.get_command_line() ('2.6' and 'default' branches). I don't know how to write the test. The sys.flags structure are read only. -- keywords: +patch Added file: http://bugs.python.org/file22021/Issue12098.branch-2.6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Changes by Sergey Mezentsev theb...@yandex.ru: Added file: http://bugs.python.org/file22022/Issue12098.branch-default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6459] distutils.command.build_ext.get_export_symbols should use the PyInit prefix rather then init
Éric Araujo mer...@netwok.org added the comment: Packaging (due to merge with 3.3 shortly) uses init, not PyInit. I’ll fix it. -- assignee: tarek - eric.araujo components: +Distutils2 nosy: +alexis, eric.araujo status: closed - open versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10126] test_distutils failure with --enable-shared
Éric Araujo mer...@netwok.org added the comment: distutils2 has been converted to 3.x and will be merged into 3.3 under the name packaging shortly. The fix has not been ported; I applied the patch for build_ext and its test but didn’t succeed. -- status: closed - open versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10126 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8809] smtplib should support SSL contexts
Roundup Robot devnull@devnull added the comment: New changeset 6737de76487b by Antoine Pitrou in branch 'default': Issue #8809: The SMTP_SSL constructor and SMTP.starttls() now support http://hg.python.org/cpython/rev/6737de76487b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8809] smtplib should support SSL contexts
Antoine Pitrou pit...@free.fr added the comment: Thank you Kasun. I did a couple of minor style fixes (whitespace at end of line, and spaces around the '=' assignment sign). I also added a test for starttls(), since it turns out gmail.com supports it on port 25. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8809] smtplib should support SSL contexts
Kasun Herath kasun...@gmail.com added the comment: Thanks Antoine -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12065] test_ssl failure when svn.python.org fails to resolve
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file22023/ssl_connect_ex.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12065 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12068] test_logging failure in test_rollover
Antoine Pitrou pit...@free.fr added the comment: Still happens sometimes: http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%203.x/builds/133/steps/test/logs/stdio Traceback (most recent call last): File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/socketserver.py, line 582, in process_request_thread self.finish_request(request, client_address) File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/socketserver.py, line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/socketserver.py, line 641, in __init__ self.finish() File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/socketserver.py, line 713, in finish self.socket.sendto(self.wfile.getvalue(), self.client_address) socket.error: [Errno 9] Bad file descriptor test test_logging failed -- Traceback (most recent call last): File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/test/test_logging.py, line 2525, in test_listen_config_10_ok ], stream=output) File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/test/test_logging.py, line 162, in assert_log_lines '%s vs. %s' % (actual_lines, expected_values)) AssertionError: 4 != 2 : [Exception happened during processing of request from ('192.168.0.106', 33509), '', 'WARNING ++ 1', 'ERROR ++ 4'] vs. [('WARNING', '1'), ('ERROR', '4')] Exception happened during processing of request from ('192.168.0.106', 33512) Traceback (most recent call last): File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/socketserver.py, line 582, in process_request_thread self.finish_request(request, client_address) File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/socketserver.py, line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/socketserver.py, line 641, in __init__ self.finish() File /var/lib/buildslave/3.x.murray-gentoo/build/Lib/socketserver.py, line 713, in finish self.socket.sendto(self.wfile.getvalue(), self.client_address) socket.error: [Errno 9] Bad file descriptor -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12068 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Jason R. Coombs jar...@jaraco.com added the comment: Brian, I'm available to help with this tomorrow evening; let me know if you want to team up on it then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12065] test_ssl failure when svn.python.org fails to resolve
Roundup Robot devnull@devnull added the comment: New changeset 019d8ccdf03b by Antoine Pitrou in branch '3.2': Issue #12065: connect_ex() on an SSL socket now returns the original errno http://hg.python.org/cpython/rev/019d8ccdf03b New changeset 162ed9841f14 by Antoine Pitrou in branch 'default': Issue #12065: connect_ex() on an SSL socket now returns the original errno http://hg.python.org/cpython/rev/162ed9841f14 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12065 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12065] test_ssl failure when svn.python.org fails to resolve
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12065 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12090] 3.2: build --without-threads fails
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12090 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6059] ctypes/uuid-related segmentation fault
Charles-François Natali neolo...@free.fr added the comment: Importing uuid before importing the other modules does not result in Seg Fault Alright. In that case, I'm closing this bug as invalid. Until distributions start shipping their glibc with this patch, the workaround is simply to import uuid first. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6059 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure
Éric Araujo mer...@netwok.org added the comment: Don’t you get ResourceWarnings from the popens and the unclosed file? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9516 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10882] Add os.sendfile()
Stefan Krah stefan-use...@bytereef.org added the comment: test_os fails on the Fedora bot (--without-threads): test test_os crashed -- Traceback (most recent call last): File ./Lib/test/regrtest.py, line 1037, in runtest_inner File /home/buildbot/buildarea/3.x.krah-fedora/build/Lib/importlib/_bootstrap.py, line 437, in load_module return self._load_module(fullname) File /home/buildbot/buildarea/3.x.krah-fedora/build/Lib/importlib/_bootstrap.py, line 141, in decorated return fxn(self, module, *args, **kwargs) File /home/buildbot/buildarea/3.x.krah-fedora/build/Lib/importlib/_bootstrap.py, line 342, in _load_module exec(code_object, module.__dict__) File /home/buildbot/buildarea/3.x.krah-fedora/build/Lib/test/test_os.py, line 1312, in module class SendfileTestServer(asyncore.dispatcher, threading.Thread): AttributeError: 'NoneType' object has no attribute 'Thread' -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12104] os.path.join('/some/path', '') adds extra slash at end of result
New submission from Марк Коренберг socketp...@gmail.com: os.path.join('/some/path', '') adds extra slash at end of result. I expect in that case return value should be '/some/path' but not '/some/path/' -- components: Library (Lib) messages: 136258 nosy: mmarkk priority: normal severity: normal status: open title: os.path.join('/some/path', '') adds extra slash at end of result type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12105] open() does not able to set flags, such as O_CLOEXEC
New submission from Марк Коренберг socketp...@gmail.com: In Python3 I'm not able to use open('xxx', 're') as it does not call fopen() anymore. What about extra flags like 'e'=O_CLOEXEC? P.S. see issue12103 for list of needed flags P.P.S does 2to3 tool properly detect such cases? -- messages: 136259 nosy: mmarkk priority: normal severity: normal status: open title: open() does not able to set flags, such as O_CLOEXEC type: behavior versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12105 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12105] open() does not able to set flags, such as O_CLOEXEC
Changes by Марк Коренберг socketp...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12105 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10882] Add os.sendfile()
Roundup Robot devnull@devnull added the comment: New changeset c45e92bd4d81 by Giampaolo Rodola' in branch 'default': os.sendfile() test: fix AttributeError: 'NoneType' object has no attribute 'Thread' when running tests with --without-threads option. http://hg.python.org/cpython/rev/c45e92bd4d81 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12105] open() does not able to set flags, such as O_CLOEXEC
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: These needed flags are actually nonstandard extensions of the libc fopen() function on some platforms. In python3, one can still use fcntl(f.fileno(), FD_SET, FD_CLOEXEC), but a flags parameter would be more convenient. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12105 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12106] reflect syntatic sugar in with ast
New submission from Benjamin Peterson benja...@python.org: This patch causes multiple with statements with multiple with items to be represented in the AST instead of flattened as currently happens. -- components: Interpreter Core files: fixwith.patch keywords: patch messages: 136262 nosy: benjamin.peterson, ncoghlan priority: normal severity: normal status: open title: reflect syntatic sugar in with ast type: feature request versions: Python 3.3 Added file: http://bugs.python.org/file22024/fixwith.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1746656] IPv6 Interface naming/indexing functions
Charles-François Natali neolo...@free.fr added the comment: Here's a patch: - those functions now accept and return str, not bytes arrays - some of them were not declared static, it's now fixed - use PyErr_SetFromErrno when errno is set - add tests (return type, nonexistent interface name/index and invalid argument) - cleanup Note that I'm not sure about my char * - PyObject conversions, encoding/unicode issues are really something I'm completely oblivious to. -- nosy: +neologix Added file: http://bugs.python.org/file22025/socket_if.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1746656 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12105] open() does not able to set flags, such as O_CLOEXEC
Charles-François Natali neolo...@free.fr added the comment: In python3, one can still use fcntl(f.fileno(), FD_SET, FD_CLOEXEC) Note that it's not atomic. -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12105 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1746656] IPv6 Interface naming/indexing functions
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1746656 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6474] Inconsistent TypeError message on function calls with wrong number of arguments
Oleg Oshmyan chor...@inbox.lv added the comment: $ python3.2 Python 3.2 (r32:88445, Mar 28 2011, 16:46:36) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. from distutils.core import Extension Extension('myext', define_macros=[]) Traceback (most recent call last): File stdin, line 1, in module TypeError: __init__() takes at least 3 arguments (3 given) $ python3.1 Python 3.1.3 (r313:86834, Mar 28 2011, 16:44:43) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. from distutils.core import Extension Extension('myext', define_macros=[]) Traceback (most recent call last): File stdin, line 1, in module TypeError: __init__() takes at least 3 non-keyword positional arguments (2 given) Looking at the patch committed in r79235, it changes the message to display the total number of arguments passed in and not just required ones. This specific change should be reversed since it produces messages like the one quoted above. (In case you were wondering, passing another optional keyword argument does indeed result in a complaint that at least 3 arguments are taken but 4 are passed.) For even better results, I would suggest rewording the message to make it clear that the requirement refers only to arguments without default values. -- nosy: +chortos ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6474 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Brian Curtin br...@python.org added the comment: With the patch applied, the new test fails along with test.test_os.WalkTests.test_traversal and test.test_os.Win32SymlinkTests.test_directory_link. Overall, I agree that this doesn't work correctly. The patch, which is pretty large, breaks more than it fixes. I'll see if I can make time during the day tomorrow to look further into the code, and I'll try to coordinate with Jason if possible. (for anyone else looking at this, remember to run your command prompt as administrator) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11643] Use |version| instead of X.Y in the doc
Tom McDermott spons...@gmail.com added the comment: Things are slightly worse than this issue suggests: the Sphinx formatting string |version| has leaked into the html docs in a few places (library/site.html for example). The difficulty is that Sphinx isn't expanding the |version| variable inside :file: markup. -- nosy: +sponster ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11643 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12105] open() does not able to set flags, such as O_CLOEXEC
Changes by Alexey Smirnov alexey.smir...@gmx.com: -- nosy: +alexey-smirnov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12105 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com