[issue21950] import sqlite3 not running after configure --prefix=/alt/path; make; make install

2014-07-18 Thread Alejandro
Alejandro added the comment: Here you have make_install.log Thanks -- Added file: http://bugs.python.org/file35989/make_install.log ___ Python tracker ___ __

[issue22003] BytesIO copy-on-write

2014-07-18 Thread David Wilson
David Wilson added the comment: Good catch :( There doesn't seem to be way a to ask for an immutable buffer, so perhaps it could just be a little more selective. I think the majority of use cases would still be covered if the sharing behaviour was restricted only to BytesType. In that case "P

[issue22003] BytesIO copy-on-write

2014-07-18 Thread Stefan Behnel
Stefan Behnel added the comment: Even if there is no way to explicitly request a RO buffer, the Py_buffer struct that you get back actually tells you if it's read-only or not. Shouldn't that be enough to enable this optimisation? Whether or not implementors of the buffer protocol set this flag

[issue21999] shlex: bug in posix more handling of empty strings

2014-07-18 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue1602] windows console doesn't print or input Unicode

2014-07-18 Thread Drekin
Drekin added the comment: I have made some updates in the streams code. Better error handling (getting errno by GetLastError() and raising exception when zero bytes are written on non-zero input). This prevents the infinite loop in BufferedIOWriter.flush() when there is odd number of bytes (Wr

[issue1602] windows console doesn't print or input Unicode

2014-07-18 Thread STINNER Victor
STINNER Victor added the comment: @Drekin: Please don't send ZIP files to the bug tracker. It would be much better to have a project on github, Mercurial or something else, to have the history of the source code. You may try tp list all people who contributed to this code. You may also create

[issue17185] unittest mock create_autospec doesn't correctly replace mocksignature

2014-07-18 Thread Michael Foord
Michael Foord added the comment: It was a functionality change, not just a name change. -- ___ Python tracker ___ ___ Python-bugs-list

[issue7063] Memory errors in array.array

2014-07-18 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue15994] memoryview to freed memory can cause segfault

2014-07-18 Thread Stefan Krah
Stefan Krah added the comment: We deal with it when we have time. IMO there is little value in bumping up issues this way. -- ___ Python tracker ___

[issue22002] Make full use of test discovery in test subpackages

2014-07-18 Thread Brett Cannon
Brett Cannon added the comment: I can confirm everything you said is accurate, Zachary. And I very much look forward to the results of the patch. =) -- ___ Python tracker ___ __

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2014-07-18 Thread Edward Oubrayrie
New submission from Edward Oubrayrie: pickle.loads raises a TypeError when calling the datetime constructor, (then a UnicodeEncodeError in the load_reduce function). A short test program & the log, including dis output of both PY2 and PY3 pickles, are available in this gist; and extract on sta

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2014-07-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2014-07-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue22004] io documentation refers to newline as newlines

2014-07-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c98086194d5 by Zachary Ware in branch '2.7': Issue #22004: Correct an argument name. http://hg.python.org/cpython/rev/4c98086194d5 New changeset 252cd056d1cf by Zachary Ware in branch '3.4': Issue #22004: Correct an argument name. http://hg.python.

[issue22004] io documentation refers to newline as newlines

2014-07-18 Thread Zachary Ware
Zachary Ware added the comment: Fixed! Thanks for the report. -- nosy: +zach.ware versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue12855] linebreak sequences should be better documented

2014-07-18 Thread David Halter
David Halter added the comment: I would vote for the inclusion of that patch. I just stumbled over this. -- nosy: +davidhalter ___ Python tracker ___

[issue16859] tarfile.TarInfo.fromtarfile does not check read() return value

2014-07-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: The size of the buffer returned by TarInfo.fromtarfile() is checked by TarInfo.frombuf() which raises either an EmptyHeaderError or TruncatedHeaderError respectively. -- assignee: -> lars.gustaebel resolution: -> not a bug stage: -> resolved status:

[issue8843] urllib2 Digest Authorization uri must match request URI

2014-07-18 Thread Demian Brecht
Demian Brecht added the comment: FWIW, here's my take on this: RFC 2617 (3.2.2.5) states: This may be "*", an "absoluteURL" or an "abs_path" as specified in section 5.1.2 of [2], but it MUST agree with the Request-URI. Note: It must AGREE. RFC 3986 (6.2.3) states: In general, a URI that uses

[issue17620] Python interactive console doesn't use sys.stdin for input

2014-07-18 Thread Drekin
Drekin added the comment: There is still the serious inconsistency that the `sys.stdin` is not used for input by interactive loop but its encoding is. So if I replace `sys.stdin` with a custom object with its own `encoding` attribute, the standard interactive loop tries to use this encoding wh

[issue14414] xmlrpclib leaves connection in broken state if server returns error without content-length

2014-07-18 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +dbrecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21950] import sqlite3 not running after configure --prefix=/alt/path; make; make install

2014-07-18 Thread R. David Murray
R. David Murray added the comment: The install log shows the file being copied into place: copying build/lib.linux-x86_64-3.4/_sqlite3.cpython-34m.so -> /soft/pyt341/lib/python3.4/lib-dynload This does not line up with the fact that you said the file did not exist after the install. Somethin

[issue21950] import sqlite3 not running after configure --prefix=/alt/path; make; make install

2014-07-18 Thread R. David Murray
R. David Murray added the comment: configure with a prefix followed by make/make install works fine for me, by the way (on a Gentoo system). -- ___ Python tracker ___ __

[issue1598] unexpected response in imaplib

2014-07-18 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Hi Lita, I no longer have access to a Domino server. I'm not sure whether there are enough users trying to access Domino with imaplib for this to warrant investigation. RHH -- ___ Python tracker

[issue21935] Implement AUTH command in smtpd.

2014-07-18 Thread Milan Oberkirch
Milan Oberkirch added the comment: After trying to implement SMTPS with asyncore and wrap_socket I agree with David that it is at least hard: somehow the handshake fails (ssl.SSLWantReadError) and I did not really figure out why. Looking at the debugging output of openssl indicates that the co

[issue1598] unexpected response in imaplib

2014-07-18 Thread Lita Cho
Lita Cho added the comment: Hi Roy, Oh I see. Should we close this out as "Won't Fix" due to the fact that we aren't sure how many users are using this with Domino servers? Lita On Fri, Jul 18, 2014 at 8:52 AM, Roy Hyunjin Han wrote: > > Roy Hyunjin Han added the comment: > > Hi Lita, > > I

[issue14414] xmlrpclib leaves connection in broken state if server returns error without content-length

2014-07-18 Thread Joachim Bauch
Joachim Bauch added the comment: I could look into providing a patch if that helps... -- ___ Python tracker ___ ___ Python-bugs-list m

[issue1598] unexpected response in imaplib

2014-07-18 Thread Roy Hyunjin Han
Roy Hyunjin Han added the comment: Yes, I think closing this issue is reasonable. If the error reappears, we can just reopen it. -- ___ Python tracker ___ __

[issue21970] Broken code for handling file://host in urllib.request.FileHandler.file_open

2014-07-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22003] BytesIO copy-on-write

2014-07-18 Thread Mikhail Korobov
Changes by Mikhail Korobov : -- nosy: +kmike ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20516] Concurrent.futures base concurrency improvement (with patch)

2014-07-18 Thread Glenn Langford
Changes by Glenn Langford : -- nosy: -glangford ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue13299] namedtuple row factory for sqlite3

2014-07-18 Thread Glenn Langford
Changes by Glenn Langford : -- nosy: -glangford ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20369] concurrent.futures.wait() blocks forever when given duplicate Futures

2014-07-18 Thread Glenn Langford
Changes by Glenn Langford : -- nosy: -glangford ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20297] concurrent.futures.as_completed() installs waiters for already completed Futures

2014-07-18 Thread Glenn Langford
Changes by Glenn Langford : -- nosy: -glangford ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue14414] xmlrpclib leaves connection in broken state if server returns error without content-length

2014-07-18 Thread Demian Brecht
Demian Brecht added the comment: Of /course/ a patch always helps :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue21645] asyncio: Race condition in signal handling on FreeBSD

2014-07-18 Thread STINNER Victor
STINNER Victor added the comment: The test suite passed on FreeBSD 9 buildbot (3.4, 3.5 and my custom builds). I consider that the bug is now fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue20064] PyObject_Malloc is not documented

2014-07-18 Thread Carol Willing
Carol Willing added the comment: I've reviewed this patch. It's my first patch review for this project so I'm not sure that I submitted the review correctly in Rietveld. -- nosy: +willingc ___ Python tracker _

[issue18392] Doc: PyObject_Malloc() is not documented

2014-07-18 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> PyObject_Malloc is not documented ___ Python tracker ___ ___

[issue16494] Add a method on importlib.SourceLoader for creating bytecode file format/container

2014-07-18 Thread Brett Cannon
Brett Cannon added the comment: I think I want to keep bytecode files as optimizations as much as possible, so exposing anything that explicitly writes them is just going to lead to headaches. -- resolution: -> rejected status: open -> closed ___ P

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2014-07-18 Thread Tim Peters
Tim Peters added the comment: I have no idea what was done to pickle for Python3, but this line works for me to unpickle a Python2 protocol 2 datetime pickle under Python3, where P2 is the Python2 pickle string: pickle.loads(bytes(P2, encoding='latin1'), encoding='bytes') For example, >>

[issue18993] There is an overshadowed and invalid test in testmock.py

2014-07-18 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a formal review on the latest patch please. -- nosy: +BreamoreBoy type: enhancement -> behavior versions: +Python 3.5 -Python 3.3 ___ Python tracker

[issue22006] thread module documentation erroneously(?) states not all built-in functions release the GIL

2014-07-18 Thread Dan O'Reilly
New submission from Dan O'Reilly: Currently, the caveats section of the thread/_thread module has this statement in it: "Not all built-in functions that may block waiting for I/O allow other threads to run. (The most popular ones (time.sleep(), file.read(), select.select()) work as expected.)

[issue22006] thread module documentation erroneously(?) states not all built-in functions that do blocking I/O release the GIL

2014-07-18 Thread Dan O'Reilly
Changes by Dan O'Reilly : -- title: thread module documentation erroneously(?) states not all built-in functions release the GIL -> thread module documentation erroneously(?) states not all built-in functions that do blocking I/O release the GIL ___

[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2014-07-18 Thread Mark Lawrence
Mark Lawrence added the comment: >From the 3.5 docs. io.open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) This is an alias for the builtin open() function. There is a description for closefd at the open() function link. So how about addin

[issue18395] Make _Py_char2wchar() and _Py_wchar2char() public

2014-07-18 Thread STINNER Victor
STINNER Victor added the comment: > You seem to need wchar_t to call Py_Main and Py_SetProgramName. Yes, exactly. -- ___ Python tracker ___ _

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-07-18 Thread STINNER Victor
STINNER Victor added the comment: Oh, I wanted to use the atfork module for that, but then I saw that it does not exist :-( -- ___ Python tracker ___ ___

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2014-07-18 Thread R. David Murray
R. David Murray added the comment: There is indeed special logic that triggers if the name is longer than 100 characters. Presumably it has a bug. Marking this as easy since it shouldn't be too hard, given the failure example, to figure out what is wrong and fix it (and turn the example into

[issue21988] Decrease iterating overhead in timeit

2014-07-18 Thread R. David Murray
R. David Murray added the comment: Guido: I've added developer privs to your Guido.van.Rossum account. -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue21989] Missing (optional) argument `start` and `end` in documentation for list.index

2014-07-18 Thread R. David Murray
R. David Murray added the comment: It's a tutorial, not API documentation. You will note that the 'key' and 'reverse' arguments to sort are not mentioned either. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue22007] sys.stdout.write on OS X is not EINTR safe

2014-07-18 Thread Jonathan Stewmon
New submission from Jonathan Stewmon: Writing to sys.stdout on OS X can fail with IOError: [Errno 4] Interrupted system call. I have observed this while trying to write to sys.stdout when SIGCHLD is received. The script below consistently reproduces the problem with python 2.7.2 on OS X 10.9.

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-07-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: issue14252 appears to have been a fix for the windows side only. On Posix the best that could be done here is to catch OSError within Popen.terminate() and Popen.kill() and ignore the problem if there was an error. We do not have a way to know if the child p

[issue17528] Implement dumps/loads for lru_cache

2014-07-18 Thread Mark Lawrence
Mark Lawrence added the comment: https://pypi.python.org/pypi/fastcache/0.4.0 also seems relevant. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___

[issue14373] C implementation of functools.lru_cache

2014-07-18 Thread Mark Lawrence
Mark Lawrence added the comment: https://pypi.python.org/pypi/fastcache/0.4.0 also seems relevant. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue1049450] Solaris: EINTR exception in select/socket calls in telnetlib

2014-07-18 Thread STINNER Victor
STINNER Victor added the comment: The telnetlib now uses the new selectors introduced in Python 3.4: see the issue #19170. The selectors module handles InterruptedError (EINTR): it returns an empty list of events in this case. The changeset f713d9b6393c of the issue #19170 fixed this issue. S

[issue818201] distutils: clean does not use build_base option from build

2014-07-18 Thread Mark Lawrence
Changes by Mark Lawrence : -- components: -Distutils2 nosy: +dstufft versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ __

[issue644744] bdist_rpm fails when installing man pages

2014-07-18 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list m

[issue22007] sys.stdout.write on OS X is not EINTR safe

2014-07-18 Thread Ned Deily
Ned Deily added the comment: There have been a number of EINTR-releated issues reported in the past, some unique to BSD-based systems and/or OS X; see for example, Issue9867 and Issue12268. I don't know that any of them specifically addressed problems with writes to Python 2 file objects. FW

[issue22007] sys.stdout.write on OS X is not EINTR safe

2014-07-18 Thread STINNER Victor
STINNER Victor added the comment: This issue is just an example of issue addressed by the issue #18885. -- nosy: +haypo ___ Python tracker ___ ___

[issue1049450] Solaris: EINTR exception in select/socket calls in telnetlib

2014-07-18 Thread STINNER Victor
STINNER Victor added the comment: By the way, the bug was only fixed in Python 3.4 and later. I'm not interested to fix it in older Python versions. -- versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue21935] Implement AUTH command in smtpd.

2014-07-18 Thread Milan Oberkirch
Changes by Milan Oberkirch : Added file: http://bugs.python.org/file35991/smtpd_AUTH_full2.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue22007] sys.stdout.write on OS X is not EINTR safe

2014-07-18 Thread Ned Deily
Ned Deily added the comment: Yes, an issue not likely to be addressed in Python 2.7. I'm still curious as to why I'm not able to reproduce the problem, though. I suppose it could just come down to differences in the system it is running on, like workload, amount of memory, and/or number of p

[issue22007] sys.stdout.write on OS X is not EINTR safe

2014-07-18 Thread Jonathan Stewmon
Jonathan Stewmon added the comment: Sorry, I had a typo in the original report - I am actually using Python 2.7.7 installed with homebrew. The script crashes for me on the first iteration every time using iTerm as my terminal. I just tried it in Terminal, and it doesn't crash. Maybe it's actu

[issue22007] sys.stdout.write on OS X is not EINTR safe

2014-07-18 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the issue on Linux: Traceback (most recent call last): File "x.py", line 26, in f.write('starting program: {}\n'.format(program)) IOError: [Errno 4] Interrupted system call -- ___ Python tracke

[issue22008] Symtable's syntax warning should contain the word "because"

2014-07-18 Thread A Kaptur
New submission from A Kaptur: The symbol table's syntax error about unqualified exec is missing the word "because". >>> def foo(): ... exec "a = 1" ... def bar(): ... print a ... File "", line 2 SyntaxError: unqualified exec is not allowed in function 'foo' it contains a nes

[issue1047397] cgitb failures

2014-07-18 Thread Mark Lawrence
Mark Lawrence added the comment: The output now is c:\Users\Mark\PythonIssues>cgitbbug.py getattr1 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] Traceback (most recent call last): File "C:\Users\Mark\PythonIssues\cgitbbug.py", line 34, in d.h('aaa') File

[issue11001] Various obvious errors in cookies documentation

2014-07-18 Thread Mark Lawrence
Mark Lawrence added the comment: Given the comments in msg126979 do we formally review this, close as "won't fix" or what? -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-07-18 Thread Orion Poplawski
Orion Poplawski added the comment: I'm really sorry, I thought I had done the test build properly, but a second attempt has resulted in the same hang: http://koji.fedoraproject.org/koji/taskinfo?taskID=7165208 So I don't think it does the trick. -- ___

[issue22008] Symtable's syntax warning should contain the word "because"

2014-07-18 Thread Berker Peksag
Changes by Berker Peksag : -- assignee: docs@python -> components: +Library (Lib) -Documentation nosy: -docs@python stage: needs patch -> patch review type: enhancement -> behavior versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <

[issue22008] Symtable's syntax warning should contain the word "because"

2014-07-18 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- versions: -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue22008] Symtable's syntax warning should contain the word "because"

2014-07-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef009b76bca3 by Benjamin Peterson in branch '2.7': add missing 'because' (closes #22008) http://hg.python.org/cpython/rev/ef009b76bca3 -- nosy: +python-dev resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue7676] IDLE shell shouldn't use TABs

2014-07-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, I cannot program 'fix it'. I need an exact spec. I suspect that any change will upset someone. Which of the four alternative proposals would you consider to be an improvement? One of the problems is that what might look good on screen with colors, inc

[issue5876] __repr__ returning unicode doesn't work when called implicitly

2014-07-18 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: fixed -> wont fix stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list

[issue22009] pdb.set_trace() crashes when binary data is input via stdin

2014-07-18 Thread Silverback Networks
New submission from Silverback Networks: sample.py: import sys, pdb infile = sys.stdin.buffer pdb.set_trace() command line: python -m pdb sample.py < binary.exe output: > c:\users\me\dropbox\sample.py(1)() -> import sys, pdb (Pdb) Traceback (most recent call last): File "C:\dev\Python\x86\lib

[issue22010] Idle: better management of Shell window output

2014-07-18 Thread Terry J. Reedy
New submission from Terry J. Reedy: Some of these ideas are in other issues, but possibly as side-thoughts. Any issues that directly address one of them can be added as dependency. The appropriate place for menu entries would be the Shell menu, which currently has only 2, 1 of which I have nev

[issue22009] pdb.set_trace() crashes with UnicodeDecodeError when binary data is input via stdin

2014-07-18 Thread Silverback Networks
Silverback Networks added the comment: Just verified the problem on 3.4.1 as well. -- title: pdb.set_trace() crashes when binary data is input via stdin -> pdb.set_trace() crashes with UnicodeDecodeError when binary data is input via stdin ___ Pytho

[issue22001] containers "same" does not always mean "__eq__".

2014-07-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue17528] Implement dumps/loads for lru_cache

2014-07-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Have you seen something like this done for other implementations of LRU caches? To me, the idea seems to be at odds with the idea of retaining only the last n calls in memory -- suggesting that a refreshing an outdated entry is cheaper than retiring it t

[issue20585] urllib2 unrelease KQUEUE on Mac OSX 10.9+

2014-07-18 Thread Bob Carroll
Bob Carroll added the comment: I'm not forking, but this is possibly related my issue. I have a twisted application that periodically crashes when attempting to make an HTTP request. Based on the stack trace showing _scproxy, I tried the work around and it seems to have helped. The crash log i

[issue11001] Various obvious errors in cookies documentation

2014-07-18 Thread R. David Murray
R. David Murray added the comment: My suggestion was that the help text from the doc strings be used to update the ReST documentation. -- ___ Python tracker ___

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-18 Thread Tim Peters
Tim Peters added the comment: I'm sympathetic, but I don't see a good solution here without using incompatible code. ndiff was built to generate "the highest quality diff possible", for text written and edited by humans, where "quality" is measured by human judgment (not an abstract mathemati

[issue22009] pdb.set_trace() crashes with UnicodeDecodeError when binary data is input via stdin

2014-07-18 Thread Silverback Networks
Silverback Networks added the comment: OK, now that I've screwed my thinking cap back on, it's obvious that pdb in the example is pulling from stdin. However, that isn't be the case in my original problem, so modify the example to: sample.py: import sys, pdb infile = sys.stdin.buffer.read() pd

[issue19776] Provide expanduser() on Path objects

2014-07-18 Thread Claudiu Popa
Claudiu Popa added the comment: No, my home directory is actually /root. The attached patch should be clearer now (I hope). Regarding your question, wouldn't checking for this duplicate what os.path.expanduser already does? (Unless checking for the exact same string before returning it.)